[llvm-bugs] [Bug 36418] New: clang 5.0.1 crashes when -Weverything

via llvm-bugs llvm-bugs at lists.llvm.org
Sat Feb 17 07:11:02 PST 2018


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

            Bug ID: 36418
           Summary: clang 5.0.1 crashes when -Weverything
           Product: clang
           Version: 5.0
          Hardware: PC
                OS: Windows NT
            Status: NEW
          Severity: enhancement
          Priority: P
         Component: C++
          Assignee: unassignedclangbugs at nondot.org
          Reporter: arlawpgud2 at gmail.com
                CC: dgregor at apple.com, llvm-bugs at lists.llvm.org

Created attachment 19884
  --> https://bugs.llvm.org/attachment.cgi?id=19884&action=edit
files for detail

# Enviroment

I'm using clang 5.0.1 x86_64-pc-windows-msvc from
http://releases.llvm.org/download.html#5.0.1

My computer is Windows 10, and I installed MSVC 2017 Community, and TDM-GCC64
5.1.0 from http://tdm-gcc.tdragon.net/download

# Crash

When I complie `withdrawal.cpp` on powershell:

```
> clang++ .\withdrawal.cpp
> clang++ -Wall .\withdrawal.cpp
[Some warnings including warning LNK4217 with _CxxThrowException
__std_termintate]
> clang++ -Weverything .\withdrawal.cpp
[Many warnings of my code]
[Weird strings]
Wrote crash dump file
"C:\Users\arlaw\AppData\Local\Temp\clang++.exe-afe3c5.dmp"
0x00007FFB95BA47C3 (0x000000FCD998F449 0x0000000000000000 0x000000FCD9989200
0x0000000000000000),
_fileno() + 0xF3 bytes(s)
0x00007FFB95BA454A (0x00000000FFFFFFFF 0x0000000000000080 0x0000000000000002
0x000000FCD998F449),
_write() + 0x1FA bytes(s)
0x00007FFB95BA43DD (0x0000000000000002 0x000000FCD998F449 0xFFFFFFFFFFFFA12F
0x00007FFB9660E698),
_write() + 0x8D bytes(s)
0x00007FF7811AFAB2 (0x00007FF78374A5B0 0x00007FF7811AFCB5 0x00002E91CE38E75D
0x00000277CA97DEC0)
0x00007FF7811AEAEA (0x000000FCD99896BF 0x0000000000000001 0x0000000000000040
0x0000000000000000)
0x00007FF7816BCECE (0x00000277CA955238 0x0000000000000000 0x00002E91CE38E75D
0x0000000000000000)
0x00007FF7816BE06D (0x0000000000000000 0x00000277CAA06A70 0x00000277CC771210
0x00000000003BBE75)
0x00007FF7816BEC81 (0x00000000000000A1 0x0000000000000001 0x00000277CA97DEC0
0x000000FCD998A7E0)
0x00007FF78169AFA1 (0x00000277CA97DEC0 0x000000FCD998A970 0x0000000000000010
0x00000000000000A1)
0x00007FF781307E73 (0x0000000000000001 0x00000000000000A1 0x00002E91CE38E75D
0x00000277CA9BFF90)
0x00007FF78130A496 (0x0000009F00000001 0x00002E91CE38E75D 0x00000000000012AA
0x0000000000000001)
0x00007FF781E51D2A (0x00000277CD6B9140 0x00002E91CE38E75D 0x00000277CA9CAD11
0x0000000000000000)
0x00007FF781EF2D50 (0x00000277CA9BFF90 0x000000FCD998AD70 0x0000000000000001
0x000000FCD998AD70)
0x00007FF781ED469E (0x0000000000000001 0x00000277CAA0B490 0x000000FCD998CC68
0x0000000000000005)
0x00007FF781CBC6F0 (0x00000277CA97EDA0 0x00007FF700000000 0xCD6B8DF800000000
0x0000000100000000)
0x00007FF781CBA0E9 (0x0000000000000000 0x00007FF78283BA93 0x00000277CD4AD250
0x00000277CD8DD35F)
0x00007FF781C7856D (0x00000277CAA0B4A0 0x00000277CAA0BF80 0x0000000000000005
0x00007FF78280003B)
0x00007FF781C77EA4 (0x000000FCD998D9F0 0x0000000000000003 0x00000277CA9CC7F0
0x0000000000000000)
0x00007FF781C76E66 (0x00000277CA9CBB70 0x00007FF7829610C7 0x0000000000000000
0x000000FCD998D9F0)
0x00007FF781C75AD4 (0x00007FF783467C61 0x000000000000000B 0x0000000000000008
0x00007FF7834664D3)
0x00007FF781C72986 (0x0000000000000000 0x0000000000000000 0x000000000000000D
0x00000277CA9363A0)
0x00007FF7816DFDDA (0x0000000000000012 0x00007FF783467CC3 0x0000000000000009
0x00007FF700000013)
0x00007FF7816AB460 (0x000000FCD998DCD8 0x00007FF7816A601B 0x00000277CA954F50
0x000000000000002D)
0x00007FF78172027C (0x0000000000000062 0x0000000000000310 0x000000C0FFFFFFEE
0xFFFFFFFC000001D1)
0x00007FF780005E6B (0x0000000000000040 0x0000000000000000 0x0000000000000000
0x000000000000012A)
0x00007FF780004293 (0x0000000000000000 0x0000000000000000 0x0000000000000000
0x0000000000000000)
0x00007FF782982D81 (0x0000000000000000 0x0000000000000000 0x0000000000000000
0x0000000000000000)
0x00007FFB99541FE4 (0x0000000000000000 0x0000000000000000 0x0000000000000000
0x0000000000000000),
BaseThreadInitThunk() + 0x14 bytes(s)
0x00007FFB997FEFC1 (0x0000000000000000 0x0000000000000000 0x0000000000000000
0x0000000000000000),
RtlUserThreadStart() + 0x21 bytes(s)
clang++.exe: error: clang frontend command failed due to signal (use -v to see
invocation)
clang version 5.0.1 (tags/RELEASE_501/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:
********************

PLEASE ATTACH THE FOLLOWING FILES TO THE BUG REPORT:
Preprocessed source(s) and associated run script(s) are located at:
clang++.exe: note: diagnostic msg:
C:\Users\arlaw\AppData\Local\Temp\withdrawal-40d6d1.cpp
clang++.exe: note: diagnostic msg:
C:\Users\arlaw\AppData\Local\Temp\withdrawal-40d6d1.sh
clang++.exe: note: diagnostic msg:

********************
```

I tried last command many times, and sometimes it crashes. Sometimes it
compiles well.

# Attachment

I attached zip file of original `withdrawal.cpp`, dump file,
`withdrawal-40d6d1.cpp` and `withdrawal-40d6d1.sh`.

-- 
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/20180217/cd3084d3/attachment.html>


More information about the llvm-bugs mailing list