[VPM] perl segfault

Peter Scott Peter at PSDT.com
Fri Feb 13 21:42:50 CST 2004


[BTW, are we meeting this month, and when?  Darren?]

At 05:04 PM 2/13/2004 -0800, abez wrote:
>My supervisor (Dr. German) stumbled across a perl segfault. I 
>determined what it was.
>
>He was printf'ing a string that contained the substring  %ve
>
>If you type at the commandline
>perl -e "printf '%ve'"; echo $?
>
>You will notice the program segfaults and returns with code 139
>(interesting enough this is the netbios/samba port).
>
>I've determined it's the printf trying to print a double which doesn't
>exist and isn't a double.
>
>It doesn't sound very serious but imagine you use a printf in a web app
>and the user types in a %ve..
>
>So if you could test this in your versions it'd be nice.

5.6.1 on Solaris:

% perl -e 'printf "%ve"; print "\n"'; echo $status
0.000000e+00
0

5.8.1 on Fedora core:
$ perl -e 'printf "%ve"; print "\n"'; echo $status
Segmentation fault (core dumped)
139

5.6.0 on Fedora core:
$ ./perl -e 'printf "%ve"; print "\n"' ; echo $status0.000000e+00
0

perl 5.8.3 on Fedora core:
$ ./perl -e 'printf "%ve"; print "\n"' ; echo $status
Segmentation fault (core dumped)
139

Fairly recent bleadperl on Fedora core:
$ ./perl -e 'printf "%ve"; print "\n"' ; echo $status
Segmentation fault (core dumped)
139


I think you've found a bug... go ahead and dust off perlbug and claim 
the honour and glory...


-- 
Peter Scott
Pacific Systems Design Technologies
http://www.perldebugged.com/
*** New! *** http://www.perlmedic.com/




More information about the Victoria-pm mailing list