From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 11933 invoked by alias); 19 Nov 2002 20:47:53 -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 11899 invoked from network); 19 Nov 2002 20:47:52 -0000 Received: from unknown (HELO devserv.devel.redhat.com) (66.187.233.200) by sources.redhat.com with SMTP; 19 Nov 2002 20:47:52 -0000 Received: from localhost (alexl@localhost) by devserv.devel.redhat.com (8.11.6/8.11.0) with ESMTP id gAJKlqV10349; Tue, 19 Nov 2002 15:47:52 -0500 X-Authentication-Warning: devserv.devel.redhat.com: alexl owned process doing -bs Date: Tue, 19 Nov 2002 12:47:00 -0000 From: Alexander Larsson X-X-Sender: alexl@devserv.devel.redhat.com To: Jim Blandy cc: gdb@sources.redhat.com, Ulrich Drepper Subject: Re: Final separate debug info patch In-Reply-To: Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII X-SW-Source: 2002-11/txt/msg00231.txt.bz2 On Tue, 19 Nov 2002, Alexander Larsson wrote: > On 19 Nov 2002, Jim Blandy wrote: > > > Alexander Larsson writes: > > > On 19 Nov 2002, Jim Blandy wrote: > > > > > > > > > > > It looks like the stripping process may break some executables. If $D > > > > is the top directory of a current GDB source tree, try this: > > > > > > > > $ g++ --version > > > > g++ (GCC) 3.3 20020820 (experimental) > > > > Copyright (C) 2002 Free Software Foundation, Inc. > > > > This is free software; see the source for copying conditions. There is NO > > > > warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. > > > > > > > > $ g++ -g $D/gdb/testsuite/gdb.c++/try_catch.cc -o try_catch > > > > $ ./try_catch > > > > $ /home/jimb/elfutils/bin/strip -f try_catch.separate-debug try_catch > > > > $ ./try_catch > > > > Segmentation fault > > > > $ > > > > > > This doesn't happen for me with gdb from cvs HEAD and gcc (GCC) 3.2 > > > 20020903 (Red Hat Linux 8.0 3.2-7). Does it happen if you just run strip > > > without the -f flag? It might well be a bug in the new strip > > > command. > > > > Yeah, it seems to be: > > > > zenia:separate-debug$ g++ -g $D/gdb/testsuite/gdb.c++/try_catch.cc -o try_catch > > zenia:separate-debug$ ./try_catch > > zenia:separate-debug$ /home/jimb/elfutils/bin/strip try_catch > > zenia:separate-debug$ ./try_catch > > Segmentation fault > > zenia:separate-debug$ > > > > This is happening with a pretty motley collection of utilities, so I'm > > not sure I can show how to reproduce it. If you could try running the > > GDB test suite on your box with the stuff I've provided, that would be > > nice. > > > > My stripped program seems to be crashing in _dl_map_object_deps... > > > > I don't have gdb built at the moment, so I can't run the test suite. Could > you just send me the try_catch binary and i'll have a look at it. Can you send me the binary? -- =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-= Alexander Larsson Red Hat, Inc alexl@redhat.com alla@lysator.liu.se He's a maverick ninja jungle king who hangs with the wrong crowd. She's a time-travelling cat-loving femme fatale with a knack for trouble. They fight crime!