Stream: git-wasmtime

Topic: wasmtime / issue #2552 Interrupting engine causes illegal...


view this post on Zulip Wasmtime GitHub notifications bot (Jun 01 2021 at 16:26):

bnjbvr commented on issue #2552:

This should now be fixed; please let us know if it's not the case!

view this post on Zulip Wasmtime GitHub notifications bot (Jun 01 2021 at 16:26):

bnjbvr closed issue #2552:

Environment: rustc 1.50.0-nightly (c609b2eaf 2020-12-20), MacOS, AArch64
Wasmtime Version: 0.21.0
Expected Behavior: Interrupt WASM engine, actually causes zsh: illegal hardware instruction cargo run
To Reproduce: Attempt to run the Store/interrupt_handle example

If there is any more info needed/testing I am here

view this post on Zulip Wasmtime GitHub notifications bot (Aug 14 2025 at 12:11):

expenses commented on issue #2552:

I'm getting something potentially similar now - a panic in a rust program compiled to wasm32-wasip2 and ran on aarch64-linux-android causes an illegal opcode:

2025-08-14 12:07:36.749 24011-29522 libc                    com.example.rssdb                    I  debuggerd signal invoked signal:4
2025-08-14 12:07:36.749 24011-29522 libc                    com.example.rssdb                    I  debuggerd requestDump:0 NO_NEW_PRIVS:0
2025-08-14 12:07:36.749 24011-29522 libc                    com.example.rssdb                    A  Fatal signal 4 (SIGILL), code 1 (ILL_ILLOPC), fault addr 0x768ea5d348 in tid 29522 (Thread-130), pid 24011 (m.example.rssdb)
2025-08-14 12:07:36.749 24011-29522 libc                    com.example.rssdb                    I  clone child process pid:30654
2025-08-14 12:07:36.750 24011-29522 libc                    com.example.rssdb                    I  debuggerd pseudothread crash_process: 29522
2025-08-14 12:07:37.293 30657-30657 DEBUG                   pid-30657                            A  Softversion: PD2280F_EX_A_14.1.7.0.W20.V000L1
2025-08-14 12:07:37.293 30657-30657 DEBUG                   pid-30657                            A  Time: 2025-08-14 14:07:37
2025-08-14 12:07:37.293 30657-30657 DEBUG                   pid-30657                            A  *** *** *** *** *** *** *** *** *** *** *** *** *** *** *** ***
2025-08-14 12:07:37.293 30657-30657 DEBUG                   pid-30657                            A  Build fingerprint: 'vivo/V2247T/V2247:14/UP1A.231005.007/compiler05081142:user/release-keys'
2025-08-14 12:07:37.293 30657-30657 DEBUG                   pid-30657                            A  Revision: '0'
2025-08-14 12:07:37.293 30657-30657 DEBUG                   pid-30657                            A  ABI: 'arm64'
2025-08-14 12:07:37.293 30657-30657 DEBUG                   pid-30657                            A  Timestamp: 2025-08-14 14:07:36.887410041+0200
2025-08-14 12:07:37.293 30657-30657 DEBUG                   pid-30657                            A  Process uptime: 2344s
2025-08-14 12:07:37.293 30657-30657 DEBUG                   pid-30657                            A  Cmdline: com.example.rssdb
2025-08-14 12:07:37.293 30657-30657 DEBUG                   pid-30657                            A  pid: 24011, tid: 29522, name: Thread-130  >>> com.example.rssdb <<<
2025-08-14 12:07:37.294 30657-30657 DEBUG                   pid-30657                            A  uid: 10397
2025-08-14 12:07:37.294 30657-30657 DEBUG                   pid-30657                            A  tagged_addr_ctrl: 0000000000000001 (PR_TAGGED_ADDR_ENABLE)
2025-08-14 12:07:37.294 30657-30657 DEBUG                   pid-30657                            A  signal 4 (SIGILL), code 1 (ILL_ILLOPC), fault addr 0x000000768ea5d348
2025-08-14 12:07:37.294 30657-30657 DEBUG                   pid-30657                            A      x0  0000000000000001  x1  0000000000000004  x2  b400007868e201f0  x3  b400007868e201f0
2025-08-14 12:07:37.294 30657-30657 DEBUG                   pid-30657                            A      x4  00000000000ff910  x5  000000000012f3f8  x6  000000000012fcb4  x7  000000000012fc88
2025-08-14 12:07:37.294 30657-30657 DEBUG                   pid-30657                            A      x8  0000000000000001  x9  00000073f3a2c004  x10 000000000000004e  x11 00000073f3a2c004
2025-08-14 12:07:37.294 30657-30657 DEBUG                   pid-30657                            A      x12 0000000000000000  x13 00000073f3a2c000  x14 00000075fdf6b168  x15 b400007848dade50
2025-08-14 12:07:37.294 30657-30657 DEBUG                   pid-30657                            A      x16 00000075fdeebce0  x17 0000000000000000  x18 0000000000000000  x19 b400007868e201f0
2025-08-14 12:07:37.294 30657-30657 DEBUG                   pid-30657                            A      x20 00000000000ff870  x21 b400007868e201f0  x22 00000000000ff8b0  x23 0000000000000000
2025-08-14 12:07:37.294 30657-30657 DEBUG                   pid-30657                            A      x24 000000000012c770  x25 00000000000ff8b0  x26 b400007868e201f0  x27 00000000000ff910
2025-08-14 12:07:37.294 30657-30657 DEBUG                   pid-30657                            A      x28 0000000000000001  x29 00000075fdf6b650
2025-08-14 12:07:37.294 30657-30657 DEBUG                   pid-30657                            A      lr  000000768ea5ce1c  sp  00000075fdf6b650  pc  000000768ea5d348  pst 0000000020000000
2025-08-14 12:07:37.294 30657-30657 DEBUG                   pid-30657                            A  1 total frames
2025-08-14 12:07:37.294 30657-30657 DEBUG                   pid-30657                            A  backtrace:
2025-08-14 12:07:37.294 30657-30657 DEBUG                   pid-30657                            A        #00 pc 0000000000098348  <anonymous:768e9c5000>
---------------------------- PROCESS ENDED (24011) for package com.example.rssdb ----------------------------

