Record Case Detail

Notes

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

Stderr

 pwd: /out/package
ppid: 4492
   1: WRITELN echo 321 > 1.txt
   2: WRITELN <
   3: WRITELN 1.txt cat
   4: WRITELN ls
   5: 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 $ /in/Calls.c:155:22: runtime error: null pointer passed as argument 1, which is declared to never be null
/usr/include/unistd.h:582:14: note: nonnull attribute specified here
SUMMARY: UndefinedBehaviorSanitizer: undefined-behavior /in/Calls.c:155:22 in 
AddressSanitizer:DEADLYSIGNAL
=================================================================
==4495==ERROR: AddressSanitizer: SEGV on unknown address 0x000000000000 (pc 0x7f9b268b04b0 bp 0x7ffd8fdbf7d0 sp 0x7ffd8fdbf740 T0)
==4495==The signal is caused by a READ memory access.
==4495==Hint: address points to the zero page.
    #0 0x7f9b268b04af  (/lib/x86_64-linux-gnu/libc.so.6+0xe54af)
    #1 0x5198b5  (/out/package/mumsh_memory_check+0x5198b5)
    #2 0x519ec8  (/out/package/mumsh_memory_check+0x519ec8)
    #3 0x51635e  (/out/package/mumsh_memory_check+0x51635e)
    #4 0x7f9b267ecb96  (/lib/x86_64-linux-gnu/libc.so.6+0x21b96)
    #5 0x41d499  (/out/package/mumsh_memory_check+0x41d499)

AddressSanitizer can not provide additional info.
SUMMARY: Addre

JOJ Answer

mumsh $ mumsh $ > 321
mumsh $ 1.txt
driver
mumsh
mumsh_memory_check
mumsh $ exit