develooper Front page | perl.perl5.porters | Postings from September 2005

[perl #37314] "panic: ck_grep" with C<grep $grep (1, 2, 3)> in 5.8.7

Thread Next
Adriano Ferreira
September 30, 2005 06:36
[perl #37314] "panic: ck_grep" with C<grep $grep (1, 2, 3)> in 5.8.7
Message ID:
# New Ticket Created by  Adriano Ferreira 
# Please include the string:  [perl #37314]
# in the subject line of all future correspondence about this issue. 
# <URL: >

This is a bug report for perl from,
generated with the help of perlbug 1.35 running under perl v5.8.7.


With perl 5.8.7 (both in cygwin as well win32) I get

       $ perl -e 'my $grep = 1; grep $grep (1, 2, 3)'
       panic: ck_grep at -e line 1.

Obviously, from C<perldoc -f grep> this is not one
of the usages of C<grep>:

       grep BLOCK LIST
       grep EXPR,LIST

but the panic is a extreme measure. Would it be a syntax

This error is also generated by

       v5.8.7 built for MSWin32-x86-multi-thread

Site configuration information for perl v5.8.7:

Configured by gerrit at Mon Aug 22 21:57:25     2005.

Summary of my perl5 (revision 5 version 8 subversion 7) configuration:
    osname=cygwin, osvers=1.5.18(0.13242), archname=cygwin-thread-multi-64int
    uname='cygwin_nt-5.1 inspiron 1.5.18(0.13242) 2005-07-02 20:30
i686 unknown unknown cygwin '
    config_args='-de -Dmksymlinks -Duse64bitint -Dusethreads
-Uusemymalloc -Doptimize=-O3 -Dman3ext=3pm -Dusesitecustomize'
    hint=recommended, useposix=true, d_sigaction=define
    usethreads=define use5005threads=undef useithreads=define
    useperlio=define d_sfio=undef uselargefiles=define usesocks=undef
    use64bitint=define use64bitall=undef uselongdouble=undef
    usemymalloc=n, bincompat5005=undef
    cc='gcc', ccflags ='-DPERL_USE_SAFE_PUTENV -fno-strict-aliasing
-pipe -I/usr/local/include',
    cppflags='-DPERL_USE_SAFE_PUTENV -fno-strict-aliasing -pipe
    ccversion='', gccversion='3.4.4 (cygming special) (gdc 0.12, using
dmd 0.125)', gccosandvers=''
    intsize=4, longsize=4, ptrsize=4, doublesize=8, byteorder=12345678
    d_longlong=define, longlongsize=8, d_longdbl=define, longdblsize=12
    ivtype='long long', ivsize=8, nvtype='double', nvsize=8,
Off_t='off_t', lseeksize=8
    alignbytes=8, prototype=define
  Linker and Libraries:
    ld='ld2', ldflags =' -s -L/usr/local/lib'
    libpth=/usr/local/lib /usr/lib /lib
    libs=-lgdbm -ldb -lcrypt -lgdbm_compat
    perllibs=-lcrypt -lgdbm_compat
    libc=/usr/lib/libc.a, so=dll, useshrplib=true, libperl=libperl.a
  Dynamic Linking:
    dlsrc=dl_dlopen.xs, dlext=dll, d_dlsymun=undef, ccdlflags=' -s'
    cccdlflags=' ', lddlflags=' -s -L/usr/local/lib'

Locally applied patches:

@INC for perl v5.8.7:

Environment for perl v5.8.7:
    HOME=/cygdrive/c/Documents and Settings/ferreira
    LANG (unset)
    LANGUAGE (unset)
    LD_LIBRARY_PATH (unset)
    LOGDIR (unset)
    PERL_BADLANG (unset)
    SHELL (unset)

Thread Next Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at | Group listing | About