search for: j_print

Displaying 1 result from an estimated 1 matches for "j_print".

Did you mean: g_print
2014 Oct 03
0
Fwd: mksh-static segfaults on continued jobs
...ve mksh-static or lksh, they crash with segmentation fault. The simplest way to reproduce is to call "fg" for any stopped job in interactive mksh-static or lksh (full mksh is not affected); it results in job being continued but shell crashing immediately after that. The crash happens in j_print() at jobs.c:1560 where the expression sigtraps[WSTOPSIG(p->status)] is out-of-bounds. It seems to be introduced with revision 1.101 of jobs.c that added WCONTINUED flag to wait(2) and then updated the state after checking status with WIFCONTINUED. Apparently, when compiling with klibc, WCONTIN...