Bug 20536
Summary: | basic_string class fails on MP under RH 7.0 (with updates) | ||
---|---|---|---|
Product: | [Retired] Red Hat Linux | Reporter: | Need Real Name <maciekk> |
Component: | glibc | Assignee: | Jakub Jelinek <jakub> |
Status: | CLOSED CURRENTRELEASE | QA Contact: | Aaron Brown <abrown> |
Severity: | high | Docs Contact: | |
Priority: | medium | ||
Version: | 7.0 | CC: | fweimer |
Target Milestone: | --- | ||
Target Release: | --- | ||
Hardware: | i386 | ||
OS: | Linux | ||
Whiteboard: | |||
Fixed In Version: | Doc Type: | Bug Fix | |
Doc Text: | Story Points: | --- | |
Clone Of: | Environment: | ||
Last Closed: | 2003-04-22 01:32:50 UTC | Type: | --- |
Regression: | --- | Mount Type: | --- |
Documentation: | --- | CRM: | |
Verified Versions: | Category: | --- | |
oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |
Cloudforms Team: | --- | Target Upstream Version: | |
Embargoed: |
Description
Need Real Name
2000-11-08 20:12:21 UTC
I see you're using endl a lot which has threading bug in libstdc++. Please try libstdc++*-2.96-6?.*.rpm from rawhide. Regarding the use of "endl": I replaced all "endl" with "\n", but still see the same behavior. By the way, I know how to fix this bug on my system, but it's not a good long-term solution. The fix reaffirms the basic_string class. FIX: Change bastring.cc to initialize "nilRep" with a "true" instead of a "false". This causes its reference count to no be touched, which fixes the bug. It does, however cause empty strings to clone themselves all over the place. This shouldn't be a problem in the current code in RHL9 anymore. I tried your test code. RHL9 has a completely different C++ library which is also thread safe. If you still have problems please open a new bug. |