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.
In reply to Re: cgi thread creation segfault
by Eliya
in thread cgi thread creation segfault
by lelotto85
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |