Re: Segfault on recursive trap/kill

2018-10-08 Thread Mike Gerwitz
> After sifting out the non-useful information. :-) That information was useful information regardless of whether I was aware of it. :) I'm sure I'm not the only person who read your message. > You are always eloquent! :-) You as well! -- Mike Gerwitz signature.asc Description: PGP signature

Re: Segfault on recursive trap/kill

2018-10-07 Thread Mike Gerwitz
could have represented an actual bug. -- Mike Gerwitz signature.asc Description: PGP signature

Re: Segfault on recursive trap/kill

2018-10-07 Thread Mike Gerwitz
sharing a stack with the interpreter, then it's hard to come up with a good predetermined value. FUNCNEST doesn't seem to work with the issue of recursive traps, though (understandably). -- Mike Gerwitz signature.asc Description: PGP signature

Re: Segfault on recursive trap/kill

2018-10-06 Thread Mike Gerwitz
) Indeed they should, but inevitably, such bugs do happen, and mine was a particularly common pitfall: I was trying to set the variable from within a subprocess. But it wasn't in a subprocss when I originally wrote it. > The proper way for a program to terminate itself upon catching a > si

Re: Segfault on recursive trap/kill

2018-10-06 Thread Mike Gerwitz
On Sat, Oct 06, 2018 at 12:33:22 -0400, Chet Ramey wrote: > On 10/5/18 9:33 PM, Mike Gerwitz wrote: >> The following code will cause a segfault on bash-4.4.19(1) on >> GNU Guix. I reproduced the issue on an old Ubuntu 14.04 LTS running >> bash-4.3.11(1) as well as a Trisqu

Segfault on recursive trap/kill

2018-10-05 Thread Mike Gerwitz
ocess, but the integer variable storing the pid of that process was not properly set. -- Mike Gerwitz Free Software Hacker+Activist | GNU Maintainer & Volunteer GPG: D6E9 B930 028A 6C38 F43B 2388 FEF6 3574 5E6F 6D05 https://mikegerwitz.com signature.asc Description: PGP signature