Huh... I wonder if there's something uninitialized in libedit (or perhaps some other supporting library) that needs to be initialized?
-- Raul On Wed, Mar 7, 2018 at 10:26 AM, Chris Double <chris.dou...@double.co.nz> wrote: > On Thu, Mar 8, 2018 at 3:29 AM, Chris Double <chris.dou...@double.co.nz> > wrote: >> I will investigate more though why the instability occurs. > > On closer debugging, it seems to be the add2 call, not the 'fdopen'. > With no changes this errors: > > 2!:2 '/bin/ls' > 10554 93976423924960 93976423925520 > 1 2 > Segmentation fault (core dumped) > > Note that I have to actually type in the "1 2" and it needs to have > the space. I can't "up arrow" in jconsole to get the previous history > value - it doesn't crash if I do that. > > If I comment out the 'fdopen' calls and put in dummy file pointers > then I still get the crash. > ---------------------------------------------------------------------- > For information about J forums see http://www.jsoftware.com/forums.htm ---------------------------------------------------------------------- For information about J forums see http://www.jsoftware.com/forums.htm