Summary: | sys-libs/glibc: deadlock within stdio when using GCC 4.1.0 builtin functions | ||
---|---|---|---|
Product: | Gentoo Linux | Reporter: | Diego Elio Pettenò (RETIRED) <flameeyes> |
Component: | [OLD] Library | Assignee: | Gentoo Toolchain Maintainers <toolchain> |
Status: | RESOLVED NEEDINFO | ||
Severity: | normal | CC: | bbj, exg, tester |
Priority: | High | ||
Version: | unspecified | ||
Hardware: | AMD64 | ||
OS: | Linux | ||
URL: | http://cs.pub.ro/~apc/2003/resources/pthreads/uguide/users-46.htm#285708 | ||
Whiteboard: | |||
Package list: | Runtime testing required: | --- | |
Attachments: | test-cancel.c |
Description
Diego Elio Pettenò (RETIRED)
2006-03-26 18:09:55 UTC
Created attachment 83204 [details]
test-cancel.c
for those who care.. its a gcc 4.x bug.. it replaces the last printf() by a puts(), -fno-builtin-printf fixes this testcase on my fc4 machine. that said, puts() still should not freeze.. and if I replace the printf() calls with direct calls to puts(), it also doesnt break.. so it seems the gcc builtin function does something incompatible with glibc.. The problem still appears on my code also using -fno-builtin, I'll try tomorrow to build gcc 3.4.6 on my system and try if wit h that my code works. Note that GCC 4.0 on osx behaves correctly (after kito defined a symbol to let osx follow SUSv3). i dont think this needs to be pursued any further ... |