New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
sigsegv with perl 5.6 #1811
Comments
From pixel@mandrakesoft.comCreated by pixel@kenobi.mandrakesoft.comSmallest i got: ******************** __DATA__ Perl Info
|
From [Unknown Contact. See original ticket]Pixel writes:
Here is the bt on the core: [1] free(0x126815, 0x0, 0x0, 0x0, 0x0, 0x0), at 0x33b64 Note sv_clear(0). Ilya |
From @gsarOn Mon, 10 Apr 2000 17:00:59 EDT, Ilya Zakharevich wrote:
Here's the fix for that. Sarathy Inline Patch-----------------------------------8<-----------------------------------
Change 5983 by gsar@auger on 2000/04/28 07:15:04
numeric conversion of non-number in change#3378 tramples on
OOK offset, causing segfaults
Affected files ...
... //depot/perl/sv.c#228 edit
Differences ...
==== //depot/perl/sv.c#228 (text) ====
Index: perl/sv.c
--- perl/sv.c.~1~ Fri Apr 28 00:15:08 2000
+++ perl/sv.c Fri Apr 28 00:15:08 2000
@@ -1483,8 +1483,8 @@
if (SvTYPE(sv) < SVt_PVIV)
sv_upgrade(sv, SVt_PVIV);
+ (void)SvIOK_on(sv);
SvIVX(sv) = 0;
- (void)SvIOK_on(sv);
if (ckWARN(WARN_NUMERIC))
not_a_number(sv);
}
@@ -1637,10 +1637,10 @@
if (SvTYPE(sv) < SVt_PVIV)
sv_upgrade(sv, SVt_PVIV);
+ (void)SvIOK_on(sv);
+ (void)SvIsUV_on(sv);
SvUVX(sv) = 0; /* We assume that 0s have the
same bitmap in IV and UV. */
- (void)SvIOK_on(sv);
- (void)SvIsUV_on(sv);
if (ckWARN(WARN_NUMERIC))
not_a_number(sv);
}
End of Patch. |
Migrated from rt.perl.org#3073 (status was 'resolved')
Searchable as RT3073$
The text was updated successfully, but these errors were encountered: