# New Ticket Created by imacat mail.imacat.idv.tw
# Please include the string: [perl #41121]
# in the subject line of all future correspondence about
this issue.
# <URL: h
ttp://rt.perl.org/rt3/Ticket/Display.html?id=41121 >
This is a bug report for perl from imacat mail.imacat.idv.tw,
generated with the help of perlbug 1.35 running under perl
v5.8.8.
------------------------------------------------------------
-----
[Please enter your report here]
Hi. This is imacat from Taiwan. Perl crashed when
spawning threads
while STDOUT/STDERR is wrapped with the :encoding(xxx)
output layer.
Strangely it works find if the output layer is :utf8, but
crashed
if :encoding(utf8). This cause me a lot of trouble since my
terminal
is Big5 and I can only use :encoding(big5).
The demostration is below. Please tell me if you need
any information.
imacat rinse ~ % perl -mthreads -e'binmode STDOUT,
":utf8"; threads->new(sub { })->join;'
imacat rinse ~ % perl -mthreads -e'binmode STDOUT,
":encoding(utf8)"; threads->new(sub {
})->join;'
zsh: segmentation fault perl -mthreads
imacat rinse ~ % perl -mthreads -e'binmode STDOUT,
":encoding(big5)"; threads->new(sub {
})->join;'
zsh: segmentation fault perl -mthreads
imacat rinse ~ %
[Please do not change anything below this line]
------------------------------------------------------------
-----
---
Flags:
category=core
severity=high
---
Site configuration information for perl v5.8.8:
Configured by imacat at Tue May 9 09:15:58 CST 2006.
Summary of my perl5 (revision 5 version 8 subversion 8)
configuration:
Platform:
osname=linux, osvers=2.6.16.14,
archname=x86_64-linux-thread-multi-ld
uname='linux yuki 2.6.16.14 #1 smp mon may 8 23:44:32
cst 2006 x86_64 gnulinux '
config_args='-s -d -Dusethreads -Dcc=gcc -Duselongdouble
-Doptimize=-g -O3 -Duse64bitint -Duse64bitall -Dprefix=/usr
-Dd_dosuid -Dotherlibdirs=/usr/share/perl5
-Dinc_version_list=none -Acccdlflags=-fPIC -Duseshrplib=true
-Dcf_email=imacat mail.imacat.idv.tw'
hint=recommended, useposix=true, d_sigaction=define
usethreads=define use5005threads=undef
useithreads=define usemultiplicity=define
useperlio=define d_sfio=undef uselargefiles=define
usesocks=undef
use64bitint=define use64bitall=define
uselongdouble=define
usemymalloc=n, bincompat5005=undef
Compiler:
cc='gcc', ccflags ='-D_REENTRANT -D_GNU_SOURCE
-DTHREADS_HAVE_PIDS -DDEBUGGING -fno-strict-aliasing -pipe
-Wdeclaration-after-statement -I/usr/local/include
-D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64',
optimize='-g -O3',
cppflags='-D_REENTRANT -D_GNU_SOURCE -DTHREADS_HAVE_PIDS
-DDEBUGGING -fno-strict-aliasing -pipe
-Wdeclaration-after-statement -I/usr/local/include'
ccversion='', gccversion='3.4.4 20050314 (prerelease)
(Debian 3.4.3-13)', gccosandvers=''
intsize=4, longsize=8, ptrsize=8, doublesize=8,
byteorder=12345678
d_longlong=define, longlongsize=8, d_longdbl=define,
longdblsize=16
ivtype='long', ivsize=8, nvtype='long double',
nvsize=16, Off_t='off_t', lseeksize=8
alignbytes=16, prototype=define
Linker and Libraries:
ld='gcc', ldflags =' -L/usr/local/lib'
libpth=/usr/local/lib /lib /usr/lib
libs=-lnsl -lgdbm -ldb -ldl -lm -lcrypt -lutil -lpthread
-lc
perllibs=-lnsl -ldl -lm -lcrypt -lutil -lpthread -lc
libc=/lib/libc-2.3.2.so, so=so, useshrplib=true,
libperl=libperl.so
gnulibc_version='2.3.2'
Dynamic Linking:
dlsrc=dl_dlopen.xs, dlext=so, d_dlsymun=undef,
ccdlflags='-Wl,-E
-Wl,-rpath,/usr/lib/perl5/5.8.8/x86_64-linux-thread-multi-ld
/CORE'
cccdlflags=' -fPIC', lddlflags='-shared
-L/usr/local/lib'
Locally applied patches:
---
INC
for perl v5.8.8:
/home/imacat/lib/perl5
/usr/lib/perl5/5.8.8/x86_64-linux-thread-multi-ld
/usr/lib/perl5/5.8.8
/usr/lib/perl5/site_perl/5.8.8/x86_64-linux-thread-multi-ld
/usr/lib/perl5/site_perl/5.8.8
/usr/lib/perl5/site_perl
/usr/share/perl5
.
---
Environment for perl v5.8.8:
HOME=/home/imacat
LANG=zh_TW
LANGUAGE=zh_TW
LC_COLLATE=zh_TW
LC_CTYPE=zh_TW
LC_MESSAGES=zh_TW
LC_MONETARY=zh_TW
LC_NUMERIC=zh_TW
LC_TIME=zh_TW
LD_LIBRARY_PATH (unset)
LOGDIR (unset)
PATH=/home/imacat/bin:/bin:/usr/bin:/opt/java/bin:/usr/local
/bin
PERL5LIB=/home/imacat/lib/perl5
PERL5_CPANPLUS_CONFIG=/home/imacat/.cpanplus/config
PERL_BADLANG (unset)
SHELL=/bin/zsh
|