This is the mail archive of the
gdb-prs@sources.redhat.com
mailing list for the GDB project.
Re: gdb/257: Linux/PPC GDB 5.1 dies debugging programs linked with -lrt
- From: Daniel Jacobowitz <drow at mvista dot com>
- To: nobody at sources dot redhat dot com
- Cc: gdb-prs at sources dot redhat dot com,
- Date: 9 Feb 2002 22:38:01 -0000
- Subject: Re: gdb/257: Linux/PPC GDB 5.1 dies debugging programs linked with -lrt
- Reply-to: Daniel Jacobowitz <drow at mvista dot com>
The following reply was made to PR gdb/257; it has been noted by GNATS.
From: Daniel Jacobowitz <drow@mvista.com>
To: mendell@ca.ibm.com
Cc: gdb-gnats@sources.redhat.com
Subject: Re: gdb/257: Linux/PPC GDB 5.1 dies debugging programs linked with -lrt
Date: Sat, 9 Feb 2002 17:29:23 -0500
On Thu, Dec 13, 2001 at 07:11:14PM -0000, mendell@ca.ibm.com wrote:
>
> >Number: 257
> >Category: gdb
> >Synopsis: Linux/PPC GDB 5.1 dies debugging programs linked with -lrt
> >Confidential: no
> >Severity: serious
> >Priority: high
> >Responsible: unassigned
> >State: open
> >Class: sw-bug
> >Submitter-Id: net
> >Arrival-Date: Thu Dec 13 11:18:01 PST 2001
> >Closed-Date:
> >Last-Modified:
> >Originator: Mark Mendell
> >Release: gdb-5.1
> >Organization:
> >Environment:
> Linux/PPC: SuSe 7.1
> >Description:
> linking any program with -lrt will cause gdb to crash after program execution starts
> >How-To-Repeat:
> mendell@cedar:~ > cat > t.c
> int main()
> {
> printf ("hi\n");
> }
> mendell@cedar:~ > gcc t.c -lrt
> mendell@cedar:~ > src/gdb-5.1/gdb/gdb a.out
> GNU gdb 5.1
> Copyright 2001 Free Software Foundation, Inc.
> GDB is free software, covered by the GNU General Public License, and you are
> welcome to change it and/or distribute copies of it under certain conditions.
> Type "show copying" to see the conditions.
> There is absolutely no warranty for GDB. Type "show warranty" for details.
> This GDB was configured as "powerpc-unknown-linux-gnu"...(no debugging symbols found)...
> (gdb) r
> Starting program: /home/mendell/a.out
> (no debugging symbols found)...[New Thread 1024 (LWP 861)]
> Segmentation fault
> mendell@cedar:~ >
On a Debian/PowerPC system this works faultlessly. I suspect
libthread_db as the culprit. Can you provide more information? For
instance, run GDB in GDB and get a backtrace.
--
Daniel Jacobowitz Carnegie Mellon University
MontaVista Software Debian GNU/Linux Developer