Creating a snapshot dump file ________________________________________________________________________
Applicable Environment
________________________________________________________________________
Topic : Create core dump of running processSDP : 6.4.1Target : Any supported target________________________________________________________________________
Recommendation ________________________________________________________________________
You can create a dump file of a running process by dropping a signal on it. But this terminates the process.
Another way to get a dump file is to pipe the pid of the process to /proc/dumper. The process keeps running!
> echo 12345 > /proc/dumper
C-code:
char pidstr[20];
int fd = open("/proc/dumper", O_RDWR);
sprintf(pidstr, "%d", getpid());
write(fd, pidstr, strlen(pidstr));
close(fd);
This will let dumper STOP the process, generate a core file, and then let the application keeps running.
________________________________________________________________________
NOTE :
This entry has been validated against the SDP version listed above. Use
caution when considering this advice for any other SDP version. For
supported releases, please reach out to QNX Technical Support if you have any questions/concerns.________________________________________________________________________
Please contact us with your questions or concerns.