view this post on Zulip Wasmtime GitHub notifications bot (Aug 14 2025 at 12:46):

expenses edited a comment on issue #2552:

I'm getting something potentially similar now - a panic in a rust program compiled to wasm32-wasip2 and ran on aarch64-linux-android causes an illegal opcode:

2025-08-14 12:07:36.749 24011-29522 libc                    com.example.rssdb                    I  debuggerd signal invoked signal:4
2025-08-14 12:07:36.749 24011-29522 libc                    com.example.rssdb                    I  debuggerd requestDump:0 NO_NEW_PRIVS:0
2025-08-14 12:07:36.749 24011-29522 libc                    com.example.rssdb                    A  Fatal signal 4 (SIGILL), code 1 (ILL_ILLOPC), fault addr 0x768ea5d348 in tid 29522 (Thread-130), pid 24011 (m.example.rssdb)
2025-08-14 12:07:36.749 24011-29522 libc                    com.example.rssdb                    I  clone child process pid:30654
2025-08-14 12:07:36.750 24011-29522 libc                    com.example.rssdb                    I  debuggerd pseudothread crash_process: 29522
2025-08-14 12:07:37.293 30657-30657 DEBUG                   pid-30657                            A  Softversion: PD2280F_EX_A_14.1.7.0.W20.V000L1
2025-08-14 12:07:37.293 30657-30657 DEBUG                   pid-30657                            A  Time: 2025-08-14 14:07:37
2025-08-14 12:07:37.293 30657-30657 DEBUG                   pid-30657                            A  *** *** *** *** *** *** *** *** *** *** *** *** *** *** *** ***
2025-08-14 12:07:37.293 30657-30657 DEBUG                   pid-30657                            A  Build fingerprint: 'vivo/V2247T/V2247:14/UP1A.231005.007/compiler05081142:user/release-keys'
2025-08-14 12:07:37.293 30657-30657 DEBUG                   pid-30657                            A  Revision: '0'
2025-08-14 12:07:37.293 30657-30657 DEBUG                   pid-30657                            A  ABI: 'arm64'
2025-08-14 12:07:37.293 30657-30657 DEBUG                   pid-30657                            A  Timestamp: 2025-08-14 14:07:36.887410041+0200
2025-08-14 12:07:37.293 30657-30657 DEBUG                   pid-30657                            A  Process uptime: 2344s
2025-08-14 12:07:37.293 30657-30657 DEBUG                   pid-30657                            A  Cmdline: com.example.rssdb
2025-08-14 12:07:37.293 30657-30657 DEBUG                   pid-30657                            A  pid: 24011, tid: 29522, name: Thread-130  >>> com.example.rssdb <<<
2025-08-14 12:07:37.294 30657-30657 DEBUG                   pid-30657                            A  uid: 10397
2025-08-14 12:07:37.294 30657-30657 DEBUG                   pid-30657                            A  tagged_addr_ctrl: 0000000000000001 (PR_TAGGED_ADDR_ENABLE)
2025-08-14 12:07:37.294 30657-30657 DEBUG                   pid-30657                            A  signal 4 (SIGILL), code 1 (ILL_ILLOPC), fault addr 0x000000768ea5d348
2025-08-14 12:07:37.294 30657-30657 DEBUG                   pid-30657                            A      x0  0000000000000001  x1  0000000000000004  x2  b400007868e201f0  x3  b400007868e201f0
2025-08-14 12:07:37.294 30657-30657 DEBUG                   pid-30657                            A      x4  00000000000ff910  x5  000000000012f3f8  x6  000000000012fcb4  x7  000000000012fc88
2025-08-14 12:07:37.294 30657-30657 DEBUG                   pid-30657                            A      x8  0000000000000001  x9  00000073f3a2c004  x10 000000000000004e  x11 00000073f3a2c004
2025-08-14 12:07:37.294 30657-30657 DEBUG                   pid-30657                            A      x12 0000000000000000  x13 00000073f3a2c000  x14 00000075fdf6b168  x15 b400007848dade50
2025-08-14 12:07:37.294 30657-30657 DEBUG                   pid-30657                            A      x16 00000075fdeebce0  x17 0000000000000000  x18 0000000000000000  x19 b400007868e201f0
2025-08-14 12:07:37.294 30657-30657 DEBUG                   pid-30657                            A      x20 00000000000ff870  x21 b400007868e201f0  x22 00000000000ff8b0  x23 0000000000000000
2025-08-14 12:07:37.294 30657-30657 DEBUG                   pid-30657                            A      x24 000000000012c770  x25 00000000000ff8b0  x26 b400007868e201f0  x27 00000000000ff910
2025-08-14 12:07:37.294 30657-30657 DEBUG                   pid-30657                            A      x28 0000000000000001  x29 00000075fdf6b650
2025-08-14 12:07:37.294 30657-30657 DEBUG                   pid-30657                            A      lr  000000768ea5ce1c  sp  00000075fdf6b650  pc  000000768ea5d348  pst 0000000020000000
2025-08-14 12:07:37.294 30657-30657 DEBUG                   pid-30657                            A  1 total frames
2025-08-14 12:07:37.294 30657-30657 DEBUG                   pid-30657                            A  backtrace:
2025-08-14 12:07:37.294 30657-30657 DEBUG                   pid-30657                            A        #00 pc 0000000000098348  <anonymous:768e9c5000>
---------------------------- PROCESS ENDED (24011) for package com.example.rssdb ----------------------------

Edit: I needed to set signals_based_traps(false) to prevent this panic. This is probably a new issue.

view this post on Zulip Wasmtime GitHub notifications bot (Aug 14 2025 at 14:31):

alexcrichton commented on issue #2552:

@expenses mind filing a new issue? You may also be running into https://github.com/bytecodealliance/wasmtime/issues/11295 though.


Last updated: Dec 13 2025 at 19:03 UTC