On Wed, 30 Sep 2015 10:05:56 -0400
Wayne Sallee <[email protected]> wrote:

> warning: core file may not match specified executable file.
> [New LWP 3483]
> Core was generated by 
> `/usr/libexec/gcc/x86_64-unknown-linux-gnu/4.9.2/cc1plus -quiet -D_GNU_SOURCE 
> fo'.


OK, so we see here that it was the cc1plus libexec that actually crashed,
not g++ (which called cc1plus). I think that explains why we are having
so much trouble. I even compiled a little file which crashes with an
illegal instruction as a test of gdb and did not have such trouble finding
the bad instruction. At least you are getting some backtrace info now.

So, you can use the already existing core file, but with a different
gdb exec file:

gdb -c core /usr/libexec/gcc/x86_64-unknown-linux-gnu/4.9.2/cc1plus

which should do the trick (if any error here, just repeat it with g++ and
proceed as below anyway).

Then

bt 

should show more info than before and

disassemble 0x00007fe02006a51f,+32

should yield the final solution to the mystery. ;)

If not, you can also try

disassemble 0x00007fe02006a497,+256

to see the assembly of the first part of the function that had the
problem and all that should contain the 0x00007fe02006a51f area
of interest.


  Cheers,

  Mike
-- 
http://lists.linuxfromscratch.org/listinfo/blfs-support
FAQ: http://www.linuxfromscratch.org/blfs/faq.html
Unsubscribe: See the above information page

Reply via email to