Record Case Detail

Notes

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

Stderr

 pwd: /out/package
ppid: 84545
   1: WRITELN sleep 10 | sleep 10 | sleep 10 | sleep 10 | sleep 10 | sleep 10 | sleep 10 | sleep 10 | sleep 10 | echo 123
   2: CTRL+C
Scan child pids of ppid: 84545
SIGINT
Send signal 2 to pid: 84545
Scan child pids of ppid: 84546
Send signal 2 to pid: 84546
Scan child pids of ppid: 84547
Send signal 2 to pid: 84547
Scan child pids of ppid: 84548
Send signal 2 to pid: 84548
Scan child pids of ppid: 84549
Send signal 2 to pid: 84549
Scan child pids of ppid: 84550
Send signal 2 to pid: 84550
Scan child pids of ppid: 84551
Send signal 2 to pid: 84551
Scan child pids of ppid: 84552
Send signal 2 to pid: 84552
Scan child pids of ppid: 84553
Send signal 2 to pid: 84553
Scan child pids of ppid: 84554
Send signal 2 to pid: 84554
Scan child pids of ppid: 84555
Send signal 2 to pid: 84555
Scan child pids of ppid: 84557
Send signal 2 to pid: 84557
   3: CTRL+C
Scan child pids of ppid: 84545
SIGINT
Send signal 2 to pid: 84545
Scan child pids of ppid: 84546
Send signal 2 to pid: 84546
Scan 

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 $ 123

mumsh $ 
mumsh $ success
mumsh $ 
mumsh $ exit

=================================================================
==84546==ERROR: LeakSanitizer: detected memory leaks

Direct leak of 99950 byte(s) in 1999 object(s) allocated from:
    #0 0x4dcbc0  (/out/package/mumsh_memory_check+0x4dcbc0)
    #1 0x5171c9  (/out/package/mumsh_memory_check+0x5171c9)
    #2 0x7f1bb8371b96  (/lib/x86_64-linux-gnu/libc.so.6+0x21b96)

Direct leak of 2500 byte(s) in 50 object(s) allocated from:
    #0 0x4dcbc0  (/out/package/mumsh_memory_check+0x4dcbc0)
    #1 0x517099  (/out/package/mumsh_memory_check+0x517099)
    #2 0x7f1bb8371b96  (/lib/x86_64-linux-gnu/libc.so.6+0x21b96)

Direct leak of 297 byte(s) in 81 object(s) allocated from:
    #0 0x4393e0  (/out/package/mumsh_memory_check+0x4393e0)
    #1 0x516f27  (/out/package/mumsh_memory_check+0x516f27)
    #2 0x51911e  (/out/package/mumsh_memory_check+0x51911e)
    #3 0x7f1bb8371b96  (/lib/x86_64-linux-gnu/libc.so.6+0x21b96)

Direct leak of 18 byte(s) in 9 object(s) al

JOJ Answer

mumsh $ 123

mumsh $ 
mumsh $ success
mumsh $ 
mumsh $ exit