tags:

views:

311

answers:

2

I'm trying to solve a segmentation fault. This message appears in my apache-error.log:

[notice] child pid 3979 exit signal Segmentation fault (11)

I've tried disabling some apache and php modules but I'm still getting the same error.

I've also tried putting this in apache2.conf:

CoreDumpDirectory /tmp/apache2-gdb-dump

and then chmod 777, chown www-data... so that the server can write.

I can see no core-dump files to give me a hint on the error.

Does anybody have an idea why CoreDumpDirectory isn't working on Ubuntu?

answers: $ ulimit -a core file size
(blocks, -c) unlimited data seg size
(kbytes, -d) unlimited scheduling priority (-e) 0 file size (blocks, -f) unlimited pending signals (-i) 15863 max locked memory
(kbytes, -l) 32 max memory size
(kbytes, -m) unlimited open files
(-n) 1024 pipe size (512 bytes, -p) 8 POSIX message queues
(bytes, -q) 819200 real-time priority (-r) 0 stack size
(kbytes, -s) 8192 cpu time
(seconds, -t) unlimited max user processes (-u) 15863 virtual memory (kbytes, -v) unlimited file locks
(-x) unlimited

A: 

Core dumps are disabled on Ubuntu by default

Try this:

ulimit -c unlimited

"ulimit -a" tells you what the current limit is (0 means disabled)

amir75
it doesn't seem to do anything>$ ulimit -c unlimited>$ //nothing happens>$ sudo ulimit -c unlimited>sudo: ulimit: command not found>$ man ulimitNo manual entry for ulimit> sudo aptitude search ulimitp cpulimit - limits the cpu usage of a process (??)
arod
A: 

i finally was able to see apache's core dump in ubuntu

first, edit file in:

/etc/default/apport

then, edit apache2.conf:

CoreDumpDirectory /tmp/apache2-gdb-dump

then, stablish permission so apache can write:

chmod 777 /tmp/apache2-gdb-dump chown www-data:www-data /tmp/apache2-gdb-dump

then run command:

ulimit -c unlimited

to analize the dump use "gzb", really cool : )

this I did, and I obtained the core-dump...

however my problem was not solved by looking at the coredump, it was apparently an issue in my php script ...

arod