Question

How do I force a process to core dump on RHEL 6?

I tried kill -3 , but the process is still running.

kill -SIGSEGV kills the process, but no core is generated :

terminate called after throwing an instance of 'omni_thread_fatal'
EVServices: ./../../../rw/db/dbref.h:251: T *RWDBCountedRef<T>::operator->() const [with T = RWDBHandleImp]: Assertion `(impl_) != 0' failed.
/evaluate/ev_dev87/shl/StartProcess.sh[69]: wait: 35225: Killed
Thu Dec  5 11:14:03 EST 2013  Exited EVServices, pid=35225, with ERROR returncode=265 signal=SIGKILL

Please tell me what else I can try to force a process to core.

Was it helpful?

Solution

Use SIGABRT to generate a core dump: kill -6 <pid>

This requires the running process to be allowed to write core dumps, issue ulimit -c unlimited in the same shell as the one used to run your program, before running that program.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top