wabt icon indicating copy to clipboard operation
wabt copied to clipboard

`macos-latest` builds are failing with `sigaltstack failed: Invalid argument`

Open sbc100 opened this issue 5 months ago • 3 comments

I suppose the github CI runners were updated and now we see these failures.

sbc100 avatar Sep 15 '25 17:09 sbc100

@shravanrn @keithw do either you have have access to macOS machine such that you could debug this?

sbc100 avatar Sep 15 '25 18:09 sbc100

So this is an issue I have seen before, for example when attempting to migrate to a consistent use of thread_locals in the mac platform (See https://github.com/WebAssembly/wabt/pull/2569).

From what I can tell, the failures I saw was an instance of undefined behavior in the exception implementation in wasm2c, leading to bad data being sent to sigaltstack (during the sigaltstack uninstall code that runs during app shutdown)

I deferred investigating a fix at the time as Firefox neither used the wasm exception or sigaltstack implementation, and also didn't end up pushing https://github.com/WebAssembly/wabt/pull/2569. I can try to get to this at some point, but unfortunately, September is super busy for me, so I'm not likely going to be able to get to this very soon.

@keithw any chance you have some cycles?

shravanrn avatar Sep 16 '25 20:09 shravanrn

I've temporarily disabled macos-latest in CI, which is not great. If anyone has any time to look into fixing this that would be great.

Since its 100% reproducible on new macOS devices I think anyone with a macOS device and debugger should be able to take a stab at it.

sbc100 avatar Dec 09 '25 00:12 sbc100