Your message dated Thu, 17 Apr 2003 21:39:44 +0200 with message-id <[EMAIL PROTECTED]> and subject line Bug#185243: libstdc++3-dev: rope segfaults under heavy load 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; 18 Mar 2003 04:44:51 +0000 >From [EMAIL PROTECTED] Mon Mar 17 22:44:50 2003 Return-path: <[EMAIL PROTECTED]> Received: from cats-mx2.ucsc.edu (ucsc.edu) [128.114.129.35] by master.debian.org with esmtp (Exim 3.12 1 (Debian)) id 18v8y2-0007EV-00; Mon, 17 Mar 2003 22:44:50 -0600 Received: from chimaera.house (C9-dhcp-21-235.resnet.ucsc.edu [169.233.21.235]) by ucsc.edu (8.10.1/8.10.1) with ESMTP id h2I4iMG09212 for <[EMAIL PROTECTED]>; Mon, 17 Mar 2003 20:44:22 -0800 (PST) Received: from crafter.house ([192.168.1.1]) by chimaera.house with esmtp (Exim 3.35 #1 (Debian)) id 18v8xc-0007d0-00 for <[EMAIL PROTECTED]>; Mon, 17 Mar 2003 20:44:24 -0800 Received: from vectro by crafter.house with local (Exim 3.36 #1 (Debian)) id 18v8xR-0001IV-00; Mon, 17 Mar 2003 20:44:13 -0800 From: Ian Turner <[EMAIL PROTECTED]> To: Debian Bug Tracking System <[EMAIL PROTECTED]> Subject: libstdc++3-dev: rope segfaults under heavy load X-Mailer: reportbug 1.50 Date: Mon, 17 Mar 2003 20:44:13 -0800 Message-Id: <[EMAIL PROTECTED]> X-UCSC-CATS-MailScanner: Found to be clean Delivered-To: [EMAIL PROTECTED] X-Spam-Status: No, hits=-0.2 required=4.0 tests=HAS_PACKAGE,SPAM_PHRASE_00_01 version=2.44 X-Spam-Level: Package: libstdc++3-dev Version: 1:3.0.4-7 Severity: important Consider the following program: --- BEGIN ropetest.c --- #include <ext/rope> using namespace std; using namespace __gnu_cxx; unsigned int rand(unsigned int max) { unsigned int rval = (unsigned int)(((double)max)*rand()/(RAND_MAX)); if (rval == max) return max-1; } int main() { crope r; char buf[10240]; while (1) { if (rand(2) && r.size() < 1024*1024) { r.append(buf, rand(10240)); } else if (r.size() > 10240) { r.erase(0, rand(10240)); } } return 0; } --- END ropetest.c --- It crashes when compiled with g++-3.0 or g++-3.2 (but not on g++ 2.95): $ g++ ropetest.c -o ropetest-295 -Wall [ press CTRL-C ] $ ./ropetest-295 $ g++-3.0 ropetest.c -o ropetest-300 -Wall -g $ ./ropetest-300 Segmentation fault $ g++-3.2 ropetest.c -o ropetest-320 -Wall $ ./ropetest-320 Aborted $ gdb g++-3.0 GNU gdb 5.3-debian [ snip ] (gdb) run Starting program: ropetest-300 Program received signal SIGSEGV, Segmentation fault. std::_Refcount_Base::_M_incr() (this=0xef8) at /usr/include/g++-v3/bits/stl_threads.h:143 143 ++_M_ref_count; (gdb) bt #0 std::_Refcount_Base::_M_incr() (this=0xef8) at /usr/include/g++-v3/bits/stl_threads.h:143 #1 0x0804a6b5 in std::_Rope_RopeRep<char, std::allocator<char> >::_M_ref_nonnil() (this=0xef4) at /usr/include/g++-v3/ext/stl_rope.h:514 #2 0x0804bf1e in std::_Rope_RopeSubstring<char, std::allocator<char> >::_Rope_RopeSubstring(std::_Rope_RopeRep<char, std::allocator<char> >*, unsigned, unsigned, std::allocator<char>) (this=0x8054828, __b=0xef4, __s=1405, __l=2943, __a=0xbfffcbc0) at /usr/include/g++-v3/ext/stl_rope.h:717 #3 0x0804b778 in std::rope<char, std::allocator<char> >::_S_new_RopeSubstring(std::_Rope_RopeRep<char, std::allocator<char> >*, unsigned, unsigned, std::allocator<char>) (__b=0xef4, __s=1405, __l=2943, __a=0xbfffcc30) at /usr/include/g++-v3/ext/stl_rope.h:1392 #4 0x0804aa50 in std::rope<char, std::allocator<char> >::_S_substring(std::_Rope_RopeRep<char, std::allocator<char> >*, unsigned, unsigned) (__base=0x80547ec, __start=1405, __endp1=4348) at /usr/include/g++-v3/ext/ropeimpl.h:721 #5 0x0804a8b8 in std::rope<char, std::allocator<char> >::_S_substring(std::_Rope_RopeRep<char, std::allocator<char> >*, unsigned, unsigned) (__base=0x8050b68, __start=1405, __endp1=6370) at /usr/include/g++-v3/ext/ropeimpl.h:683 #6 0x0804a8b8 in std::rope<char, std::allocator<char> >::_S_substring(std::_Rope_RopeRep<char, std::allocator<char> >*, unsigned, unsigned) (__base=0x8050ad8, __start=1405, __endp1=11258) at /usr/include/g++-v3/ext/ropeimpl.h:683 #7 0x0804a8b8 in std::rope<char, std::allocator<char> >::_S_substring(std::_Rope_RopeRep<char, std::allocator<char> >*, unsigned, unsigned) (__base=0x8050b98, __start=1405, __endp1=14993) at /usr/include/g++-v3/ext/ropeimpl.h:683 #8 0x0804a8b8 in std::rope<char, std::allocator<char> >::_S_substring(std::_Rope_RopeRep<char, std::allocator<char> >*, unsigned, unsigned) (__base=0x8050bf8, __start=1405, __endp1=24743) at /usr/include/g++-v3/ext/ropeimpl.h:683 #9 0x0804a8b8 in std::rope<char, std::allocator<char> >::_S_substring(std::_Rope_RopeRep<char, std::allocator<char> >*, unsigned, unsigned) (__base=0x8050c58, __start=1405, __endp1=31252) at /usr/include/g++-v3/ext/ropeimpl.h:683 #10 0x0804a8b8 in std::rope<char, std::allocator<char> >::_S_substring(std::_Rope_RopeRep<char, std::allocator<char> >*, unsigned, unsigned) (__base=0x8050cb8, __start=1405, __endp1=32702) at /usr/include/g++-v3/ext/ropeimpl.h:683 #11 0x0804a8b8 in std::rope<char, std::allocator<char> >::_S_substring(std::_Rope_RopeRep<char, std::allocator<char> >*, unsigned, unsigned) (__base=0x8050d18, __start=1405, __endp1=32868) at /usr/include/g++-v3/ext/ropeimpl.h:683 #12 0x0804a055 in std::rope<char, std::allocator<char> >::replace(std::_Rope_RopeRep<char, std::allocator<char> >*, unsigned, unsigned, std::_Rope_RopeRep<char, std::allocator<char> >*) (__old=0x8050d18, __pos1=0, __pos2=1405, __r=0x0) at /usr/include/g++-v3/ext/stl_rope.h:1846 #13 0x08049d7d in std::rope<char, std::allocator<char> >::erase(unsigned, unsigned) (this=0xbffff9a0, __p=0, __n=1405) at /usr/include/g++-v3/ext/stl_rope.h:1993 #14 0x08049b81 in main () at ropetest.cc:21 -- System Information Debian Release: testing/unstable Architecture: i386 Kernel: Linux crafter 2.4.19 #1 Fri Sep 27 18:25:53 PDT 2002 i686 Locale: LANG=C, LC_CTYPE=C Versions of packages libstdc++3-dev depends on: ii g++-3.0 1:3.0.4-7 The GNU C++ compiler. ii gcc-3.0-base 1:3.0.4-7 The GNU Compiler Collection (base ii libc6-dev 2.3.1-14 GNU C Library: Development Librari ii libstdc++3 1:3.0.4-7 The GNU stdc++ library version 3 --------------------------------------- Received: (at 185243-done) by bugs.debian.org; 17 Apr 2003 19:44:42 +0000 >From [EMAIL PROTECTED] Thu Apr 17 14:44:42 2003 Return-path: <[EMAIL PROTECTED]> Received: from mail.cs.tu-berlin.de [130.149.17.13] (root) by master.debian.org with esmtp (Exim 3.12 1 (Debian)) id 196FJK-0000eu-00; Thu, 17 Apr 2003 14:44:42 -0500 Received: from bolero.cs.tu-berlin.de ([EMAIL PROTECTED] [130.149.19.1]) by mail.cs.tu-berlin.de (8.9.3/8.9.3) with ESMTP id VAA20849; Thu, 17 Apr 2003 21:39:44 +0200 (MET DST) Received: (from [EMAIL PROTECTED]) by bolero.cs.tu-berlin.de (8.11.6+Sun/8.9.3) id h3HJdiO14124; Thu, 17 Apr 2003 21:39:44 +0200 (MEST) From: Matthias Klose <[EMAIL PROTECTED]> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Message-ID: <[EMAIL PROTECTED]> Date: Thu, 17 Apr 2003 21:39:44 +0200 To: Ian Turner <[EMAIL PROTECTED]>, [EMAIL PROTECTED] Subject: Re: Bug#185243: libstdc++3-dev: rope segfaults under heavy load In-Reply-To: <[EMAIL PROTECTED]> References: <[EMAIL PROTECTED]> X-Mailer: VM 7.03 under 21.4 (patch 6) "Common Lisp" XEmacs Lucid Delivered-To: [EMAIL PROTECTED] X-Spam-Status: No, hits=-0.5 required=4.0 tests=IN_REP_TO,REFERENCES,SPAM_PHRASE_00_01 version=2.44 X-Spam-Level: Ian Turner writes: > Package: libstdc++3-dev > Version: 1:3.0.4-7 > Severity: important closing this report. in unstable, there is no g++-3.0 anymore. The package will move to testing/sarge soon. And it won't be fixed upstream.