🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: gnu.gdb.bug
Article #2253

Cannot access memory at address

#2253
From: Andrew Arro
Date: Thu, 25 Apr 2002 12:09
22 lines
1769 bytes
Hi! I have a trauble which seems to be stack trauble - but i am not
sure...

Why i think this is stack? because 

where

in the gdb shows no stack trace and only says

Cannot access memory at address

the code runs about 100 pthreads, uses select and socket IO.


So, my pthreaded code crashes by Segmentation Fault in RANDOM
functions calls - and GDB shows smth like this:


Testes on 2 differerent 2.4.* LINUX boxes, one with gcc 3.0.4 + gdb
5.1.1 and another gcc 2.96 + gdb 5

I think my main question is how can i debug this, any hints?
Technical Details
Message-ID: <17118df1.0204250409.55fd16fc@posting.google.com>
Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!newsfeed.stanford.edu!news-spur1.maxwell.syr.edu!news.maxwell.syr.edu!news-out.nuthinbutnews.com!propagator-sterling!news-in.nuthinbutnews.com!usenet.INS.cwru.edu!plonk.apk.net!news.apk.net!uunet!chi.uu.net!sea.uu.net!ash.uu.net!spool0901.news.uu.net!wendy-fate.uu.net!not-for-mail

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: f5053,a91a6e4572e682ab,start
X-Google-Attributes: gidf5053,public
X-Google-ArrivalTime: 2002-04-25 05:29:14 PST
x-uunet-gateway: mr1.ash.ops.us.uu.net from bug-gdb to gnu.gdb.bug; Thu, 25 Apr 2002 12:10:01 GMT
Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!newsfeed.stanford.edu!news-spur1.maxwell.syr.edu!news.maxwell.syr.edu!news-out.nuthinbutnews.com!propagator-sterling!news-in.nuthinbutnews.com!usenet.INS.cwru.edu!plonk.apk.net!news.apk.net!uunet!chi.uu.net!sea.uu.net!ash.uu.net!spool0901.news.uu.net!wendy-fate.uu.net!not-for-mail
From: arro@arro.ru (Andrew Arro)
Subject: Cannot access memory at address
Date: 25 Apr 2002 05:09:56 -0700
Organization: http://groups.google.com/
Message-ID: <17118df1.0204250409.55fd16fc@posting.google.com>
NNTP-Posting-Host: 194.186.49.178
Content-Type: text/plain; charset=GB2312
Content-Transfer-Encoding: 8bit
X-Trace: posting.google.com 1019736597 501 127.0.0.1 (25 Apr 2002 12:09:57 GMT)
X-Complaints-To: groups-abuse@google.com
NNTP-Posting-Date: 25 Apr 2002 12:09:57 GMT
Approved: bug-gdb-request@mail.gnu.org
Newsgroups: gnu.gdb.bug
Sender: bug-gdb-request@mail.gnu.org
Lines: 22