wForget commented on issue #1553:
URL:
https://github.com/apache/datafusion-comet/issues/1553#issuecomment-2774248625
Reproduce in rust REPL:
```
std::panic::catch_unwind(|| {
unsafe {
let ctx = 0 as *mut String;
let _ = Box::from_raw(ctx);
};
}).expect("test");
```
error msg:
```
thread '<unnamed>' panicked at library/core/src/panicking.rs:218:5:
unsafe precondition(s) violated: NonNull::new_unchecked requires that the
pointer is non-null
stack backtrace:
0: _rust_begin_unwind
1: core::panicking::panic_nounwind_fmt
2: core::panicking::panic_nounwind
3: core::ptr::non_null::NonNull<T>::new_unchecked::precondition_check
4: alloc::boxed::Box<T>::from_raw
5: ctx::run_user_code_4::{{closure}}::{{closure}}
6: std::panicking::try::do_call
7: ___rust_try
8: std::panic::catch_unwind
9: ctx::run_user_code_4::{{closure}}
10: std::panicking::try::do_call
11: ___rust_try
12: std::panic::catch_unwind
13: _run_user_code_4
14: evcxr::runtime::Runtime::run_loop
15: evcxr::runtime::runtime_hook
16: evcxr::main
note: Some details are omitted, run with `RUST_BACKTRACE=full` for a verbose
backtrace.
thread caused non-unwinding panic. aborting.
Subprocess terminated with status: signal: 6 (SIGABRT)
```
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]