You are viewing a plain text version of this content. The canonical link for it is here.
Posted to cvs@httpd.apache.org by ja...@apache.org on 2019/06/26 18:32:41 UTC
svn commit: r1862182 - /httpd/site/trunk/content/dev/debugging.mdtext
Author: jailletc36
Date: Wed Jun 26 18:32:40 2019
New Revision: 1862182
URL: http://svn.apache.org/viewvc?rev=1862182&view=rev
Log:
Use <pre> instead of ` as done elsewhere in this page to imporve layout.
Add a missing 'CoreDumpDirectory' in a sentense.
Modified:
httpd/site/trunk/content/dev/debugging.mdtext
Modified: httpd/site/trunk/content/dev/debugging.mdtext
URL: http://svn.apache.org/viewvc/httpd/site/trunk/content/dev/debugging.mdtext?rev=1862182&r1=1862181&r2=1862182&view=diff
==============================================================================
--- httpd/site/trunk/content/dev/debugging.mdtext (original)
+++ httpd/site/trunk/content/dev/debugging.mdtext Wed Jun 26 18:32:40 2019
@@ -378,13 +378,13 @@ Here is one way to get a core file from
Solaris, without knowing which httpd child might be the one to die [note:
it is probably easier to use the MaxClients trick in the first section
above].
-`
+<pre>
# for pid in `ps -eaf | fgrep httpd | cut -d' ' -f4`
do
truss -f -l -t\!all -S SIGSEGV -p $pid 2>&1 | egrep SIGSEGV
&
done
-`
+</pre>
The [undocumented '-S'
flag](http://www.dejanews.com/=zzz_maf/getdoc.xp?AN=352257973) to truss
will halt the process in place upon receipt of a given signal (SIGSEGV in
@@ -396,17 +396,17 @@ and then look at the backtrace as discus
# Solaris and coredumps # {#sol27}
On Solaris use [](http://docs.sun.com/app/docs/doc/816-5166/coreadm-1m) to
-make `setuid()` processes actually dump core. By default a setuid() process
+make `setuid()` processes actually dump core. By default a `setuid()` process
does not dump core. This is the reason why httpd servers started as root
with child processes running as a different user (such as `apache` ) do not
coredump even when the
-[](http://httpd.apache.org/docs/current/mod/mpm_common.html#coredumpdirectory)
+[CoreDumpDirectory](http://httpd.apache.org/docs/current/mod/mpm_common.html#coredumpdirectory)
directive had been set to an appropriate and writable directory and **
`ulimit -c` ** has a sufficient size. See also [Debugging intermittent
crashes](#crashes) above.
Example:
-`
+<pre>
-bash-3.00# coreadm
global core file pattern: /var/core/core.%f.%p.u%u
global core file content: default
@@ -417,7 +417,7 @@ Example:
global setid core dumps: enabled
per-process setid core dumps: enabled
global core dump logging: disabled
-`
+</pre>
# Getting and analyzing a TCP packet trace # {#tcpdump}
@@ -439,4 +439,3 @@ the analysis of the sniffed data.
file analysis tool.
- [tcpshow](http://www.tcpshow.org/) is another one.
-