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

Bug#191684: marked as done (libstdc++5 3.3 breaks optimized binaries compiled with g++ 3.2)

Your message dated Tue, 06 May 2003 16:19:53 -0400
with message-id <E19D8un-0001CG-00@auric.debian.org>
and subject line Bug#191684: fixed in gcc-3.3 1:3.3ds8-0pre8
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; 2 May 2003 20:56:47 +0000
>From mbabcock@la.creatureshop.henson.com Fri May 02 15:56:44 2003
Return-path: <mbabcock@la.creatureshop.henson.com>
Received: from mail.la.creatureshop.henson.com (la.creatureshop.henson.com) [] 
	by master.debian.org with esmtp (Exim 3.12 1 (Debian))
	id 19BhaG-0000Kx-00; Fri, 02 May 2003 15:56:44 -0500
Received: from LA.CREATURESHOP.HENSON.COM by mail.internal.jhcs
     with SMTP (QuickMail Pro Server for Mac 3.0.2); 02-May-2003 13:56:29 -0700
Message-ID: <[🔎] 3EB2DB7A.8010204@la.creatureshop.henson.com>
Date: Fri, 02 May 2003 13:56:26 -0700
From: Michael Babcock <mbabcock@la.creatureshop.henson.com>
User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.3) Gecko/20030327 Debian/1.3-4
X-Accept-Language: en
MIME-Version: 1.0
To: submit@bugs.debian.org
Subject: libstdc++5 3.3 breaks optimized binaries compiled with g++ 3.2
Content-Type: text/plain; charset=us-ascii; format=flowed
Content-Transfer-Encoding: 7bit
Delivered-To: submit@bugs.debian.org
X-Spam-Status: No, hits=-12.3 required=4.0
	autolearn=ham version=2.53-bugs.debian.org_2003_04_23
