From mboxrd@z Thu Jan 1 00:00:00 1970 From: rbsmithz@prodigy.net To: libstdc++-gnats@sourceware.cygnus.com Subject: libstdc++/1851: seg fault in global basic_string construction Date: Sun, 01 Apr 2001 00:00:00 -0000 Message-id: <20000129230620.30181.qmail@sourceware.cygnus.com> X-SW-Source: 2001-q1/msg00888.html List-Id: >Number: 1851 >Category: libstdc++ >Synopsis: seg fault in global basic_string construction >Confidential: no >Severity: serious >Priority: medium >Responsible: ncm >State: feedback >Class: sw-bug >Submitter-Id: net >Arrival-Date: Sat Feb 03 09:26:03 PST 2001 >Closed-Date: >Last-Modified: Tue Mar 21 00:37:00 PST 2000 >Originator: Randall B. Smith >Release: libstdc++ 2.95.2-3 >Organization: >Environment: RedHat 6.1, gcc-c++ 2.95.2, libstdc++-3-libc6.1-2-2.10.0.so >Description: A segmentation fault occurs during global object construction of basic_string objects. This was traced to the std/bastring.h file which #included the std/bastring.cc file. >How-To-Repeat: This problem is quite intermittant at compile/link time. Changes in unrelated areas of my code would may the problem go away or reappear, e.g., just commenting a statement or changing the length of a char * constant. I can provide code if necessary, but it seems odd that bastring.h includes bastring.cc, so I'll assume this is an oversight. >Fix: Comment-out or remove line at the bottom of /usr/include/g++-3/std/bastring.h: //#include >Release-Note: >Audit-Trail: Formerly PR libstdc++/29 Responsible-Changed-From-To: unassigned->ncm Responsible-Changed-By: bkoz Responsible-Changed-When: Tue Mar 21 00:27:20 2000 Responsible-Changed-Why: strings State-Changed-From-To: open->feedback State-Changed-By: bkoz State-Changed-When: Tue Mar 21 00:27:20 2000 State-Changed-Why: This bug tracking database is for the libstdc++-v3 project: you are using libstdc++-v2. If you'd like to use libstdc++-v3, please see sourceware.cygnus.com/libstdc++ thanks, benjamin From: bkoz@cygnus.com To: libstdc++-gnats@sourceware.cygnus.com, ncm@zembu.com, nobody@sourceware.cygnus.com, rbsmithz@prodigy.net Cc: Subject: Re: libstdc++/29 Date: 21 Mar 2000 08:27:20 -0000 Synopsis: seg fault in global basic_string construction Responsible-Changed-From-To: unassigned->ncm Responsible-Changed-By: bkoz Responsible-Changed-When: Tue Mar 21 00:27:20 2000 Responsible-Changed-Why: strings State-Changed-From-To: open->feedback State-Changed-By: bkoz State-Changed-When: Tue Mar 21 00:27:20 2000 State-Changed-Why: This bug tracking database is for the libstdc++-v3 project: you are using libstdc++-v2. If you'd like to use libstdc++-v3, please see sourceware.cygnus.com/libstdc++ thanks, benjamin http://sourceware.cygnus.com/cgi-bin/gnatsweb.pl?cmd=view&pr=29&database=libstdc++ >Unformatted: