develooper Front page | perl.perl5.porters | Postings from April 2004

[perl #28168] unicode and core dump

Thread Next
From:
dianaf@denic.de
Date:
April 2, 2004 19:39
Subject:
[perl #28168] unicode and core dump
Message ID:
rt-3.0.8-28168-83611.8.85134213014332@perl.org
# New Ticket Created by  dianaf@denic.de 
# Please include the string:  [perl #28168]
# in the subject line of all future correspondence about this issue. 
# <URL: http://rt.perl.org:80/rt3/Ticket/Display.html?id=28168 >


This is a bug report for perl from dianaf@denic.de,
generated with the help of perlbug 1.34 running under perl v5.8.0.


-----------------------------------------------------------------
Hello,

please excuse my bad english. i hope you will anyway recognize my
bug :-)

here is a little perl-script. i'm sure it is not correct, but i
expected a good error from perl and not a core dump ...

#!/usr/bin/perl

$IDNchars = '\x{E0}-\x{F6}\x{F8}-\x{FF}\x{101}\x{103}';
$string = "m<C3><BC>ller";

print "JA\n" if ($string =~ /$IDNchars/);

($test) = $string =~ /([$IDNchars]*)/;

Here is the result, when i execute the script:

% ./buggyscript
Bus error (core dumped)
%

Regards from Germany,

Diana

(my english is soooo bad - i should do something )

-----------------------------------------------------------------
---
Flags:
    category=core
    severity=low
---
Site configuration information for perl v5.8.0:

Summary of my perl5 (revision 5.0 version 8 subversion 0) configuration:
  Platform:
    osname=solaris, osvers=2.9, archname=sun4-solaris
    uname='sunos solaris 5.9 generic sun4u sparc sunw,ultra-5_10 '
    config_args='-Dcc=gcc -B/usr/ccs/bin/'
    hint=recommended, useposix=true, d_sigaction=define
    usethreads=undef use5005threads=undef useithreads=undef usemultiplicity=undef
    useperlio=define d_sfio=undef uselargefiles=define usesocks=undef
    use64bitint=undef use64bitall=undef uselongdouble=undef
    usemymalloc=n, bincompat5005=undef
  Compiler:
    cc='gcc -B/usr/ccs/bin/', ccflags ='-fno-strict-aliasing -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64',
    optimize='-O',
    cppflags='-fno-strict-aliasing'
    ccversion='', gccversion='3.1', gccosandvers='solaris2.9'
    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, prototype=define
  Linker and Libraries:
    ld='gcc -B/usr/ccs/bin/', ldflags =' -L/usr/local/lib '
    libpth=/usr/local/lib /usr/lib /usr/ccs/lib
    libs=-lsocket -lnsl -ldb -ldl -lm -lc
    perllibs=-lsocket -lnsl -ldl -lm -lc
    libc=/lib/libc.so, so=so, useshrplib=false, libperl=libperl.a
    gnulibc_version=''
  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.8.0:
    /usr/local/lib/perl5/5.8.0/sun4-solaris
    /usr/local/lib/perl5/5.8.0
    /usr/local/lib/perl5/site_perl/5.8.0/sun4-solaris
    /usr/local/lib/perl5/site_perl/5.8.0
    /usr/local/lib/perl5/site_perl
    .

---
Environment for perl v5.8.0:
    HOME=/denic/hostmast
    LANG (unset)
    LANGUAGE (unset)
    LD_LIBRARY_PATH=/usr/local/lib:/lib:/usr/lib:/usr/openwin/lib
    LOGDIR (unset)
    PATH=/usr/local/bin:/usr/bin:/usr/sbin:/usr/ucb:/usr/ccs/bin:/usr/local/sbin:/usr/local/Perl/bin:/usr/openwin/bin:/opt/VRTS/bin:/opt/VRTSob/bin:/usr/tina/Bin:/denic/de-dns/usr/local/named/bin:/usr/local/teTeX/bin:/usr/local/fax/bin:/denic/program/bin:/denic/program/Acrobat/bin:/denic/hostmast/bin:/denic/hostmast/perl:/denic/hostmast/perl5
    PERL_BADLANG (unset)
    PERL_HOME=/usr/local/Perl
    SHELL=/bin/tcsh

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