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! -------------- 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
LI Xin wrote:> 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.Another observation is that this happens with 6.2-RELEASE kernel with 6.1-RELEASE userland too. But 6.1+6.1 configuration is not affected. Cheers, -- Xin LI <delphij@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/5bdd9fdf/signature.pgp
Fabian Keil
2007-Feb-08 11:59 UTC
Can't build threaded perl 5.8 on 6.2-RELEASE and 7-CURRENT
LI Xin <delphij@delphij.net> wrote:> 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.> Any hints?I ran into the same miniperl core dumps a few days ago while trying to switch back to non-threaded Perl (shortly after updating the system to a recent RELENG_6). The only way I found to "fix" it was to: - deinstall all Perl ports, - rebuild Perl - reinstall all Perl ports I assume miniperl somehow included incompatible local Perl libraries, but I didn't really look into it. Fabian -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 187 bytes Desc: not available Url : http://lists.freebsd.org/pipermail/freebsd-stable/attachments/20070208/216b62c8/signature.pgp
Anton Berezin
2007-Feb-08 13:06 UTC
Can't build threaded perl 5.8 on 6.2-RELEASE and 7-CURRENT
On Thu, Feb 08, 2007 at 07:40:42PM +0800, LI Xin wrote:> 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.Yes, I've got more reports about that. It is related to the objformat commit which was made recently. I will have time to look for a fix tonight. \Anton. -- We're going for 'working' here. 'clean' is for people with skills... -- Flemming Jacobsen