QNX RTOS v4 Knowledge Base
QNX RTOS v4 Knowledge Base
Title |
Segment violation and memory allocation error |
Ref. No. |
QNX.000006847 |
Category(ies) |
Kernel, Development |
Issue |
This program had been running fine for 3 months, and today it SIGSEGV'd.
It was compiled with Watcom 10.6 (32-bit, small model) using "-g2 -M", on QNX 4.23. The program is now running on QNX 4.24.
"wd -tr=pmd progname.dmp" was used to debug the program, to trace back to where the segment violation is. It is: program's code -> nmalloc() -> MemAllocator
This same program also terminated with a sigsegv the day before on a completely different machine except there is no dumpfile for that one.
|
Solution |
The allocator is likely running past an allocated segment. This issue has come up before, and it has been recommended to look into some form of "Mem-Alloc checker". There is an alternative malloc available in the Contributed Software section of our website in the directory qnx4/os/libs. The file is called 'libmalloc3r.tgz'. |
|