Record Case Detail

Notes

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

Stderr

 pwd: /out/package
ppid: 19247
   1: WRITELN sleep 10
   2: CTRL+C
Scan child pids of ppid: 19247
SIGINT
Send signal 2 to pid: 19247
Scan child pids of ppid: 19248
Send signal 2 to pid: 19248
Scan child pids of ppid: 19249
Send signal 2 to pid: 19249
Scan child pids of ppid: 19250
Send signal 2 to pid: 19250
   3: WRITELN echo 123 > 1.txt
   4: WRITELN sleep 10 > 1.txt
   5: CTRL+C
Scan child pids of ppid: 19247
SIGINT
Send signal 2 to pid: 19247
Scan child pids of ppid: 19248
Send signal 2 to pid: 19248
Scan child pids of ppid: 19249
Send signal 2 to pid: 19249
Scan child pids of ppid: 19255
Send signal 2 to pid: 19255
Scan child pids of ppid: 19250
Send signal 2 to pid: 19250
Scan child pids of ppid: 19251
Send signal 2 to pid: 19251
Scan child pids of ppid: 19252
Send signal 2 to pid: 19252
Scan child pids of ppid: 19253
Send signal 2 to pid: 19253
Scan child pids of ppid: 19256
Send signal 2 to pid: 19256
   6: WRITELN cat 1.txt
   7: WRITELN echo success
   8: CTRL+C
Scan child pids of ppid: 19247
SIGINT

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 $ mumsh $ 
mumsh $ mumsh $ success
mumsh $ 
mumsh $ AddressSanitizer:DEADLYSIGNAL
=================================================================
==19248==ERROR: AddressSanitizer: SEGV on unknown address 0x100187070b74 (pc 0x7fbe8014b21c bp 0x7ffc38487d40 sp 0x7ffc3847cff8 T0)
==19248==The signal is caused by a WRITE memory access.
    #0 0x7fbe8014b21b  (/lib/x86_64-linux-gnu/libc.so.6+0x18f21b)
    #1 0x51fff3  (/out/package/mumsh_memory_check+0x51fff3)
    #2 0x7fbe7ffddb96  (/lib/x86_64-linux-gnu/libc.so.6+0x21b96)
    #3 0x41cc69  (/out/package/mumsh_memory_check+0x41cc69)

AddressSanitizer can not provide additional info.
SUMMARY: AddressSanitizer: SEGV (/lib/x86_64-linux-gnu/libc.so.6+0x18f21b) 
==19248==ABORTING

JOJ Answer

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