Segmentation fault 0x00000000 in ?? () in QNX6.3

I have the problem that an app will crash and it is not deterministic at
all. I was fortunate to trap the problem in the debugger:

763 result = spawnl(P_WAIT, “/usr/local/bin/stoplan”, “stoplan”,
lan_interface, NULL);
764 if (result == -1)
774 return result;
(gdb) c

Program received signal SIGSEGV, Segmentation fault.
0x00000000 in ?? ()

The application may run for hours before it crashes. The core dump
reveals the same result.

How do I resolve this problem?


Francois Joubert wrote:
Found the problem! The stack got corrupted by some unwelcome data.