On Thu, Jul 23, 2009 at 09:35:10PM +0200, Tomaž Šolc wrote:
 
> It appears that SvIV() call at src/speedy_perl.c:821 is sometimes called
> on an undef value. SvIV() then tries to trigger a "use of uninitialized
> value" warning, which then bombs out when it can't find the location of
> the call in Perl source.
> 
> I have "#!/usr/bin/speedy -Tw" in my CGI script.
> 
> According to folks at #perl, SvIV() should always be safe to call, even
> outside the interpreter. However, the attached patch appears to fix the
> problem for me (and is probably also a more correct way of doing that if
> statement anyway).

Many thanks for your investigation! I'll happily apply the patch, I agree
it's probably more correct than the current implementation.

> Somebody with deeper knowledge of Perl guts will have to tell if it just
> fixes the symptoms or the cause of the bug.

I've stared at the code for a while now and tried to figure the conditions
that lead to this with no success.

Do you have a test case you could share so I could reproduce the issue?

Cheers,
-- 
Niko Tyni   [email protected]



--
To UNSUBSCRIBE, email to [email protected]
with a subject of "unsubscribe". Trouble? Contact [email protected]

Reply via email to