[LLVMbugs] [Bug 7054] New: Assertion `Symbol->isUndefined() && "Cannot define a symbol twice!"' failed.

bugzilla-daemon at llvm.org bugzilla-daemon at llvm.org
Wed May 5 09:07:17 PDT 2010


           Summary: Assertion `Symbol->isUndefined() && "Cannot define a
                    symbol twice!"' failed.
           Product: clang
           Version: trunk
          Platform: PC
        OS/Version: Linux
            Status: NEW
          Severity: normal
          Priority: P
         Component: -New Bugs
        AssignedTo: unassignedclangbugs at nondot.org
        ReportedBy: hv at crypt.org
                CC: llvmbugs at cs.uiuc.edu, hv at crypt.org

Created an attachment (id=4830)
 --> (http://llvm.org/bugs/attachment.cgi?id=4830)
Example C code

Attached code was cut down from an attempt to compile (latest) perl, at the
point it first tried to #include <sys/stat.h>.

zen% /opt/clang-latest/bin/clang --version
clang version 2.0 (trunk 102861)
Target: i386-pc-linux-gnu
Thread model: posix
zen% /opt/clang-latest/bin/clang -c clangtest.c
clang: MCAsmStreamer.cpp:220: virtual
void<unnamed>::MCAsmStreamer::EmitLabel(llvm::MCSymbol*): Assertion
`Symbol->isUndefined() && "Cannot define a symbol twice!"' failed.
0  clang     0x08fbafe3
1  clang     0x08fbaea7
2            0xb7f34420 __kernel_sigreturn + 0
3  libc.so.6 0x0044b4b1 abort + 257
4  libc.so.6 0x004431db __assert_fail + 251
5  clang     0x08e67ce3
6  clang     0x08b0ef6c
7  clang     0x08b0ec34
8  clang     0x08950dd5
9  clang     0x08b8be3f
10 clang     0x08f2c3a0
11 clang     0x08f2c0c9
12 clang     0x08f2bd2f
13 clang     0x0808011c
14 clang     0x0807eee4
15 clang     0x082de2ba
16 clang     0x08099c39
17 clang     0x08099834
18 clang     0x08085491
19 clang     0x0806d915
20 clang     0x08072693 main + 202
21 libc.so.6 0x00436dec __libc_start_main + 220
22 clang     0x0806c231
Stack dump:
0.      Program arguments: /opt/clang-latest/bin/clang -cc1 -triple
i386-pc-linux-gnu -S -disable-free -main-file-name clangtest.c
-mrelocation-model static -mdisable-fp-elim -mconstructor-aliases -target-cpu
pentium4 -resource-dir /opt/clang-latest/lib/clang/2.0 -ferror-limit 19
-ftemplate-backtrace-limit 10 -fmessage-length 80 -fgnu-runtime
-fdiagnostics-show-option -fcolor-diagnostics -o /tmp/cc-meTmGU.s -x c
1.      <eof> parser at end of file
2.      Code generation
3.      Running pass 'X86 AT&T-Style Assembly Printer' on function '@stat64'
clang: error: compiler command failed due to signal 6 (use -v to see

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