Re: [mp2] Problem with forking cleanup in high request rate server

2003-09-26 Thread Stas Bekman
Scot Martin wrote: Sorry about the last post. This one is definately plain text. The good news is that I've distilled the problem down to a one line change in my httpd.conf file. With the following line, Apache drops a core when spawn_proc_prog() is called: PerlTransHandler Apache::OK The

Re: [mp2] Problem with forking cleanup in high request rate server

2003-09-25 Thread Scot Martin
Sorry about the last post. This one is definately plain text. The good news is that I've distilled the problem down to a one line change in my httpd.conf file. With the following line, Apache drops a core when spawn_proc_prog() is called: PerlTransHandler Apache::OK The above line causes

Re: [mp2] Problem with forking cleanup in high request rate server

2003-09-24 Thread Scot Martin
Stas Bekman wrote: >> When spawn_proc_prog() is called I get a segfault in strrchr when >> modperl_spawn_proc_prog calls ap_make_dirstr_parent, which then calls >> strrchr. Unfortunately, my Perl 5.8 and Apache are not compiled with >> debugging on so I'm recompiling all now. More later >

Re: [mp2] Problem with forking cleanup in high request rate server

2003-09-23 Thread Stas Bekman
Scot Martin wrote: Thanks for the reply. I'd figured out earlier today that I probably should be using Apache::SubProcess so it's good to see confirmation. A few lines of code replaced 50+. It's a good thing. Perl can only get better ;) When spawn_proc_prog() is called I get a segfault in strrc

Re: [mp2] Problem with forking cleanup in high request rate server

2003-09-23 Thread Scot Martin
Thanks for the reply.  I'd figured out earlier today that I probably should be using Apache::SubProcess so it's good to see confirmation.  A few lines of code replaced 50+.  It's a good thing.   When spawn_proc_prog() is called I get a segfault in strrchr when modperl_spawn_proc_prog calls ap_make_

Re: [mp2] Problem with forking cleanup in high request rate server

2003-09-23 Thread Stas Bekman
Scot Martin wrote: mp1.99.10-dev Apache 2.0.47 Solaris 8 I'm building a single-purpose, high-performance, multi-threaded application server using the above and have run into problems with forking and cleanup of old httpd instances. Yes, I have to fork and exec as I have to call some legacy C code