Article View: gnu.gdb.bug
Article #1934corrupted stack - only one level of stack visible
From: no
Date: Thu, 16 May 2002 17:36
Date: Thu, 16 May 2002 17:36
26 lines
1994 bytes
1994 bytes
I am having some trouble viewing the stack in gdb on my Redhat 7.2 linux. I installed gdb 5.2 (and tried it with 5.1.1 as well). When I run my program and view the stack, it only shows me one level of the program stack and the rest looks like: #1 0x0000003a in ?? () #2 0x40602c28 in main_arena () from /lib/libc.so.6 #3 0x0805aa28 in ?? () Frequently in the one level it shows (#0), the pointers to the function are 0x0 or corrupted. This is without core dump as well. For example, if I tbreak and then step through some code, I get: (gdb) where #0 fcnfromMyExecutable(int, char**) (argc=3, argv=0xbfffdb64) at file.cpp:329 #1 0xbfffdaf8 in ?? () Cannot access memory at address 0x3 I re-installed it - still didn't work. I checked on a solaris file with gdb-5.2 and it works just fine. What am I doing wrong ?
Technical Details
Message-ID:
<277e712a.0205160936.2bebebb4@posting.google.com>Path:
arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!newsfeed.stanford.edu!bloom-beacon.mit.edu!nycmny1-snh1.gtei.net!cpk-news-hub1.bbnplanet.com!news.gtei.net!nntp.abs.net!uunet!dca.uu.net!ash.uu.net!spool0901.news.uu.net!wendy-fate.uu.net!not-for-mailShow Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: f5053,ba4834ca877a4730,start X-Google-Attributes: gidf5053,public X-Google-ArrivalTime: 2002-05-16 10:36:22 PST x-uunet-gateway: sjc3sosrv11.alter.net from bug-gdb to gnu.gdb.bug; Thu, 16 May 2002 17:36:18 GMT Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!newsfeed.stanford.edu!bloom-beacon.mit.edu!nycmny1-snh1.gtei.net!cpk-news-hub1.bbnplanet.com!news.gtei.net!nntp.abs.net!uunet!dca.uu.net!ash.uu.net!spool0901.news.uu.net!wendy-fate.uu.net!not-for-mail From: notest@hotmail.com (no) Subject: corrupted stack - only one level of stack visible Date: 16 May 2002 10:36:06 -0700 Organization: http://groups.google.com/ Message-ID: <277e712a.0205160936.2bebebb4@posting.google.com> NNTP-Posting-Host: 128.195.175.201 Content-Type: text/plain; charset=GB2312 Content-Transfer-Encoding: 8bit X-Trace: posting.google.com 1021570566 26150 127.0.0.1 (16 May 2002 17:36:06 GMT) X-Complaints-To: groups-abuse@google.com NNTP-Posting-Date: 16 May 2002 17:36:06 GMT Approved: bug-gdb-request@mail.gnu.org Newsgroups: gnu.gdb.bug Sender: bug-gdb-request@mail.gnu.org Lines: 26