[llvm-bugs] [Bug 38448] New: Duplicate label causes assembler crash

via llvm-bugs llvm-bugs at lists.llvm.org
Sat Aug 4 22:15:34 PDT 2018


https://bugs.llvm.org/show_bug.cgi?id=38448

            Bug ID: 38448
           Summary: Duplicate label causes assembler crash
           Product: clang
           Version: 6.0
          Hardware: PC
                OS: Windows NT
            Status: NEW
          Severity: normal
          Priority: P
         Component: -New Bugs
          Assignee: unassignedclangbugs at nondot.org
          Reporter: fabio at xn--3px.jp
                CC: llvm-bugs at lists.llvm.org

Created attachment 20642
  --> https://bugs.llvm.org/attachment.cgi?id=20642&action=edit
Package with all bug artifacts

With clang 6.0.1:

C:\Users\fabio\clang-bug>"C:\Program Files\LLVM\bin\clang.exe" crash.s
crash.s:2:1: error: invalid symbol redefinition
.a:
^
Wrote crash dump file "C:\Users\fabio\AppData\Local\Temp\clang.exe-5b38c7.dmp"
0x00007FF68DA0F549 (0x000000003B001E25 0x00007FF68FC1FD58 0x0000000002000002
0x0000000000000001)
0x00007FF68DA0C34B (0x00000213D7C4FD60 0x00007FF68D40AD18 0x00000032F5D8CDD0
0x00007FF9BC72E60B)
0x00007FF68DA0250F (0x00007FF600000000 0x00007FF68D3D5105 0x00000032F5D8CDD0
0x0000003200000000)
0x00007FF68D9F845E (0x0000000000000010 0x00007FF60000000E 0x00000213D7C44C90
0x00007FF600000080)
0x00007FF68DA2C065 (0x0000000000000000 0x00007FF600000000 0x0000000000000002
0x00000032F5D8D3D0)
0x00007FF68C95C33A (0x0000000000000015 0x00007FF9BF3F70A0 0x00000000000006B0
0x00000000000000B8)
0x00007FF68C954766 (0x0000000000000000 0x0000000000000000 0x0000000000000000
0x0000000000000000)
0x00007FF68F589778 (0x0000000000000000 0x0000000000000000 0x0000000000000000
0x0000000000000000)
0x00007FF9BEE43034 (0x0000000000000000 0x0000000000000000 0x0000000000000000
0x0000000000000000), BaseThreadInitThunk() + 0x14 bytes(s)
0x00007FF9BF421431 (0x0000000000000000 0x0000000000000000 0x0000000000000000
0x0000000000000000), RtlUserThreadStart() + 0x21 bytes(s)
clang.exe: error: clang integrated assembler command failed due to signal (use
-v to see invocation)
clang version 6.0.1 (tags/RELEASE_601/final)
Target: x86_64-pc-windows-msvc
Thread model: posix
InstalledDir: C:\Program Files\LLVM\bin
clang.exe: note: diagnostic msg: PLEASE submit a bug report to
http://llvm.org/bugs/ and include the crash backtrace, preprocessed source, and
associated run script.
clang.exe: note: diagnostic msg: Error generating preprocessed source(s) - no
preprocessable inputs.

This bug does *not* happen on clang for Linux 6.0.0; this seems to be a Windows
specific issue.

I minimized the crash.s file as much as possible; removing any of the 127 nops
there gets rid of the bug (and the bug is still visible if you add more nops,
or more unrelated instructions, between the labels and the jmp).

-- 
You are receiving this mail because:
You are on the CC list for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-bugs/attachments/20180805/8c2ed097/attachment.html>


More information about the llvm-bugs mailing list