Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

llc crashes linking regex test suite under emscripten #37952

Closed
brson opened this Issue Nov 23, 2016 · 2 comments

Comments

Projects
None yet
4 participants
@brson
Copy link
Contributor

brson commented Nov 23, 2016

130 brian@ip-10-145-43-250:/mnt2/dev/regex⟫ cargo +rust1 test --target=asmjs-unknown-emscripten --no-run
   Compiling regex v0.1.80 (file:///mnt2/dev/regex)
*** Error in `/mnt2/dev/emsdk_portable/clang/fastcomp/build_incoming_64/bin/llc': munmap_chunk(): invalid pointer: 0x0000000006a37428 ***
======= Backtrace: =========
/lib/x86_64-linux-gnu/libc.so.6(+0x77725)[0x7fb45c00e725]
/lib/x86_64-linux-gnu/libc.so.6(cfree+0x1a8)[0x7fb45c01ac18]
/mnt2/dev/emsdk_portable/clang/fastcomp/build_incoming_64/bin/llc(_ZN4llvm15LLVMContextImplD2Ev+0x2b6f)[0xb9746f]
/mnt2/dev/emsdk_portable/clang/fastcomp/build_incoming_64/bin/llc(_ZN4llvm11LLVMContextD1Ev+0x14)[0xb8e264]
/mnt2/dev/emsdk_portable/clang/fastcomp/build_incoming_64/bin/llc(main+0x157)[0x564d67]
/lib/x86_64-linux-gnu/libc.so.6(__libc_start_main+0xf0)[0x7fb45bfb7830]
/mnt2/dev/emsdk_portable/clang/fastcomp/build_incoming_64/bin/llc(_start+0x29)[0x584ec9]
======= Memory map: ========
00400000-0146b000 r-xp 00000000 ca:50 4075774                            /mnt2/dev/emsdk_portable/clang/fastcomp/build_incoming_64/bin/llc
0166b000-0177e000 r--p 0106b000 ca:50 4075774                            /mnt2/dev/emsdk_portable/clang/fastcomp/build_incoming_64/bin/llc
0177e000-01780000 rw-p 0117e000 ca:50 4075774                            /mnt2/dev/emsdk_portable/clang/fastcomp/build_incoming_64/bin/llc
01780000-0179a000 rw-p 00000000 00:00 0
02d10000-07017000 rw-p 00000000 00:00 0                                  [heap]
7fb45aafc000-7fb45b2fe000 rw-p 00000000 00:00 0
7fb45bd56000-7fb45bf97000 rw-p 00000000 00:00 0
7fb45bf97000-7fb45c157000 r-xp 00000000 ca:01 132988                     /lib/x86_64-linux-gnu/libc-2.23.so
7fb45c157000-7fb45c356000 ---p 001c0000 ca:01 132988                     /lib/x86_64-linux-gnu/libc-2.23.so
7fb45c356000-7fb45c35a000 r--p 001bf000 ca:01 132988                     /lib/x86_64-linux-gnu/libc-2.23.so
7fb45c35a000-7fb45c35c000 rw-p 001c3000 ca:01 132988                     /lib/x86_64-linux-gnu/libc-2.23.so
7fb45c35c000-7fb45c360000 rw-p 00000000 00:00 0
7fb45c360000-7fb45c376000 r-xp 00000000 ca:01 133006                     /lib/x86_64-linux-gnu/libgcc_s.so.1
7fb45c376000-7fb45c575000 ---p 00016000 ca:01 133006                     /lib/x86_64-linux-gnu/libgcc_s.so.1
7fb45c575000-7fb45c576000 rw-p 00015000 ca:01 133006                     /lib/x86_64-linux-gnu/libgcc_s.so.1
7fb45c576000-7fb45c67e000 r-xp 00000000 ca:01 133023                     /lib/x86_64-linux-gnu/libm-2.23.so
7fb45c67e000-7fb45c87d000 ---p 00108000 ca:01 133023                     /lib/x86_64-linux-gnu/libm-2.23.so
7fb45c87d000-7fb45c87e000 r--p 00107000 ca:01 133023                     /lib/x86_64-linux-gnu/libm-2.23.so
7fb45c87e000-7fb45c87f000 rw-p 00108000 ca:01 133023                     /lib/x86_64-linux-gnu/libm-2.23.so
7fb45c87f000-7fb45c9f1000 r-xp 00000000 ca:01 7972                       /usr/lib/x86_64-linux-gnu/libstdc++.so.6.0.21
7fb45c9f1000-7fb45cbf1000 ---p 00172000 ca:01 7972                       /usr/lib/x86_64-linux-gnu/libstdc++.so.6.0.21
7fb45cbf1000-7fb45cbfb000 r--p 00172000 ca:01 7972                       /usr/lib/x86_64-linux-gnu/libstdc++.so.6.0.21
7fb45cbfb000-7fb45cbfd000 rw-p 0017c000 ca:01 7972                       /usr/lib/x86_64-linux-gnu/libstdc++.so.6.0.21
7fb45cbfd000-7fb45cc01000 rw-p 00000000 00:00 0
7fb45cc01000-7fb45cc1a000 r-xp 00000000 ca:01 133077                     /lib/x86_64-linux-gnu/libz.so.1.2.8
7fb45cc1a000-7fb45ce19000 ---p 00019000 ca:01 133077                     /lib/x86_64-linux-gnu/libz.so.1.2.8
7fb45ce19000-7fb45ce1a000 r--p 00018000 ca:01 133077                     /lib/x86_64-linux-gnu/libz.so.1.2.8
7fb45ce1a000-7fb45ce1b000 rw-p 00019000 ca:01 133077                     /lib/x86_64-linux-gnu/libz.so.1.2.8
7fb45ce1b000-7fb45ce1e000 r-xp 00000000 ca:01 132999                     /lib/x86_64-linux-gnu/libdl-2.23.so
7fb45ce1e000-7fb45d01d000 ---p 00003000 ca:01 132999                     /lib/x86_64-linux-gnu/libdl-2.23.so
7fb45d01d000-7fb45d01e000 r--p 00002000 ca:01 132999                     /lib/x86_64-linux-gnu/libdl-2.23.so
7fb45d01e000-7fb45d01f000 rw-p 00003000 ca:01 132999                     /lib/x86_64-linux-gnu/libdl-2.23.so
7fb45d01f000-7fb45d037000 r-xp 00000000 ca:01 133054                     /lib/x86_64-linux-gnu/libpthread-2.23.so
7fb45d037000-7fb45d236000 ---p 00018000 ca:01 133054                     /lib/x86_64-linux-gnu/libpthread-2.23.so
7fb45d236000-7fb45d237000 r--p 00017000 ca:01 133054                     /lib/x86_64-linux-gnu/libpthread-2.23.so
7fb45d237000-7fb45d238000 rw-p 00018000 ca:01 133054                     /lib/x86_64-linux-gnu/libpthread-2.23.so
7fb45d238000-7fb45d23c000 rw-p 00000000 00:00 0
7fb45d23c000-7fb45d262000 r-xp 00000000 ca:01 132976                     /lib/x86_64-linux-gnu/ld-2.23.so
7fb45d427000-7fb45d44f000 rw-p 00000000 00:00 0
7fb45d45e000-7fb45d461000 rw-p 00000000 00:00 0
7fb45d461000-7fb45d462000 r--p 00025000 ca:01 132976                     /lib/x86_64-linux-gnu/ld-2.23.so
7fb45d462000-7fb45d463000 rw-p 00026000 ca:01 132976                     /lib/x86_64-linux-gnu/ld-2.23.so
7fb45d463000-7fb45d464000 rw-p 00000000 00:00 0
7fffc121d000-7fffc123f000 rw-p 00000000 00:00 0                          [stack]
7fffc12bb000-7fffc12bd000 r--p 00000000 00:00 0                          [vvar]
7fffc12bd000-7fffc12bf000 r-xp 00000000 00:00 0                          [vdso]
ffffffffff600000-ffffffffff601000 r-xp 00000000 00:00 0                  [vsyscall]
*** Error in `/mnt2/dev/emsdk_portable/clang/fastcomp/build_incoming_64/bin/llc': munmap_chunk(): invalid pointer: 0x0000000005bab488 ***
======= Backtrace: =========
/lib/x86_64-linux-gnu/libc.so.6(+0x77725)[0x7f45c82a3725]
/lib/x86_64-linux-gnu/libc.so.6(cfree+0x1a8)[0x7f45c82afc18]
/mnt2/dev/emsdk_portable/clang/fastcomp/build_incoming_64/bin/llc(_ZN4llvm15LLVMContextImplD2Ev+0x2b6f)[0xb9746f]
/mnt2/dev/emsdk_portable/clang/fastcomp/build_incoming_64/bin/llc(_ZN4llvm11LLVMContextD1Ev+0x14)[0xb8e264]
/mnt2/dev/emsdk_portable/clang/fastcomp/build_incoming_64/bin/llc(main+0x157)[0x564d67]
/lib/x86_64-linux-gnu/libc.so.6(__libc_start_main+0xf0)[0x7f45c824c830]
/mnt2/dev/emsdk_portable/clang/fastcomp/build_incoming_64/bin/llc(_start+0x29)[0x584ec9]
======= Memory map: ========
00400000-0146b000 r-xp 00000000 ca:50 4075774                            /mnt2/dev/emsdk_portable/clang/fastcomp/build_incoming_64/bin/llc
0166b000-0177e000 r--p 0106b000 ca:50 4075774                            /mnt2/dev/emsdk_portable/clang/fastcomp/build_incoming_64/bin/llc
0177e000-01780000 rw-p 0117e000 ca:50 4075774                            /mnt2/dev/emsdk_portable/clang/fastcomp/build_incoming_64/bin/llc
01780000-0179a000 rw-p 00000000 00:00 0
02aa8000-06e66000 rw-p 00000000 00:00 0                                  [heap]
7f45c6d87000-7f45c7589000 rw-p 00000000 00:00 0
7f45c7feb000-7f45c822c000 rw-p 00000000 00:00 0
7f45c822c000-7f45c83ec000 r-xp 00000000 ca:01 132988                     /lib/x86_64-linux-gnu/libc-2.23.so
7f45c83ec000-7f45c85eb000 ---p 001c0000 ca:01 132988                     /lib/x86_64-linux-gnu/libc-2.23.so
7f45c85eb000-7f45c85ef000 r--p 001bf000 ca:01 132988                     /lib/x86_64-linux-gnu/libc-2.23.so
7f45c85ef000-7f45c85f1000 rw-p 001c3000 ca:01 132988                     /lib/x86_64-linux-gnu/libc-2.23.so
7f45c85f1000-7f45c85f5000 rw-p 00000000 00:00 0
7f45c85f5000-7f45c860b000 r-xp 00000000 ca:01 133006                     /lib/x86_64-linux-gnu/libgcc_s.so.1
7f45c860b000-7f45c880a000 ---p 00016000 ca:01 133006                     /lib/x86_64-linux-gnu/libgcc_s.so.1
7f45c880a000-7f45c880b000 rw-p 00015000 ca:01 133006                     /lib/x86_64-linux-gnu/libgcc_s.so.1
7f45c880b000-7f45c8913000 r-xp 00000000 ca:01 133023                     /lib/x86_64-linux-gnu/libm-2.23.so
7f45c8913000-7f45c8b12000 ---p 00108000 ca:01 133023                     /lib/x86_64-linux-gnu/libm-2.23.so
7f45c8b12000-7f45c8b13000 r--p 00107000 ca:01 133023                     /lib/x86_64-linux-gnu/libm-2.23.so
7f45c8b13000-7f45c8b14000 rw-p 00108000 ca:01 133023                     /lib/x86_64-linux-gnu/libm-2.23.so
7f45c8b14000-7f45c8c86000 r-xp 00000000 ca:01 7972                       /usr/lib/x86_64-linux-gnu/libstdc++.so.6.0.21
7f45c8c86000-7f45c8e86000 ---p 00172000 ca:01 7972                       /usr/lib/x86_64-linux-gnu/libstdc++.so.6.0.21
7f45c8e86000-7f45c8e90000 r--p 00172000 ca:01 7972                       /usr/lib/x86_64-linux-gnu/libstdc++.so.6.0.21
7f45c8e90000-7f45c8e92000 rw-p 0017c000 ca:01 7972                       /usr/lib/x86_64-linux-gnu/libstdc++.so.6.0.21
7f45c8e92000-7f45c8e96000 rw-p 00000000 00:00 0
7f45c8e96000-7f45c8eaf000 r-xp 00000000 ca:01 133077                     /lib/x86_64-linux-gnu/libz.so.1.2.8
7f45c8eaf000-7f45c90ae000 ---p 00019000 ca:01 133077                     /lib/x86_64-linux-gnu/libz.so.1.2.8
7f45c90ae000-7f45c90af000 r--p 00018000 ca:01 133077                     /lib/x86_64-linux-gnu/libz.so.1.2.8
7f45c90af000-7f45c90b0000 rw-p 00019000 ca:01 133077                     /lib/x86_64-linux-gnu/libz.so.1.2.8
7f45c90b0000-7f45c90b3000 r-xp 00000000 ca:01 132999                     /lib/x86_64-linux-gnu/libdl-2.23.so
7f45c90b3000-7f45c92b2000 ---p 00003000 ca:01 132999                     /lib/x86_64-linux-gnu/libdl-2.23.so
7f45c92b2000-7f45c92b3000 r--p 00002000 ca:01 132999                     /lib/x86_64-linux-gnu/libdl-2.23.so
7f45c92b3000-7f45c92b4000 rw-p 00003000 ca:01 132999                     /lib/x86_64-linux-gnu/libdl-2.23.so
7f45c92b4000-7f45c92cc000 r-xp 00000000 ca:01 133054                     /lib/x86_64-linux-gnu/libpthread-2.23.so
7f45c92cc000-7f45c94cb000 ---p 00018000 ca:01 133054                     /lib/x86_64-linux-gnu/libpthread-2.23.so
7f45c94cb000-7f45c94cc000 r--p 00017000 ca:01 133054                     /lib/x86_64-linux-gnu/libpthread-2.23.so
7f45c94cc000-7f45c94cd000 rw-p 00018000 ca:01 133054                     /lib/x86_64-linux-gnu/libpthread-2.23.so
7f45c94cd000-7f45c94d1000 rw-p 00000000 00:00 0
7f45c94d1000-7f45c94f7000 r-xp 00000000 ca:01 132976                     /lib/x86_64-linux-gnu/ld-2.23.so
7f45c96dd000-7f45c96e4000 rw-p 00000000 00:00 0
7f45c96f3000-7f45c96f6000 rw-p 00000000 00:00 0
7f45c96f6000-7f45c96f7000 r--p 00025000 ca:01 132976                     /lib/x86_64-linux-gnu/ld-2.23.so
7f45c96f7000-7f45c96f8000 rw-p 00026000 ca:01 132976                     /lib/x86_64-linux-gnu/ld-2.23.so
7f45c96f8000-7f45c96f9000 rw-p 00000000 00:00 0
7ffecc7e6000-7ffecc808000 rw-p 00000000 00:00 0                          [stack]
7ffecc992000-7ffecc994000 r--p 00000000 00:00 0                          [vvar]
7ffecc994000-7ffecc996000 r-xp 00000000 00:00 0                          [vdso]
ffffffffff600000-ffffffffff601000 r-xp 00000000 00:00 0                  [vsyscall]

Versions:

rustc 1.15.0-dev (295148862 2016-11-21)
emcc (Emscripten gcc/clang-like replacement) 1.36.14 (commit 834d78e085cd8d3848f534be9c937baa9460e3e5)

@sanxiyn sanxiyn added the O-asmjs label Dec 30, 2016

@brson brson added the O-wasm label Jan 3, 2017

@brson brson referenced this issue Jan 3, 2017

Closed

Tracking issue for wasm support #38805

11 of 15 tasks complete
@ghost

This comment has been minimized.

Copy link

ghost commented Apr 8, 2017

#39461 might be related.

@alexcrichton

This comment has been minimized.

Copy link
Member

alexcrichton commented Oct 18, 2017

Looks like this has since been fixed! Doesn't crash on today's stable.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.