3

When I try to debug core file with gdb I dont see any valid stack trace to proceed further (similar to the reported issue in the link below). Can you please help me how I should debug further to debug the issue. Any pointers or gdb commands which will help in triaging the problem.

GDB debugging trace with no relevant info (#0 0x2e6e6f69 in ?? ())

(gdb) where
#0  0x76c0da28 in ?? ()
#1  0x76c0d9e0 in ?? ()
#2  0x76c0d9e0 in ?? ()
Backtrace stopped: previous frame identical to this frame (corrupt stack?)
(gdb)

EDIT: To rule out the possibility of the -g flag and host environment issues,I have intentionally added a code to crash and was able to get the correct stack trace from the corefile.

Community
  • 1
  • 1
foo_l
  • 591
  • 2
  • 10
  • 28

1 Answers1

1

When I try to debug core file with gdb I dont see any valid stack trace

Was the core produced on the same host where it is being analyzed?

If not, this answer explains what you need to do.

Community
  • 1
  • 1
Employed Russian
  • 199,314
  • 34
  • 295
  • 362