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

Bug#262202: marked as done (locale-related segfault with libstdc++.so.5)



Your message dated Sun, 21 Nov 2004 13:33:41 +0100
with message-id <16800.35621.40371.631419@gargle.gargle.HOWL>
and subject line Bug#262202: locale-related segfault with libstdc++.so.5
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; 30 Jul 2004 04:36:15 +0000
>From kims@contrail.com.au Thu Jul 29 21:36:15 2004
Return-path: <kims@contrail.com.au>
Received: from intsvr3.ce.com.au [202.12.185.217] 
	by spohr.debian.org with esmtp (Exim 3.35 1 (Debian))
	id 1BqP7u-0002R3-00; Thu, 29 Jul 2004 21:36:14 -0700
Received: from [172.16.1.156] (helo=intsvr2.in.ce.com.au)
	by intsvr3.ce.com.au with esmtp (Exim 3.36 #1)
	id 1BqP7s-0004iL-00
	for submit@bugs.debian.org; Fri, 30 Jul 2004 14:36:12 +1000
Received: from [172.16.1.30] (helo=wnn3865.in.ce.com.au)
	by intsvr2.in.ce.com.au with esmtp (Exim 3.36 #1)
	id 1BqP7s-0006vY-00
	for submit@bugs.debian.org; Fri, 30 Jul 2004 14:36:12 +1000
Subject: locale-related segfault with libstdc++.so.5
From: Kim Saunders <kims@contrail.com.au>
To: submit@bugs.debian.org
Content-Type: text/plain; charset=ISO-8859-1
Message-Id: <1091162172.2506.7.camel@wnn3865.in.ce.com.au>
Mime-Version: 1.0
X-Mailer: Ximian Evolution 1.4.6 
Date: Fri, 30 Jul 2004 14:36:12 +1000
Content-Transfer-Encoding: quoted-printable
Delivered-To: submit@bugs.debian.org
X-Spam-Checker-Version: SpamAssassin 2.60-bugs.debian.org_2004_03_25 
	(1.212-2003-09-23-exp) on spohr.debian.org
X-Spam-Status: No, hits=-8.0 required=4.0 tests=BAYES_00,HAS_PACKAGE 
	autolearn=no version=2.60-bugs.debian.org_2004_03_25
X-Spam-Level: 

Package: libstdc++5
Version: 1:3.3.4-6

After having dist-upgraded to the version of libstdc++5 mentioned above
this morning, all of my programs that dynamically link against
/usr/lib/libstdc++.so.5 suffer from (seemingly locale-related) segfault.

Using groff as an example, I have included a gdb backtrace, strace, ldd,
and my locale details.

This line seems concerning:

open("/usr/lib/locale/=BF?/LC_IDENTIFICATION", O_RDONLY)

The directory preceeding LC_IDENTIFICATION contains different junk
characters for different programs (e.g. nmap, galeon,
gnome-settings-daemon, gedit, etc), suggesting to me that construction
of that path string could be at fault.

kimsa@snaund:~$ gdb /usr/bin/groff
GNU gdb 6.1-debian
Copyright 2004 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"...(no debugging symbols
found)...Using host libthread_db library "/lib/tls/libthread_db.so.1".

(gdb) run
Starting program: /usr/bin/groff
(no debugging symbols found)...(no debugging symbols found)...(no
debugging symbols found)...(no debugging symbols found)...(no debugging
symbols found)...(no debugging symbols found)...
Program received signal SIGSEGV, Segmentation fault.
0x40073fb9 in std::locale::global () from /usr/lib/libstdc++.so.5
(gdb) bt
#0  0x40073fb9 in std::locale::global () from /usr/lib/libstdc++.so.5
#1  0x4006ad8b in std::basic_ios<char, std::char_traits<char> >::init ()
   from /usr/lib/libstdc++.so.5
#2  0x4006c1e6 in std::ios_base::Init::_S_ios_create ()
   from /usr/lib/libstdc++.so.5
#3  0x4006c795 in std::ios_base::Init::Init () from
/usr/lib/libstdc++.so.5
#4  0x4006beb8 in std::basic_iostream<wchar_t, std::char_traits<wchar_t>
>::~basic_iostream () from /usr/lib/libstdc++.so.5
#5  0x4006bf2b in std::basic_iostream<wchar_t, std::char_traits<wchar_t>
>::~basic_iostream () from /usr/lib/libstdc++.so.5
#6  0x400bab45 in __cxa_dyn_string_eq () from /usr/lib/libstdc++.so.5
#7  0x4005bb51 in ?? () from /usr/lib/libstdc++.so.5
#8  0x400ff278 in ?? ()
#9  0x40016e78 in _r_debug ()
#10 0xbffffb04 in ?? ()
#11 0x4000c0de in _dl_catch_error () from /lib/ld-linux.so.2
Previous frame identical to this frame (corrupt stack?)
(gdb) The program is running.  Exit anyway? (y or n) y
kimsa@snaund:~$ strace groff
execve("/usr/bin/groff", ["groff"], [/* 17 vars */]) =3D 0
uname({sys=3D"Linux", node=3D"snaund", ...}) =3D 0
brk(0)                                  =3D 0x805c000
old_mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS,
-1, 0) =3D 0x40017000
access("/etc/ld.so.nohwcap", F_OK)      =3D -1 ENOENT (No such file or
directory)
open("/etc/ld.so.preload", O_RDONLY)    =3D -1 ENOENT (No such file or
directory)
open("/etc/ld.so.cache", O_RDONLY)      =3D 3
fstat64(3, {st_mode=3DS_IFREG|0644, st_size=3D40601, ...}) =3D 0
old_mmap(NULL, 40601, PROT_READ, MAP_PRIVATE, 3, 0) =3D 0x40018000
close(3)                                =3D 0
access("/etc/ld.so.nohwcap", F_OK)      =3D -1 ENOENT (No such file or
directory)
open("/usr/lib/libstdc++.so.5", O_RDONLY) =3D 3
read(3, "\177ELF\1\1\1\0\0\0\0\0\0\0\0\0\3\0\3\0\1\0\0\0\200\301"...,
512) =3D 512fstat64(3, {st_mode=3DS_IFREG|0644, st_size=3D737848, ...}) =3D=
 0
