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.

3
  • 2
    Did you compile the binary using -g option enabled? Commented Jan 10, 2017 at 7:15
  • yes it is compiled. Commented Jan 10, 2017 at 7:16
  • 2
    The corrupt stack message could indicate that something went wrong with your memory access ( most certainly invalid write ), other tools like valgrind could help figure out your issue. Commented Jan 10, 2017 at 7:50

1 Answer 1

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.

Sign up to request clarification or add additional context in comments.

2 Comments

Yes it is on same host.
Same host here, too. As absurd as it seems, per github.com/Murmele/Gittyup/issues/523#issuecomment-2908255630, the speed with which you type bt full determines whether the RAM addresses remain.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.