[LLVMbugs] [Bug 9291] New: MC assertion failure on .private_extern when producing ELF object code

bugzilla-daemon at llvm.org bugzilla-daemon at llvm.org
Tue Feb 22 13:37:26 PST 2011


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

           Summary: MC assertion failure on .private_extern when producing
                    ELF object code
           Product: new-bugs
           Version: trunk
          Platform: PC
        OS/Version: Linux
            Status: NEW
          Keywords: crash-on-invalid
          Severity: normal
          Priority: P
         Component: new bugs
        AssignedTo: unassignedbugs at nondot.org
        ReportedBy: thebeing+llvm at halbordnung.de
                CC: llvmbugs at cs.uiuc.edu


Hello,

I accidentally discovered that llvm-mc (r126241) does not fail nicely when it
tries to generate ELF object code and encounters the .private_extern assembler
directive (which, afaikt only works with Mach-O). The expected behaviour would
be to issue an error message that the directive is unsupported for ELF object
code, the actual behaviour is the following

llvm-mc: MCELFStreamer.cpp:276: virtual
void<unnamed>::MCELFStreamer::EmitSymbolAttribute(llvm::MCSymbol*,
llvm::MCSymbolAttr): Assertion `0 && "Invalid symbol attribute for ELF!"'
failed.
0  llvm-mc         0x0000000000b535df
1  llvm-mc         0x0000000000b55842
2  libpthread.so.0 0x00007fc8e5d82f60
3  libc.so.6       0x00007fc8e4e8d165 gsignal + 53
4  libc.so.6       0x00007fc8e4e8ff70 abort + 384
5  libc.so.6       0x00007fc8e4e862b1 __assert_fail + 241
6  llvm-mc         0x0000000000afcf22
7  llvm-mc         0x000000000079a3f6
8  llvm-mc         0x00000000007a0b22
9  llvm-mc         0x00000000007a0df1
10 llvm-mc         0x000000000040a489
11 llvm-mc         0x000000000040b108
12 libc.so.6       0x00007fc8e4e79c4d __libc_start_main + 253
13 llvm-mc         0x0000000000406b29
Stack dump:
0.      Program arguments: llvm-mc --filetype=obj private_extern.s

Attached is a test-case that demonstrates the problem.

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