Record Case Detail

Notes

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

Stderr

 pwd: /out/package
ppid: 3113
   1: WRITELN > abc | | grep 123
   2: WRITELN exit

Hints

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

However, you will still get Wrong Answer because the complete output may be longer and there might be errors in the future lines.

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

Your Answer

mumsh $ =================================================================
mumsh.c:598:24: runtime error: null pointer passed as argument 1, which is declared to never be null
/usr/include/string.h:137:33: note: nonnull attribute specified here
==3115==ERROR: AddressSanitizer: stack-buffer-overflow on address 0x7ffdd6ff528f at pc 0x00000051bd13 bp 0x7ffdd6feed50 sp 0x7ffdd6feed48
WRITE of size 1 at 0x7ffdd6ff528f thread T0
SUMMARY: UndefinedBehaviorSanitizer: undefined-behavior mumsh.c:598:24 in 
AddressSanitizer:DEADLYSIGNAL
=================================================================
==3114==ERROR: AddressSanitizer: SEGV on unknown address 0x000000000000 (pc 0x0000004b212b bp 0x7ffdd6feedd0 sp 0x7ffdd6fee540 T0)
==3114==The signal is caused by a READ memory access.
==3114==Hint: address points to the zero page.
    #0 0x51bd12  (/out/package/mumsh_memory_check+0x51bd12)
    #1 0x51d1dc  (/out/package/mumsh_memory_check+0x51d1dc)
    #2 0x51d998  (/out/package/mumsh_memory_check+0x51d998)
    #3 0x51ebab

JOJ Answer

mumsh $ error: missing program
mumsh $ exit