<html>
    <head>
      <base href="http://llvm.org/bugs/" />
    </head>
    <body><table border="1" cellspacing="0" cellpadding="8">
        <tr>
          <th>Bug ID</th>
          <td><a class="bz_bug_link 
          bz_status_NEW "
   title="NEW --- - Assertion failed, "Cannot define a symbol twice!""
   href="http://llvm.org/bugs/show_bug.cgi?id=19185">19185</a>
          </td>
        </tr>

        <tr>
          <th>Summary</th>
          <td>Assertion failed, "Cannot define a symbol twice!"
          </td>
        </tr>

        <tr>
          <th>Product</th>
          <td>tools
          </td>
        </tr>

        <tr>
          <th>Version</th>
          <td>3.4
          </td>
        </tr>

        <tr>
          <th>Hardware</th>
          <td>Macintosh
          </td>
        </tr>

        <tr>
          <th>OS</th>
          <td>MacOS X
          </td>
        </tr>

        <tr>
          <th>Status</th>
          <td>NEW
          </td>
        </tr>

        <tr>
          <th>Severity</th>
          <td>normal
          </td>
        </tr>

        <tr>
          <th>Priority</th>
          <td>P
          </td>
        </tr>

        <tr>
          <th>Component</th>
          <td>llvm-as
          </td>
        </tr>

        <tr>
          <th>Assignee</th>
          <td>unassignedbugs@nondot.org
          </td>
        </tr>

        <tr>
          <th>Reporter</th>
          <td>irony42@me.com
          </td>
        </tr>

        <tr>
          <th>CC</th>
          <td>llvmbugs@cs.uiuc.edu
          </td>
        </tr>

        <tr>
          <th>Classification</th>
          <td>Unclassified
          </td>
        </tr></table>
      <p>
        <div>
        <pre>Created <span class=""><a href="attachment.cgi?id=12253" name="attach_12253" title="Crashing file">attachment 12253</a> <a href="attachment.cgi?id=12253&action=edit" title="Crashing file">[details]</a></span>
Crashing file

I can reproducible crash on a particular source file.
I'm on OSX 10.9.2 using MacPorts clang-3.4, using gcc 4.9's -Wa,-q option to
assemble with clang.

Here's the case:
/opt/local/libexec/llvm-3.4/bin/clang -cc1as -triple  -filetype obj <
ccSJANa6-a10d5b.S #attached

The backtrace I get:
Assertion failed: (Symbol->isUndefined() && "Cannot define a symbol twice!"),
function EmitLabel, file MCMachOStreamer.cpp, line 121.
0  libLLVM-3.4.dylib        0x0000000110863388
llvm::sys::PrintStackTrace(__sFILE*) + 40
1  libLLVM-3.4.dylib        0x0000000110863884 SignalHandler(int) + 548
2  libsystem_platform.dylib 0x00007fff90cbb5aa _sigtramp + 26
3  libsystem_platform.dylib 000000000000000000 _sigtramp + 1865697904
4  libLLVM-3.4.dylib        0x0000000110863646 abort + 22
5  libLLVM-3.4.dylib        0x0000000110863621 __assert_rtn + 81
6  libLLVM-3.4.dylib        0x000000011037d8c6 (anonymous
namespace)::MCMachOStreamer::EmitLabel(llvm::MCSymbol*) + 422
7  libLLVM-3.4.dylib        0x00000001103716d8
llvm::MCDwarfFrameEmitter::Emit(llvm::MCStreamer&, llvm::MCAsmBackend*, bool,
bool) + 1960
8  libLLVM-3.4.dylib        0x0000000110394473
llvm::MCStreamer::EmitFrames(llvm::MCAsmBackend*, bool) + 67
9  libLLVM-3.4.dylib        0x000000011037e45d (anonymous
namespace)::MCMachOStreamer::FinishImpl() + 45
10 libLLVM-3.4.dylib        0x00000001103ad5a1 (anonymous
namespace)::AsmParser::Run(bool, bool) + 1505
11 clang                    0x000000010e66a00d cc1as_main(char const**, char
const**, char const*, void*) + 8781
12 clang                    0x000000010e66af61 main + 1089
13 libdyld.dylib            0x00007fff96ed85fd start + 1
14 libdyld.dylib            0x0000000000000006 start + 1762818570
Stack dump:
0.    Program arguments: /opt/local/libexec/llvm-3.4/bin/clang -cc1as -triple
x86_64-apple-macosx10.9.0 -filetype obj
1.    Program arguments: -triple x86_64-apple-macosx10.9.0 -filetype obj
0  libLLVM-3.4.dylib        0x0000000110863388
llvm::sys::PrintStackTrace(__sFILE*) + 40
1  libLLVM-3.4.dylib        0x0000000110863884 SignalHandler(int) + 548
2  libsystem_platform.dylib 0x00007fff90cbb5aa _sigtramp + 26
3  libsystem_platform.dylib 000000000000000000 _sigtramp + 1865697904
4  libLLVM-3.4.dylib        0x0000000110863646 abort + 22
5  libLLVM-3.4.dylib        0x0000000110863621 __assert_rtn + 81
6  libLLVM-3.4.dylib        0x000000011037d8c6 (anonymous
namespace)::MCMachOStreamer::EmitLabel(llvm::MCSymbol*) + 422
7  libLLVM-3.4.dylib        0x00000001103716d8
llvm::MCDwarfFrameEmitter::Emit(llvm::MCStreamer&, llvm::MCAsmBackend*, bool,
bool) + 1960
8  libLLVM-3.4.dylib        0x0000000110394473
llvm::MCStreamer::EmitFrames(llvm::MCAsmBackend*, bool) + 67
9  libLLVM-3.4.dylib        0x000000011037e45d (anonymous
namespace)::MCMachOStreamer::FinishImpl() + 45
10 libLLVM-3.4.dylib        0x00000001103ad5a1 (anonymous
namespace)::AsmParser::Run(bool, bool) + 1505
11 clang                    0x000000010e66a00d cc1as_main(char const**, char
const**, char const*, void*) + 8781
12 clang                    0x000000010e66af61 main + 1089
13 libdyld.dylib            0x00007fff96ed85fd start + 1
14 libdyld.dylib            0x0000000000000006 start + 1762818570
zsh: illegal hardware instruction  "/opt/local/libexec/llvm-3.4/bin/clang"
-cc1as -triple  -filetype obj < 
***


Probably not too relevant, but here's the command that generated the above
case. I'd've included the C source files if they didn't seem to want 20MB of
headers in order to start compiling and exhibit the issue.

gcc-mp-4.9 -Wa,-q -m64 -c -o signal_x86_64.o signal_x86_64.c -I.
-I../../include -D__WINESRC__ -D_NTSYSTEM_ -D_REENTRANT -fPIC
-fno-strict-aliasing -Wdeclaration-after-statement -Wempty-body
-Wignored-qualifiers -Wstrict-prototypes -Wtype-limits
-Wunused-but-set-parameter -Wwrite-strings -Wpointer-arith -Wlogical-op
-I/Users/ryan/Documents/wineopt/local/include -g -O2</pre>
        </div>
      </p>
      <hr>
      <span>You are receiving this mail because:</span>
      
      <ul>
          <li>You are on the CC list for the bug.</li>
      </ul>
    </body>
</html>