Perl / perl5

🐪 The Perl programming language
https://dev.perl.org/perl5/
Other
1.96k stars 556 forks source link

bug in perl 5.6 regular expressions on Solaris sun4 #4249

Closed p5pRT closed 20 years ago

p5pRT commented 23 years ago

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

Searchable as RT7367$

p5pRT commented 23 years ago

From sachidan@cshl.org

This is a bug report for perl from ravi@​cshl.org\, generated with the help of perlbug 1.20 running under perl 5.00404.

I am reporting a reproducible bug that I noticed in regular expressions in perl5.6 on solaris sun4 machines. I am including a uuencoded tar gzip file that contains the test program with comments to reproduce the bug. I send an earlier version which had only a tar gzip file. I do not know which is better worse and apologize for sending the report twice.

Thanks Ravi Sachidanandam ravi@​cshl.org UUENDCODED FILE BEGINS

begin 644 perlbug.tar.gz M'XL("-)V83L``W!E\<FQB=6\<N=&%R`.U;;8\41Y+VUYU?4?*N!)SF_06P\9PV MG\<​:Y2!​:L3.+3W>T*%=4U-2UZNF>[JS&SEO>W7\;S/%'=/8`Q'.RM=11\,=U56 M9F1DO$=D]F4[GSQ;=GN??\<1K?_]X_\Z=.^5[_V!__T3?M^W;K\_V[QP=[1^6 MCX-ROW]P>'*X_]G)QT3*K^6BK^=ERGG]8OQ+_=[VWE9Q=(A%'1P='WY8)#_> M=2G^MR_KB\M)N]N_[#_X'.#V\?$;^']T='ATV_E_N(]^!\=W#HJ\?'!\,7G/] M/^=_3CF%E%+.\,63[L.?26#[+E?$Z!#R4?J5/M#YE1\,AXCC'955ICP(C2U4!9 M6RAO#6#7=7W7-;7]->5_;\<]]UW1=;?_KQMXU3=?W?=W;F[H\EA'X1F?\<]W77 M-QAHO1M"LWOK!T#6IRD@​\,\,`​:.K^WUC(-YC\\`O4&UN\]Y\`UI@&#8203;6\-YR\]MIU];*O MTF+S%/!XW1EVY;ZQY@​*S@​*BQ$L.EMG\VKNOQ6&;%8HDW\;]^#Z37^P'=U;.A M​:3T\,\#!Z'1​:F74'0V\;G​:=3​:8\,D\<T6L.PFR\)]]O0M^\)^1A5+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]`G#((86@​\9!G?`^60O`0"8#V4PF1^JF]\,FU+`() M"+]UHKY(3J52)M'9I@​[4!`;2C*'M(;OA@​0[$S)7​:U"9J")\<IOAF#\,A$+>\<`1 M2!\,&.6[+IEZ9+$\<*-HA$)5-T3OLE\,G+^\,M​:6&A7>4W>S​:.8FSM8'!36[%H+; M21`D1>H&64=+B9L$S4DT\<XE&(\,M\RO["N((!6\<H'`R>"8'6@​/\,R&8RDXXB44 M-\@​\<&B"`;AAH#R$9W2SD$0[​:I1.AOP*5CD$JO7S/^`P1&O.+#MZZ[]WIF??. M(+*MUS`ENI`=\`CB!0XJD4(&1#L50"CVTPC96\IOH#G-\,JL4P."B*"\2DCXE MOTE?B?0.\,K\,&)R8ZADB^#%XITL7Y?)@​PI\,'4TMS2#@​;​:;S(PT​:YR#\<SZ$H@​/ MS0(UI*!4)TI3H/$!\<\<1IBDD.D\,\,@​EP=--2V+$+CDJ​:-3.W/Z(\,\3\,5XM6?*2 MZ7REFF**['QR2P/Z8(UN`G)ROY\DM%A33'1F[A-`(/?​:&​:\,Q\<7;'0A]BJT@​4 M;J\&#8203;:\*1"BD\*?\\\!^D\)\*\!B\<N"Y"\<I\.1PI4\#75\#\.@&#8203;U'"E\!\*E3\!=$[U/@​I9$03'0 M208BF\G\)%\+\)\(8\!X\(03G\!D"P&#8203;:N>@&#8203;H\(B\(G915$\*I=6FY9/N`A+`/ER_WTFA&+ MG(@​V"*8P9T4B6EAR38\​:%14K)!`W0TA@​$E+64HDC93U'Q5%!GT'PRA-\4J\( M7X$\4P=E;4P4$\LSLV\,F8\.$\]H\_Z&&#8203;::\,2B\(X1\,&#8203;:/WOE;0JK@&#8203;;@&#8203;72/SYHY@&#8203;26 M#&S-TT8/!17B)9H&*2GMH>PO8@​Q%+>2%U)]ZH7!\,LL/PD;Q-4K8$5@​5%NPJ( M@​GA-J1C"91"7)*23"@​I8$]N]^L\,0BG%68#"5&3"Z42%ODX=4X#E]`Z5#_23W M%"$7LT`A\,+6A`61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JEOSF MV7QVX8NX]66UTOR=HN8MM'TV77Q9/7E\GWH"S7A\<^GV-2-?0M​:#\,K;)&CRS. M^J9MJNJD.BQ>KCHX_G+_SI\<G1Z7+'Q\\C*3))KH(*T[V$$?OO6+LW]SWS​:]+ FA-\<^M=MW`GIMU*_HB"Z[[QU6?;H^79^N3]>__/4_TT+-"0!0``#L ` end


Site configuration information for perl 5.00404​:

Configured by serafino at Wed Aug 5 02​:41​:36 EDT 1998.

Summary of my perl5 (5.0 patchlevel 4 subversion 4) configuration​:   Platform​:   osname=solaris\, osvers=2.6\, archname=sun4-solaris   uname='sunos geode 5.6 generic_105181-06 sun4u sparc sunw\,ultra-5_10 '   hint=recommended\, useposix=true\, d_sigaction=define   bincompat3=y useperlio=undef d_sfio=undef   Compiler​:   cc='cc'\, optimize='-O'\, gccversion=   cppflags='-I/usr/local/include'   ccflags ='-I/usr/local/include'   stdchar='unsigned char'\, d_stdstdio=define\, usevfork=false   voidflags=15\, castflags=0\, d_casti32=define\, d_castneg=define   intsize=4\, alignbytes=8\, usemymalloc=y\, prototype=define   Linker and Libraries​:   ld='cc'\, ldflags =' -L/usr/local/lib'   libpth=/usr/local/lib /lib /usr/lib /usr/ccs/lib   libs=-lsocket -lnsl -ldl -lm -lc -lcrypt   libc=/lib/libc.so\, so=so   useshrplib=false\, libperl=libperl.a   Dynamic Linking​:   dlsrc=dl_dlopen.xs\, dlext=so\, d_dlsymun=undef\, ccdlflags=' '   cccdlflags='-Kpic'\, lddlflags='-G -L/usr/local/lib'

Locally applied patches​:  


@​INC for perl 5.00404​:   /home/sachidan/lib/perl5   /home/sachidan/lib/perl5/site_perl   /usr/local/lib/perl5/sun4-solaris/5.00404   /usr/local/lib/perl5   /usr/local/lib/perl5/site_perl/sun4-solaris   /usr/local/lib/perl5/site_perl   .


Environment for perl 5.00404​:   HOME=/home/sachidan   LANG (unset)   LD_LIBRARY_PATH=/usr/lib​:/usr/dt/lib​:/usr/openwin/lib​:/usr/lang/SUNWspro/lib​:/oracle1/app/oracle/product/8.0.5/lib   LOGDIR (unset)   PATH=/oracle1/app/oracle/product/8.0.5/bin​:/opt/bin​:/home/sachidan/phrap/​:/export/wiglerdb/ncbi/build/​:/home/bioprog/bin/​:/home/sachidan/washUStuff​:/home/sachidan/bin​:/home/sachidan/RepeatMasker04042000​:/home/sachidan/bin​:/home/sachidan/repeat_masker/RepeatMasker050599​:/usr/local/bin​:/usr/X/bin​:/usr/bin​:/bin​:/usr/sbin/​:/sbin​:/usr/local/games​:/home/bio/wublast​:/usr/ccs/bin​:/usr/lang/SUNWspro/bin​:.   PERL5LIB=/home/sachidan/lib/perl5​:/home/sachidan/lib/perl5/site_perl   PERL_BADLANG (unset)   SHELL=/bin/tcsh

p5pRT commented 23 years ago

From [Unknown Contact. See original ticket]

Ravi Sachidanandam \sachidan@&#8203;cshl\.org wrote​: :I am reporting a reproducible bug that I noticed in regular expressions :in perl5.6 on solaris sun4 machines.

Thanks for the report. This is a known bug in the regexp optimizer\, already fixed in perl-5.6.1.

Hugo van der Sanden