vrak has asked for the wisdom of the Perl Monks concerning the following question:

I have been tinkering with mod_perl2 and apache2 in an attempt to learn something remotely useful. In my journies, I have come upon a wierd phenomenon.

My script, which is so far a simple attempt at making a blog, will when I use the variant with the sub-routines crash its apache2 child that runs it, but only the second time that child is used (that is, the first time the child is re-used). It crashes badly too, with a SIG11. In an attempt to atleast narrow the problem, I stripped it down significantly, and when I removed all traces of sub-routines it worked like a charm, with no problems.

Therefore I humbly ask if anyone here is capable of helping me in my quest of getting rid of these errant and highly annoying SIG11's.

I ran both the stripped one and the original through perltidy and had it make some nice .html versions of them. The stripped one can be found here, and the original one can be found here.

-- vrak
  • Comment on mod_perl2 + sub-routines == apache2 child SIG11

Replies are listed 'Best First'.
Re: mod_perl2 + sub-routines == apache2 child SIG11
by perrin (Chancellor) on Jul 09, 2004 at 21:12 UTC
    There's a bit too much difference between the versions. If you just put one sub back in, does it crash? There are instructions for sending segfault bug reports to the mod_perl devs here.
      I know the two pieces are quite different. And to answer your question, yes, according to my memory even one sub results in the crashes. I'll go poke the mod_perl devs.

      Thanks.

      -- vrak
Re: mod_perl2 + sub-routines == apache2 child SIG11
by diotalevi (Canon) on Jul 09, 2004 at 21:02 UTC

    Please change your links so that the source you are describing is hosted on perlmonks.org. You can respond to your node and put the source code in readmore tags so it doesn't all display at once.

    <p>The stripped one</p>
    <readmore>Lots of source code here</readmore>
    <p>The original one</p>
    <readmore>Lots of source code here</readmore>
      I added external links just in case anyone wanted to see the code in question. I can't really point to a specific piece of code as being guilty of doing this, and embedding all of that code would make this post awfully big. The code shouldn't really be needed, though.
      -- vrak
        The point is not the size of your post. The point is so that a year from now when someone is looking at this node and you've removed your links, the context for the question will still be there.