开发者

Generating a Core Dump File of a child process

开发者 https://www.devze.com 2022-12-21 23:17 出处:网络
I\'m trying to run gpg from my php script using exec(). But it chashes with segmentation fault: \"gpg: Segmentation fault caught ... exiting\"

I'm trying to run gpg from my php script using exec(). But it chashes with segmentation fault: "gpg: Segmentation fault caught ... exiting" It crashes within a child process so my php script works ok. To identify a problem I wanna get a core file. I tried to run

ulimit -c unlimited
echo 1 > /proc/sys/fs/suid_dumpable

I added "* soft core unlimited" to /etc/security/limits.conf but no core files have been 开发者_如何学Gocreated.

I would be very thankful for any advice or ideas.


From the output message, it seems gpg catches the exception (is this true?).

You can try the gcore command if applicable. Otherwise, if the source code is available (which I assume is, as you are debugging it), you may use, for example, google-coredumper. Not sure if this is sufficient for you though.


May be you can start to think that your problem can be gpg catch some exceptions or PERMISSION issues. Check it first.

Hope this help

0

精彩评论

暂无评论...
验证码 换一张
取 消