in reply to cgi thread creation segfault
The situation between running the script from the command line and running it from mod_perl is a fundamentally different one. When running it from the command line, your Perl interpreter is a dedicated process, while with mod_perl, the interpreter has been dynamically loaded into the Apache process (as a shared library), i.e. the Perl interpreter and Apache are one and the same process.
Such close cooperation requires the involved parties to behave as expected. And apparently, Apache does not expect the Perl part to create multiple threads of themselves. In other words, Apache - at least the MPM you're using (prefork?) - doesn't seem to be thread-safe.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: cgi thread creation segfault
by lelotto85 (Initiate) on Dec 28, 2011 at 14:01 UTC | |
by Eliya (Vicar) on Dec 28, 2011 at 14:19 UTC | |
|
Re^2: cgi thread creation segfault
by mbethke (Hermit) on Dec 28, 2011 at 18:07 UTC | |
by lelotto85 (Initiate) on Dec 28, 2011 at 19:33 UTC | |
by mbethke (Hermit) on Dec 28, 2011 at 23:46 UTC | |
by lelotto85 (Initiate) on Dec 29, 2011 at 08:59 UTC | |
by lelotto85 (Initiate) on Dec 29, 2011 at 08:49 UTC |