Record Case Detail

Notes

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

Stderr

 pwd: /out/package
ppid: 8681
   1: WRITELN sleep 10
   2: CTRL+C
Scan child pids of ppid: 8681
SIGINT
Send signal 2 to pid: 8681
Scan child pids of ppid: 8682
Send signal 2 to pid: 8682
Scan child pids of ppid: 8683
Send signal 2 to pid: 8683
Scan child pids of ppid: 8684
Send signal 2 to pid: 8684
   3: WRITELN echo 123 > 1.txt
   4: WRITELN sleep 10 > 1.txt
   5: CTRL+C
Scan child pids of ppid: 8681
SIGINT
Send signal 2 to pid: 8681
Scan child pids of ppid: 8682
Send signal 2 to pid: 8682
Scan child pids of ppid: 8684
Send signal 2 to pid: 8684
Scan child pids of ppid: 8685
Send signal 2 to pid: 8685
Scan child pids of ppid: 8686
Send signal 2 to pid: 8686
Scan child pids of ppid: 8687
Send signal 2 to pid: 8687
Scan child pids of ppid: 8688
Send signal 2 to pid: 8688
   6: WRITELN cat 1.txt
   7: WRITELN echo success
   8: CTRL+C
Scan child pids of ppid: 8681
SIGINT
Send signal 2 to pid: 8681
Scan child pids of ppid: 8682
Send signal 2 to pid: 8682
Scan child pids of ppid: 8684
Send signal 2 to pid: 8684

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 $ AddressSanitizer:DEADLYSIGNAL
=================================================================
==8682==ERROR: AddressSanitizer: SEGV on unknown address 0x000000000000 (pc 0x000000428483 bp 0x7ffe1e387580 sp 0x7ffe1e387530 T0)
==8682==The signal is caused by a READ memory access.
==8682==Hint: address points to the zero page.
    #0 0x428482  (/out/package/mumsh_memory_check+0x428482)
    #1 0x4dcc3a  (/out/package/mumsh_memory_check+0x4dcc3a)
    #2 0x51c800  (/out/package/mumsh_memory_check+0x51c800)
    #3 0x7f3c0ae95b96  (/lib/x86_64-linux-gnu/libc.so.6+0x21b96)
    #4 0x41cf79  (/out/package/mumsh_memory_check+0x41cf79)

AddressSanitizer can not provide additional info.
SUMMARY: AddressSanitizer: SEGV (/out/package/mumsh_memory_check+0x428482) 
==8682==ABORTING

JOJ Answer

mumsh $ 
mumsh $ mumsh $ 
mumsh $ mumsh $ success
mumsh $ 
mumsh $ exit