Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #![allow(unreachable_code)]
- fn main() {
- println!("{:?}", {
- macro_rules! segfault { () => { unsafe { std::ptr::write(0xDEADBEEFusize as *mut usize, 0); } } } segfault!()
- });
- }
- /* ~~~~=== stderr ===~~~~
- Compiling playground v0.0.1 (/playground)
- Finished dev [unoptimized + debuginfo] target(s) in 0.44s
- Running `target/debug/playground`
- timeout: the monitored command dumped core
- /root/entrypoint.sh: line 8: 8 Segmentation fault timeout --signal=KILL ${timeout} "$@"
- */
- /* ~~~~=== stdout ===~~~~
- */
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement