I'm trying to get a usable core dump from code that I am writing. My source is on a NTFS partition that I share between Windows and Linux OSes. I'm doing the development under Linux and have set ulimit -c unlimited
in my bash shell. When I execute the code in my project directory on the NTFS partition, and purposely cause a SIGSEGV or SIGABRT, the system writes a core dump file of zero bytes.
If I execute the binary in my home directory (an ext4 partition), the core dump is generated fine. I've had a look at the man page for core, which gives a list of various circumstances in which a core dump file is not produced. However, I don't think it's a permissions issue as all the files and directories on that partition have full rights (chmod 777
).
Any help or thoughts appreciated.
Maybe you should check the this file (/proc/sys/kernel/core_pattern)
The directory where the application sits is a mount point to another linux machine. The core file can't be written to a mounted drive but must be written to the local drive.
http://www.experts-exchange.com/OS/Linux/Q_23677186.html
You can create ram disk and put the core dump on the ram disk.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With