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

[perl #52104] Text::Wrap::wrap() generates a segfault with Cyrillic characters when the utf8 flag is turned on

Thread Previous | Thread Next
From:
Frédéric Buclin
Date:
March 26, 2008 05:12
Subject:
[perl #52104] Text::Wrap::wrap() generates a segfault with Cyrillic characters when the utf8 flag is turned on
Message ID:
rt-3.6.HEAD-25460-1206490089-465.52104-75-0@perl.org
# New Ticket Created by  Frédéric Buclin 
# Please include the string:  [perl #52104]
# in the subject line of all future correspondence about this issue. 
# <URL: http://rt.perl.org/rt3/Ticket/Display.html?id=52104 >


As described at https://bugzilla.mozilla.org/show_bug.cgi?id=423439, 
Text::Wrap::wrap() generates a segfault with Cyrillic characters when 
the utf8 flag is turned on. The testcase given in the bug, 
https://bugzilla.mozilla.org/attachment.cgi?id=311526 (a simple Perl 
script to run from the shell) shows this very clearly. Due to this bug, 
all pages containing such strings are left blank, which is a real 
problem for webapps such as Bugzilla.

---
Flags:
     category=core
     severity=high
---
Site configuration information for perl v5.8.8:

Configured by Mandriva at Mon Nov  5 17:08:57 EST 2007.

Summary of my perl5 (revision 5 version 8 subversion 8) configuration:
   Platform:
     osname=linux, osvers=2.6.12-31mdksmp, archname=i386-linux
     uname='linux mercury.mandriva.com 2.6.12-31mdksmp #1 smp fri mar 2 
08:52:38 mst 2007 i686 intel(r) pentium(r) 4 cpu 3.00ghz gnulinux '
     config_args='-des -Dinc_version_list=5.8.7 5.8.7/i386-linux 5.8.6 
5.8.6/i386-linux 5.8.5 5.8.4 5.8.3 5.8.2 5.8.1 5.8.0 5.6.1 5.6.0 
-Darchname=i386-linux -Dcc=gcc -Doptimize=-O2  -pipe 
-Wp,-D_FORTIFY_SOURCE=2 -fstack-protector --param=ssp-buffer-size=4 
-fexceptions -fomit-frame-pointer -march=i586 -mtune=generic 
-fasynchronous-unwind-tables -Dprefix=/usr -Dvendorprefix=/usr 
-Dsiteprefix=/usr -Dsitebin=/usr/local/bin 
-Dsiteman1dir=/usr/local/share/man/man1 
-Dsiteman3dir=/usr/local/share/man/man3 -Dman3ext=3pm -Dcf_by=Mandriva 
-Dmyhostname=localhost -Dperladmin=root@localhost 
-Dcf_email=root@localhost -Dd_dosuid -Ud_csh -Duseshrplib'
     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', ccflags ='-fno-strict-aliasing -pipe 
-Wdeclaration-after-statement -I/usr/local/include -D_LARGEFILE_SOURCE 
-D_FILE_OFFSET_BITS=64 -I/usr/include/gdbm',
     optimize='-O2 -pipe -Wp,-D_FORTIFY_SOURCE=2 -fstack-protector 
--param=ssp-buffer-size=4 -fexceptions -fomit-frame-pointer -march=i586 
-mtune=generic -fasynchronous-unwind-tables',
     cppflags='-fno-strict-aliasing -pipe -Wdeclaration-after-statement 
-I/usr/local/include -I/usr/include/gdbm'
     ccversion='', gccversion='4.2.2 20070909 (prerelease) 
(4.2.2-0.RC.1mdv2008.0)', 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=8
     alignbytes=4, prototype=define
   Linker and Libraries:
     ld='gcc', ldflags =' -L/usr/local/lib'
     libpth=/usr/local/lib /lib /usr/lib
     libs=-lnsl -lndbm -lgdbm -ldl -lm -lcrypt -lutil -lc
     perllibs=-lnsl -ldl -lm -lcrypt -lutil -lc
     libc=/lib/libc-2.6.1.so, so=so, useshrplib=true, libperl=libperl.so
     gnulibc_version='2.6.1'
   Dynamic Linking:
     dlsrc=dl_dlopen.xs, dlext=so, d_dlsymun=undef, ccdlflags='-Wl,-E 
-Wl,-rpath,/usr/lib/perl5/5.8.8/i386-linux/CORE'
     cccdlflags='-fPIC', lddlflags='-shared -L/usr/local/lib'

Locally applied patches:
     Mandriva Linux patches

---
@INC for perl v5.8.8:
     /usr/lib/perl5/5.8.8/i386-linux
     /usr/lib/perl5/5.8.8
     /usr/lib/perl5/site_perl/5.8.8/i386-linux
     /usr/lib/perl5/site_perl/5.8.8
     /usr/lib/perl5/site_perl
     /usr/lib/perl5/vendor_perl/5.8.8/i386-linux
     /usr/lib/perl5/vendor_perl/5.8.8
     /usr/lib/perl5/vendor_perl
     .

---
Environment for perl v5.8.8:
     HOME=/root
     LANG=fr_CH.UTF-8
     LANGUAGE=fr_CH.UTF-8:fr
     LC_ADDRESS=fr_CH.UTF-8
     LC_COLLATE=fr_CH.UTF-8
     LC_CTYPE=fr_CH.UTF-8
     LC_IDENTIFICATION=fr_CH.UTF-8
     LC_MEASUREMENT=fr_CH.UTF-8
     LC_MESSAGES=fr_CH.UTF-8
     LC_MONETARY=fr_CH.UTF-8
     LC_NAME=fr_CH.UTF-8
     LC_NUMERIC=fr_CH.UTF-8
     LC_PAPER=fr_CH.UTF-8
     LC_SOURCED=1
     LC_TELEPHONE=fr_CH.UTF-8
     LC_TIME=fr_CH.UTF-8
     LD_LIBRARY_PATH (unset)
     LOGDIR (unset)
 
PATH=/sbin:/usr/sbin:/bin:/usr/bin:/usr/X11R6/bin:/usr/local/bin:/usr/local/sbin:/root/bin
     PERL_BADLANG (unset)
     SHELL=/bin/bash


Thread Previous | 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