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 binmode ":pop" #8205
Comments
From Peter.Dintelmann@dresdner-bank.comThis is a bug report for perl from Peter.Dintelmann@dresdner-bank.com, Calling binmode() after popping the last IO layer results in a $ /opt/perl32/bin/perl -e 'binmode STDIN, ":pop"; \ The patch below tries to fix this. The code now runs ok. $ /opt/perl32/bin/perl -le 'binmode STDIN, ":pop"; \ Proposed patch: Inline Patch--- perlio.c Thu Nov 10 10:38:40 2005
+++ perl-5.8.7/perlio.c Fri Nov 11 14:23:19 2005
@@ -1285,9 +1285,9 @@
int
PerlIO_binmode(pTHX_ PerlIO *f, int iotype, int mode, const char *names)
{
- PerlIO_debug("PerlIO_binmode f=%p %s %c %x %s\n",
- (void*)f, PerlIOBase(f)->tab->name, iotype, mode,
- (names) ? names : "(Null)");
+ PerlIO_debug("PerlIO_binmode f=%p %s %c %x %s\n", (void*)f,
+ (PerlIOBase(f)) ? PerlIOBase(f)->tab->name : "(Null)",
+ iotype, mode, (names) ? names : "(Null)");
if (names) {
/* Do not flush etc. if (e.g.) switching encodings.
if a pushed layer knows it needs to flush lower layers
---
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 @smpetersThanks, patch applied with change #26101. |
The RT System itself - Status changed from 'new' to 'open' |
@smpeters - Status changed from 'open' to 'resolved' |
Migrated from rt.perl.org#37657 (status was 'resolved')
Searchable as RT37657$
The text was updated successfully, but these errors were encountered: