in reply to Handler syntax error causes an apache segfault during startup
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?
|
|---|