mirror of https://github.com/WebAssembly/wasi-sdk
parent
017d5161d1
commit
cea7ecbdc5
@ -0,0 +1,11 @@
|
|||||||
|
#include <signal.h>
|
||||||
|
#include <stdio.h>
|
||||||
|
#include <stdlib.h>
|
||||||
|
|
||||||
|
int main(void)
|
||||||
|
{
|
||||||
|
fprintf("raising SIGABRT...\n");
|
||||||
|
raise(SIGABRT);
|
||||||
|
fprintf("oops!\n");
|
||||||
|
return EXIT_FAILURE;
|
||||||
|
}
|
@ -0,0 +1 @@
|
|||||||
|
134
|
@ -0,0 +1 @@
|
|||||||
|
-D_WASI_EMULATED_SIGNAL -lwasi-emulated-signal
|
@ -0,0 +1,7 @@
|
|||||||
|
raising SIGABRT...
|
||||||
|
Error: failed to run main module `sigabrt.c.---.wasm`
|
||||||
|
|
||||||
|
Caused by:
|
||||||
|
0: failed to invoke `_start`
|
||||||
|
1: wasm trap: unreachable, source location: @----
|
||||||
|
wasm backtrace:
|
@ -0,0 +1,7 @@
|
|||||||
|
#!/bin/bash
|
||||||
|
set -euo pipefail
|
||||||
|
|
||||||
|
cat \
|
||||||
|
| sed -e 's/main module `sigabrt\.c\.[^`]*\.wasm`/main module `sigabrt.c.---.wasm`/' \
|
||||||
|
| sed -e 's/source location: @[[:xdigit:]]*$/source location: @----/' \
|
||||||
|
| head -n 6
|
Loading…
Reference in new issue