Record Case Detail

Notes

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

Stderr

 pwd: /out/package
ppid: 1475
   1: WRITELN echo 123
   2: WRITELN 

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 $ 123
mumsh $ parse_cmd.c:137:26: runtime error: unsigned integer overflow: 0 - 2 cannot be represented in type 'unsigned long'
SUMMARY: UndefinedBehaviorSanitizer: undefined-behavior parse_cmd.c:137:26 in 
parse_cmd.c:137:8: runtime error: addition of unsigned offset to 0x7ffdf04e2d80 overflowed to 0x7ffdf04e2d7e
SUMMARY: UndefinedBehaviorSanitizer: undefined-behavior parse_cmd.c:137:8 in 
=================================================================
==1476==ERROR: AddressSanitizer: stack-buffer-underflow on address 0x7ffdf04e2d7e at pc 0x000000519f5b bp 0x7ffdf04e2d00 sp 0x7ffdf04e2cf8
READ of size 1 at 0x7ffdf04e2d7e thread T0
    #0 0x519f5a  (/out/package/mumsh_memory_check+0x519f5a)
    #1 0x515cbe  (/out/package/mumsh_memory_check+0x515cbe)
    #2 0x7f0920c80b96  (/lib/x86_64-linux-gnu/libc.so.6+0x21b96)
    #3 0x41ccf9  (/out/package/mumsh_memory_check+0x41ccf9)

Address 0x7ffdf04e2d7e is located in stack of thread T0 at offset 30 in frame
    #0 0x51594f  (/out/package/mumsh_memory_check+0x

JOJ Answer

mumsh $ 123
mumsh $ mumsh $ exit