Doug MacEachern wrote:
> i started seeing the problem when i moved to a new laptop/kernel.  the 
> original trick did not work for me.  i ended up with the below.  i use 
> 'myrun' to start and run 'apshared' when the pre_config breakpoint is hit.  
> haven't tried with a threaded mpm yet though.

Thanks Doug,

Yes, that get you started, with the attached debug script I get to the 
apr_poll
point under worker (threaded) mpm. Then I get a bunch of threads 
starting with 4
and growing and I have no idea which of the threads is going to run the 
test
script's response. If i just try to switch to various threads, sometimes 
i get nothing,
something I get segfault, sometimes I'm lucky to guess the right thread, 
but then i
get kicked back to the previous thread.

Got no help from httpd-dev list regarding this issue, any hints 
regarding threads debug?

file /home/stas/httpd/worker/bin/httpd
handle SIGPIPE nostop
handle SIGPIPE pass

define myrun
     tbreak main
     break ap_run_pre_config
     run -d `pwd`/t -f `pwd`/t/conf/httpd.conf -DONE_PROCESS 
-DNO_DETATCH -DAPACHE2
     set auto-solib-add 0
     continue
end

define gopoll
     b apr_poll
     continue
     continue
end

myrun
gopoll

sharedlibrary Scoreboard
b mpxs_Apache__Scoreboard_image

the relevant section from httpd.conf is the automatic one:

<IfModule worker.c>
     StartServers         1
     MaxClients           1
     MinSpareThreads      1
     MaxSpareThreads      1
     ThreadsPerChild      1
     MaxRequestsPerChild  0
</IfModule>

this is with the stock perl5.7.3 and the latest httpd cvs


_____________________________________________________________________
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]

Reply via email to