From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 20932 invoked by alias); 15 Jul 2005 23:04:05 -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 20900 invoked by uid 22791); 15 Jul 2005 23:04:01 -0000 Received: from everest.cs.wisc.edu (HELO everest.cs.wisc.edu) (128.105.166.17) by sourceware.org (qpsmtpd/0.30-dev) with ESMTP; Fri, 15 Jul 2005 23:04:01 +0000 Received: from everest.cs.wisc.edu (localhost [127.0.0.1]) by everest.cs.wisc.edu (8.13.1/8.13.1) with ESMTP id j6FN3xK9009133; Fri, 15 Jul 2005 18:03:59 -0500 Received: (from xu@localhost) by everest.cs.wisc.edu (8.13.1/8.13.1/Submit) id j6FN3xGh009132; Fri, 15 Jul 2005 18:03:59 -0500 Date: Fri, 15 Jul 2005 23:04:00 -0000 From: "Min Xu (Hsu)" To: Larry Martell Cc: gdb@sources.redhat.com Subject: Re: gdb runs multi-threaded with non-threaded app and gets SEGV Message-ID: <20050715230356.GB7686@cs.wisc.edu> References: <20050715212943.GA7686@cs.wisc.edu> <20050715222451.42369.qmail@web52009.mail.yahoo.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20050715222451.42369.qmail@web52009.mail.yahoo.com> User-Agent: Mutt/1.5.5.1i X-SW-Source: 2005-07/txt/msg00186.txt.bz2 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? One thing may or may not have something to do with this is "non-faulting loads" in SPARC. Maybe, without gdb, your program didn't SEGV since it was using "non-faulting loads"?