mirror of
https://github.com/fluencelabs/wasmer
synced 2025-04-25 10:22:19 +00:00
add more prints
This commit is contained in:
parent
396a555145
commit
d37b2f8bf9
@ -192,10 +192,12 @@ pub unsafe fn begin_unsafe_unwind(
|
|||||||
let unwind = UNWIND.with(|x| x.get());
|
let unwind = UNWIND.with(|x| x.get());
|
||||||
match (*unwind).as_mut() {
|
match (*unwind).as_mut() {
|
||||||
Some(inner) => {
|
Some(inner) => {
|
||||||
|
println!("begin_unsafe_unwind some");
|
||||||
inner.payload = Some(e);
|
inner.payload = Some(e);
|
||||||
raw::longjmp(&mut inner.jmpbuf as *mut SetJmpBuffer as * mut _, 0xffff)
|
raw::longjmp(&mut inner.jmpbuf as *mut SetJmpBuffer as * mut _, 0xffff)
|
||||||
},
|
},
|
||||||
None => {
|
None => {
|
||||||
|
println!("begin_unsafe_unwind none, signum is {}", signum);
|
||||||
let sig = Signal::from_c_int(signum).unwrap_or_else(|_| ::std::process::abort());
|
let sig = Signal::from_c_int(signum).unwrap_or_else(|_| ::std::process::abort());
|
||||||
match sig {
|
match sig {
|
||||||
// just abort if the previous handler hasn't been set
|
// just abort if the previous handler hasn't been set
|
||||||
|
Loading…
x
Reference in New Issue
Block a user