develooper Front page | perl.perl5.porters | Postings from September 2013

[perl #119653] binmode + :via + :utf8 + open => segmentation fault

Thread Previous | Thread Next
From:
James E Keenan via RT
Date:
September 6, 2013 23:45
Subject:
[perl #119653] binmode + :via + :utf8 + open => segmentation fault
Message ID:
rt-3.6.HEAD-1873-1378511143-750.119653-15-0@perl.org
On Fri Sep 06 12:38:23 2013, e.a.bolshakova@yandex.ru wrote:
> This is a bug report for perl from helena@cpan.org,
> generated with the help of perlbug 1.39 running under perl 5.18.1.
> 
> 
> -----------------------------------------------------------------
> [Please describe your issue here]
> 
> I experience segmentation fault, the easiest demonstration:
> 
> > perl -le 'use PerlIO::via::QuotedPrint; binmode(\*STDERR,
>    ":via(PerlIO::via::QuotedPrint):utf8"); open (ERROR, ">&STDERR");'
> zsh: segmentation fault (core dumped)  perl -le
> 
> I observed this behavior on FreeBSD + perl 5.14, perl 5.18, and on
>    Ubuntu + perl 5.10, perl 5.14, perl 5.16.
> On Ubuntu 8.04 + perl 5.8 the code doesn't segfault.
> 
> The problem repeats also with other layers instead of
>    PerlIO::via::QuotedPrint
> (I discovered the problem when using my own custom layer).
> 
> There is a discussion on StackOverflow:
> http://stackoverflow.com/questions/18533538/binmode-mod-perl-2-0-5-
>    parserecdescent-segmentaion-fault
> 
> I was adviced to file this bug, so I do.
> 
> Unfortunately I don't have a patch, but I hope my report will help to
>    locate the problem.
> 
> Thanks.
> 
> 
> Elena Bolshakova
> helena@cpan.org
> 
> [Please do not change anything below this line]
> -----------------------------------------------------------------
> ---
> Flags:
>     category=core
>     severity=medium
> ---
> Site configuration information for perl 5.18.1:
> 
> Configured by ashdaha at Sat Aug 31 18:31:54 MSD 2013.
> 
> Summary of my perl5 (revision 5 version 18 subversion 1)
>    configuration:
> 
>   Platform:
>     osname=freebsd, osvers=9.1-release-p5, archname=amd64-freebsd
>     uname='freebsd ashdaha.com 9.1-release-p5 freebsd 9.1-release-p5
>    #7 r253740: sun jul 28 16:53:08 msk 2013
>    roman@thor.cmc.msu.ru:usrobjusrsrcsysmini amd64 '
>     config_args='-sde -Dprefix=/usr/local
>    -Darchlib=/usr/local/lib/perl5/5.18/mach
>    -Dprivlib=/usr/local/lib/perl5/5.18
>    -Dman3dir=/usr/local/lib/perl5/5.18/perl/man/man3
>    -Dman1dir=/usr/local/man/man1
>    -Dsitearch=/usr/local/lib/perl5/site_perl/5.18/mach
>    -Dsitelib=/usr/local/lib/perl5/site_perl/5.18
>    -Dscriptdir=/usr/local/bin
>    -Dsiteman3dir=/usr/local/lib/perl5/5.18/man/man3
>    -Dsiteman1dir=/usr/local/man/man1 -Ui_malloc -Ui_iconv
>    -Uinstallusrbinperl -Dcc=cc -Duseshrplib -Dinc_version_list=none
>    -Dccflags=-DAPPLLIB_EXP="/usr/local/lib/perl5/5.18/BSDPAN"
>    -Doptimize=-O2 -pipe -fno-strict-aliasing -Ui_gdbm -Duse64bitint
>    -Dusethreads=n -Dusemymalloc=n'
>     hint=recommended, useposix=true, d_sigaction=define
>     useithreads=undef, usemultiplicity=undef
>     useperlio=define, d_sfio=undef, uselargefiles=define,
>    usesocks=undef
>     use64bitint=define, use64bitall=define, uselongdouble=undef
>     usemymalloc=n, bincompat5005=undef
>   Compiler:
>     cc='cc', ccflags ='-
>    DAPPLLIB_EXP="/usr/local/lib/perl5/5.18/BSDPAN" -DHAS_FPSETMASK
>    -DHAS_FLOATINGPOINT_H -fno-strict-aliasing -pipe -fstack-protector
>    -I/usr/local/include',
>     optimize='-O2 -pipe -fno-strict-aliasing',
>     cppflags='-DAPPLLIB_EXP="/usr/local/lib/perl5/5.18/BSDPAN"
>    -DHAS_FPSETMASK -DHAS_FLOATINGPOINT_H -fno-strict-aliasing -pipe
>    -fstack-protector -I/usr/local/include'
>     ccversion='', gccversion='4.2.1 20070831 patched [FreeBSD]',
>    gccosandvers=''
>     intsize=4, longsize=8, ptrsize=8, doublesize=8, byteorder=12345678
>     d_longlong=define, longlongsize=8, d_longdbl=define,
>    longdblsize=16
>     ivtype='long', ivsize=8, nvtype='double', nvsize=8, Off_t='off_t',
>    lseeksize=8
>     alignbytes=8, prototype=define
>   Linker and Libraries:
>     ld='cc', ldflags ='-pthread -Wl,-E  -fstack-protector
>    -L/usr/local/lib'
>     libpth=/usr/lib /usr/local/lib
>     libs=-lgdbm -lm -lcrypt -lutil
>     perllibs=-lm -lcrypt -lutil
>     libc=, so=so, useshrplib=true, libperl=libperl.so
>     gnulibc_version=''
>   Dynamic Linking:
>     dlsrc=dl_dlopen.xs, dlext=so, d_dlsymun=undef, ccdlflags='
>    -Wl,-R/usr/local/lib/perl5/5.18/mach/CORE'
>     cccdlflags='-DPIC -fPIC', lddlflags='-shared  -L/usr/local/lib
>    -fstack-protector'
> 
> Locally applied patches:
> 
> 
> ---
> @INC for perl 5.18.1:
>     /usr/local/lib/perl5/5.18/BSDPAN
>     /usr/local/lib/perl5/site_perl/5.18/mach
>     /usr/local/lib/perl5/site_perl/5.18
>     /usr/local/lib/perl5/5.18/mach
>     /usr/local/lib/perl5/5.18
>     .
> 
> ---
> Environment for perl 5.18.1:
>     HOME=/home/lena
>     LANG=ru_RU.KOI8-R
>     LANGUAGE (unset)
>     LC_ALL=
>     LC_COLLATE=ru_RU.KOI8-R
>     LC_CTYPE=ru_RU.KOI8-R
>     LC_MESSAGES=C
>     LC_MONETARY=ru_RU.KOI8-R
>     LC_NUMERIC=ru_RU.KOI8-R
>     LC_TIME=ru_RU.KOI8-R
>     LD_LIBRARY_PATH (unset)
>     LOGDIR (unset)
>    
PATH=/home/lena/usr/bin:/home/lena/bin:/sbin:/bin:/usr/sbin:/usr/bin:/usr/games:/usr/local/sbin:/usr/local/bin:/home/lena/bin
>     PERL_BADLANG (unset)
>     SHELL=/usr/local/bin/zsh


In Porting/Maintainers.pl, this distribution is marked as 'UPSTREAM' =>
undef.  For lack of a better idea, I'm cc-ing the listed maintainer.

Thank you very much.
Jim Keenan


---
via perlbug:  queue: perl5 status: new
https://rt.perl.org:443/rt3/Ticket/Display.html?id=119653

Thread Previous | Thread Next


nntp.perl.org: Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at ask@perl.org | Group listing | About