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
The rust app crashes without any error and cuts off my ssh connection to the device...
what happens could be:
in best case the kernel crashes, in worst case a disk buffer is overwritten and face a silent filesystem corruption...
Here the code code of the rust app (which crashes when executing the unsafe part): http://is.gd/PT0cwM
Gdb output:
why does it report "Cannot access memory"? Can i trust this info to be correct?
let mmap = MemoryMap::new(size, mmap_opts).unwrap();
(gdb) next
42 let data = mmap.data();
(gdb) print mmap
$1 = {data = 0xb5c00000 <error: Cannot access memory at address 0xb5c00000>, len = 8388608, kind = {{RUST$ENUM$DISR = MapFile, __0 = 0x0}, {
RUST$ENUM$DISR = MapFile}}}
Strace for the rust app (to get the strace, the unsafe part of the code was disabled): http://ideone.com/hNIYMw
The text was updated successfully, but these errors were encountered:
Hi,
I ported this c app (http://ideone.com/AbImAr) to rust but face an issue with MemoryMap.
The rust app is cross compiled on my ubuntu linux for the ARM:
Rust was built from source according to https://github.com/japaric/ruststrap/blob/master/1-how-to-cross-compile.md
The rust app is built using cargo:
The rust app crashes without any error and cuts off my ssh connection to the device...
what happens could be:
in best case the kernel crashes, in worst case a disk buffer is overwritten and face a silent filesystem corruption...
Here the code code of the rust app (which crashes when executing the unsafe part):
http://is.gd/PT0cwM
Gdb output:
why does it report "Cannot access memory"? Can i trust this info to be correct?
Strace for the rust app (to get the strace, the unsafe part of the code was disabled):
http://ideone.com/hNIYMw
The text was updated successfully, but these errors were encountered: