develooper Front page | perl.perl5.porters | Postings from June 2010

[perl #76078] Reproducible Interpreter crash on FC13, Perl 5.10.1 installing CPAN Compress::PPMd

Thread Next
From:
perlbug-followup
Date:
June 25, 2010 03:00
Subject:
[perl #76078] Reproducible Interpreter crash on FC13, Perl 5.10.1 installing CPAN Compress::PPMd
Message ID:
rt-3.6.HEAD-4976-1277446667-1275.76078-75-0@perl.org
# New Ticket Created by   
# Please include the string:  [perl #76078]
# in the subject line of all future correspondence about this issue. 
# <URL: http://rt.perl.org/rt3/Ticket/Display.html?id=76078 >


This is a bug report for perl from tlhackque@yahoo.com,
generated with the help of perlbug 1.39 running under perl 5.10.1.


-----------------------------------------------------------------
[Please describe your issue here]
Perl crashes reproducibly using
CPAN install Compres::PPMd

Segfaults every time.  Below find session transcript, syslog

cpan[126]> install Compress::PPMd
Running install for module 'Compress::PPMd'
Running make for S/SA/SALVA/Compress-PPMd-0.11.tar.gz
Checksum for /home/litt/.cpan/sources/authors/id/S/SA/SALVA/Compress-PPMd-0.11.tar.gz ok
Compress-PPMd-0.11/
Compress-PPMd-0.11/Types.hpp
Compress-PPMd-0.11/t/
Compress-PPMd-0.11/t/3_rubbish.t
Compress-PPMd-0.11/t/2_die.t
Compress-PPMd-0.11/t/4_pods.t
Compress-PPMd-0.11/t/1_quijote.t
Compress-PPMd-0.11/t/0_use.t
Compress-PPMd-0.11/Exception.hpp
Compress-PPMd-0.11/SubAlloc_impl.hpp
Compress-PPMd-0.11/PPMd.xs
Compress-PPMd-0.11/Changes
Compress-PPMd-0.11/Model.cpp
Compress-PPMd-0.11/Buffer.hpp
Compress-PPMd-0.11/MANIFEST
Compress-PPMd-0.11/typemap
Compress-PPMd-0.11/SubAlloc.hpp
Compress-PPMd-0.11/PPMd.pm
Compress-PPMd-0.11/Wrapper.hpp
Compress-PPMd-0.11/Constants2.h
Compress-PPMd-0.11/Model.hpp
Compress-PPMd-0.11/Coder.hpp
Compress-PPMd-0.11/ppport.h
Compress-PPMd-0.11/META.yml
Compress-PPMd-0.11/Constants.h.PL
Compress-PPMd-0.11/Constants.h
Compress-PPMd-0.11/Makefile.PL
Compress-PPMd-0.11/README

  CPAN.pm: Going to build S/SA/SALVA/Compress-PPMd-0.11.tar.gz

Checking if your kit is complete...
Looks good
Writing Makefile for Compress::PPMd
cp PPMd.pm blib/lib/Compress/PPMd.pm
/usr/bin/perl /usr/share/perl5/ExtUtils/xsubpp  -typemap /usr/share/perl5/ExtUtils/typemap -typemap typemap  PPMd.xs > PPMd.xsc && mv PPMd.xsc PPMd.c
/usr/bin/perl "-Iblib/arch" "-Iblib/lib" Constants.h.PL Constants.h
g++ -c   -D_REENTRANT -D_GNU_SOURCE -DPERL_USE_SAFE_PUTENV -fno-strict-aliasing -pipe -fstack-protector -I/usr/local/include -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector --param=ssp-buffer-size=4 -m64 -mtune=generic   -DVERSION=\"0.11\" -DXS_VERSION=\"0.11\" -fPIC "-I/usr/lib64/perl5/CORE"   PPMd.c
In file included from Types.hpp:58,
                 from PPMd.xs:8:
Buffer.hpp: In member function ât PPMD_In::GetC()âBuffer.hpp:26: warning: deprecated conversion from string constant to âar*ân file included from Model.hpp:4,
                 from PPMd.xs:9:
Coder.hpp: In member function âid Ari::EncoderNormalize(PPMD_Out*)âCoder.hpp:105: warning: suggest parentheses around ââithin ââoder.hpp: In member function âid Ari::DecoderNormalize(PPMD_In*)âCoder.hpp:139: warning: suggest parentheses around ââithin âân file included from PPMd.xs:10:
Wrapper.hpp: In constructor âMD_Encoder_Perl::PPMD_Encoder_Perl(unsigned int, unsigned int, int, int)âWrapper.hpp:8: warning: deprecated conversion from string constant to âar*ârapper.hpp:10: warning: deprecated conversion from string constant to âar*ârapper.hpp:13: warning: deprecated conversion from string constant to âar*ân file included from PPMd.xs:10:
Wrapper.hpp: In constructor âMD_Decoder_Perl::PPMD_Decoder_Perl(unsigned int, unsigned int, int, int)âWrapper.hpp:46: warning: deprecated conversion from string constant to âar*ârapper.hpp:48: warning: deprecated conversion from string constant to âar*ârapper.hpp:51: warning: deprecated conversion from string constant to âar*âPMd.c: In function âid XS_Compress__PPMd__Encoder_encode(PerlInterpreter*, CV*)âPPMd.c:79: warning: unused variable ârl___notusedâPMd.c: In function âid XS_Compress__PPMd__Encoder_new(PerlInterpreter*, CV*)âPPMd.c:109: warning: unused variable ârl___notusedâPMd.c: In function âid XS_Compress__PPMd__Encoder_reset(PerlInterpreter*, CV*)âPPMd.c:166: warning: unused variable ârl___notusedâPMd.c: In function âid XS_Compress__PPMd__Encoder_DESTROY(PerlInterpreter*, CV*)âPPMd.c:192: warning: unused variable ârl___notusedâPMd.c: In function âid
 XS_Compress__PPMd__Decoder_decode(PerlInterpreter*, CV*)âPPMd.c:218: warning: unused variable ârl___notusedâPMd.c: In function âid XS_Compress__PPMd__Decoder_new(PerlInterpreter*, CV*)âPPMd.c:254: warning: unused variable ârl___notusedâPMd.c: In function âid XS_Compress__PPMd__Decoder_reset(PerlInterpreter*, CV*)âPPMd.c:311: warning: unused variable ârl___notusedâPMd.c: In function âid XS_Compress__PPMd__Decoder_DESTROY(PerlInterpreter*, CV*)âPPMd.c:337: warning: unused variable ârl___notusedâPMd.c: In function âid boot_Compress__PPMd(PerlInterpreter*, CV*)âPPMd.c:365: warning: unused variable ârl___notusedâPMd.c: In function âid XS_Compress__PPMd__Decoder_new(PerlInterpreter*, CV*)âPPMd.c:266: warning: âTVALâay be used uninitialized in this function
PPMd.c: In function âid XS_Compress__PPMd__Encoder_new(PerlInterpreter*, CV*)âPPMd.c:121: warning: âTVALâay be used uninitialized in this function
PPMd.c: In function âid XS_Compress__PPMd__Decoder_decode(PerlInterpreter*, CV*)âPPMd.c:227: warning: âTVALâay be used uninitialized in this function
g++ -c   -D_REENTRANT -D_GNU_SOURCE -DPERL_USE_SAFE_PUTENV -fno-strict-aliasing -pipe -fstack-protector -I/usr/local/include -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector --param=ssp-buffer-size=4 -m64 -mtune=generic   -DVERSION=\"0.11\" -DXS_VERSION=\"0.11\" -fPIC "-I/usr/lib64/perl5/CORE"   Model.cpp
In file included from Types.hpp:58,
                 from Model.cpp:16:
Buffer.hpp: In member function ât PPMD_In::GetC()âBuffer.hpp:26: warning: deprecated conversion from string constant to âar*ân file included from Model.hpp:4,
                 from Model.cpp:17:
Coder.hpp: In member function âid Ari::EncoderNormalize(PPMD_Out*)âCoder.hpp:105: warning: suggest parentheses around ââithin ââoder.hpp: In member function âid Ari::DecoderNormalize(PPMD_In*)âCoder.hpp:139: warning: suggest parentheses around ââithin ââodel.cpp: In member function âid PPM_CONTEXT::encodeSymbol1(int, PPMD_Encoder&)âModel.cpp:121: warning: comparison between signed and unsigned integer expressions
Model.cpp: In member function âid PPM_CONTEXT::encodeSymbol2(int, PPMD_Encoder&)âModel.cpp:230: warning: comparison between signed and unsigned integer expressions
Running Mkbootstrap for Compress::PPMd ()
chmod 644 PPMd.bs
rm -f blib/arch/auto/Compress/PPMd/PPMd.so
g++  -shared -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector --param=ssp-buffer-size=4 -m64 -mtune=generic PPMd.o Model.o  -o blib/arch/auto/Compress/PPMd/PPMd.so        \
                \

chmod 755 blib/arch/auto/Compress/PPMd/PPMd.so
cp PPMd.bs blib/arch/auto/Compress/PPMd/PPMd.bs
chmod 644 blib/arch/auto/Compress/PPMd/PPMd.bs
Manifying blib/man3/Compress::PPMd.3pm
  SALVA/Compress-PPMd-0.11.tar.gz
  /usr/bin/make -- OK
Running make test
PERL_DL_NONLAZY=1 /usr/bin/perl "-MExtUtils::Command::MM" "-e" "test_harness(0, 'blib/lib', 'blib/arch')" t/*.t
t/0_use.t ...... ok
t/1_quijote.t .. Failed 30/31 subtests
t/2_die.t ...... Failed 1/4 subtests
t/3_rubbish.t .. ok
t/4_pods.t ..... ok

Test Summary Report
-------------------
t/1_quijote.t (Wstat: 139 Tests: 1 Failed: 0)
  Non-zero wait status: 139
  Parse errors: Bad plan.  You planned 31 tests but ran 1.
t/2_die.t    (Wstat: 139 Tests: 3 Failed: 0)
  Non-zero wait status: 139
  Parse errors: Bad plan.  You planned 4 tests but ran 3.
Files=5, Tests=34,  1 wallclock secs ( 0.03 usr  0.02 sys +  0.85 cusr  0.05 csys =  0.95 CPU)
Result: FAIL
Failed 2/5 test programs. 0/34 subtests failed.
make: *** [test_dynamic] Error 255
  SALVA/Compress-PPMd-0.11.tar.gz
  /usr/bin/make test -- NOT OK
//hint// to see the cpan-testers results for installing this module, try:
  reports SALVA/Compress-PPMd-0.11.tar.gz
Running make install
  make test had returned bad status, won't install without force
Failed during this command:
 SALVA/Compress-PPMd-0.11.tar.gz              : make_test NO

                                                                                                                                    cpan[127]>

 tail /var/log/messages
Jun 24 17:02:15 hagrid setroubleshoot: SELinux is preventing /usr/bin/freshclam access to a leaked /bin/sh file descriptor. For complete SELinux messages. run sealert -l 81f0c3cd-a249-4587-8a36-144c4bb4f46c
Jun 24 20:02:14 hagrid setroubleshoot: SELinux is preventing /usr/bin/freshclam access to a leaked /bin/sh file descriptor. For complete SELinux messages. run sealert -l 81f0c3cd-a249-4587-8a36-144c4bb4f46c
Jun 24 23:02:46 hagrid setroubleshoot: SELinux is preventing /usr/bin/freshclam access to a leaked /bin/sh file descriptor. For complete SELinux messages. run sealert -l 81f0c3cd-a249-4587-8a36-144c4bb4f46c
Jun 25 01:50:42 hagrid kernel: perl[27989]: segfault at 0 ip 00007fdf32558f59 sp 00007fffd6e5c8f0 error 4 in PPMd.so[7fdf32553000+a000]
Jun 25 01:50:42 hagrid abrt[27991]: saved core dump of pid 27989 (/usr/bin/perl) to /var/cache/abrt/ccpp-1277445042-27989.new/coredump (11345920 bytes)
Jun 25 01:50:42 hagrid abrtd: Directory 'ccpp-1277445042-27989' creation detected
Jun 25 01:50:42 hagrid abrtd: Interpreter crashed, but no packaged script detected: '/usr/bin/perl -w t/1_quijote.t'
Jun 25 01:50:42 hagrid abrtd: Corrupted or bad crash /var/cache/abrt/ccpp-1277445042-27989 (res:4), deleting
Jun 25 01:50:42 hagrid kernel: perl[27992]: segfault at 7ff200007ff2 ip 00007ff2144895ec sp 00007fff8d4031e0 error 4 in PPMd.so[7ff214482000+a000]
Jun 25 01:50:42 hagrid abrt[27993]: not dumping repeating crash in '/usr/bin/perl'



[Please do not change anything below this line]
-----------------------------------------------------------------
---
Flags:
    category=core
    severity=high
---
This perlbug was built using Perl 5.10.1 in the Fedora build system.
It is being executed now by Perl 5.10.1 - Sun Mar  7 06:02:09 UTC 2010.

Site configuration information for perl 5.10.1:

Configured by Red Hat, Inc. at Sun Mar  7 06:02:09 UTC 2010.

Summary of my perl5 (revision 5 version 10 subversion 1) configuration:

  Platform:
    osname=linux, osvers=2.6.18-164.6.1.el5, archname=x86_64-linux-thread-multi
    uname='linux x86-02.phx2.fedoraproject.org 2.6.18-164.6.1.el5 #1 smp tue oct 27 11:28:30 edt 2009 x86_64 x86_64 x86_64 gnulinux '
    config_args='-des -Doptimize=-O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector --param=ssp-buffer-size=4 -m64 -mtune=generic -DDEBUGGING=-g -Accflags=-DPERL_USE_SAFE_PUTENV -Dversion=5.10.1 -Dmyhostname=localhost -Dperladmin=root@localhost -Dcc=gcc -Dcf_by=Red Hat, Inc. -Dprefix=/usr -Dvendorprefix=/usr -Dsiteprefix=/usr/local -Dsitelib=/usr/local/share/perl5 -Dsitearch=/usr/local/lib64/perl5 -Dprivlib=/usr/share/perl5 -Dvendorlib=/usr/share/perl5 -Darchlib=/usr/lib64/perl5 -Dvendorarch=/usr/lib64/perl5 -Dinc_version_list=5.10.0 -Darchname=x86_64-linux-thread-multi -Dlibpth=/usr/local/lib64 /lib64 /usr/lib64 -Duseshrplib -Dusethreads -Duseithreads -Duselargefiles -Dd_dosuid -Dd_semctl_semun -Di_db -Ui_ndbm -Di_gdbm -Di_shadow -Di_syslog -Dman3ext=3pm -Duseperlio -Dinstallusrbinperl=n -Ubincompat5005 -Uversiononly -Dpager=/usr/bin/less -isr -Dd_gethostent_r_proto -Ud_endhostent_r_proto -Ud_sethostent_r_proto
 -Ud_endprotoent_r_proto -Ud_setprotoent_r_proto -Ud_endservent_r_proto -Ud_setservent_r_proto -Dscriptdir=/usr/bin -Dotherlibdirs=/usr/local/lib64/perl5/site_perl/5.10.0/x86_64-linux-thread-multi:/usr/local/lib/perl5/site_perl/5.10.0:/usr/lib64/perl5/vendor_perl/5.10.0/x86_64-linux-thread-multi:/usr/lib/perl5/vendor_perl:/usr/lib/perl5/site_perl'
    hint=recommended, useposix=true, d_sigaction=define
    useithreads=define, usemultiplicity=define
    useperlio=define, d_sfio=undef, uselargefiles=define, usesocks=undef
    use64bitint=define, use64bitall=define, uselongdouble=undef
    usemymalloc=n, bincompat5005=undef
  Compiler:
    cc='gcc', ccflags ='-D_REENTRANT -D_GNU_SOURCE -DPERL_USE_SAFE_PUTENV -fno-strict-aliasing -pipe -fstack-protector -I/usr/local/include -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64',
    optimize='-O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector --param=ssp-buffer-size=4 -m64 -mtune=generic',
    cppflags='-D_REENTRANT -D_GNU_SOURCE -DPERL_USE_SAFE_PUTENV -fno-strict-aliasing -pipe -fstack-protector -I/usr/local/include'
    ccversion='', gccversion='4.4.3 20100211 (Red Hat 4.4.3-6)', 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='gcc', ldflags =' -fstack-protector'
    libpth=/usr/local/lib64 /lib64 /usr/lib64
    libs=-lresolv -lnsl -lgdbm -ldb -ldl -lm -lcrypt -lutil -lpthread -lc
    perllibs=-lresolv -lnsl -ldl -lm -lcrypt -lutil -lpthread -lc
    libc=, so=so, useshrplib=true, libperl=libperl.so
    gnulibc_version='2.11.90'
  Dynamic Linking:
    dlsrc=dl_dlopen.xs, dlext=so, d_dlsymun=undef, ccdlflags='-Wl,-E -Wl,-rpath,/usr/lib64/perl5/CORE'
    cccdlflags='-fPIC', lddlflags='-shared -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector --param=ssp-buffer-size=4 -m64 -mtune=generic'

Locally applied patches:


---
@INC for perl 5.10.1:
    /usr/local/lib64/perl5
    /usr/local/share/perl5
    /usr/local/share/perl5
    /usr/lib64/perl5
    /usr/share/perl5
    /usr/share/perl5
    /usr/lib64/perl5
    /usr/share/perl5
    /usr/local/lib64/perl5/site_perl/5.10.0/x86_64-linux-thread-multi
    /usr/local/lib/perl5/site_perl/5.10.0
    /usr/lib64/perl5/vendor_perl/5.10.0/x86_64-linux-thread-multi
    /usr/lib/perl5/vendor_perl
    /usr/lib/perl5/site_perl
    .

---
Environment for perl 5.10.1:
    HOME=/root
    LANG=en_US.UTF-8
    LANGUAGE (unset)
    LD_LIBRARY_PATH (unset)
    LOGDIR (unset)
    PATH=/usr/lib64/qt-3.3/bin:/usr/kerberos/sbin:/usr/kerberos/bin:/usr/lib64/ccache:/usr/local/bin:/bin:/usr/bin:/usr/local/sbin:/usr/sbin:/sbin:/home/litt/bin
    PERL_BADLANG (unset)
    SHELL=/bin/bash




 ---------------------------------------------------------
This communication may not represent my employer's views,
if any, on the matters discussed.





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