Subject: Re: Segfault on broken shebangs in .do files

From: Sergey Matveev <[email-masked]>
Date: Thu, 14 Oct 2021 14:57:54 +0300

*** goredo [2021-10-14 11:16]:
>panic: runtime error: invalid memory address or nil pointer dereference
>[signal SIGSEGV: segmentation violation code=0x1 addr=0x0 pc=0x52266c]
>
>goroutine 19 [running]:
>main.runScript.func5.1(0xc00011c000, 0xa6, 0xc00009e12b, 0xc0000be098, 0xc0000be0b0, 0xc0000be0c8, 0xc0000d8600, 0x2e, 0x7fff8d73a8cd, 0x6, ...)
>        go.cypherpunks.ru/goredo/run.go:459 +0x1ec
>main.runScript.func5(0xc00011c000, 0xa6, 0xc000118000, 0xc0000ba3a0, 0xc0000c26c0, 0xc0000f4f00, 0x3e, 0xc0000be0b0, 0xc00009e590, 0xc0000c0600, ...)
>        go.cypherpunks.ru/goredo/run.go:542 +0xdd3

That definitely helped me to reproduce the problem! It happens when
stderr saving is active (-k, REDO_LOGS=1). Will fix in the following
release. Thank you!

-- 
Sergey Matveev (http://www.stargrave.org/)
OpenPGP: CF60 E89A 5923 1E76 E263  6422 AE1A 8109 E498 57EF