This is the mail archive of the
libstdc++-prs@sourceware.cygnus.com
mailing list for the libstdc++ project.
libstdc++/29: seg fault in global basic_string construction
- To: libstdc++-gnats at sourceware dot cygnus dot com
- Subject: libstdc++/29: seg fault in global basic_string construction
- From: rbsmithz at prodigy dot net
- Date: 29 Jan 2000 23:06:20 -0000
- Reply-To: rbsmithz at prodigy dot net
- Resent-Cc: libstdc++-prs at sourceware dot cygnus dot com
- Resent-Reply-To: libstdc++-gnats@sourceware.cygnus.com, rbsmithz@prodigy.net
>Number: 29
>Category: libstdc++
>Synopsis: seg fault in global basic_string construction
>Confidential: no
>Severity: serious
>Priority: medium
>Responsible: unassigned
>State: open
>Class: sw-bug
>Submitter-Id: net
>Arrival-Date: Sat Jan 29 15:07:00 PST 2000
>Closed-Date:
>Last-Modified:
>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 <std/bastring.cc>
>Release-Note:
>Audit-Trail:
>Unformatted: