Skip Menu |

This queue is for tickets about the Wx CPAN distribution.

Report information
The Basics
Id: 73276
Status: open
Priority: 0/
Queue: Wx

People
Owner: Nobody in particular
Requestors: adamk [...] cpan.org
Cc:
AdminCc:

Bug Information
Severity: Important
Broken in: 0.9903
Fixed in: (no value)



Subject: Wx::WindowUpdateLocker->new(undef) segfaults perl
Calling Wx::WindowUpdateLocker->new(undef) causes Perl to segfault. This can easily occur if you are doing a lot of update locking throughout a program and you overlook a single case where the clean up order is different to what you expect, or you lock something not instantiated yet. Please add a check to the method so that Perl at least throws an ordinary die rather than the segfault.
I'll leave this ticket open. Wx is open to many failures like below if incorrect params are passed. It might be a good thing if we had some sort of generic checking code in place possibly created as part of XSpp. On Thu Dec 15 06:21:53 2011, ADAMK wrote: Show quoted text
> Calling Wx::WindowUpdateLocker->new(undef) causes Perl to segfault. > > This can easily occur if you are doing a lot of update locking > throughout a program and you overlook a single case where the clean up > order is different to what you expect, or you lock something not > instantiated yet. > > Please add a check to the method so that Perl at least throws an > ordinary die rather than the segfault.