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

Regexp causes data-dependent segv on Linux #6396

Closed
p5pRT opened this issue Mar 26, 2003 · 5 comments
Closed

Regexp causes data-dependent segv on Linux #6396

p5pRT opened this issue Mar 26, 2003 · 5 comments

Comments

@p5pRT
Copy link

p5pRT commented Mar 26, 2003

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

Searchable as RT21710$

@p5pRT
Copy link
Author

p5pRT commented Mar 26, 2003

From Chuck.Phillips@Vericept.com

Platforms​:

Redhat 7.2 (Perl 5.6)
Redhat 7.3 (Perl 5.6.1) (perl -V info included below)
Gentoo Current (Perl 5.8)

Following line causes segv​:

# perl -e '$a=`cat segv.dat`; $a=~ s/(?​:(?​:[^A-Za-z]+)|[A-Za-z][A-Za-z]?)*//; print $a'

bzip2'd "segv.dat" included below.

  Hope this helps,
  Chuck

################################################################
Summary of my perl5 (revision 5.0 version 6 subversion 1) configuration​:
  Platform​:
  osname=linux, osvers=2.4.17-0.13smp, archname=i386-linux
  uname='linux daffy.perf.redhat.com 2.4.17-0.13smp #1 smp fri feb 1 10​:30​:48 est 2002 i686 unknown '
  config_args='-des -Doptimize=-O2 -march=i386 -mcpu=i686 -Dcc=gcc -Dcf_by=Red Hat, Inc. -Dcccdlflags=-fPIC -Dinstallprefix=/usr -Dprefix=/usr -Darchname=i386-linux -Dvendorprefix=/usr -Dsiteprefix=/usr -Uusethreads -Uuseithreads -Uuselargefiles -Dd_dosuid -Dd_semctl_semun -Di_db -Di_ndbm -Di_gdbm -Di_shadow -Di_syslog -Dman3ext=3pm'
  hint=recommended, useposix=true, d_sigaction=define
  usethreads=undef use5005threads=undef useithreads=undef usemultiplicity=undef
  useperlio=undef d_sfio=undef uselargefiles=undef usesocks=undef
  use64bitint=undef use64bitall=undef uselongdouble=undef
  Compiler​:
  cc='gcc', ccflags ='-fno-strict-aliasing -I/usr/local/include',
  optimize='-O2 -march=i386 -mcpu=i686',
  cppflags='-fno-strict-aliasing -I/usr/local/include'
  ccversion='', gccversion='2.96 20000731 (Red Hat Linux 7.2 2.96-109)', gccosandvers='' intsize=4, longsize=4, ptrsize=4, doublesize=8, byteorder=1234
  d_longlong=define, longlongsize=8, d_longdbl=define, longdblsize=12
  ivtype='long', ivsize=4, nvtype='double', nvsize=8, Off_t='off_t', lseeksize=4
  alignbytes=4, usemymalloc=n, prototype=define
  Linker and Libraries​:
  ld='gcc', ldflags =' -L/usr/local/lib'
  libpth=/usr/local/lib /lib /usr/lib
  libs=-lnsl -ldl -lm -lc -lcrypt -lutil
  perllibs=-lnsl -ldl -lm -lc -lcrypt -lutil
  libc=/lib/libc-2.2.5.so, so=so, useshrplib=false, libperl=libperl.a
  Dynamic Linking​:
  dlsrc=dl_dlopen.xs, dlext=so, d_dlsymun=undef, ccdlflags='-rdynamic'
  cccdlflags='-fPIC', lddlflags='-shared -L/usr/local/lib'

Characteristics of this binary (from libperl)​:
  Compile-time options​:
  Built under linux
  Compiled at Apr 1 2002 12​:23​:22
  %ENV​:
  PERL5LIB="/home/cdp/pl"
  @​INC​:
  /home/cdp/pl
  /usr/lib/perl5/5.6.1/i386-linux
  /usr/lib/perl5/5.6.1
  /usr/lib/perl5/site_perl/5.6.1/i386-linux
  /usr/lib/perl5/site_perl/5.6.1
  /usr/lib/perl5/site_perl/5.6.0
  /usr/lib/perl5/site_perl
  /usr/lib/perl5/vendor_perl/5.6.1/i386-linux
  /usr/lib/perl5/vendor_perl/5.6.1
  /usr/lib/perl5/vendor_perl
  .
################################################################

@p5pRT
Copy link
Author

p5pRT commented Mar 26, 2003

@p5pRT
Copy link
Author

p5pRT commented Jul 18, 2003

From Chuck.Phillips@Vericept.com

I've confirmed this is also an issue on Redhat 9's Perl 5.8.

Haven't heard anything back. Was wondering about the current status.

  Chuck

@p5pRT
Copy link
Author

p5pRT commented Sep 29, 2010

From @cpansprout

This was fixed in perl 5.10.0 when the regexp engine was made iterative.

@p5pRT
Copy link
Author

p5pRT commented Sep 29, 2010

@cpansprout - 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