Re: Scripts works under CGI but not under mod_perl (and thread stack size)

2007-08-14 Thread Manoj Bist
Is it possible to change the stack size in mod_perl(Similar to ulimit -s unlimited etc.)? Thanks, Manoj. On 8/13/07, Manoj Bist <[EMAIL PROTECTED]> wrote: > > Hi Perrin, > > Is there some recommended way to detect if STDOUT is being manipulated? > This is what I am doing. > > 1. Build a standalo

Re: Scripts works under CGI but not under mod_perl (and thread stack size)

2007-08-14 Thread Perrin Harkins
On 8/14/07, Manoj Bist <[EMAIL PROTECTED]> wrote: > Is it possible to change the stack size in mod_perl(Similar to ulimit -s > unlimited etc.)? The stack size? What are you trying to do? I'm not aware of anything special about stack size in mod_perl that would be different from any other compile

Re: Scripts works under CGI but not under mod_perl (and thread stack size)

2007-08-14 Thread William A. Rowe, Jr.
Perrin Harkins wrote: > On 8/14/07, Manoj Bist <[EMAIL PROTECTED]> wrote: >> Is it possible to change the stack size in mod_perl(Similar to ulimit -s >> unlimited etc.)? > > The stack size? What are you trying to do? I'm not aware of anything > special about stack size in mod_perl that would be

Re: Scripts works under CGI but not under mod_perl (and thread stack size)

2007-08-14 Thread Perrin Harkins
On 8/14/07, William A. Rowe, Jr. <[EMAIL PROTECTED]> wrote: > Few issues here running threaded, but that depends on a host of other > decisions (ancient library bindings, different host contexts, etc). It definitely could be the cause of issues with a C library using sockets that isn't written to

Re: Scripts works under CGI but not under mod_perl (and thread stack size)

2007-08-14 Thread William A. Rowe, Jr.
Perrin Harkins wrote: > > It definitely could be the cause of issues with a C library using > sockets that isn't written to be threadsafe. The general reason to > use prefork though is the more efficient use of memory due to > copy-on-write. I'm familiar with copy-on-write. Could you elaborate?

Re: Scripts works under CGI but not under mod_perl (and thread stack size)

2007-08-14 Thread Perrin Harkins
On 8/14/07, William A. Rowe, Jr. <[EMAIL PROTECTED]> wrote: > I'm familiar with copy-on-write. Could you elaborate? From httpd's > perspective, those same gains are true of worker as well. Perl's threads don't share much. Most of the memory is used for data structures, and these are fully dupli

Re: Scripts works under CGI but not under mod_perl (and thread stack size)

2007-08-14 Thread Manoj Bist
Hi Perrin, Thanks for the response. I am using threaded MPM. The self-contained program that I created crashes if I set the stack size to 256K (using ulimit -s). At higher stack size limits it works fine. That's why I want to try bumping up the stack size for apache/mod_perl. So far I have not be

Re: Scripts works under CGI but not under mod_perl (and thread stack size)

2007-08-14 Thread William A. Rowe, Jr.
Manoj Bist wrote: > > That's why I want to try bumping up the stack size for > apache/mod_perl. So far I have not been able to find out if that is > possible in apache2. 0. Dude - I gave you the answer hours ago http://httpd.apache.org/docs/2.0/mod/quickreference.html search for the word "stack

Re: Scripts works under CGI but not under mod_perl (and thread stack size)

2007-08-14 Thread William A. Rowe, Jr.
William A. Rowe, Jr. wrote: > > http://httpd.apache.org/docs/2.0/mod/quickreference.html > > search for the word "stack" and answer your own question So... testing against worker mpm, the answer is no; ThreadStackSize is not a supported directive. Sorry - I'm not often in the internals of prefo

Re: Scripts works under CGI but not under mod_perl (and thread stack size)

2007-08-16 Thread Manoj Bist
Thanks a lot Perrin for advising to run prefork. I switched to prefork and I am now able to successfully run apache2 under the debugger/valgrind. I was finally able to narrow down the problem to symbol clashes between two shared libraries for which perl bindings were written. Using the right link