<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: gdb has duplicate backtrace entries in Operating System - Linux</title>
    <link>https://community.hpe.com/t5/operating-system-linux/gdb-has-duplicate-backtrace-entries/m-p/5062113#M94358</link>
    <description>It appears you have solved your problem.  You should close this thread, so people know that. (There is no bunny.)&lt;BR /&gt;And of course, if you want to assign more points, that's fine too.  :-)</description>
    <pubDate>Thu, 09 Aug 2007 22:27:12 GMT</pubDate>
    <dc:creator>Dennis Handly</dc:creator>
    <dc:date>2007-08-09T22:27:12Z</dc:date>
    <item>
      <title>gdb has duplicate backtrace entries</title>
      <link>https://community.hpe.com/t5/operating-system-linux/gdb-has-duplicate-backtrace-entries/m-p/5062105#M94350</link>
      <description>Hi,&lt;BR /&gt;I am debugging a multithreaded program on HPUX(Itanium), this is a 64-bit application.&lt;BR /&gt;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&lt;BR /&gt;on gdb prompt. Can you please suggest what is happening out there. &lt;BR /&gt;&lt;BR /&gt;Version of gdb&lt;BR /&gt;HP gdb 5.5.1 for HP Itanium (32 or 64 bit) and target HP-UX 11.2x&lt;BR /&gt;&lt;BR /&gt;HPUX version: B.11.23 U ia64 3018900438</description>
      <pubDate>Wed, 08 Aug 2007 07:04:01 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/gdb-has-duplicate-backtrace-entries/m-p/5062105#M94350</guid>
      <dc:creator>jeet_xp</dc:creator>
      <dc:date>2007-08-08T07:04:01Z</dc:date>
    </item>
    <item>
      <title>Re: gdb has duplicate backtrace entries</title>
      <link>https://community.hpe.com/t5/operating-system-linux/gdb-has-duplicate-backtrace-entries/m-p/5062106#M94351</link>
      <description>You have a recursive stack overflow.&lt;BR /&gt;&lt;BR /&gt;I assume you do have recursion??</description>
      <pubDate>Wed, 08 Aug 2007 07:29:41 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/gdb-has-duplicate-backtrace-entries/m-p/5062106#M94351</guid>
      <dc:creator>Dennis Handly</dc:creator>
      <dc:date>2007-08-08T07:29:41Z</dc:date>
    </item>
    <item>
      <title>Re: gdb has duplicate backtrace entries</title>
      <link>https://community.hpe.com/t5/operating-system-linux/gdb-has-duplicate-backtrace-entries/m-p/5062107#M94352</link>
      <description>Yep, this is the absolutely classic symptom of infinite (or nearly so) recursion. Somehow the condition to exit the function is not being met. It could be something as trivial as:&lt;BR /&gt;if (a = b)&lt;BR /&gt;when you actually intended:&lt;BR /&gt;if (a == b)&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Wed, 08 Aug 2007 09:44:05 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/gdb-has-duplicate-backtrace-entries/m-p/5062107#M94352</guid>
      <dc:creator>A. Clay Stephenson</dc:creator>
      <dc:date>2007-08-08T09:44:05Z</dc:date>
    </item>
    <item>
      <title>Re: gdb has duplicate backtrace entries</title>
      <link>https://community.hpe.com/t5/operating-system-linux/gdb-has-duplicate-backtrace-entries/m-p/5062108#M94353</link>
      <description>Hi,&lt;BR /&gt;&lt;BR /&gt;Check out for the improper recursions that have been suggested.&lt;BR /&gt;Also ensure that you are using the same versions of the shared libs that were in picture when the core was dumped.&lt;BR /&gt;What type of "backtrace" are you getting ?&lt;BR /&gt;Do you see the same frame (function, PC, line) being shown from frame-1 to frame-80000 ?&lt;BR /&gt;&lt;BR /&gt;Also try using the latest wdb(5.7) available at &lt;BR /&gt;&lt;A href="http://www.hp.com/go/wdb." target="_blank"&gt;http://www.hp.com/go/wdb.&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;Regards,&lt;BR /&gt;Mithun&lt;BR /&gt;</description>
      <pubDate>Wed, 08 Aug 2007 23:46:35 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/gdb-has-duplicate-backtrace-entries/m-p/5062108#M94353</guid>
      <dc:creator>Mithun R N</dc:creator>
      <dc:date>2007-08-08T23:46:35Z</dc:date>
    </item>
    <item>
      <title>Re: gdb has duplicate backtrace entries</title>
      <link>https://community.hpe.com/t5/operating-system-linux/gdb-has-duplicate-backtrace-entries/m-p/5062109#M94354</link>
      <description>I have figured out the problem it was a casting error. A long value was getting trunctated somewhere which infact making one variable in the range of 634992 or something which ideally should be in range of 9-10. &lt;BR /&gt;It was worst case of stack overflow I would say. Thanks all for your responses.&lt;BR /&gt;&lt;BR /&gt;Anybody have any idea about how long a stack can grow? how to change the size of stack for a &lt;BR /&gt;process.</description>
      <pubDate>Thu, 09 Aug 2007 00:33:02 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/gdb-has-duplicate-backtrace-entries/m-p/5062109#M94354</guid>
      <dc:creator>jeet_xp</dc:creator>
      <dc:date>2007-08-09T00:33:02Z</dc:date>
    </item>
    <item>
      <title>Re: gdb has duplicate backtrace entries</title>
      <link>https://community.hpe.com/t5/operating-system-linux/gdb-has-duplicate-backtrace-entries/m-p/5062110#M94355</link>
      <description>&amp;gt;Anybody have any idea about how long a stack can grow?  how to change the size of stack for a process.&lt;BR /&gt;&lt;BR /&gt;As big as maxdsiz or maxdsiz_64bit.  And further limited by "ulimit -s".&lt;BR /&gt;&lt;BR /&gt;&amp;gt;Or the size of your much smaller thread stack.&lt;BR /&gt;&lt;BR /&gt;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.</description>
      <pubDate>Thu, 09 Aug 2007 01:26:44 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/gdb-has-duplicate-backtrace-entries/m-p/5062110#M94355</guid>
      <dc:creator>Dennis Handly</dc:creator>
      <dc:date>2007-08-09T01:26:44Z</dc:date>
    </item>
    <item>
      <title>Re: gdb has duplicate backtrace entries</title>
      <link>https://community.hpe.com/t5/operating-system-linux/gdb-has-duplicate-backtrace-entries/m-p/5062111#M94356</link>
      <description>You of course can figure out the size of your stack overflow with recursion:&lt;BR /&gt;(gdb) frame 0&lt;BR /&gt;(gdb) p /x $save_sp = $sp&lt;BR /&gt;(gdb) frame 80000   # or more&lt;BR /&gt;(gdb) p $save_sp - $sp</description>
      <pubDate>Thu, 09 Aug 2007 01:29:38 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/gdb-has-duplicate-backtrace-entries/m-p/5062111#M94356</guid>
      <dc:creator>Dennis Handly</dc:creator>
      <dc:date>2007-08-09T01:29:38Z</dc:date>
    </item>
    <item>
      <title>Re: gdb has duplicate backtrace entries</title>
      <link>https://community.hpe.com/t5/operating-system-linux/gdb-has-duplicate-backtrace-entries/m-p/5062112#M94357</link>
      <description>Also, try having an alternate stack defined to host the signal handler for stack-overflow conditions. &lt;BR /&gt;Refer to man pages for sigaltstack.&lt;BR /&gt;&lt;BR /&gt;Mithun&lt;BR /&gt;</description>
      <pubDate>Thu, 09 Aug 2007 01:33:48 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/gdb-has-duplicate-backtrace-entries/m-p/5062112#M94357</guid>
      <dc:creator>Mithun R N</dc:creator>
      <dc:date>2007-08-09T01:33:48Z</dc:date>
    </item>
    <item>
      <title>Re: gdb has duplicate backtrace entries</title>
      <link>https://community.hpe.com/t5/operating-system-linux/gdb-has-duplicate-backtrace-entries/m-p/5062113#M94358</link>
      <description>It appears you have solved your problem.  You should close this thread, so people know that. (There is no bunny.)&lt;BR /&gt;And of course, if you want to assign more points, that's fine too.  :-)</description>
      <pubDate>Thu, 09 Aug 2007 22:27:12 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/gdb-has-duplicate-backtrace-entries/m-p/5062113#M94358</guid>
      <dc:creator>Dennis Handly</dc:creator>
      <dc:date>2007-08-09T22:27:12Z</dc:date>
    </item>
    <item>
      <title>Re: gdb has duplicate backtrace entries</title>
      <link>https://community.hpe.com/t5/operating-system-linux/gdb-has-duplicate-backtrace-entries/m-p/5062114#M94359</link>
      <description>I found the solution as described in my last post in this thread, thank you all for suggesions.</description>
      <pubDate>Fri, 10 Aug 2007 07:50:24 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/gdb-has-duplicate-backtrace-entries/m-p/5062114#M94359</guid>
      <dc:creator>jeet_xp</dc:creator>
      <dc:date>2007-08-10T07:50:24Z</dc:date>
    </item>
  </channel>
</rss>