old_mmap(NULL, 761568, PROT_READ|PROT_EXEC, MAP_PRIVATE, 3, 0) =3D
0x40022000
old_mmap(0x400c1000, 90112, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED,
3, 0x9e000) =3D 0x400c1000
old_mmap(0x400d7000, 20192, PROT_READ|PROT_WRITE,
MAP_PRIVATE|MAP_FIXED|MAP_ANONYMOUS, -1, 0) =3D 0x400d7000
close(3)                                =3D 0
access("/etc/ld.so.nohwcap", F_OK)      =3D -1 ENOENT (No such file or
directory)
open("/lib/tls/libm.so.6", O_RDONLY)    =3D 3
read(3, "\177ELF\1\1\1\0\0\0\0\0\0\0\0\0\3\0\3\0\1\0\0\0\0006\0"...,
512) =3D 512
fstat64(3, {st_mode=3DS_IFREG|0644, st_size=3D141312, ...}) =3D 0
old_mmap(NULL, 139712, PROT_READ|PROT_EXEC, MAP_PRIVATE, 3, 0) =3D
0x400dc000
old_mmap(0x400fe000, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED,
3, 0x22000) =3D 0x400fe000
close(3)                                =3D 0
access("/etc/ld.so.nohwcap", F_OK)      =3D -1 ENOENT (No such file or
directory)
open("/lib/libgcc_s.so.1", O_RDONLY)    =3D 3
read(3, "\177ELF\1\1\1\0\0\0\0\0\0\0\0\0\3\0\3\0\1\0\0\0\20\30\0"...,
512) =3D 512fstat64(3, {st_mode=3DS_IFREG|0644, st_size=3D33104, ...}) =3D =
0
old_mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS,
-1, 0) =3D 0x400ff000
old_mmap(NULL, 36116, PROT_READ|PROT_EXEC, MAP_PRIVATE, 3, 0) =3D
0x40100000
old_mmap(0x40108000, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED,
3, 0x7000) =3D 0x40108000
close(3)                                =3D 0
access("/etc/ld.so.nohwcap", F_OK)      =3D -1 ENOENT (No such file or
directory)
open("/lib/tls/libc.so.6", O_RDONLY)    =3D 3
read(3, "\177ELF\1\1\1\0\0\0\0\0\0\0\0\0\3\0\3\0\1\0\0\0\340X\1"...,
512) =3D 512
fstat64(3, {st_mode=3DS_IFREG|0644, st_size=3D1279044, ...}) =3D 0
old_mmap(NULL, 1289356, PROT_READ|PROT_EXEC, MAP_PRIVATE, 3, 0) =3D
0x40109000
old_mmap(0x40239000, 36864, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED,
3, 0x12f000) =3D 0x40239000
old_mmap(0x40242000, 7308, PROT_READ|PROT_WRITE,
MAP_PRIVATE|MAP_FIXED|MAP_ANONYMOUS, -1, 0) =3D 0x40242000
close(3)                                =3D 0
old_mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS,
-1, 0) =3D 0x40244000
set_thread_area({entry_number:-1 -> 6, base_addr:0x40244080,
limit:1048575, seg_32bit:1, contents:0, read_exec_only:0,
limit_in_pages:1, seg_not_present:0, useable:1}) =3D 0
munmap(0x40018000, 40601)               =3D 0
open("/usr/lib/locale/locale-archive", O_RDONLY|O_LARGEFILE) =3D 3
fstat64(3, {st_mode=3DS_IFREG|0644, st_size=3D1605152, ...}) =3D 0
mmap2(NULL, 1605152, PROT_READ, MAP_PRIVATE, 3, 0) =3D 0x40245000
close(3)                                =3D 0
brk(0)                                  =3D 0x805c000
brk(0x807d000)                          =3D 0x807d000
open("/usr/share/locale/locale.alias", O_RDONLY) =3D 3
fstat64(3, {st_mode=3DS_IFREG|0644, st_size=3D2539, ...}) =3D 0
mmap2(NULL, 131072, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1,
0) =3D 0x403cd000
read(3, "# Locale name alias data base.\n#"..., 131072) =3D 2539
read(3, "", 131072)                     =3D 0
close(3)                                =3D 0
munmap(0x403cd000, 131072)              =3D 0
open("/usr/lib/locale/=BF?/LC_IDENTIFICATION", O_RDONLY) =3D -1 ENOENT (No
such file or directory)
--- SIGSEGV (Segmentation fault) @ 0 (0) ---
+++ killed by SIGSEGV +++
kimsa@snaund:~$ ldd /usr/bin/groff
                libstdc++.so.5 =3D> /usr/lib/libstdc++.so.5 (0x40022000)
        libm.so.6 =3D> /lib/tls/libm.so.6 (0x400dc000)
        libgcc_s.so.1 =3D> /lib/libgcc_s.so.1 (0x40100000)
        libc.so.6 =3D> /lib/tls/libc.so.6 (0x40109000)
        /lib/ld-linux.so.2 =3D> /lib/ld-linux.so.2 (0x40000000)
