Record Case Detail

Notes

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

Stderr

 pwd: /out/package
ppid: 550
   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: 550
SIGINT
Send signal 2 to pid: 550
Scan child pids of ppid: 551
Send signal 2 to pid: 551
Scan child pids of ppid: 552
Send signal 2 to pid: 552
Scan child pids of ppid: 553
Send signal 2 to pid: 553
Scan child pids of ppid: 554
Send signal 2 to pid: 554
Scan child pids of ppid: 555
Send signal 2 to pid: 555
Scan child pids of ppid: 556
Send signal 2 to pid: 556
Scan child pids of ppid: 557
Send signal 2 to pid: 557
Scan child pids of ppid: 558
Send signal 2 to pid: 558
Scan child pids of ppid: 559
Send signal 2 to pid: 559
Scan child pids of ppid: 560
Send signal 2 to pid: 560
Scan child pids of ppid: 561
Send signal 2 to pid: 561
Scan child pids of ppid: 562
Send signal 2 to pid: 562
   3: CTRL+C
Scan child pids of ppid: 550
SIGINT
Send signal 2 to pid: 550
Scan child pids of ppid: 551
Send signal 2 to pid: 551
Scan chi

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

=================================================================
==551==ERROR: LeakSanitizer: detected memory leaks

Direct leak of 816 byte(s) in 1 object(s) allocated from:
    #0 0x4dcc50  (/out/package/mumsh_memory_check+0x4dcc50)
    #1 0x515498  (/out/package/mumsh_memory_check+0x515498)
    #2 0x7f214c00bb96  (/lib/x86_64-linux-gnu/libc.so.6+0x21b96)

SUMMARY: AddressSanitizer: 816 byte(s) leaked in 1 allocation(s).

JOJ Answer

mumsh $ 123

mumsh $ 
mumsh $ success
mumsh $ 
mumsh $ exit