Return-Path: Delivered-To: apmail-incubator-stdcxx-dev-archive@www.apache.org Received: (qmail 22444 invoked from network); 8 Jun 2007 15:39:46 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 8 Jun 2007 15:39:46 -0000 Received: (qmail 59653 invoked by uid 500); 8 Jun 2007 15:39:50 -0000 Delivered-To: apmail-incubator-stdcxx-dev-archive@incubator.apache.org Received: (qmail 59643 invoked by uid 500); 8 Jun 2007 15:39:50 -0000 Mailing-List: contact stdcxx-dev-help@incubator.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: stdcxx-dev@incubator.apache.org Delivered-To: mailing list stdcxx-dev@incubator.apache.org Received: (qmail 59632 invoked by uid 99); 8 Jun 2007 15:39:50 -0000 Received: from herse.apache.org (HELO herse.apache.org) (140.211.11.133) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 08 Jun 2007 08:39:50 -0700 X-ASF-Spam-Status: No, hits=-100.0 required=10.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [140.211.11.4] (HELO brutus.apache.org) (140.211.11.4) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 08 Jun 2007 08:39:46 -0700 Received: from brutus (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id 0C56871417D for ; Fri, 8 Jun 2007 08:39:26 -0700 (PDT) Message-ID: <31923828.1181317166048.JavaMail.jira@brutus> Date: Fri, 8 Jun 2007 08:39:26 -0700 (PDT) From: "Farid Zaripov (JIRA)" To: stdcxx-dev@incubator.apache.org Subject: [jira] Closed: (STDCXX-427) SIGSEGV in istringstream::str() In-Reply-To: <26166494.1179958456146.JavaMail.jira@brutus> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org [ https://issues.apache.org/jira/browse/STDCXX-427?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Farid Zaripov closed STDCXX-427. -------------------------------- > SIGSEGV in istringstream::str() > ------------------------------- > > Key: STDCXX-427 > URL: https://issues.apache.org/jira/browse/STDCXX-427 > Project: C++ Standard Library > Issue Type: Bug > Components: 27. Input/Output > Affects Versions: 4.2 > Environment: gcc-3.3.3 on Linux > Reporter: Martin Sebor > Assignee: Farid Zaripov > Priority: Critical > Fix For: 4.2 > > > This only happens on trunk, not with 4.1.3: > $ rm t.o && cat t.cpp && make t && gdb -q t > #include > #include > #include > int main () > { > using namespace std; > string str ("test"); > > istringstream isstr; > > isstr.str (str); > assert (isstr.str ().length () == str.length ()); > assert (isstr.str () == str); > } > gcc -c -I/amd/devco/sebor/stdcxx/include/ansi -D_RWSTDDEBUG -pthread -I/amd/devco/sebor/stdcxx/include -I/build/sebor/stdcxx-gcc-3.3.3_43.41-15s/include -I/amd/devco/sebor/stdcxx/examples/include -pedantic -nostdinc++ -g -m32 -W -Wall -Wcast-qual -Winline -Wshadow -Wwrite-strings -Wno-long-long -Wcast-align t.cpp > gcc t.o -o t -pthread -m32 -L/build/sebor/stdcxx-gcc-3.3.3_43.41-15s/lib -lstd15s -lsupc++ -lm > Using host libthread_db library "/lib64/tls/libthread_db.so.1". > (gdb) r > Starting program: /build/sebor/stdcxx-gcc-3.3.3_43.41-15s/examples/t > [Thread debugging using libthread_db enabled] > [New Thread 1433271616 (LWP 12696)] > Program received signal SIGSEGV, Segmentation fault. > [Switching to Thread 1433271616 (LWP 12696)] > 0x0804eb4c in __rw::__rw_memcpy (dst=0x556e1014, src=0x80900a0, > nbytes=134672708) at /amd/devco/sebor/stdcxx/src/string.cpp:42 > 42 *tmp++ = *csrc++; > (gdb) where > #0 0x0804eb4c in __rw::__rw_memcpy (dst=0x556e1014, src=0x80900a0, > nbytes=134672708) at /amd/devco/sebor/stdcxx/src/string.cpp:42 > #1 0x08053781 in std::char_traits::copy (__dst=0x556e1014 "test", > __src=0x80900a0 "test", __n=134807716) at _traits.h:425 > #2 0x080562ec in basic_string (this=0xffffd0d0, __s=0x80900a0 "test", > __n=134807716, __alloc=@0xffffcfc0) at string.cc:185 > #3 0x0805dac5 in std::basic_stringbuf, std::allocator >::str (this=0xffffd048) at sstream:130 > #4 0x08049bc9 in std::basic_istringstream, std::allocator >::str (this=0xffffd040) at sstream:268 > #5 0x0804994d in main () at t.cpp:15 -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.