Can't build threaded perl 5.8 on 6.2-RELEASE and 7-CURRENT

LI Xin delphij at delphij.net
Thu Feb 8 11:41:08 UTC 2007


Hi,

It seems that threaded perl is broken on 6.2-RELEASE and 7-CURRENT.  I
have tried some option combinations with no luck, if WITH_THREADED=yes
is specified then the build would fail with a coredump.

[root at sysdevel] /tmp/usr/ports/lang/perl5.8/work/perl-5.8.8# gdb
miniperl miniperl.core
GNU gdb 6.1.1 [FreeBSD]
Copyright 2004 Free Software Foundation, Inc.
GDB is free software, covered by the GNU General Public License, and you are
welcome to change it and/or distribute copies of it under certain
conditions.
Type "show copying" to see the conditions.
There is absolutely no warranty for GDB.  Type "show warranty" for details.
This GDB was configured as "i386-marcel-freebsd"...
Core was generated by `miniperl'.
Program terminated with signal 11, Segmentation fault.
Reading symbols from
/tmp/usr/ports/lang/perl5.8/work/perl-5.8.8/libperl.so...done.
Loaded symbols for /tmp/usr/ports/lang/perl5.8/work/perl-5.8.8/libperl.so
Reading symbols from /lib/libm.so.4...done.
Loaded symbols for /lib/libm.so.4
Reading symbols from /lib/libcrypt.so.3...done.
Loaded symbols for /lib/libcrypt.so.3
Reading symbols from /lib/libutil.so.5...done.
Loaded symbols for /lib/libutil.so.5
Reading symbols from /lib/libc.so.6...done.
Loaded symbols for /lib/libc.so.6
Reading symbols from /libexec/ld-elf.so.1...done.
Loaded symbols for /libexec/ld-elf.so.1
#0  0x84115dce in Perl_safesysmalloc (size=4080) at util.c:80
80          DEBUG_m(PerlIO_printf(Perl_debug_log, "0x%"UVxf": (%05ld)
malloc %ld bytes\n",PTR2UV(ptr),(long)PL_an++,(long)size));
(gdb) bt full
#0  0x84115dce in Perl_safesysmalloc (size=4080) at util.c:80
        my_perl = (PerlInterpreter *) 0x0
        my_perl = (PerlInterpreter *) 0x0
        ptr = (void *) 0x8065000
#1  0x8413a2b3 in S_more_sv (my_perl=0x8064000) at sv.c:215
        chunk = 0x8064000 ""
        sv = (SV *) 0x840679c8
#2  0x841447df in Perl_newSV (my_perl=0x8064000, len=79) at sv.c:4593
        sv = (SV *) 0x292
#3  0x840b425c in perl_construct (my_perl=0x8064000) at perl.c:283
No locals.
#4  0x0804bb6c in main (argc=5, argv=0xbfbfe75c, env=0xbfbfe774) at
miniperlmain.c:93
        exitstatus = 16

And here is some excerpt from the build output:

LD_LIBRARY_PATH=/tmp/usr/ports/lang/perl5.8/work/perl-5.8.8 cc -Wl,-E
-L/usr/local/lib -o miniperl  miniperlmain.o opmini.o libperl.so -lm
-lcrypt -lutil
LD_LIBRARY_PATH=/tmp/usr/ports/lang/perl5.8/work/perl-5.8.8 ./miniperl
-w -Ilib -MExporter -e '<?>' || make minitest
Segmentation fault (core dumped)
cp ext/re/re.pm lib/re.pm
LD_LIBRARY_PATH=/tmp/usr/ports/lang/perl5.8/work/perl-5.8.8 ./miniperl
-Ilib configpm --heavy=lib/Config_heavy.pl lib/Config.pm
Segmentation fault (core dumped)
*** Error code 139

Stop in /tmp/usr/ports/lang/perl5.8/work/perl-5.8.8.
*** Error code 1 (ignored)

You may see some irrelevant test failures if you have been unable
to build lib/Config.pm, lib/lib.pm or the Unicode data files.

cd t && (rm -f perl; /bin/ln -s ../miniperl perl)  &&
LD_LIBRARY_PATH=/tmp/usr/ports/lang/perl5.8/work/perl-5.8.8 ./perl TEST
-minitest base/*.t comp/*.t cmd/*.t run/*.t io/*.t op/*.t uni/*.t </dev/tty
cannot open /dev/tty: Device busy
*** Error code 2 (ignored)
*** Error code 1 (ignored)
LD_LIBRARY_PATH=/tmp/usr/ports/lang/perl5.8/work/perl-5.8.8 ./miniperl
-Ilib configpm --heavy=lib/Config_heavy.pl lib/Config.pm
Segmentation fault (core dumped)
*** Error code 139

Stop in /tmp/usr/ports/lang/perl5.8/work/perl-5.8.8.
*** Error code 1

Stop in /usr/ports/lang/perl5.8.

Any hints?

Cheers,
-- 
Xin LI <delphij at delphij.net>	http://www.delphij.net/
FreeBSD - The Power to Serve!

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 249 bytes
Desc: OpenPGP digital signature
Url : http://lists.freebsd.org/pipermail/freebsd-stable/attachments/20070208/2e2f74ab/signature.pgp


More information about the freebsd-stable mailing list