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

[ID 20000222.017] Not OK: perl v5.5.660 on Linux-i686 -Dusemymalloc

February 22, 2000 23:01
[ID 20000222.017] Not OK: perl v5.5.660 on Linux-i686 -Dusemymalloc
Message ID:
This is a bug report for perl from,
generated with the help of perlbug 1.27 running under perl v5.5.650.

[Please enter your report here]

t/pragma/warning.t fails in utf8 in free():

$ ./perl harness pragma/warnings.t 
pragma/warnings.....ok 338/348PROG:                                          
# utf8.c [utf8_to_uv] -W
use utf8 ;
my $a = "snstorm" ;
    no warnings 'utf8' ;
    my $a = "snstorm";
    use warnings 'utf8' ;
    my $a = "snstorm";
Malformed UTF-8 character at - line 3.
Malformed UTF-8 character at - line 8.
Malformed UTF-8 character at - line 3.
assertion botched (chunk's tail overwrite?): *((char *)((caddr_t)ovp + nbytes - sizeof (unsigned int) + i)) == 0x55
pragma/warnings.....ok 348/348FAILED test 339                                
        Failed 1/348 tests, 99.71% okay
Failed Test  Status Wstat Total Fail  Failed  List of failed
pragma/warnings             348    1   0.29%  339
Failed 1/1 test scripts, 0.00% okay. 1/348 subtests failed, 99.71% okay.

Here is the backtrace from GDB:

(gdb) r -I../lib tmp
Starting program: /src/perl5.5.660/t/perl -I../lib tmp
Malformed UTF-8 character at tmp line 3.
assertion botched (chunk's tail overwrite?): *((char *)((caddr_t)ovp + nbytes - sizeof (unsigned int) + i)) == 0x55

Program received signal SIGABRT, Aborted.
0x400af5d1 in kill () from /lib/
(gdb) bt
#0  0x400af5d1 in kill () from /lib/
#1  0x400af2b8 in raise () from /lib/
#2  0x400b0911 in abort () from /lib/
#3  0x805f789 in botch () at malloc.c:963
#4  0x806016c in free (mp=0x81070e8) at malloc.c:1558
#5  0x80a647e in Perl_sv_clear (sv=0x8109420) at sv.c:3666
#6  0x80a6739 in Perl_sv_free (sv=0x8109420) at sv.c:3782
#7  0x8078d91 in S_op_clear (o=0x810ba08) at op.c:798
#8  0x8078ca9 in Perl_op_free (o=0x810ba08) at op.c:745
#9  0x8078c6c in Perl_op_free (o=0x810b9c8) at op.c:733
#10 0x807affc in Perl_fold_constants (o=0x810b9c8) at op.c:2239
#11 0x807b2d5 in Perl_convert (type=67, flags=0, o=0x810ba08) at op.c:2344
#12 0x8076d33 in Perl_yyparse () at perly.y:422
#13 0x805bc71 in S_parse_body (env=0x0, xsinit=0x8059ac0 <xs_init>)
    at perl.c:1198
#14 0x805b333 in perl_parse (my_perl=0x80fb408, xsinit=0x8059ac0 <xs_init>, 
    argc=3, argv=0xbffffd14, env=0x0) at perl.c:813
#15 0x8059a79 in main (argc=3, argv=0xbffffd14, env=0xbffffd24)
    at perlmain.c:51

[Please do not change anything below this line]

Site configuration information for perl v5.5.650:

Configured by jtobey at Fri Feb 11 02:13:31 EST 2000.

Summary of my perl5 (revision 5.0 version 5 subversion 650) configuration:
    osname=linux, osvers=2.2.14pre16, archname=i686-linux
    uname='linux feynman 2.2.14pre16 #1 thu dec 23 19:33:36 est 1999 i686 unknown '
    config_args='-Dcc=gcc -Dprefix=/usr/local -Doptimize=-g -O2 -ders'
    hint=recommended, useposix=true, d_sigaction=define
    usethreads=undef use5005threads=undef useithreads=undef
    usesocks=undef useperlio=undef d_sfio=undef
    use64bits=undef uselargefiles=define usemultiplicity=undef
    cc='gcc', optimize='-g -O2', gccversion=2.95.2 19991109 (Debian GNU/Linux)
    cppflags='-Dbool=char -DHAS_BOOL -DDEBUGGING -fno-strict-aliasing -I/usr/local/include'
    ccflags ='-Dbool=char -DHAS_BOOL -DDEBUGGING -fno-strict-aliasing -I/usr/local/include'
    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
    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 -lndbm -lgdbm -ldbm -ldb -ldl -lm -lc -lposix -lcrypt
    libc=/lib/, 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:

@INC for perl v5.5.650:

Environment for perl v5.5.650:
    LANG (unset)
    LANGUAGE (unset)
    LD_LIBRARY_PATH (unset)
    LOGDIR (unset)
    PERL_BADLANG (unset)
    SHELL=/bin/bash Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at | Group listing | About