Front page | perl.perl5.porters |
Postings from March 2001
[ID 20010306.008] no utf8 breaks regexey
Thread Next
From:
root
Date:
March 6, 2001 09:24
Subject:
[ID 20010306.008] no utf8 breaks regexey
Message ID:
E14aLBX-0004BM-00.pgcc-forever-2001-03-06-18-23-43@mail.plan9.de
This is a bug report for perl from pcg@goof.com,
generated with the help of perlbug 1.33 running under perl v5.7.0.
-----------------------------------------------------------------
[Please enter your report here]
This:
$x = "a\x{1234}"; no utf8; $x =~ m/\w/;
segfaults in regexec.c because it calls a swash function with
PL_utf8_alnum which is NULL at that point. It seems that regcomp.c
contains some hacks that call Perl_is_utf8_alnum to initialize the swash
but these are only called when "use utf8" is in effect.
In the above example, it gets never called, thus the NULL pointer access.
[Please do not change anything below this line]
-----------------------------------------------------------------
---
Flags:
category=core
severity=medium
---
Site configuration information for perl v5.7.0:
Configured by root at Tue Mar 6 16:58:04 CET 2001.
Summary of my perl5 (revision 5.0 version 7 subversion 0) configuration:
Platform:
osname=linux, osvers=2.2, archname=i686-linux
uname='linux cerebro 2.2.17 #1 smp mon oct 16 00:47:15 cest 2000 i686 unknown '
config_args=''
hint=previous, 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
Compiler:
cc='gcc', ccflags ='-I/usr/local/include -I/usr/app/include -I/opt/include',
optimize='-g -O3 -fno-omit-frame-pointer -mpentiumpro',
cppflags='-I/usr/local/include -I/usr/app/include -I/opt/include'
ccversion='', gccversion='2.95.2.1 19991024 (release)', gccosandvers=''
intsize=4, longsize=4, ptrsize=4, doublesize=8, byteorder=1234
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=y, prototype=define
Linker and Libraries:
ld='gcc', ldflags ='-L/usr/local/lib -L/opt/lib'
libpth=/usr/local/lib /lib /usr/lib /opt/lib
libs=-lc -ldl -lm -lcrypt
perllibs=-lc -ldl -lm -lcrypt
libc=/lib/libc-2.1.3.so, 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 -L/opt/lib'
Locally applied patches:
DEVEL9021
---
@INC for perl v5.7.0:
/usr/app/lib/perl5
/usr/app/lib/perl5
/usr/app/lib/perl5
/usr/app/lib/perl5
.
---
Environment for perl v5.7.0:
HOME=/root
LANG (unset)
LANGUAGE (unset)
LC_CTYPE=de_DE
LD_LIBRARY_PATH (unset)
LOGDIR (unset)
PATH=/root/s:/opt/qt/bin:/bin:/usr/bin:/usr/app/bin:/bin:/sbin:/usr/bin:/usr/sbin:/usr/local/bin:/usr/local/sbin:/usr/app/bin:/usr/app/sbin:/usr/X11/bin:/opt/jdk118/bin:/opt/bin:/opt/sbin:.:/root/cc/dejagnu/bin
PERLDB_OPTS=ornaments=0
PERL_BADLANG (unset)
SHELL=/bin/bash
Thread Next
-
[ID 20010306.008] no utf8 breaks regexey
by root