Record Case Detail

Notes

This function is in beta test. Please help improve it in the issues here.

Stderr

 pwd: /out/package
ppid: 5918
   1: WRITELN echo abc > /dev/permission_denied
   2: WRITELN exit
exit: 1

Hints

Your answer may be identical to the JOJ answer in the first several lines.

However, the main problem you meet now is Runtime Error. And the exit code of your program is 1, which should be 0.

Please double check your code to solve this problem and try again.

Your Answer

mumsh $ AddressSanitizer:DEADLYSIGNAL
=================================================================
==5920==ERROR: AddressSanitizer: SEGV on unknown address 0x000000000000 (pc 0x7f946ec6d254 bp 0x7ffe7e674a70 sp 0x7ffe7e674a40 T0)
==5920==The signal is caused by a READ memory access.
==5920==Hint: address points to the zero page.
    #0 0x7f946ec6d253  (/lib/x86_64-linux-gnu/libc.so.6+0x7e253)
    #1 0x4dbc3d  (/out/package/mumsh_memory_check+0x4dbc3d)
    #2 0x51ea48  (/out/package/mumsh_memory_check+0x51ea48)
    #3 0x51c985  (/out/package/mumsh_memory_check+0x51c985)
    #4 0x51b872  (/out/package/mumsh_memory_check+0x51b872)
    #5 0x5170d5  (/out/package/mumsh_memory_check+0x5170d5)
    #6 0x7f946ec10b96  (/lib/x86_64-linux-gnu/libc.so.6+0x21b96)
    #7 0x41d4b9  (/out/package/mumsh_memory_check+0x41d4b9)

AddressSanitizer can not provide additional info.
SUMMARY: AddressSanitizer: SEGV (/lib/x86_64-linux-gnu/libc.so.6+0x7e253) 
==5920==ABORTING
error: Fork error

JOJ Answer

mumsh $ /dev/permission_denied: Permission denied
mumsh $ exit