ProgrammingThis forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
While debugging issues, gdb sometimes do not show full stack trace causing difficulty in debugging issues. Here is one sample example:
Code:
(gdb) bt
#0 0x08058ec1 in encode_dlg (dlg_ref_id=6777, encode_dlg=0x1610040) at encode_struct.c:489
#1 0x0805afd3 in log_dlg (dlg_ref_id=0) at log_dlg.c:8
#2 0x00000000 in ?? ()
Can anyone help me with this?? Why frame 2 is not showing me the caller of log_dlg function.
What's the reason gdb shows only ?? in bt in some cases. Whats missing in this case.
Sorry... I forgot to mention... The problem occurs once in a while but not for every request. Say once in months. I want to understand what goes wrong at that time.
Debugging isn't an exact science, it's more like an art; it requires knowledge, experience, and luck... For first try 'bt full' and examine every shown variable carefully.
I know that.... and i have already tried all options like bt, frames and all. Now i am moving towards analyzing registers... I just thought if anybody can help me with some useful link or doc for further information on that.
This happens for me also. seg fault happens only at sometime not all time, also gdb trace at ?? Any information would be helpful
Then you probably should open your own question, since this thread had been closed for *TEN YEARS* before you reopened it. Also, you're not providing any details at all, such as version/distro of Linux, desktop GUI you're using, etc.
This happens for me also. seg fault happens only at sometime not all time, also gdb trace at ??
Any information would be helpful
You have posted to a ten year old thread so your post may not attract current participants able to offer help.
Also, though your problem may seem similar when looking at a single error message, your code is different and others cannot offer any specific advice without knowing what the code is doing, or is supposed to be doing.
Please consider posting your own thread with enough detail so that others may understand your problem and offer more specific suggestions to fix it.
Please review the Site FAQ for guidance in asking well formed questions. Especially visit the link from that page, How to Ask Questions the Smart Way for discussion of things to consider when asking others for help.
Welcome to the LQ Programming forum, and good luck!
Last edited by astrogeek; 02-27-2022 at 01:28 PM.
Reason: ptosy
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.