This is the mail archive of the libstdc++-prs@sourceware.cygnus.com mailing list for the libstdc++ project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

libstdc++/29: seg fault in global basic_string construction



>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:

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]