This is the mail archive of the binutils@sourceware.org mailing list for the binutils project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [PATCH] elf: Properly compute offsets of desc and next note


Hi,

Pedro found that this patch caused the GDB test "gdb.base/auxv.exp" to
consume memory until the machine becomes unresponsive.  I was able to
reproduce it too, so I chose to revert the patch, to reduce the risk
of it happening on other developer's machines and buildbot builders.

The test can be ran with:

  gdb/$ make check TESTS="gdb.base/auxv.exp"

(It's a good idea to ctrl-C quickly enough :))

After running the test once, I was able to reproduce the issue by starting
GDB manually like this:

  gdb/$ ./gdb -ex "core /home/emaisin/build/binutils-gdb/gdb/testsuite/outputs/gdb.base/auxv/auxv.corefile"

There is an infinite loop in elf_parse_notes, the pointer "p" never
gets advanced.

Simon


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]