X-Spam-Checker-Version: SpamAssassin 2.53-bugs.debian.org_2003_04_23 (

Package: libstdc++5
Version: 1:3.3-0pre7
Severity: important

After upgrading libstdc++5 from the 3.2 version to the 3.3 version, my
c++ binaries started to segfault. I traced the problem to this test

#include <string>
#include <sstream>

using namespace std;

// Returns the argument as a string.
template <class T>
string to_string (T arg) {
     ostringstream buffer;
     buffer << arg;
     return buffer.str();

int main () {
     int num = 42;
     printf("%s\n", to_string(num).c_str());
     return 0;

Compile this with g++-3.2 -O3 -finline-limit=1000 and running it will
segfault. The same binary will work using the 3.2
libstdc++5. Compiling without optimization also works, as does
compiling with g++-3.3. However I believe it is important to maintain
binary compatibility in libstdc++5 with all the c++ code compiled with
g++ 3.2.

Here is a backtrace of the crash:

#0  0x4008b4a1 in bool std::has_facet<std::messages<wchar_t> 
 >(std::locale const&) () from /usr/lib/libstdc++.so.5
#1  0x4007e424 in std::ostreambuf_iterator<char, std::char_traits<char> 
 > std::num_put<char, std::ostreambuf_iterator<char, 
std::char_traits<char> > 
std::char_traits<char> >, std::ios_base&, char, long) const () from 
#2  0x4007e178 in std::num_put<char, std::ostreambuf_iterator<char, 
std::char_traits<char> > >::do_put(std::ostreambuf_iterator<char, 
std::char_traits<char> >, std::ios_base&, char, long) const () from 
#3  0x4009052f in std::ostream::operator<<(long) () from 
#4  0x08048d4b in main ()
#5  0x40110a51 in __libc_start_main () from /lib/libc.so.6


-- System Information:
Debian Release: testing/unstable
Architecture: i386
Kernel: Linux guinness 2.4.20-hpcs #1 SMP Mon Jan 27 10:13:02 PST 2003 i686
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8

Versions of packages libstdc++5 depends on:
ii  gcc-3.3-base                 1:3.3-0pre7 The GNU Compiler Collection 
ii  libc6                        2.3.1-17    GNU C Library: Shared 
libraries an
ii  libgcc1                      1:3.3-0pre7 GCC support library

-- no debconf information

Michael Babcock
Jim Henson's Creature Shop

Received: (at 191684-close) by bugs.debian.org; 6 May 2003 20:23:02 +0000
>From katie@auric.debian.org Tue May 06 15:23:02 2003
Return-path: <katie@auric.debian.org>
Received: from auric.debian.org [] (mail)
	by master.debian.org with esmtp (Exim 3.12 1 (Debian))
	id 19D8xp-0000V3-00; Tue, 06 May 2003 15:23:02 -0500
Received: from katie by auric.debian.org with local (Exim 3.35 1 (Debian))
	id 19D8un-0001CG-00; Tue, 06 May 2003 16:19:53 -0400
From: Matthias Klose <doko@debian.org>
To: 191684-close@bugs.debian.org
X-Katie: $Revision: 1.34 $
Subject: Bug#191684: fixed in gcc-3.3 1:3.3ds8-0pre8
Message-Id: <E19D8un-0001CG-00@auric.debian.org>
Sender: Archive Administrator <katie@auric.debian.org>
Date: Tue, 06 May 2003 16:19:53 -0400
Delivered-To: 191684-close@bugs.debian.org

We believe that the bug you reported is fixed in the latest version of
gcc-3.3, which is due to be installed in the Debian FTP archive:

  to pool/main/g/gcc-3.3/cpp-3.3-doc_3.3-0pre8_all.deb
  to pool/main/g/gcc-3.3/cpp-3.3_3.3-0pre8_i386.deb
  to pool/main/g/gcc-3.3/fastjar_3.3-0pre8_i386.deb
  to pool/main/g/gcc-3.3/fixincludes_3.3-0pre8_i386.deb
  to pool/main/g/gcc-3.3/g++-3.3_3.3-0pre8_i386.deb
  to pool/main/g/gcc-3.3/g77-3.3-doc_3.3-0pre8_all.deb
  to pool/main/g/gcc-3.3/g77-3.3_3.3-0pre8_i386.deb
  to pool/main/g/gcc-3.3/gcc-3.3-base_3.3-0pre8_i386.deb
  to pool/main/g/gcc-3.3/gcc-3.3-doc_3.3-0pre8_all.deb
  to pool/main/g/gcc-3.3/gcc-3.3_3.3-0pre8_i386.deb
  to pool/main/g/gcc-3.3/gcc-3.3_3.3ds8-0pre8.diff.gz
  to pool/main/g/gcc-3.3/gcc-3.3_3.3ds8-0pre8.dsc
  to pool/main/g/gcc-3.3/gcc-3.3_3.3ds8.orig.tar.gz
  to pool/main/g/gcc-3.3/gcj-3.3_3.3-0pre8_i386.deb
  to pool/main/g/gcc-3.3/gij-3.3_3.3-0pre8_i386.deb
  to pool/main/g/gcc-3.3/gnat-3.3-doc_3.3-0pre8_all.deb
  to pool/main/g/gcc-3.3/gnat-3.3_3.3-0pre8_i386.deb
  to pool/main/g/gcc-3.3/gobjc-3.3_3.3-0pre8_i386.deb
  to pool/main/g/gcc-3.3/libffi2-dev_3.3-0pre8_i386.deb
  to pool/main/g/gcc-3.3/libffi2_3.3-0pre8_i386.deb
  to pool/main/g/gcc-3.3/libg2c0_3.3-0pre8_i386.deb
  to pool/main/g/gcc-3.3/libgcc1_3.3-0pre8_i386.deb
  to pool/main/g/gcc-3.3/libgcj-common_3.3-0pre8_i386.deb
  to pool/main/g/gcc-3.3/libgcj4-dev_3.3-0pre8_i386.deb
  to pool/main/g/gcc-3.3/libgcj4_3.3-0pre8_i386.deb
  to pool/main/g/gcc-3.3/libobjc1_3.3-0pre8_i386.deb
  to pool/main/g/gcc-3.3/libstdc++5-3.3-dbg_3.3-0pre8_i386.deb
  to pool/main/g/gcc-3.3/libstdc++5-3.3-dev_3.3-0pre8_i386.deb
  to pool/main/g/gcc-3.3/libstdc++5-3.3-doc_3.3-0pre8_all.deb
  to pool/main/g/gcc-3.3/libstdc++5-3.3-pic_3.3-0pre8_i386.deb
  to pool/main/g/gcc-3.3/libstdc++5_3.3-0pre8_i386.deb
  to pool/main/g/gcc-3.3/protoize_3.3-0pre8_i386.deb
  to pool/main/g/gcc-3.3/treelang-3.3_3.3-0pre8_i386.deb

A summary of the changes between this version and the previous one is

Thank you for reporting the bug, which will now be closed.  If you
have further comments please address them to 191684@bugs.debian.org,
and the maintainer will reopen the bug report if appropriate.

Debian distribution maintenance software
Matthias Klose <doko@debian.org> (supplier of updated gcc-3.3 package)

(This message was generated automatically at their request; if you
believe that there is a problem with it please contact the archive
administrators by mailing ftpmaster@debian.org)


Format: 1.7
Date: Tue,  6 May 2003 06:53:49 +0200
Source: gcc-3.3
Binary: libstdc++5-3.3-dev libffi2-dev libgnat3.15 gcc-3.3-nof gcc-3.3 libobjc1 gcj-3.3 libgcc1 libgcj-common gobjc-3.3 gcc-3.3-soft-float libstdc++5-3.3-doc libgcj4 treelang-3.3 gpc-2.1-3.3-doc libstdc++5 cpp-3.3-doc protoize fastjar cpp-3.3 fixincludes libg2c0 gij-3.3 libstdc++5-3.3-pic g++-3.3 gcc-3.3-base libstdc++5-3.3-dbg g77-3.3-doc gpc-2.1-3.3 gnat-3.3 g77-3.3 libgcj4-dev gcc-3.3-doc libffi2 gnat-3.3-doc
Architecture: source i386 all
Version: 1:3.3ds8-0pre8
Distribution: unstable
Urgency: low
Maintainer: Debian GCC maintainers <debian-gcc@lists.debian.org>
Changed-By: Matthias Klose <doko@debian.org>
 cpp-3.3    - The GNU C preprocessor
 cpp-3.3-doc - Documentation for the GNU C preprocessor (cpp)
 fastjar    - Jar creation utility
 fixincludes - Fix non-ANSI header files
 g++-3.3    - The GNU C++ compiler
 g77-3.3    - The GNU Fortran 77 compiler
 g77-3.3-doc - Documentation for the GNU Fortran compiler (g77)
 gcc-3.3    - The GNU C compiler
 gcc-3.3-base - The GNU Compiler Collection (base package)
 gcc-3.3-doc - Documentation for the GNU compilers (gcc, gobjc, g++)
 gcj-3.3    - The GNU compiler for Java(TM)
 gij-3.3    - The GNU Java bytecode interpreter
 gnat-3.3   - The GNU Ada compiler
 gnat-3.3-doc - Documentation for the GNU Ada compiler (gnat)
 gobjc-3.3  - The GNU Objective-C compiler
 libffi2    - Foreign Function Interface library runtime
 libffi2-dev - Foreign Function Interface library development
 libg2c0    - Runtime library for GNU Fortran 77 applications
 libgcc1    - GCC support library
 libgcj-common - Java runtime library (common files)
 libgcj4    - Java runtime library for use with gcj
 libgcj4-dev - Java development headers and static library for use with gcj
 libobjc1   - Runtime library for GNU Objective-C applications
 libstdc++5 - The GNU Standard C++ Library v3
 libstdc++5-3.3-dbg - The GNU Standard C++ Library v3 (debugging files)
 libstdc++5-3.3-dev - The GNU Standard C++ Library v3 (development files)
 libstdc++5-3.3-doc - The GNU Standard C++ Library v3 (documentation files)
 libstdc++5-3.3-pic - The GNU Standard C++ Library v3 (shared library subset kit)
 protoize   - Create/remove ANSI prototypes from C code
 treelang-3.3 - The GNU Treelang compiler
Closes: 189545 190812 191551 191684
 gcc-3.3 (1:3.3ds8-0pre8) unstable; urgency=low
   * gcc-3.3 prerelease.
     - Fixes gcj ICE (closes: #189545).
   * For libstdc++ use the i486 atomicity implementation, introduced with
     0pre6, left out in 0pre7 (closes: #191684).
   * Add README.Debian for treelang (closes: #190812).
   * Apply NetBSD changes (Joel Baker). Closes: #191551.
   * New symbols in libgcc1, tighten the shlibs dependency.
   * Disable testsuite run on mips/mipsel because of an outdated libc-dev
   * Do not build libffi with debug information, although configuring
     with --enable-debug.
 e71f1625571e53c685accb0d512170a1 2541 devel standard gcc-3.3_3.3ds8-0pre8.dsc
 49a5bb0cd0006bbbaac13f51bbfe881b 23500414 devel standard gcc-3.3_3.3ds8.orig.tar.gz
 0c57d42f71caa0edcb0eb650889bb2fd 2191507 devel standard gcc-3.3_3.3ds8-0pre8.diff.gz
 45fe1a3b6e195835230f50a295df1095 82878 doc optional cpp-3.3-doc_3.3-0pre8_all.deb
 b59e24530deac9c636a4142a5e749616 3093430 doc optional libstdc++5-3.3-doc_3.3-0pre8_all.deb
 f8b73a600c4177219dc8d177ae14f7ed 274180 doc optional g77-3.3-doc_3.3-0pre8_all.deb
 ff88d7216dfa303739b4b5bfad08c8cd 348968 doc optional gnat-3.3-doc_3.3-0pre8_all.deb
 813b945b0a7574867376504bc3409b49 602756 doc optional gcc-3.3-doc_3.3-0pre8_all.deb
 3072840c1c67598f19dd74c759c1e785 135036 devel important gcc-3.3-base_3.3-0pre8_i386.deb
 b2672692788b9d5e1b5071cd8460984d 64064 libs important libgcc1_3.3-0pre8_i386.deb
 1f081c760ea34db003d0d43a592cb856 1303066 interpreters standard cpp-3.3_3.3-0pre8_i386.deb
 2ba85e92f646dbd17ecff4f8e9c62e9e 22622 devel optional protoize_3.3-0pre8_i386.deb
 ce40ffd7ae9588f317f81c29ca831540 47140 devel optional fixincludes_3.3-0pre8_i386.deb
 73481baa2c6765b5c798e1a357f8d518 1376916 devel optional gobjc-3.3_3.3-0pre8_i386.deb
 c46ebe753eda7f3b5c14955a3d85f51a 120088 libs optional libobjc1_3.3-0pre8_i386.deb
 8c243db38e3692ad411e67319eff4a8f 12948 devel optional gij-3.3_3.3-0pre8_i386.deb
 668eeef0e239d8c4c6d44143e73dd406 4030908 libs optional libgcj4_3.3-0pre8_i386.deb
 e16b7586c9240145fcb0967d2a03854c 49998 libs optional libgcj-common_3.3-0pre8_i386.deb
 d8ad7f26ddade27332bf699e4e3ed882 1597904 devel optional gcj-3.3_3.3-0pre8_i386.deb
 c58e947a7633a8f57c6cbe3e19a805d9 4851936 libdevel optional libgcj4-dev_3.3-0pre8_i386.deb
 45bb07dda4999dc98eb5ad9dbe36877c 107388 devel extra fastjar_3.3-0pre8_i386.deb
 388b43d61f43d4dbafa69ae9374a0f8c 60018 libs optional libffi2_3.3-0pre8_i386.deb
 eb1e7dc6dac16d2cbc224a15e957bfe8 10722 libdevel optional libffi2-dev_3.3-0pre8_i386.deb
 f3a7aa09e99c27720dbc199cd064ff80 1665586 devel standard g++-3.3_3.3-0pre8_i386.deb
 f0597aa6a0f2d42961cb17bebf4e73bf 264528 base important libstdc++5_3.3-0pre8_i386.deb
 368b45f3d1b7501165c21f3b79f2893c 736052 libdevel optional libstdc++5-3.3-dev_3.3-0pre8_i386.deb
 a32c3731e0e8667c06e583687ab62119 310234 libdevel extra libstdc++5-3.3-pic_3.3-0pre8_i386.deb
 ca37676f0f3c96db976183353219b1c8 5010452 libdevel extra libstdc++5-3.3-dbg_3.3-0pre8_i386.deb
 7951ba1ac41054c864b0b14e8030b83b 47272 libs optional libg2c0_3.3-0pre8_i386.deb
 fad009319d459d0d0445273a2fae2c10 1507898 devel optional g77-3.3_3.3-0pre8_i386.deb
 b4bcf43d9c53cfa8cd0bb7647d6130cf 6104310 devel optional gnat-3.3_3.3-0pre8_i386.deb
 98814cb5d448e59916e2c99e94593fe7 1234596 devel optional treelang-3.3_3.3-0pre8_i386.deb
 f2fae482392ce8014c344f6d94fac86f 1227758 devel standard gcc-3.3_3.3-0pre8_i386.deb

Version: 2.6.3ia
Charset: noconv
Comment: Requires PGP version 2.6 or later.


Reply to: