Hi

I don't know the innards of Apache, mod_perl or how modules work with Apache, and you may have already realised the core of the problem.

You have a hash ref, $self, and attempt to access $self{data}. Because of my C history I tend to regard references as pointers to something.

So when you use $self you are using the pointer itself, when you use $$self you are accessing what the pointer points to; in perl speak I think this is dereferencing.

$self is not undefined or NULL, but the dereferencing isn't happening so we have no idea what $self{data} attempts to retrieve.

The {data} part will probably be translating to an offset memory address using $self as the starting point.

So you start where the pointer is and then select a piece of memory near it when you really meant to start at the piece of memory the pointer points to and then select the memory near that.

There's no knowing what you are attempting to access but, in C, the attempt might well throw a segmentation fault.

The issue you have is that it isn't being trapped

Do you know if it is repeatable with another data set and another machine and OS?


In reply to Re: Handler syntax error causes an apache segfault during startup by LesleyB
in thread Handler syntax error causes an apache segfault during startup by pjotrik

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.