- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - Linux
- >
- gdb has duplicate backtrace entries
Categories
Company
Local Language
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Discussions
Discussions
Discussions
Forums
Forums
Discussions
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Community
Resources
Forums
Blogs
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО08-08-2007 12:04 AM
тАО08-08-2007 12:04 AM
gdb has duplicate backtrace entries
I am debugging a multithreaded program on HPUX(Itanium), this is a 64-bit application.
My program crashes and when I see the stack, I find that it has as many as 80000 frames even I can go to 80000'th frame by saying frame 80000
on gdb prompt. Can you please suggest what is happening out there.
Version of gdb
HP gdb 5.5.1 for HP Itanium (32 or 64 bit) and target HP-UX 11.2x
HPUX version: B.11.23 U ia64 3018900438
- Tags:
- gdb
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО08-08-2007 12:29 AM
тАО08-08-2007 12:29 AM
Re: gdb has duplicate backtrace entries
I assume you do have recursion??
- Tags:
- stack overflow
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО08-08-2007 02:44 AM
тАО08-08-2007 02:44 AM
Re: gdb has duplicate backtrace entries
if (a = b)
when you actually intended:
if (a == b)
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО08-08-2007 04:46 PM
тАО08-08-2007 04:46 PM
Re: gdb has duplicate backtrace entries
Check out for the improper recursions that have been suggested.
Also ensure that you are using the same versions of the shared libs that were in picture when the core was dumped.
What type of "backtrace" are you getting ?
Do you see the same frame (function, PC, line) being shown from frame-1 to frame-80000 ?
Also try using the latest wdb(5.7) available at
http://www.hp.com/go/wdb.
Regards,
Mithun
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО08-08-2007 05:33 PM
тАО08-08-2007 05:33 PM
Re: gdb has duplicate backtrace entries
It was worst case of stack overflow I would say. Thanks all for your responses.
Anybody have any idea about how long a stack can grow? how to change the size of stack for a
process.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО08-08-2007 06:26 PM
тАО08-08-2007 06:26 PM
Re: gdb has duplicate backtrace entries
As big as maxdsiz or maxdsiz_64bit. And further limited by "ulimit -s".
>Or the size of your much smaller thread stack.
You use kctune to change maxdsiz or maxdsiz_64bit. To change the size of a thread stack you use pthread_attr_setstacksize(3) or pthread_default_stacksize_np(3), or an env var PTHREAD_DEFAULT_STACK_SIZE for the right libphread patch.
- Tags:
- kctune
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО08-08-2007 06:29 PM
тАО08-08-2007 06:29 PM
Re: gdb has duplicate backtrace entries
(gdb) frame 0
(gdb) p /x $save_sp = $sp
(gdb) frame 80000 # or more
(gdb) p $save_sp - $sp
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО08-08-2007 06:33 PM
тАО08-08-2007 06:33 PM
Re: gdb has duplicate backtrace entries
Refer to man pages for sigaltstack.
Mithun
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО08-09-2007 03:27 PM
тАО08-09-2007 03:27 PM
Re: gdb has duplicate backtrace entries
And of course, if you want to assign more points, that's fine too. :-)
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО08-10-2007 12:50 AM
тАО08-10-2007 12:50 AM