Bug 104064
Summary: | random SEGVs with libstdc++ & detached pthreads | ||||||||
---|---|---|---|---|---|---|---|---|---|
Product: | [Retired] Red Hat Linux | Reporter: | David Copp <rh-bugzilla> | ||||||
Component: | libstdc++ | Assignee: | Jakub Jelinek <jakub> | ||||||
Status: | CLOSED RAWHIDE | QA Contact: | Brian Brock <bbrock> | ||||||
Severity: | medium | Docs Contact: | |||||||
Priority: | medium | ||||||||
Version: | 8.0 | ||||||||
Target Milestone: | --- | ||||||||
Target Release: | --- | ||||||||
Hardware: | i686 | ||||||||
OS: | Linux | ||||||||
Whiteboard: | |||||||||
Fixed In Version: | Doc Type: | Bug Fix | |||||||
Doc Text: | Story Points: | --- | |||||||
Clone Of: | Environment: | ||||||||
Last Closed: | 2004-10-07 14:47:56 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: | |||||||||
Attachments: |
|
Description
David Copp
2003-09-09 16:08:33 UTC
Created attachment 94332 [details]
test program that reproduces the SEGV
Compiled thusly:
g++ -pthread -Wall -g heap-banger.cpp -o heap-banger
I believe -pthread defines _REENTRANT. I get the SEGV whether or not I add
-D_REENTRANT to the above compilation line.
My system has a single CPU (Duron 90MHz).
"Actual" and "Expected" results in the report are backwards! Sorry. Open bugs that may be related to this one are 71354 and 82433. But I couldn't find an exact match... Component changed from glibc => libstdc++. libstdc++-3.2-7 that is. Created attachment 94523 [details]
Updated test case program that consistently produces heap bug
Compiled thusly:
g++ -g -fpic -pthread -lpthread -ldmallocthcxx test-heap.cpp -o test-heap
I used dmalloc-5.2.2-1.
With the updated test-heap.cpp program, a heap corruption is detected almost immediately and fairly consistently -- always after either 16 or 17 passes through the inner loop on my machine. With GCC 3.4.2-2, I certainly can't reproduce any segfaults and neither valgrind reports any problems on it. Assume this has been fixed. |