Skip Menu |

This queue is for tickets about the Params-Validate CPAN distribution.

Report information
The Basics
Id: 50412
Status: resolved
Priority: 0/
Queue: Params-Validate

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

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



Subject: Segfault in Validate.so (Params::Validate)
#!/usr/bin/perl use Params::Validate ; my %x= %!; sub _w($@){ my $mess = shift; my %opt = validate( @_, { user=>0, d=>0} ); print STDERR $mess, "\n"; } _w "yyy". d=>\%!; # here is typo instead of ,(comma) is . (dot) this script produce a segfault. ( perl-10.0.0 Linux ) Oct 12 14:13:57 toh-dev kernel: perl[25096]: segfault at e ip 00007f573ba438ed sp 00007fff44e8ef90 error 4 in Validate.so[7f573ba3b000+c000]
On Mon Oct 12 06:15:52 2009, GRIAN wrote: Show quoted text
> #!/usr/bin/perl > use Params::Validate ; > my %x= %!; > sub _w($@){ > my $mess = shift; > my %opt = validate( @_, { user=>0, d=>0} ); > print STDERR $mess, "\n"; > } > > _w "yyy". d=>\%!; # here is typo instead of ,(comma) is . (dot) > > this script produce a segfault. ( perl-10.0.0 Linux ) > > Oct 12 14:13:57 toh-dev kernel: perl[25096]: segfault at e ip > 00007f573ba438ed sp 00007fff44e8ef90 error 4 in > Validate.so[7f573ba3b000+c000]
I spent some time on this and I just cannot figure out how to fix it. Just to record this knowledge somewhere ... It segfaults in a call to SvGETMAGIC() on a hash entry from %!. This doesn't make sense, since the hash _is_ magical, and this call should just work.