Bug 127550
| Summary: | pthread_attr_setstacksize has no effect when called from dynamically linked code | ||||||
|---|---|---|---|---|---|---|---|
| Product: | Red Hat Enterprise Linux 3 | Reporter: | Jared Smith-Mickelson <jaredsm> | ||||
| Component: | glibc | Assignee: | Jakub Jelinek <jakub> | ||||
| Status: | CLOSED NOTABUG | QA Contact: | Brian Brock <bbrock> | ||||
| Severity: | medium | Docs Contact: | |||||
| Priority: | medium | ||||||
| Version: | 3.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-07-09 16:56:32 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
Jared Smith-Mickelson
2004-07-09 16:49:57 UTC
Created attachment 101759 [details]
test case
This is a bug in your Makefile, not in glibc. By not linking libtest.so against -lpthread, the function references there become non-versioned and thus at runtime pick the GLIBC_2.0 versions. glibc 2.0 pthread_attr_t did not contain the stacksize stuff at all, (the type was smaller than it is now) and thus pthread_create obviously can't use fields which did not exist in that type. If you link libtest.so against -lpthread (also I'd suggest to put -lXXX options at the end of the command lines rather than at the beginning, otherwise things might link incorrectly), it will work as expected. |