develooper Front page | perl.perl5.porters | Postings from October 2001

[ID 20011026.056] perl program hang with study and pattern match

Thread Next
From:
John E. Tysko
Date:
October 26, 2001 13:14
Subject:
[ID 20011026.056] perl program hang with study and pattern match
Message ID:
200110262013.f9QKDgp18679@prime.cs.ohiou.edu
This is a bug report for perl from tysko@prime.cs.ohiou.edu,generated with the help of perlbug 1.33 running under perl v5.6.1.-----------------------------------------------------------------[Please enter your report here]Perl will hang (infinite loop) when running the enclosed programand input.   #!/usr/local/bin/perl   # use as input several random lines,    # then 1 line with   " .xx/" on it.   #program hangs.   while (<>) {   chop;   study;   print " Start\n";   if (/ ..\/$/) {print " Found\n";}   print " done\n";   }Input several lines, and program loops find. Input .xx/and Perl hangs.[Please do not change anything below this line]--------------------------------------------------------------------Flags:    category=core    severity=high---Site configuration information for perl v5.6.1:Configured by tysko at Tue Aug 21 07:39:52 EDT 2001.Summary of my perl5 (revision 5.0 version 6 subversion 1) configuration:  Platform:    osname=solaris, osvers=2.8, archname=sun4-solaris    uname='sunos prime.cs.ohiou.edu 5.8 generic_111459-01 sun4u sparc sunw,ultra-4 '    config_args=''    hint=recommended, useposix=true, d_sigaction=define    usethreads=undef use5005threads=undef useithreads=undef usemultiplicity=undef    useperlio=undef d_sfio=undef uselargefiles=define usesocks=undef    use64bitint=undef use64bitall=undef uselongdouble=undef  Compiler:    cc='gcc', ccflags ='-fno-strict-aliasing -I/usr/local/include -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64',    optimize='-O',    cppflags='-fno-strict-aliasing -I/usr/local/include'    ccversion='', gccversion='2.95.2 19991024 (release)', gccosandvers='solaris2.8'    intsize=4, longsize=4, ptrsize=4, doublesize=8, byteorder=4321    d_longlong=define, longlongsize=8, d_longdbl=define, longdblsize=16    ivtype='long', ivsize=4, nvtype='double', nvsize=8, Off_t='off_t', lseeksize=8    alignbytes=8, usemymalloc=y, prototype=define  Linker and Libraries:    ld='gcc', ldflags =' -L/usr/local/lib '    libpth=/usr/local/lib /usr/lib /usr/ccs/lib    libs=-lsocket -lnsl -ldl -lm -lc    perllibs=-lsocket -lnsl -ldl -lm -lc    libc=/lib/libc.so, so=so, useshrplib=false, libperl=libperl.a  Dynamic Linking:    dlsrc=dl_dlopen.xs, dlext=so, d_dlsymun=undef, ccdlflags=' '    cccdlflags='-fPIC', lddlflags='-G -L/usr/local/lib'Locally applied patches:    ---@INC for perl v5.6.1:    /usr/local/lib/perl5/5.6.1/sun4-solaris    /usr/local/lib/perl5/5.6.1    /usr/local/lib/perl5/site_perl/5.6.1/sun4-solaris    /usr/local/lib/perl5/site_perl/5.6.1    /usr/local/lib/perl5/site_perl/5.6.0/sun4-solaris    /usr/local/lib/perl5/site_perl/5.6.0    /usr/local/lib/perl5/site_perl/5.005/sun4-solaris    /usr/local/lib/perl5/site_perl/5.005    /usr/local/lib/perl5/site_perl    .---Environment for perl v5.6.1:    HOME=/home/tysko    LANG (unset)    LANGUAGE (unset)    LD_LIBRARY_PATH=/usr/lib:/usr/dt/lib:/usr/openwin/lib:/usr/local/oracle/lib:/opt/SUNWspro/lib:/usr/local/lib:/usr/ucblib    LOGDIR (unset)    PATH=/etc:/bin:/usr/bin:/usr/ucb:/usr/bin/X11:/usr/local/bin:/usr/local/bin:/usr/dt/bin:/usr/openwin/bin:/usr/local/oracle/bin:/opt/SUNWspro/bin:/usr/ccs/bin:/home/tysko/bin:.    PERL_BADLANG (unset)    SHELL (unset)

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