From owner-freebsd-perl@FreeBSD.ORG Wed Nov 11 14:15:01 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 1A844106568B for ; Wed, 11 Nov 2009 14:15:01 +0000 (UTC) (envelope-from tobez@tobez.org) Received: from heechee.tobez.org (heechee.tobez.org [194.255.56.42]) by mx1.freebsd.org (Postfix) with ESMTP id 745D38FC17 for ; Wed, 11 Nov 2009 14:15:00 +0000 (UTC) Received: by heechee.tobez.org (Postfix, from userid 1001) id 345166D401; Wed, 11 Nov 2009 15:14:59 +0100 (CET) Date: Wed, 11 Nov 2009 15:14:59 +0100 From: Anton Berezin To: Helmut Schneider Message-ID: <20091111141459.GB51538@heechee.tobez.org> References: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: X-Powered-By: FreeBSD http://www.freebsd.org/ User-Agent: Mutt/1.5.20 (2009-06-14) Cc: freebsd-perl@freebsd.org Subject: Re: 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 14:15:01 -0000 Helmut, Would it be possible to see the complete, preferably as minimalistic as possible, script which can reproduce the problem? Off-list, if you prefer. \Anton. On Wed, Nov 11, 2009 at 02:25:46PM +0100, Helmut Schneider wrote: > 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 > > _______________________________________________ > freebsd-perl@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-perl > To unsubscribe, send any mail to "freebsd-perl-unsubscribe@freebsd.org" -- Matters of elegance ought to be left to the tailor and to the cobbler. -- L. Boltzmann