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

[wasm][aot][windows] Crash in Microsoft.Extensions.HostFactoryResolver.Tests with emsdk 2.0.34 #64724

Closed
radical opened this issue Feb 3, 2022 · 8 comments
Assignees
Labels
arch-wasm WebAssembly architecture area-Codegen-AOT-mono disabled-test The test is disabled in source code against the issue
Milestone

Comments

@radical
Copy link
Member

radical commented Feb 3, 2022

Hit on #62499
Build, and
log

EXEC : warning : undefined symbol: htons (referenced by $inetPton6__deps: ['htons','$jstoi_q'], referenced by $writeSockaddr__deps: ['$Sockets','$inetPton4','$inetPton6','$zeroMemory'], referenced by __syscall_accept4__deps: ['$getSocketFromFD','$writeSockaddr','$DNS','$SYSCALLS'], referenced by top-level compiled C/C++ code) [C:\helix\work\workitem\e\publish\ProxyProjectForAOTOnHelix.proj]
EXEC : warning : undefined symbol: ntohs (referenced by $inetNtop6__deps: ['$inetNtop4','ntohs'], referenced by $readSockaddr__deps: ['$Sockets','$inetNtop4','$inetNtop6','ntohs'], referenced by $getSocketAddress__deps: ['$readSockaddr','$FS','$DNS'], referenced by __syscall_bind__deps: ['$getSocketFromFD','$getSocketAddress','$SYSCALLS'], referenced by top-level compiled C/C++ code) [C:\helix\work\workitem\e\publish\ProxyProjectForAOTOnHelix.proj]
EXEC : warning : undefined symbol: _get_daylight (referenced by tzset_impl__deps: ['_get_daylight','_get_timezone','_get_tzname'], referenced by tzset__deps: ['tzset_impl'], referenced by localtime_r__deps: ['tzset'], referenced by top-level compiled C/C++ code) [C:\helix\work\workitem\e\publish\ProxyProjectForAOTOnHelix.proj]
EXEC : warning : undefined symbol: _get_timezone (referenced by tzset_impl__deps: ['_get_daylight','_get_timezone','_get_tzname'], referenced by tzset__deps: ['tzset_impl'], referenced by localtime_r__deps: ['tzset'], referenced by top-level compiled C/C++ code) [C:\helix\work\workitem\e\publish\ProxyProjectForAOTOnHelix.proj]
EXEC : warning : undefined symbol: _get_tzname (referenced by tzset_impl__deps: ['_get_daylight','_get_timezone','_get_tzname'], referenced by tzset__deps: ['tzset_impl'], referenced by localtime_r__deps: ['tzset'], referenced by top-level compiled C/C++ code) [C:\helix\work\workitem\e\publish\ProxyProjectForAOTOnHelix.proj]

Crash:

Application arguments: --run WasmTestRunner.dll Microsoft.Extensions.HostFactoryResolver.Tests.dll -notrait category=IgnoreForCI -notrait category=OuterLoop -notrait category=failing
ABORT: undefined
Stacktrace:

