develooper Front page | perl.perl5.porters | Postings from March 2000

[ID 20000310.022] Assertion failed: file "toke.c", line 202

From:
David Dyck
Date:
March 10, 2000 12:41
Subject:
[ID 20000310.022] Assertion failed: file "toke.c", line 202
Message ID:
200003102040.MAA09229@dd.tc.fluke.com

This is a bug report for perl from dcd@tc.fluke.com,
generated with the help of perlbug 1.27 running under perl v5.6.0.


-----------------------------------------------------------------
[Please enter your report here]

$ perl -e "m#:#'^J'"
Assertion failed: file "toke.c", line 202 at -e line 2.

the ^J is the embedded literal newline

# happens in a file also
$ echo  "m#:#'^J'" > toke.bug ; cat toke.bug ; perl toke.bug
m#:#'
'
Assertion failed: file "toke.c", line 202 at toke.bug line 2.

obviously this assertion is not invariant. :-)
maybe it would be true if I never made typo's in my code :-)


dd:perl-current$ gdb ./perl
GDB is free software and you are welcome to distribute copies of it
 under certain conditions; type "show copying" to see the conditions.
There is absolutely no warranty for GDB; type "show warranty" for details.
GDB 4.14 (i486-slackware-linux), 
Copyright 1995 Free Software Foundation, Inc...
(gdb) b toke.c:202
Breakpoint 1 at 0x80671c0: file toke.c, line 202.
(gdb) run ~/toke.bug
Starting program: /jd/usr2/dcd/CPAN/perl-current/./perl ~/toke.bug

Breakpoint 1, S_no_op (what=0x813e22b "String", s=0x8153471 "\n") at toke.c:202
202             assert(s >= oldbp);
(gdb) p s
$1 = 0x8153471 "\n"
(gdb) p oldbp
$2 = 0x8153474 "'\n"

(gdb) where
#0  S_no_op (what=0x813e22b "String", s=0x8153471 "\n") at toke.c:202
#1  0x80715ae in Perl_yylex () at toke.c:3471


[Please do not change anything below this line]
-----------------------------------------------------------------

---
Site configuration information for perl v5.6.0:

Configured by dcd at Thu Mar  9 16:28:46 PST 2000.

Summary of my perl5 (revision 5.0 version 6 subversion 0) configuration:
  Platform:
    osname=linux, osvers=2.3.50, archname=i686-linux
    uname='linux dd 2.3.50 #2 mon mar 6 10:20:20 pst 2000 i686 '
    config_args='-Doptimize=-g -de -Dcf_email=dcd@tc.fluke.com'
    hint=previous, useposix=true, d_sigaction=define
    usethreads=undef use5005threads=undef useithreads=undef usemultiplicity=undef
    useperlio=undef d_sfio=undef uselargefiles=define 
    use64bitint=undef use64bitall=undef uselongdouble=undef usesocks=undef
  Compiler:
    cc='cc', optimize='-g', gccversion=2.7.2.3
    cppflags='-DDEBUGGING -I/usr/local/include -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64'
    ccflags ='-DDEBUGGING -I/usr/local/include -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64'
    stdchar='char', d_stdstdio=define, usevfork=false
    intsize=4, longsize=4, ptrsize=4, doublesize=8
    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='cc', ldflags =' -L/usr/local/lib'
    libpth=/usr/local/lib /lib /usr/lib
    libs=-lgdbm -ldbm -ldb -ldl -lm -lc
    libc=/lib/libc.so.5.4.44, 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'

Locally applied patches:
    v5.6.0-RC1

---
@INC for perl v5.6.0:
    /usr/local/lib/perl5/5.6.0/i686-linux
    /usr/local/lib/perl5/5.6.0
    /usr/local/lib/perl5/site_perl/5.6.0/i686-linux
    /usr/local/lib/perl5/site_perl/5.6.0
    /usr/local/lib/perl5/site_perl
    .

---
Environment for perl v5.6.0:
    HOME=/home/dcd
    LANG (unset)
    LANGUAGE (unset)
    LD_LIBRARY_PATH (unset)
    LOGDIR (unset)
    PATH=/home/dcd/bin:/sbin:/usr/local/bin:/bin:/usr/bin:/usr/X11/bin:/usr/games:/usr/local/samba:/home/hobbes/tools/scripts:/home/hobbes/tools/linux:/usr0/hobbes/tools/scripts:/usr0/dcd/bin:/apps/general/bin:/usr/public
    PERL_BADLANG (unset)
    SHELL=/bin/bash



nntp.perl.org: Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at ask@perl.org | Group listing | About