Click here to Skip to main content
15,882,017 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi,
I have a core file generated from my application.

When am seeing the core file segafult has been generated because of a looping

bt
in Delet_value(dest=12345,del_node=0xde41dd40) at file leaving.c
in Delet_value(dest=12345,del_node=0xde41dd40) at file leaving.c
in Delet_value(dest=12345,del_node=0xde41dd40) at file leaving.c
....

and this conitues
The function is called from many places in my application .How do I go to the code who called this as am unable to go for it though giving enter or up command as it is generated from a loop.
Can anybody please help me on this.
Posted
Comments
Sergey Alexandrovich Kryukov 12-Dec-13 11:54am    
Do you mean GNU Project Debugger? Anything else. The hint: you need to get the call stack at some point.
—SA
saroj kymar panda 12-Dec-13 11:57am    
Hi Sergey,
I need to get the call stack but the issue is as it generated by a for loop getting the call stack is through up command is tiring so is there any way to reach to it.
saroj kymar panda 12-Dec-13 12:20pm    
Sergey,
Thanks for your kind help.
Sergey Alexandrovich Kryukov 12-Dec-13 12:49pm    
You are very welcome.
—SA

1 solution

Please see my comment to the question.

For further detail, please see:
http://www.chemie.fu-berlin.de/chemnet/use/info/gdb/gdb_7.html[^],
http://sourceware.org/gdb/onlinedocs/gdb/Stack.html[^],
http://gcc.gnu.org/onlinedocs/gcc-3.3.6/gnat_ug_unx/Introduction-to-GDB-Commands.html[^].

Now, when you know the keywords, you can search for other suitable documentation on the topic.

—SA
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900