ABORT: RuntimeError: Aborted(undefined). Build with -s ASSERTIONS=1 for more info.
Error
    at Object.onAbort (test-main.js:157:25)
    at abort (./dotnet.js:1317:24)
    at mmapAlloc (./dotnet.js:2193:7)
    at syscallMmap2 (./dotnet.js:5453:15)
    at ___syscall_mmap2 (./dotnet.js:5468:14)
    at __mmap (wasm://wasm/08cd59f2:wasm-function[79835]:0xf2e810)
    at mono_valloc (wasm://wasm/08cd59f2:wasm-function[68503]:0xde2a82)
    at mono_thread_small_id_alloc (wasm://wasm/08cd59f2:wasm-function[68714]:0xde9ea0)
    at mono_thread_smr_init (wasm://wasm/08cd59f2:wasm-function[68725]:0xdea2b0)
    at mono_thread_info_init (wasm://wasm/08cd59f2:wasm-function[68798]:0xdeb7e3)
    at sgen_client_init (wasm://wasm/08cd59f2:wasm-function[68452]:0xde1a46)
    at sgen_gc_init (wasm://wasm/08cd59f2:wasm-function[69177]:0xdf2c25)
    at mono_gc_base_init (wasm://wasm/08cd59f2:wasm-function[68459]:0xde1d19)
    at mono_init_internal (wasm://wasm/08cd59f2:wasm-function[62601]:0xd4c9ef)
    at mono_init_version (wasm://wasm/08cd59f2:wasm-function[62607]:0xd4d312)
    at mini_init (wasm://wasm/08cd59f2:wasm-function[78304]:0xefe0a5)
    at mono_jit_init_version (wasm://wasm/08cd59f2:wasm-function[78515]:0xf048d9)
    at mono_wasm_load_runtime (wasm://wasm/08cd59f2:wasm-function[80298]:0xf3ef85)
    at Module._mono_wasm_load_runtime (./dotnet.js:7387:114)
    at ccall (./dotnet.js:696:18)
    at ./dotnet.js:719:12
    at Object.o.<computed> (./dotnet.js:3:4019)
    at finalize_startup (./dotnet.js:3:61490)
    at mono_wasm_after_runtime_initialized (./dotnet.js:3:59112)
    at callRuntimeCallbacks (./dotnet.js:1535:11)
    at postRun (./dotnet.js:1236:3)
    at doRun (./dotnet.js:8284:5)
    at run (./dotnet.js:8297:5)
    at runCaller (./dotnet.js:8251:19)
Stacktrace:
    at removeRunDependency (./dotnet.js:1305:7)

    at receiveInstance (./dotnet.js:1446:5)
    at receiveInstantiationResult (./dotnet.js:1457:5)
Aborted(undefined)
Error
    at Object.onAbort (test-main.js:157:25)
    at abort (./dotnet.js:1317:24)
    at ___syscall_mmap2 (./dotnet.js:5470:69)
    at __mmap (wasm://wasm/08cd59f2:wasm-function[79835]:0xf2e810)
    at mono_valloc (wasm://wasm/08cd59f2:wasm-function[68503]:0xde2a82)
    at mono_thread_small_id_alloc (wasm://wasm/08cd59f2:wasm-function[68714]:0xde9ea0)
    at mono_thread_smr_init (wasm://wasm/08cd59f2:wasm-function[68725]:0xdea2b0)
    at mono_thread_info_init (wasm://wasm/08cd59f2:wasm-function[68798]:0xdeb7e3)
    at sgen_client_init (wasm://wasm/08cd59f2:wasm-function[68452]:0xde1a46)
    at sgen_gc_init (wasm://wasm/08cd59f2:wasm-function[69177]:0xdf2c25)
    at mono_gc_base_init (wasm://wasm/08cd59f2:wasm-function[68459]:0xde1d19)
    at mono_init_internal (wasm://wasm/08cd59f2:wasm-function[62601]:0xd4c9ef)
    at mono_init_version (wasm://wasm/08cd59f2:wasm-function[62607]:0xd4d312)
    at mini_init (wasm://wasm/08cd59f2:wasm-function[78304]:0xefe0a5)
    at mono_jit_init_version (wasm://wasm/08cd59f2:wasm-function[78515]:0xf048d9)
    at mono_wasm_load_runtime (wasm://wasm/08cd59f2:wasm-function[80298]:0xf3ef85)
    at Module._mono_wasm_load_runtime (./dotnet.js:7387:114)
    at ccall (./dotnet.js:696:18)
    at ./dotnet.js:719:12
    at Object.o.<computed> (./dotnet.js:3:4019)
    at finalize_startup (./dotnet.js:3:61490)
    at mono_wasm_after_runtime_initialized (./dotnet.js:3:59112)
    at callRuntimeCallbacks (./dotnet.js:1535:11)
    at postRun (./dotnet.js:1236:3)
    at doRun (./dotnet.js:8284:5)
    at run (./dotnet.js:8297:5)
    at runCaller (./dotnet.js:8251:19)
    at removeRunDependency (./dotnet.js:1305:7)
    at receiveInstance (./dotnet.js:1446:5)
    at receiveInstantiationResult (./dotnet.js:1457:5)
{}
RuntimeError: Aborted(undefined). Build with -s ASSERTIONS=1 for more info.
    at abort (./dotnet.js:1334:11)
    at mmapAlloc (./dotnet.js:2193:7)
    at syscallMmap2 (./dotnet.js:5453:15)
    at ___syscall_mmap2 (./dotnet.js:5468:14)
    at __mmap (wasm://wasm/08cd59f2:wasm-function[79835]:0xf2e810)
    at mono_valloc (wasm://wasm/08cd59f2:wasm-function[68503]:0xde2a82)
    at mono_thread_small_id_alloc (wasm://wasm/08cd59f2:wasm-function[68714]:0xde9ea0)
    at mono_thread_smr_init (wasm://wasm/08cd59f2:wasm-function[68725]:0xdea2b0)
    at mono_thread_info_init (wasm://wasm/08cd59f2:wasm-function[68798]:0xdeb7e3)
    at sgen_client_init (wasm://wasm/08cd59f2:wasm-function[68452]:0xde1a46)
    at sgen_gc_init (wasm://wasm/08cd59f2:wasm-function[69177]:0xdf2c25)
    at mono_gc_base_init (wasm://wasm/08cd59f2:wasm-function[68459]:0xde1d19)
    at mono_init_internal (wasm://wasm/08cd59f2:wasm-function[62601]:0xd4c9ef)
    at mono_init_version (wasm://wasm/08cd59f2:wasm-function[62607]:0xd4d312)
    at mini_init (wasm://wasm/08cd59f2:wasm-function[78304]:0xefe0a5)
    at mono_jit_init_version (wasm://wasm/08cd59f2:wasm-function[78515]:0xf048d9)
    at mono_wasm_load_runtime (wasm://wasm/08cd59f2:wasm-function[80298]:0xf3ef85)
    at Module._mono_wasm_load_runtime (./dotnet.js:7387:114)
    at ccall (./dotnet.js:696:18)
    at ./dotnet.js:719:12
    at Object.o.<computed> (./dotnet.js:3:4019)
    at finalize_startup (./dotnet.js:3:61490)
    at mono_wasm_after_runtime_initialized (./dotnet.js:3:59112)
    at callRuntimeCallbacks (./dotnet.js:1535:11)
    at postRun (./dotnet.js:1236:3)
    at doRun (./dotnet.js:8284:5)
    at run (./dotnet.js:8297:5)
    at runCaller (./dotnet.js:8251:19)
    at removeRunDependency (./dotnet.js:1305:7)
    at receiveInstance (./dotnet.js:1446:5)
    at receiveInstantiationResult (./dotnet.js:1457:5)
Aborted(RuntimeError: Aborted(undefined). Build with -s ASSERTIONS=1 for more info.)
MONO_WASM: mono_wasm_load_runtime () failed: RuntimeError: Aborted(RuntimeError: Aborted(undefined). Build with -s ASSERTIONS=1 for more info.). Build with -s ASSERTIONS=1 for more info.
MONO_WASM: Stacktrace: 

RuntimeError: Aborted(RuntimeError: Aborted(undefined). Build with -s ASSERTIONS=1 for more info.). Build with -s ASSERTIONS=1 for more info.
    at abort (./dotnet.js:1334:11)
    at ___syscall_mmap2 (./dotnet.js:5470:69)
    at __mmap (wasm://wasm/08cd59f2:wasm-function[79835]:0xf2e810)
    at mono_valloc (wasm://wasm/08cd59f2:wasm-function[68503]:0xde2a82)
    at mono_thread_small_id_alloc (wasm://wasm/08cd59f2:wasm-function[68714]:0xde9ea0)
    at mono_thread_smr_init (wasm://wasm/08cd59f2:wasm-function[68725]:0xdea2b0)
    at mono_thread_info_init (wasm://wasm/08cd59f2:wasm-function[68798]:0xdeb7e3)
    at sgen_client_init (wasm://wasm/08cd59f2:wasm-function[68452]:0xde1a46)
    at sgen_gc_init (wasm://wasm/08cd59f2:wasm-function[69177]:0xdf2c25)
    at mono_gc_base_init (wasm://wasm/08cd59f2:wasm-function[68459]:0xde1d19)
    at mono_init_internal (wasm://wasm/08cd59f2:wasm-function[62601]:0xd4c9ef)
    at mono_init_version (wasm://wasm/08cd59f2:wasm-function[62607]:0xd4d312)
    at mini_init (wasm://wasm/08cd59f2:wasm-function[78304]:0xefe0a5)
    at mono_jit_init_version (wasm://wasm/08cd59f2:wasm-function[78515]:0xf048d9)
    at mono_wasm_load_runtime (wasm://wasm/08cd59f2:wasm-function[80298]:0xf3ef85)
    at Module._mono_wasm_load_runtime (./dotnet.js:7387:114)
    at ccall (./dotnet.js:696:18)
    at ./dotnet.js:719:12
    at Object.o.<computed> (./dotnet.js:3:4019)
    at finalize_startup (./dotnet.js:3:61490)
    at mono_wasm_after_runtime_initialized (./dotnet.js:3:59112)
    at callRuntimeCallbacks (./dotnet.js:1535:11)
    at postRun (./dotnet.js:1236:3)
    at doRun (./dotnet.js:8284:5)
    at run (./dotnet.js:8297:5)
    at runCaller (./dotnet.js:8251:19)
    at removeRunDependency (./dotnet.js:1305:7)
    at receiveInstance (./dotnet.js:1446:5)
    at receiveInstantiationResult (./dotnet.js:1457:5)
Process v8.cmd exited with 1

cc @radekdoulik @vargaz

Build Kind Start Time
1589203 Rolling 2022-03-02
@dotnet-issue-labeler dotnet-issue-labeler bot added area-VM-meta-mono untriaged New issue has not been triaged by the area owner labels Feb 3, 2022
@radical radical added the arch-wasm WebAssembly architecture label Feb 3, 2022
@ghost
Copy link

ghost commented Feb 3, 2022

Tagging subscribers to 'arch-wasm': @lewing
See info in area-owners.md if you want to be subscribed.

Issue Details

Hit on #62499
Build, and
log

EXEC : warning : undefined symbol: htons (referenced by $inetPton6__deps: ['htons','$jstoi_q'], referenced by $writeSockaddr__deps: ['$Sockets','$inetPton4','$inetPton6','$zeroMemory'], referenced by __syscall_accept4__deps: ['$getSocketFromFD','$writeSockaddr','$DNS','$SYSCALLS'], referenced by top-level compiled C/C++ code) [C:\helix\work\workitem\e\publish\ProxyProjectForAOTOnHelix.proj]
EXEC : warning : undefined symbol: ntohs (referenced by $inetNtop6__deps: ['$inetNtop4','ntohs'], referenced by $readSockaddr__deps: ['$Sockets','$inetNtop4','$inetNtop6','ntohs'], referenced by $getSocketAddress__deps: ['$readSockaddr','$FS','$DNS'], referenced by __syscall_bind__deps: ['$getSocketFromFD','$getSocketAddress','$SYSCALLS'], referenced by top-level compiled C/C++ code) [C:\helix\work\workitem\e\publish\ProxyProjectForAOTOnHelix.proj]
EXEC : warning : undefined symbol: _get_daylight (referenced by tzset_impl__deps: ['_get_daylight','_get_timezone','_get_tzname'], referenced by tzset__deps: ['tzset_impl'], referenced by localtime_r__deps: ['tzset'], referenced by top-level compiled C/C++ code) [C:\helix\work\workitem\e\publish\ProxyProjectForAOTOnHelix.proj]
EXEC : warning : undefined symbol: _get_timezone (referenced by tzset_impl__deps: ['_get_daylight','_get_timezone','_get_tzname'], referenced by tzset__deps: ['tzset_impl'], referenced by localtime_r__deps: ['tzset'], referenced by top-level compiled C/C++ code) [C:\helix\work\workitem\e\publish\ProxyProjectForAOTOnHelix.proj]
EXEC : warning : undefined symbol: _get_tzname (referenced by tzset_impl__deps: ['_get_daylight','_get_timezone','_get_tzname'], referenced by tzset__deps: ['tzset_impl'], referenced by localtime_r__deps: ['tzset'], referenced by top-level compiled C/C++ code) [C:\helix\work\workitem\e\publish\ProxyProjectForAOTOnHelix.proj]

Crash:

Application arguments: --run WasmTestRunner.dll Microsoft.Extensions.HostFactoryResolver.Tests.dll -notrait category=IgnoreForCI -notrait category=OuterLoop -notrait category=failing
ABORT: undefined
Stacktrace:

ABORT: RuntimeError: Aborted(undefined). Build with -s ASSERTIONS=1 for more info.
Error
    at Object.onAbort (test-main.js:157:25)
    at abort (./dotnet.js:1317:24)
    at mmapAlloc (./dotnet.js:2193:7)
    at syscallMmap2 (./dotnet.js:5453:15)
    at ___syscall_mmap2 (./dotnet.js:5468:14)
    at __mmap (wasm://wasm/08cd59f2:wasm-function[79835]:0xf2e810)
    at mono_valloc (wasm://wasm/08cd59f2:wasm-function[68503]:0xde2a82)
    at mono_thread_small_id_alloc (wasm://wasm/08cd59f2:wasm-function[68714]:0xde9ea0)
    at mono_thread_smr_init (wasm://wasm/08cd59f2:wasm-function[68725]:0xdea2b0)
    at mono_thread_info_init (wasm://wasm/08cd59f2:wasm-function[68798]:0xdeb7e3)
    at sgen_client_init (wasm://wasm/08cd59f2:wasm-function[68452]:0xde1a46)
    at sgen_gc_init (wasm://wasm/08cd59f2:wasm-function[69177]:0xdf2c25)
    at mono_gc_base_init (wasm://wasm/08cd59f2:wasm-function[68459]:0xde1d19)
    at mono_init_internal (wasm://wasm/08cd59f2:wasm-function[62601]:0xd4c9ef)
    at mono_init_version (wasm://wasm/08cd59f2:wasm-function[62607]:0xd4d312)
    at mini_init (wasm://wasm/08cd59f2:wasm-function[78304]:0xefe0a5)
    at mono_jit_init_version (wasm://wasm/08cd59f2:wasm-function[78515]:0xf048d9)
    at mono_wasm_load_runtime (wasm://wasm/08cd59f2:wasm-function[80298]:0xf3ef85)
    at Module._mono_wasm_load_runtime (./dotnet.js:7387:114)
    at ccall (./dotnet.js:696:18)
    at ./dotnet.js:719:12
    at Object.o.<computed> (./dotnet.js:3:4019)
    at finalize_startup (./dotnet.js:3:61490)
    at mono_wasm_after_runtime_initialized (./dotnet.js:3:59112)
    at callRuntimeCallbacks (./dotnet.js:1535:11)
    at postRun (./dotnet.js:1236:3)
    at doRun (./dotnet.js:8284:5)
    at run (./dotnet.js:8297:5)
    at runCaller (./dotnet.js:8251:19)
Stacktrace:
    at removeRunDependency (./dotnet.js:1305:7)

    at receiveInstance (./dotnet.js:1446:5)
    at receiveInstantiationResult (./dotnet.js:1457:5)
Aborted(undefined)
Error
    at Object.onAbort (test-main.js:157:25)
    at abort (./dotnet.js:1317:24)
    at ___syscall_mmap2 (./dotnet.js:5470:69)
    at __mmap (wasm://wasm/08cd59f2:wasm-function[79835]:0xf2e810)
    at mono_valloc (wasm://wasm/08cd59f2:wasm-function[68503]:0xde2a82)
    at mono_thread_small_id_alloc (wasm://wasm/08cd59f2:wasm-function[68714]:0xde9ea0)
    at mono_thread_smr_init (wasm://wasm/08cd59f2:wasm-function[68725]:0xdea2b0)
    at mono_thread_info_init (wasm://wasm/08cd59f2:wasm-function[68798]:0xdeb7e3)
    at sgen_client_init (wasm://wasm/08cd59f2:wasm-function[68452]:0xde1a46)
    at sgen_gc_init (wasm://wasm/08cd59f2:wasm-function[69177]:0xdf2c25)
    at mono_gc_base_init (wasm://wasm/08cd59f2:wasm-function[68459]:0xde1d19)
    at mono_init_internal (wasm://wasm/08cd59f2:wasm-function[62601]:0xd4c9ef)
    at mono_init_version (wasm://wasm/08cd59f2:wasm-function[62607]:0xd4d312)
    at mini_init (wasm://wasm/08cd59f2:wasm-function[78304]:0xefe0a5)
    at mono_jit_init_version (wasm://wasm/08cd59f2:wasm-function[78515]:0xf048d9)
    at mono_wasm_load_runtime (wasm://wasm/08cd59f2:wasm-function[80298]:0xf3ef85)
    at Module._mono_wasm_load_runtime (./dotnet.js:7387:114)
    at ccall (./dotnet.js:696:18)
    at ./dotnet.js:719:12
    at Object.o.<computed> (./dotnet.js:3:4019)
    at finalize_startup (./dotnet.js:3:61490)
    at mono_wasm_after_runtime_initialized (./dotnet.js:3:59112)
    at callRuntimeCallbacks (./dotnet.js:1535:11)
    at postRun (./dotnet.js:1236:3)
    at doRun (./dotnet.js:8284:5)
    at run (./dotnet.js:8297:5)
    at runCaller (./dotnet.js:8251:19)
    at removeRunDependency (./dotnet.js:1305:7)
    at receiveInstance (./dotnet.js:1446:5)
    at receiveInstantiationResult (./dotnet.js:1457:5)
{}
RuntimeError: Aborted(undefined). Build with -s ASSERTIONS=1 for more info.
    at abort (./dotnet.js:1334:11)
    at mmapAlloc (./dotnet.js:2193:7)
    at syscallMmap2 (./dotnet.js:5453:15)
    at ___syscall_mmap2 (./dotnet.js:5468:14)
    at __mmap (wasm://wasm/08cd59f2:wasm-function[79835]:0xf2e810)
    at mono_valloc (wasm://wasm/08cd59f2:wasm-function[68503]:0xde2a82)
    at mono_thread_small_id_alloc (wasm://wasm/08cd59f2:wasm-function[68714]:0xde9ea0)
    at mono_thread_smr_init (wasm://wasm/08cd59f2:wasm-function[68725]:0xdea2b0)
    at mono_thread_info_init (wasm://wasm/08cd59f2:wasm-function[68798]:0xdeb7e3)
    at sgen_client_init (wasm://wasm/08cd59f2:wasm-function[68452]:0xde1a46)
    at sgen_gc_init (wasm://wasm/08cd59f2:wasm-function[69177]:0xdf2c25)
    at mono_gc_base_init (wasm://wasm/08cd59f2:wasm-function[68459]:0xde1d19)
    at mono_init_internal (wasm://wasm/08cd59f2:wasm-function[62601]:0xd4c9ef)
    at mono_init_version (wasm://wasm/08cd59f2:wasm-function[62607]:0xd4d312)
    at mini_init (wasm://wasm/08cd59f2:wasm-function[78304]:0xefe0a5)
    at mono_jit_init_version (wasm://wasm/08cd59f2:wasm-function[78515]:0xf048d9)
    at mono_wasm_load_runtime (wasm://wasm/08cd59f2:wasm-function[80298]:0xf3ef85)
    at Module._mono_wasm_load_runtime (./dotnet.js:7387:114)
    at ccall (./dotnet.js:696:18)
    at ./dotnet.js:719:12
    at Object.o.<computed> (./dotnet.js:3:4019)
    at finalize_startup (./dotnet.js:3:61490)
    at mono_wasm_after_runtime_initialized (./dotnet.js:3:59112)
    at callRuntimeCallbacks (./dotnet.js:1535:11)
    at postRun (./dotnet.js:1236:3)
    at doRun (./dotnet.js:8284:5)
    at run (./dotnet.js:8297:5)
    at runCaller (./dotnet.js:8251:19)
    at removeRunDependency (./dotnet.js:1305:7)
    at receiveInstance (./dotnet.js:1446:5)
    at receiveInstantiationResult (./dotnet.js:1457:5)
Aborted(RuntimeError: Aborted(undefined). Build with -s ASSERTIONS=1 for more info.)
MONO_WASM: mono_wasm_load_runtime () failed: RuntimeError: Aborted(RuntimeError: Aborted(undefined). Build with -s ASSERTIONS=1 for more info.). Build with -s ASSERTIONS=1 for more info.
MONO_WASM: Stacktrace: 

RuntimeError: Aborted(RuntimeError: Aborted(undefined). Build with -s ASSERTIONS=1 for more info.). Build with -s ASSERTIONS=1 for more info.
    at abort (./dotnet.js:1334:11)
    at ___syscall_mmap2 (./dotnet.js:5470:69)
    at __mmap (wasm://wasm/08cd59f2:wasm-function[79835]:0xf2e810)
    at mono_valloc (wasm://wasm/08cd59f2:wasm-function[68503]:0xde2a82)
    at mono_thread_small_id_alloc (wasm://wasm/08cd59f2:wasm-function[68714]:0xde9ea0)
    at mono_thread_smr_init (wasm://wasm/08cd59f2:wasm-function[68725]:0xdea2b0)
    at mono_thread_info_init (wasm://wasm/08cd59f2:wasm-function[68798]:0xdeb7e3)
    at sgen_client_init (wasm://wasm/08cd59f2:wasm-function[68452]:0xde1a46)
    at sgen_gc_init (wasm://wasm/08cd59f2:wasm-function[69177]:0xdf2c25)
    at mono_gc_base_init (wasm://wasm/08cd59f2:wasm-function[68459]:0xde1d19)
    at mono_init_internal (wasm://wasm/08cd59f2:wasm-function[62601]:0xd4c9ef)
    at mono_init_version (wasm://wasm/08cd59f2:wasm-function[62607]:0xd4d312)
    at mini_init (wasm://wasm/08cd59f2:wasm-function[78304]:0xefe0a5)
    at mono_jit_init_version (wasm://wasm/08cd59f2:wasm-function[78515]:0xf048d9)
    at mono_wasm_load_runtime (wasm://wasm/08cd59f2:wasm-function[80298]:0xf3ef85)
    at Module._mono_wasm_load_runtime (./dotnet.js:7387:114)
    at ccall (./dotnet.js:696:18)
    at ./dotnet.js:719:12
    at Object.o.<computed> (./dotnet.js:3:4019)
    at finalize_startup (./dotnet.js:3:61490)
    at mono_wasm_after_runtime_initialized (./dotnet.js:3:59112)
    at callRuntimeCallbacks (./dotnet.js:1535:11)
    at postRun (./dotnet.js:1236:3)
    at doRun (./dotnet.js:8284:5)
    at run (./dotnet.js:8297:5)
    at runCaller (./dotnet.js:8251:19)
    at removeRunDependency (./dotnet.js:1305:7)
    at receiveInstance (./dotnet.js:1446:5)
    at receiveInstantiationResult (./dotnet.js:1457:5)
Process v8.cmd exited with 1

cc @radekdoulik

Author: radical
Assignees: -
Labels:

arch-wasm, untriaged, area-VM-meta-mono

Milestone: -

@lewing lewing removed the untriaged New issue has not been triaged by the area owner label Feb 3, 2022
@lewing lewing added this to the 7.0.0 milestone Feb 3, 2022
radical added a commit to radical/runtime that referenced this issue Feb 3, 2022
`Microsoft.Extensions.HostFactoryResolver.Tests`: dotnet#64724
`Microsoft.Extensions.Logging.Tests`: dotnet#64725
@radekdoulik
Copy link
Member

emscripten issue: emscripten-core/emscripten#15958
(partial?) fix: emscripten-core/emscripten#16118

@radekdoulik
Copy link
Member

I have tried to add the missing functions to -s EXPORTED_FUNCTIONS=... as a workaround, the clang started crashing after that.

@vargaz do you have some other idea to try?

radical added a commit that referenced this issue Feb 4, 2022
* [wasm][aot] Disable failing tests

`Microsoft.Extensions.HostFactoryResolver.Tests`: #64724
`Microsoft.Extensions.Logging.Tests`: #64725

* [wasm][aot] Disable `System.Text.Json.SourceGeneration.Roslyn3.11.Unit.Tests`

.. on linux.

Fixes #64762 .
Real issue being tracked in #61339

* disable failing nodejs samples

* [wasm] Disable more failing tests

System.Linq.Tests: #64774
System.Text.Json.Tests: #64775

* Disable System.Text.RegularExpressions.Tests due to issue#64769
@radical radical added the disabled-test The test is disabled in source code against the issue label Feb 4, 2022
radekdoulik added a commit to radekdoulik/runtime that referenced this issue Feb 4, 2022
@radekdoulik
Copy link
Member

radekdoulik commented Feb 4, 2022

Exports work for me locally now. Either the changed list format helped or I had some problem with my local build?
Let see if it works on CI too, #64807

@radekdoulik
Copy link
Member

#64807 fixes the linker warnings about undefined symbols. The crash is still present.

@radekdoulik
Copy link
Member

@vargaz could you please take a look at the crash? I will be away next week.

I am able to reproduce it with .\dotnet.cmd build -bl -c Release /t:Test -p:RunAOTCompilation=true -p:TargetOS=Browser .\src\libraries\Microsoft.Extensions.Logging\tests\Common\ on windows. Hopefully osx equivalent would reproduce it too.

@vargaz
Copy link
Contributor

vargaz commented Feb 6, 2022

Can't reproduce this on osx.

@lewing lewing closed this as completed in b0e16a1 Feb 10, 2022
@radical
Copy link
Member Author

radical commented Feb 10, 2022

Re-opening this because #64807 only fixed the warnings part of this issue.

@radical radical reopened this Feb 10, 2022
radekdoulik added a commit to radekdoulik/runtime that referenced this issue Feb 14, 2022
Fix dotnet#64724 and dotnet#64725

The tests were crashing because calling the memalign function, which was
not exported.
@lewing lewing closed this as completed in 5844486 Feb 14, 2022
@ghost ghost locked as resolved and limited conversation to collaborators Mar 17, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
arch-wasm WebAssembly architecture area-Codegen-AOT-mono disabled-test The test is disabled in source code against the issue
Projects
None yet
Development

No branches or pull requests

4 participants