Open Quuxplusone opened 8 years ago
Bugzilla Link | PR28493 |
Status | NEW |
Importance | P normal |
Reported by | yume-wikijp@live.jp |
Reported on | 2016-07-10 22:28:37 -0700 |
Last modified on | 2016-09-17 04:36:19 -0700 |
Version | 3.8 |
Hardware | PC Windows NT |
CC | eric@efcs.ca, llvm-bugs@lists.llvm.org, mclow.lists@gmail.com, vit9696@avp.su |
Fixed by commit(s) | |
Attachments | |
Blocks | |
Blocked by | |
See also |
sample-704744.cpp
https://gist.github.com/yumetodo/2be9c037e1ef992664493fb457817c1c
This is not a libc++ bug. Your using libstdc++.
To Eric Fiselier
Oh...
Where shold I post report?
I keep rebinning it as clang. That's where it should be.
Hello,
As it looks the reported issue exactly the same as
https://github.com/Alexpux/MINGW-packages/issues/1669
The minimal samples to trigger a crash are:
struct A {
char ok;
void init();
void method() {
if (ok) init();
}
};
static A a;
int main() {
a.method();
}
or
struct _Hashtable {
void *_M_buckets;
void _M_deallocate_buckets();
~_Hashtable() {
if (_M_buckets)
_M_deallocate_buckets();
}
} a;
Compiled with:
clang -c -O2 sample.cpp
Verbose output as well as some others details are provided on github. Could you
give it a look please?
I tried to reproduce it and result is
#0 0x032f103b
#1 0x0303dfc0
#2 0x00e054a1 (D:\msys64\mingw32\bin\clang.exe+0xa054a1)
#3 0x0075788d (D:\msys64\mingw32\bin\clang.exe+0x35788d)
#4 0x0303e53c
#5 0xffffffffffffffff
#6 0xffffffffffffffff
#7 0xffffffffffffffff
#8 0xffffffffffffffff
#9 0xffffffffffffffff
#10 0xffffffffffffffff
#11 0xffffffffffffffff
#12 0xffffffffffffffff
#13 0xffffffffffffffff
#14 0xffffffffffffffff
#15 0xffffffffffffffff
#16 0xffffffffffffffff
#17 0xffffffffffffffff
#18 0xffffffffffffffff
#19 0xffffffffffffffff
#20 0xffffffffffffffff
#21 0x00a4ab6c (D:\msys64\mingw32\bin\clang.exe+0x64ab6c)
#22 0x00a4764d (D:\msys64\mingw32\bin\clang.exe+0x64764d)
#23 0x033084a8
#24 0x02e23cc0 (D:\msys64\mingw32\bin\clang.exe+0x2a23cc0)
clang.exe: error: clang frontend command failed due to signal (use -v to see
invocation)
clang version 3.8.0 (tags/RELEASE_380/final)
Target: i686-w64-windows-gnu
Thread model: posix
InstalledDir: D:\msys64\mingw32\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: D:\msys64\tmp\bug_test-7cded1.cpp
clang.exe: note: diagnostic msg: D:\msys64\tmp\bug_test-7cded1.sh
clang.exe: note: diagnostic msg:
********************
It looks slightly different. It's seem malloc function work fine.
https://llvm.org/bugs/show_bug.cgi?id=26900
https://github.com/Alexpux/MINGW-packages/issues/1195
this issue is EXACTLY the same issue, I think.
Watch
https://github.com/yumetodo/string_split/issues/1#issuecomment-247759036