From owner-freebsd-perl@FreeBSD.ORG Wed Nov 11 13:52:29 2009 Return-Path: Delivered-To: freebsd-perl@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 2F3681065694 for ; Wed, 11 Nov 2009 13:52:29 +0000 (UTC) (envelope-from jumper99@gmx.de) Received: from mail.gmx.net (mail.gmx.net [213.165.64.20]) by mx1.freebsd.org (Postfix) with SMTP id 926B88FC1E for ; Wed, 11 Nov 2009 13:52:28 +0000 (UTC) Received: (qmail invoked by alias); 11 Nov 2009 13:25:47 -0000 Received: from unknown (EHLO WSA096) [91.205.197.96] by mail.gmx.net (mp006) with SMTP; 11 Nov 2009 14:25:47 +0100 X-Authenticated: #682707 X-Provags-ID: V01U2FsdGVkX19Q95tTNnNQx5z9zwAx/dBdD10O2UlMzj+fiaur1q TDHBx1rHUBJyay Message-ID: From: "Helmut Schneider" To: Date: Wed, 11 Nov 2009 14:25:46 +0100 MIME-Version: 1.0 Content-Type: text/plain; format=flowed; charset="iso-8859-1"; reply-type=original Content-Transfer-Encoding: 7bit X-Priority: 3 X-MSMail-Priority: Normal Importance: Normal X-Mailer: Microsoft Windows Live Mail 14.0.8089.726 X-MimeOLE: Produced By Microsoft MimeOLE V14.0.8089.726 X-Y-GMX-Trusted: 0 X-FuHaFi: 0.48 Subject: Bus error: 10 (core dumped) X-BeenThere: freebsd-perl@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: maintainer of a number of perl-related ports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 11 Nov 2009 13:52:29 -0000 Hi, running FreBSD 7.2 amd64 I have a small perl script that queries LDAP attributes using Net::LDAP(S). I query a source and after that a destination. I decided to give threads a chance so I recompiled perl 5.8 to use threads. I also recompiled everything depending on perl (at least what pkg_info -R perl-5.8.9_3) reported. The thread itself runs fine using "my $srcThread = threads->create()", but as soon as I commit it using "$srcThread->join();" perl cores. It's only my $srcThread = threads->create($mySub, "param1, param2, ...) $srcThread->join(); nothing in between. (gdb) bt #0 0x0000000800d36b7e in free () from /lib/libc.so.7 #1 0x00000008036bf79d in CRYPTO_free () from /lib/libcrypto.so.5 #2 0x000000080366b6d7 in sk_free () from /lib/libcrypto.so.5 #3 0x00000008036407ca in X509_VERIFY_PARAM_table_cleanup () from /lib/libcrypto.so.5 #4 0x0000000803640b09 in X509_VERIFY_PARAM_free () from /lib/libcrypto.so.5 #5 0x000000080347d903 in SSL_free () from /usr/lib/libssl.so.5 #6 0x000000080333f6a8 in XS_Net__SSLeay_free (my_perl=Variable "my_perl" is not available. ) at SSLeay.c:1177 #7 0x00000008006c2f87 in Perl_pp_entersub () from /usr/local/lib/perl5/5.8.9/mach/CORE/libperl.so #8 0x00000008006c16fe in Perl_runops_standard () from /usr/local/lib/perl5/5.8.9/mach/CORE/libperl.so #9 0x00000008006bc70b in Perl_call_sv () from /usr/local/lib/perl5/5.8.9/mach/CORE/libperl.so #10 0x00000008006ce6d3 in Perl_sv_clear () from /usr/local/lib/perl5/5.8.9/mach/CORE/libperl.so #11 0x00000008006ceeae in Perl_sv_free () from /usr/local/lib/perl5/5.8.9/mach/CORE/libperl.so #12 0x00000008006ca7c9 in S_visit () from /usr/local/lib/perl5/5.8.9/mach/CORE/libperl.so #13 0x00000008006ca821 in Perl_sv_clean_objs () from /usr/local/lib/perl5/5.8.9/mach/CORE/libperl.so #14 0x00000008006c0bc8 in perl_destruct () from /usr/local/lib/perl5/5.8.9/mach/CORE/libperl.so #15 0x0000000000400c66 in main () (gdb) I'm not sure what to do next, where to report that problem. I'm no expert in coding (neither C nor Perl) but as far as I read by now Perl should *never* core. Thanks, Helmut