> Now I've tried to debug this problem, but I cannot figure out how to
> attach to the thread :( Any hints how to work with gdb and the worker
> mpm? The moment the threads are started the main thread gets:
>
> Program received signal SIG32, Real-time event 32.
> 0x402b0bb2 in ?? () from /lib/libc.so.6
>
> and then if I try to attach to the thread the whole server goes down,
> without any traces.
To give some more details. After getting SIG32:
gdb) info threads
shows nothing, so I couldn't say:
gdb) thread 1
or similar. I could attach to the cgid thread as a process
gdb) attach PID
and then 'info threads' was showing the cgid thread. So it's not a gdb
problem.
ps(1) shows 5 httpd procs (on linux threads are shown as processes)
USER PID %CPU %MEM VSZ RSS TTY STAT START TIME COMMAND
stas 19567 0.5 1.7 18436 9168 pts/24 T 11:29 0:01 httpd
stas 19604 0.0 1.6 11768 8580 pts/24 S 11:29 0:00 httpd
stas 19605 0.0 1.7 18436 9168 pts/24 S 11:29 0:00 httpd
stas 19607 0.0 1.7 18436 9168 pts/24 S 11:29 0:00 httpd
stas 19608 0.0 1.7 18436 9168 pts/24 S 11:29 0:00 httpd
the first one appears to be the main thread, the second cgid and the
other three must be listener and worker threads, but without being able
to attach to any of these I don't know what are they.
pstree(1) makes it easy to understand who created whom:
pstree -p | grep httpd
|
`-tcsh(3913)-+-ddd(19563)---gdb(19566)---httpd(19567)-+-httpd(19604)
| |
`-httpd(19605)-+-httpd(19607)
| |
`-httpd(19608)
_____________________________________________________________________
Stas Bekman JAm_pH -- Just Another mod_perl Hacker
http://stason.org/ mod_perl Guide http://perl.apache.org/guide
mailto:[EMAIL PROTECTED] http://ticketmaster.com http://apacheweek.com
http://singlesheaven.com http://perl.apache.org http://perlmonth.com/
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]