in reply to disappearing segfault

Hi, just some ideas ... I understand that your program behaves different when executed from a local shell or when started remotely. I had a similar problem once that was solved by setting the environment variable LANG=C because some localisations didn't work - but this is just a guess.

You could

Not much, but maybe a starter...