You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Durring a test on Linux and OSX, I have found a SegV for OSX system for this code of demonstration.
According to my observations, the accident happend when the dlclose(3)'s function is called for a dynamic crate named hello is used without the nostd mode, it's why in my report a simple println!'s will cause a Segv.
I tried this code:
hello/src/lib.rs
#[no_mangle]pubunsafeextern"C"fn start(common:*mutSegment){println!("This println cause de SegV when the dylib is closed");
...
(lldb) run
Process 5350 launched: '/Users/adjivas/Repos/share/target/debug/share' (x86_64)
This println cause de SegV when the dylib is closed
cProcess 5350 stopped
* thread #1: tid = 0x244c60, 0x000000010122ab80, queue = 'com.apple.main-thread', stop reason = EXC_BAD_ACCESS (code=1, address=0x10122ab80)
frame #0: 0x000000010122ab80
error: memory read failed for 0x10122aa00
The text was updated successfully, but these errors were encountered:
steveklabnik
added
O-macos
Operating system: macOS
I-crash
Issue: The compiler crashes (SIGSEGV, SIGABRT, etc). Use I-ICE instead when the compiler panics.
labels
Dec 14, 2016
Durring a test on Linux and OSX, I have found a SegV for OSX system for this code of demonstration.
According to my observations, the accident happend when the dlclose(3)'s function is called for a dynamic crate named hello is used without the nostd mode, it's why in my report a simple println!'s will cause a Segv.
I tried this code:
hello/src/lib.rs
src/main.rs
I expected to see this happen: 5763 Segmentation fault: 11
The rust-lldb trace:
The text was updated successfully, but these errors were encountered: