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
segfault with PerlIO::get_layers() #8213
Comments
From Peter.Dintelmann@dresdner-bank.comThis is a bug report for perl from Peter.Dintelmann@dresdner-bank.com, Calling PerlIO::get_layers() with an argument which is neither $ /opt/perl32/bin/perl -e 'PerlIO::get_layers undef' $ /opt/perl32/bin/perl -e 'PerlIO::get_layers 123' This is only to confirm my new nickname from the "This week..." The patch below tries to fix this and the code now runs ok. $ PERLIO=:utf8 /opt/perl32/bin/perl -le '$,=$/; print \ Proposed patch: $ diff -ur universal.c.ori universal.c Inline Patch--- universal.c.ori Wed Nov 16 14:20:35 2005
+++ universal.c Wed Nov 16 14:46:29 2005
@@ -619,7 +619,7 @@
if (!isGV(sv)) {
if (SvROK(sv) && isGV(SvRV(sv)))
gv = (GV*)SvRV(sv);
- else
+ else if (SvPOKp(sv))
gv = gv_fetchpv(SvPVX(sv), FALSE, SVt_PVIO);
}
---
Site configuration information for perl v5.8.7: Configured by p013176 at Wed Jun 1 15:12:46 MEST 2005. Summary of my perl5 (revision 5 version 8 subversion 7) configuration: Locally applied patches: @INC for perl v5.8.7: Environment for perl v5.8.7: |
From @smpeters
Thanks! I applied this as change #26144. |
The RT System itself - Status changed from 'new' to 'open' |
@smpeters - Status changed from 'open' to 'resolved' |
Migrated from rt.perl.org#37694 (status was 'resolved')
Searchable as RT37694$
The text was updated successfully, but these errors were encountered: