From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 4058 invoked by alias); 16 Jul 2005 00:52:12 -0000 Mailing-List: contact gdb-help@sources.redhat.com; run by ezmlm Precedence: bulk List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-owner@sources.redhat.com Received: (qmail 3835 invoked by uid 22791); 16 Jul 2005 00:52:08 -0000 Received: from web52001.mail.yahoo.com (HELO web52001.mail.yahoo.com) (206.190.48.84) by sourceware.org (qpsmtpd/0.30-dev) with SMTP; Sat, 16 Jul 2005 00:52:08 +0000 Received: (qmail 16240 invoked by uid 60001); 16 Jul 2005 00:52:07 -0000 Message-ID: <20050716005207.16238.qmail@web52001.mail.yahoo.com> Received: from [68.35.156.199] by web52001.mail.yahoo.com via HTTP; Fri, 15 Jul 2005 17:52:07 PDT X-RocketYMMF: natkelcri Date: Sat, 16 Jul 2005 00:52:00 -0000 From: Larry Martell Reply-To: larry@software-horizons.com Subject: Re: gdb runs multi-threaded with non-threaded app and gets SEGV To: "Min Xu \(Hsu\)" Cc: gdb@sources.redhat.com In-Reply-To: <20050715230356.GB7686@cs.wisc.edu> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 8bit X-SW-Source: 2005-07/txt/msg00187.txt.bz2 --- "Min Xu (Hsu)" wrote: > On Fri, 15 Jul 2005 Larry Martell wrote : > > --- "Min Xu (Hsu)" wrote: > > > > > Larry, > > > > > > How about you run the program and let the > program > > > pass the > > > lib call without using GDB. And spin there until > gdb > > > is attached? > > > > I tried this, but after it attaches to the > process, > > as then I try to continue it, it immediatly gets > > a SEGV. And it sounded like such a good idea too > :-( > > How can this be possible is beyond me. :-( > > Are you using SPARC? No, I'm on a P4 running Linux. My app makes many calls to functions from this lib. It seems a call to any one of them causes the SEGV from within gdb. Like I said before, it doesn't do this when I run it outside of gdb, but it worries me. (I had forgotten how much fun it is debugging with printf's ;-) -larry