Skip to content
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

free()s on splice() #9703

Closed
p5pRT opened this issue Apr 8, 2009 · 4 comments
Closed

free()s on splice() #9703

p5pRT opened this issue Apr 8, 2009 · 4 comments

Comments

@p5pRT
Copy link

p5pRT commented Apr 8, 2009

Migrated from rt.perl.org#64550 (status was 'resolved')

Searchable as RT64550$

@p5pRT
Copy link
Author

p5pRT commented Apr 8, 2009

From chris@camk.edu.pl

This is a bug report for perl from chris@​camk.edu.pl,
generated with the help of perlbug 1.36 running under perl 5.10.0.

Perl 5.10 crashes on splice when running a public domain program afm2pfm.pl

  perl -w afm2pfm.pl qagb.afm qagb.pfm

It runs perfectly on perl 5.8 but it reports

  Script started on Wed 08 Apr 2009 12​:01​:08 PM CEST
  $
  $ perl -w afm2pfm.pl qagb.afm qagb.pfm-5.10.0
  This is afm2pfm, ver. 0.20
  panic​: realloc from wrong pool at afm2pfm.pl line 330.
  Attempt to free unreferenced scalar​: SV 0x272c9e0, Perl interpreter​: 0x2543010 at afm2pfm.pl line 330.
  Attempt to free unreferenced scalar​: SV 0x272c968, Perl interpreter​: 0x2543010 at afm2pfm.pl line 330.
  Segmentation fault
  $
  $ exit
  Script done on Wed 08 Apr 2009 12​:01​:45 PM CEST

when run on version 5.10

All files and reports are kept on page http​://users.camk.edu.pl/chris/5.10-bug-afm2pfm/

Thank you

Chris Leszczynski


Flags​:
  category=core
  severity=medium


This perlbug was built using Perl 5.10.0 in the Fedora build system.
It is being executed now by Perl 5.10.0 - Mon Feb 16 13​:34​:18 EST 2009.

Site configuration information for perl 5.10.0​:

Configured by Red Hat, Inc. at Mon Feb 16 13​:34​:18 EST 2009.

Summary of my perl5 (revision 5 version 10 subversion 0) configuration​:
  Platform​:
  osname=linux, osvers=2.6.18-92.1.18.el5, archname=x86_64-linux-thread-multi
  uname='linux x86-1.fedora.phx.redhat.com 2.6.18-92.1.18.el5 #1 smp wed nov 5 09​:00​:19 est 2008 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 -DPERL_USE_SAFE_PUTENV -Dversion=5.10.0 -Dmyhostname=localhost -Dperladmin=root@​localhost -Dcc=gcc -Dcf_by=Red Hat, Inc. -Dprefix=/usr -Dvendorprefix=/usr -Dsiteprefix=/usr/local -Dprivlib=/usr/lib/perl5/5.10.0 -Dsitelib=/usr/local/lib/perl5/site_perl/5.10.0 -Dvendorlib=/usr/lib/perl5/vendor_perl/5.10.0 -Darchlib=/usr/lib64/perl5/5.10.0/x86_64-linux-thread-multi -Dsitearch=/usr/local/lib64/perl5/site_perl/5.10.0/x86_64-linux-thread-multi -Dvendorarch=/usr/lib64/perl5/vendor_perl/5.10.0/x86_64-linux-thread-multi -Dinc_version_list=none -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 -Dpage
r=/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/lib/perl5/site_perl​:/usr/local/lib64/perl5/site_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 -DDEBUGGING -fno-strict-aliasing -pipe -I/usr/local/include -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -I/usr/include/gdbm',
  optimize='-O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector --param=ssp-buffer-size=4 -m64 -mtune=generic -DPERL_USE_SAFE_PUTENV',
  cppflags='-D_REENTRANT -D_GNU_SOURCE -DDEBUGGING -fno-strict-aliasing -pipe -I/usr/local/include -I/usr/include/gdbm'
  ccversion='', gccversion='4.3.2 20081105 (Red Hat 4.3.2-7)', 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 =''
  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.9'
  Dynamic Linking​:
  dlsrc=dl_dlopen.xs, dlext=so, d_dlsymun=undef, ccdlflags='-Wl,-E -Wl,-rpath,/usr/lib64/perl5/5.10.0/x86_64-linux-thread-multi/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 -DPERL_USE_SAFE_PUTENV'

Locally applied patches​:
 


@​INC for perl 5.10.0​:
  /usr/lib64/perl5/5.10.0/x86_64-linux-thread-multi
  /usr/lib/perl5/5.10.0
  /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/5.10.0
  /usr/lib/perl5/vendor_perl
  /usr/local/lib/perl5/site_perl
  /usr/local/lib64/perl5/site_perl
  /usr/lib/perl5/site_perl
  .


Environment for perl 5.10.0​:
  HOME=/home/chris
  LANG=en_US.UTF-8
  LANGUAGE (unset)
  LD_LIBRARY_PATH=/opt/pgi/linux86-64/7.2-4/libso​:/usr/local/lib64​:/opt/intel/fce/10.1.015/lib​:/opt/intel/cce/10.1.015/lib
  LOGDIR (unset)
  PATH=/usr/lib64/qt-3.3/bin​:/opt/pgi/linux86-64/7.2-4/bin​:/usr/local/bin​:/usr/kerberos/bin​:/opt/intel/fce/10.1.015/bin​:/opt/intel/idbe/10.1.015/bin​:/opt/intel/cce/10.1.015/bin​:/usr/lib64/ccache​:/usr/local/bin​:/bin​:/usr/bin​:/usr/local/sbin​:/usr/sbin​:/sbin​:/home/chris/bin
  PERL_BADLANG (unset)
  SHELL=/bin/bash

@p5pRT
Copy link
Author

p5pRT commented Apr 8, 2009

From @iabyn

On Wed, Apr 08, 2009 at 04​:27​:06AM -0700, Krzysztof Leszczynski wrote​:

Perl 5.10 crashes on splice when running a public domain program afm2pfm.pl

perl \-w afm2pfm\.pl qagb\.afm qagb\.pfm

It runs perfectly on perl 5.8 but it reports

This appears to be fixed in blead and 5.10.x

--
Now is the discount of our winter tent
  -- sign seen outside camping shop

@p5pRT
Copy link
Author

p5pRT commented Apr 8, 2009

The RT System itself - Status changed from 'new' to 'open'

@p5pRT
Copy link
Author

p5pRT commented Oct 30, 2010

@iabyn - Status changed from 'open' to 'resolved'

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant