[LLVMbugs] [Bug 6689] New: llvm-ld crashes when outputting to stdout

bugzilla-daemon at llvm.org bugzilla-daemon at llvm.org
Wed Mar 24 02:51:34 PDT 2010


http://llvm.org/bugs/show_bug.cgi?id=6689

           Summary: llvm-ld crashes when outputting to stdout
           Product: libraries
           Version: trunk
          Platform: PC
        OS/Version: Linux
            Status: NEW
          Severity: normal
          Priority: P
         Component: Linker
        AssignedTo: unassignedbugs at nondot.org
        ReportedBy: ggreif at gmail.com
                CC: llvmbugs at cs.uiuc.edu


Reproduce this way:

$ Release/bin/llvm-as < /dev/null -o empty.bc
$ Release/bin/llvm-ld empty.bc -o -
#!/bin/sh
lli=${LLVMINTERP-lli}
exec $lli \
    -.bc ${1+"$@"}
llvm-ld: /home/ggreif/llvm/lib/Support/raw_ostream.cpp:428: void
llvm::raw_fd_ostream::close(): Assertion `ShouldClose' failed.
0  llvm-ld         0x0000000000801ad5
1  llvm-ld         0x00000000008020a9
2  libpthread.so.0 0x00000034abf0c790
3  libc.so.6       0x00000034ab22e26d gsignal + 61
4  libc.so.6       0x00000034ab22fa6e abort + 254
5  libc.so.6       0x00000034ab227af1 __assert_fail + 241
6  llvm-ld         0x00000000007f6a85
7  llvm-ld         0x00000000004bb78a tan + 18834
8  llvm-ld         0x00000000004bdaf3 main + 2883
9  libc.so.6       0x00000034ab21c40b __libc_start_main + 219
10 llvm-ld         0x00000000004b751a fmod + 114
Stack dump:
0.      Program arguments: Release/bin/llvm-ld empty.bc -o - 
Abort

-- 
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