Home
Developer Resources
QNX RTOS v4
QNX RTOS v4 Knowledge Base

QNX RTOS v4 Knowledge Base

Foundry27
Foundry27
QNX RTOS v4 project
Resources

QNX RTOS v4 Knowledge Base

Title System locks-up when process dies and using dumper
Ref. No. QNX.000001971
Category(ies) Development
Issue My application keeps dying and if I run dumper, my whole system locks. This problem goes away when I remove mmap() calls in the code.
Solution Dumper will try to read all memory for the process including all the memory on card specified in the mmap().  This means if you are mmapping to a high memory address, dumper will read everything and this could be what is happening to dumper.  If there is something which happens to the card when certain parts
of it are read, then this may cause a problem.

The only work-around for this would be to catch the SIGSEGV with an interrupt handler, then unmap the card, remove the signal handler and return, the program will resume at the same point which caused the SIGSEGV and dump.