[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#176797: marked as done (libstdc++5: GDB looks in the wrong place for libstdc++ headers)



Your message dated Sat, 18 Jan 2003 20:07:18 -0500
with message-id <20030119010717.GA27702@nevyn.them.org>
and subject line Bug#176797: libstdc++5: GDB looks in the wrong place for libstdc++ headers
has caused the attached Bug report to be marked as done.

This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.

(NB: If you are a system administrator and have no idea what I am
talking about this indicates a serious mail system misconfiguration
somewhere.  Please contact me immediately.)

Debian bug tracking system administrator
(administrator, Debian Bugs database)

--------------------------------------
Received: (at submit) by bugs.debian.org; 15 Jan 2003 08:15:12 +0000
>From danielb@frodo.libertyetech.com Wed Jan 15 02:15:11 2003
Return-path: <danielb@frodo.libertyetech.com>
Received: from mke-24-167-199-83.wi.rr.com (gandalf.libertyetech.com) [24.167.199.83] (mail)
	by master.debian.org with esmtp (Exim 3.12 1 (Debian))
	id 18Yihb-0000de-00; Wed, 15 Jan 2003 02:15:11 -0600
Received: from frodo.libertyetech.com ([192.168.1.2] ident=mail)
	by gandalf.libertyetech.com with esmtp (Exim 3.36 #1 (Debian))
	id 18YihZ-000069-00; Wed, 15 Jan 2003 02:15:09 -0600
Received: from danielb by frodo.libertyetech.com with local (Exim 3.36 #1 (Debian))
	id 18YihU-0005Jm-00; Wed, 15 Jan 2003 02:15:04 -0600
Content-Type: text/plain; charset="us-ascii"
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
From: Daniel E Baumann <danielb@libertyetech.com>
To: Debian Bug Tracking System <submit@bugs.debian.org>
Subject: libstdc++5: GDB looks in the wrong place for libstdc++ headers
X-Mailer: reportbug 2.10
Date: Wed, 15 Jan 2003 02:15:04 -0600
Message-Id: <[🔎] E18YihU-0005Jm-00@frodo.libertyetech.com>
Sender: Daniel E Baumann <danielb@frodo.libertyetech.com>
Delivered-To: submit@bugs.debian.org
X-Spam-Status: No, hits=0.6 required=5.0
	tests=SPAM_PHRASE_00_01
	version=2.41
X-Spam-Level: 

Package: libstdc++5
Version: 1:3.2.2-0pre5
Severity: important

When running my c++ program from inside gdb I get the following:

danielb@frodo:~/software/src/cvs/gsim/src/examples/mm1$ gdb .libs/mm1
GNU gdb 5.3-debian
Copyright 2002 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 "i386-linux"...
(gdb) run
Starting program:
/home/danielb/software/src/cvs/gsim/src/examples/mm1/.libs/mm1
[New Thread 16384 (LWP 20311)]
 
 Program received signal SIGSEGV, Segmentation fault.
 [Switching to Thread 16384 (LWP 20311)]
 0x400313b6 in bool std::has_facet<std::ctype<char> >(std::locale
 const&) (__loc=@0x804dc48)
     at /usr/include/g++-v3/bits/locale_facets.tcc:87
     87      /usr/include/g++-v3/bits/locale_facets.tcc: No such file or
     directory.
             in /usr/include/g++-v3/bits/locale_facets.tcc


Even making a symlink here does not fix things.

(gdb) run
Starting program:
/home/danielb/software/src/cvs/gsim/src/examples/mm1/.libs/mm1
[New Thread 16384 (LWP 20366)]

Program received signal SIGSEGV, Segmentation fault.
[Switching to Thread 16384 (LWP 20366)]
0x400313b6 in bool std::has_facet<std::ctype<char> >(std::locale const&)
(__loc=@0x804dc48)
    at /usr/include/g++-v3/bits/locale_facets.tcc:87
warning: Source file is more recent than executable.

87          }

So then I just said the heck with it and did an apt-get install
libstdc++3 and libstdc++3-dev (because the headers for that version are
located in the above include path that it complains about) and tried to
run it. Note: this is the wrong version of libstdc++ my program is linked
with.

danielb@frodo:~/software/src/cvs/gsim/src/examples/mm1$ gdb .libs/mm1
GNU gdb 5.3-debian
Copyright 2002 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 "i386-linux"...
(gdb) run
Starting program:
/home/danielb/software/src/cvs/gsim/src/examples/mm1/.libs/mm1
[New Thread 16384 (LWP 20439)]

Program received signal SIGSEGV, Segmentation fault.
[Switching to Thread 16384 (LWP 20439)]
0x400313b6 in bool std::has_facet<std::ctype<char> >(std::locale const&)
(__loc=@0x804dc48)
    at /usr/include/g++-v3/bits/locale_facets.tcc:87
    87            __vec_facet* __facet = __loc._M_impl->_M_facets;
(gdb)


I think something funky may be going on with libstdc++. At any rate it makes 
debugging some c++ programs impossible. It wold be nice to be able to
use the latest libstdc++ when developing c++ apps and be able to run
them inside gdb. 

Also, this may be hard to reproduce as it seems perhaps you need to make
a call into the locale templates, but I am not 100% sure of this.

Dan
<danielb@libertyetech.com>
-- System Information:
Debian Release: testing/unstable
Architecture: i386
Kernel: Linux frodo 2.4.20-xfs #4 Thu Jan 9 11:54:54 CST 2003 i686
Locale: LANG=C, LC_CTYPE=C

Versions of packages libstdc++5 depends on:
ii  gcc-3.2-base               1:3.2.2-0pre5 The GNU Compiler Collection (base 
ii  libc6                      2.3.1-9       GNU C Library: Shared libraries an
ii  libgcc1                    1:3.2.2-0pre5 GCC support library

-- no debconf information


---------------------------------------
Received: (at 176797-done) by bugs.debian.org; 19 Jan 2003 01:07:25 +0000
>From drow@false.org Sat Jan 18 19:07:25 2003
Return-path: <drow@false.org>
Received: from crack.them.org [65.125.64.184] (mail)
	by master.debian.org with esmtp (Exim 3.12 1 (Debian))
	id 18a3vo-0002dh-00; Sat, 18 Jan 2003 19:07:24 -0600
Received: from nevyn.them.org ([66.93.61.169] ident=mail)
	by crack.them.org with asmtp (Exim 3.12 #1 (Debian))
	id 18a5oT-0002hF-00; Sat, 18 Jan 2003 21:07:57 -0600
Received: from drow by nevyn.them.org with local (Exim 3.36 #1 (Debian))
	id 18a3vi-0007D8-00; Sat, 18 Jan 2003 20:07:18 -0500
Date: Sat, 18 Jan 2003 20:07:18 -0500
From: Daniel Jacobowitz <dan@debian.org>
To: Daniel E Baumann <baumannd@msoe.edu>
Cc: 176797-done@bugs.debian.org
Subject: Re: Bug#176797: libstdc++5: GDB looks in the wrong place for libstdc++ headers
Message-ID: <20030119010717.GA27702@nevyn.them.org>
References: <[🔎] E18YihU-0005Jm-00@frodo.libertyetech.com> <[🔎] 20030115200555.GA4073@nevyn.them.org> <[🔎] 20030115231313.GA31119@frodo.libertyetech.com> <[🔎] 20030117143238.GA20742@nevyn.them.org> <[🔎] 20030117191620.GB19461@frodo.libertyetech.com> <[🔎] 20030117191943.GA16885@nevyn.them.org> <[🔎] 20030119002353.GB24892@frodo.libertyetech.com>
Mime-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
In-Reply-To: <[🔎] 20030119002353.GB24892@frodo.libertyetech.com>
User-Agent: Mutt/1.5.1i
Delivered-To: 176797-done@bugs.debian.org
X-Spam-Status: No, hits=-16.0 required=5.0
	tests=IN_REP_TO,QUOTED_EMAIL_TEXT,REFERENCES,
	      SIGNATURE_SHORT_DENSE,SPAM_PHRASE_00_01,USER_AGENT,
	      USER_AGENT_MUTT
	version=2.41
X-Spam-Level: 

On Sat, Jan 18, 2003 at 06:23:54PM -0600, Daniel E Baumann wrote:
> Well I am sorry to waste your time but it appears I have 2 versions of
> gnu common c++ that I had compiled and installed. One of them was
> linked to the old libstdc++3 so I am just going to have to remove them
> and recompile a few things. At least I know wtf is going on now and
> maybe I can use gdb now ;). Once again, sorry for wasting your time.

Thanks for following up; closing the bug.

-- 
Daniel Jacobowitz
MontaVista Software                         Debian GNU/Linux Developer



Reply to: