[llvm-bugs] [Bug 50291] New: wasm-ld: crash in string merging with emscripten sqlite test

via llvm-bugs llvm-bugs at lists.llvm.org
Mon May 10 16:59:55 PDT 2021


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

            Bug ID: 50291
           Summary: wasm-ld: crash in string merging with emscripten
                    sqlite test
           Product: lld
           Version: unspecified
          Hardware: PC
                OS: Linux
            Status: NEW
          Severity: enhancement
          Priority: P
         Component: wasm
          Assignee: unassignedbugs at nondot.org
          Reporter: sbc at chromium.org
                CC: llvm-bugs at lists.llvm.org, sbc at chromium.org

test_sqlite at O2 and above is failing with:

```wasm-ld: error: /tmp/emscripten_temp_92a2xc_i/src_0.o:(.rodata..L.str.55):
offset is outside the section
emcc: error: '/usr/local/google/home/sbc/dev/wasm/llvm-build/bin/wasm-ld -o
src.wasm /tmp/emscripten_temp_92a2xc_i/src_0.o
-L/usr/local/google/home/sbc/dev/wasm/emscripten/cache/sysroot/lib/wasm32-emscripten
/usr/local/google/home/sbc/dev/wasm/emscripten/cache/sysroot/lib/wasm32-emscripten/libgl.a
/usr/local/google/home/sbc/dev/wasm/emscripten/cache/sysroot/lib/wasm32-emscripten/libal.a
/usr/local/google/home/sbc/dev/wasm/emscripten/cache/sysroot/lib/wasm32-emscripten/libhtml5.a
/usr/local/google/home/sbc/dev/wasm/emscripten/cache/sysroot/lib/wasm32-emscripten/libc.a
/usr/local/google/home/sbc/dev/wasm/emscripten/cache/sysroot/lib/wasm32-emscripten/libcompiler_rt.a
/usr/local/google/home/sbc/dev/wasm/emscripten/cache/sysroot/lib/wasm32-emscripten/libdlmalloc.a
/usr/local/google/home/sbc/dev/wasm/emscripten/cache/sysroot/lib/wasm32-emscripten/libc_rt_wasm.a
/usr/local/google/home/sbc/dev/wasm/emscripten/cache/sysroot/lib/wasm32-emscripten/libsockets.a
-mllvm -combiner-global-alias-analysis=false -mllvm -enable-emscripten-sjlj
-mllvm -disable-lsr --allow-undefined --strip-debug --export main --export
sqlite3_open --export sqlite3_close --export sqlite3_exec --export sqlite3_free
--export stackSave --export stackRestore --export stackAlloc --export
__wasm_call_ctors --export __errno_location --export malloc --export free
--export _get_tzname --export _get_daylight --export _get_timezone --export
memalign --export memset --export-if-defined=__start_em_asm
--export-if-defined=__stop_em_asm --export-table -z stack-size=5242880
--initial-memory=16777216 --no-entry --max-memory=16777216 --global-base=1024'
failed (1)
```

This seems to be the only occurrence of this crash in the whole test suite..
and it doesn't happen at -O0 or -O1.

-- 
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/20210510/e2a04d0d/attachment.html>


More information about the llvm-bugs mailing list