[LLVMbugs] [Bug 14630] New: close-stderr.ll test hangs on musl libc
bugzilla-daemon at llvm.org
bugzilla-daemon at llvm.org
Mon Dec 17 22:35:31 PST 2012
http://llvm.org/bugs/show_bug.cgi?id=14630
Bug #: 14630
Summary: close-stderr.ll test hangs on musl libc
Product: libraries
Version: trunk
Platform: PC
OS/Version: Linux
Status: NEW
Severity: enhancement
Priority: P
Component: Support Libraries
AssignedTo: unassignedbugs at nondot.org
ReportedBy: ojab at ojab.ru
CC: llvmbugs at cs.uiuc.edu
Classification: Unclassified
Exact part is: `opt --reject-this-option 2>&-`, which exits with code 1 on
glibc, but hangs on musl [1].
In case of invalid argument to `opt`, "if (ErrorParsing) exit(1);" is called.
Then, if stderr is invalid, report_fatal_error("IO failure on output stream.")
is called in raw_fd_ostream destructor, which calls exit() itself, but it is
incorrect due to undefined behavior, according to musl developers.
Please also see the http://www.openwall.com/lists/musl/2012/12/18/3
message/thread in musl mail list.
[1] http://www.musl-libc.org/
--
Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.
More information about the llvm-bugs
mailing list