kimsa@snaund:~$ locale
LANG=3DPOSIX
LC_CTYPE=3D"POSIX"
LC_NUMERIC=3D"POSIX"
LC_TIME=3D"POSIX"
LC_COLLATE=3D"POSIX"
LC_MONETARY=3D"POSIX"
LC_MESSAGES=3D"POSIX"
LC_PAPER=3D"POSIX"
LC_NAME=3D"POSIX"
LC_ADDRESS=3D"POSIX"
LC_TELEPHONE=3D"POSIX"
LC_MEASUREMENT=3D"POSIX"
LC_IDENTIFICATION=3D"POSIX"
LC_ALL=3D

--=20
Kim Saunders <kims@contrail.com.au>


---------------------------------------
Received: (at 262202-done) by bugs.debian.org; 21 Nov 2004 12:33:45 +0000
>From doko@cs.tu-berlin.de Sun Nov 21 04:33:45 2004
Return-path: <doko@cs.tu-berlin.de>
Received: from mail.cs.tu-berlin.de [130.149.17.13] (root)
	by spohr.debian.org with esmtp (Exim 3.35 1 (Debian))
	id 1CVquX-0000hz-00; Sun, 21 Nov 2004 04:33:45 -0800
Received: from mailhost.cs.tu-berlin.de (postfix@mail.cs.tu-berlin.de [130.149.17.13])
	by mail.cs.tu-berlin.de (8.9.3p2/8.9.3) with ESMTP id NAA14164;
	Sun, 21 Nov 2004 13:33:43 +0100 (MET)
Received: from localhost (localhost [127.0.0.1])
	by mailhost.cs.tu-berlin.de (Postfix) with ESMTP id 7F80FF21A;
	Sun, 21 Nov 2004 13:33:42 +0100 (MET)
Received: from mailhost.cs.tu-berlin.de ([127.0.0.1])
 by localhost (bueno [127.0.0.1]) (amavisd-new, port 10224) with ESMTP
 id 23055-18; Sun, 21 Nov 2004 13:33:41 +0100 (MET)
Received: from bolero.cs.tu-berlin.de (bolero.cs.tu-berlin.de [130.149.19.1])
	by mailhost.cs.tu-berlin.de (Postfix) with ESMTP;
	Sun, 21 Nov 2004 13:33:41 +0100 (MET)
Received: (from doko@localhost)
	by bolero.cs.tu-berlin.de (8.12.10+Sun/8.12.8/Submit) id iALCXfrL012722;
	Sun, 21 Nov 2004 13:33:41 +0100 (MET)
From: Matthias Klose <doko@cs.tu-berlin.de>
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
Message-ID: <16800.35621.40371.631419@gargle.gargle.HOWL>
Date: Sun, 21 Nov 2004 13:33:41 +0100
To: kims@contrail.com.au
Cc: 262202-done@bugs.debian.org
Subject: Re: Bug#262202: locale-related segfault with libstdc++.so.5
In-Reply-To: <b89b417604112104319934d4e@mail.gmail.com>
References: <1091162172.2506.7.camel@wnn3865.in.ce.com.au>
	<[🔎] 16800.33675.412905.740137@gargle.gargle.HOWL>
	<b89b417604112104319934d4e@mail.gmail.com>
X-Mailer: VM 7.03 under 21.4 (patch 6) "Common Lisp" XEmacs Lucid
X-Virus-Scanned: by amavisd-new at cs.tu-berlin.de
Delivered-To: 262202-done@bugs.debian.org
X-Spam-Checker-Version: SpamAssassin 2.60-bugs.debian.org_2004_03_25 
	(1.212-2003-09-23-exp) on spohr.debian.org
X-Spam-Status: No, hits=-6.0 required=4.0 tests=BAYES_00,HAS_BUG_NUMBER 
	autolearn=no version=2.60-bugs.debian.org_2004_03_25
X-Spam-Level: 

Kim Saunders writes:
> No, it can be closed.
> 
> Thanks



Reply to: