Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 08 Feb 2007 19:40:42 +0800
From:      LI Xin <delphij@delphij.net>
To:        tobez@FreeBSD.org, FreeBSD Stable <freebsd-stable@freebsd.org>
Subject:   Can't build threaded perl 5.8 on 6.2-RELEASE and 7-CURRENT
Message-ID:  <45CB0C3A.7020104@delphij.net>

next in thread | raw e-mail | index | archive | help

[-- Attachment #1 --]
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@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@delphij.net>	http://www.delphij.net/
FreeBSD - The Power to Serve!


[-- Attachment #2 --]
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.5 (Darwin)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFFyww6OfuToMruuMARA5veAJ4k66ndl/pOT1pbDsg6V328sTXXiwCfYzSx
6R0mc3w2CDH0usjelJREzeg=
=PVaF
-----END PGP SIGNATURE-----

Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?45CB0C3A.7020104>