I am studying SIGSEGV using gdb. This is the last stack stack that gdb sees attached to a running process that should happen:
#0 0x08d1805c in FooBar (this=0xa9315578, dt=0.100000001)
At this point, I saved the state using generate-core-file . When I check this dump with gdb, the same frame stack reads:
#0 0x08d1805c in FooBar (this=0x0, dt=2.69049305e-42)
It bothers me. On the one hand, a value of 0.1 for dt in a live situation makes sense. On the other hand, this , which is 0x0 , as seen in the dump, will perfectly explain SIGSEGV .
More importantly, how could there be a discrepancy at all?
c ++ linux coredump gdb
Bart van heukelom
source share