From owner-freebsd-perl@FreeBSD.ORG Wed Nov 11 14:39:26 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 2B8A81065705 for ; Wed, 11 Nov 2009 14:39:26 +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 8A8908FC1B for ; Wed, 11 Nov 2009 14:39:25 +0000 (UTC) Received: (qmail invoked by alias); 11 Nov 2009 14:39:24 -0000 Received: from unknown (EHLO WSA096) [91.205.197.96] by mail.gmx.net (mp051) with SMTP; 11 Nov 2009 15:39:24 +0100 X-Authenticated: #682707 X-Provags-ID: V01U2FsdGVkX1/FHIo8K2LFwAc3eUeZbVxaMGM3B0QjnVcU4mq/cS 18G7UeKF3RsJIq Message-ID: <98CC4DD4CE9A4A43903BC49F92CDDAB0@vpe.de> From: "Helmut Schneider" To: "Anton Berezin" References: <20091111141459.GB51538@heechee.tobez.org> In-Reply-To: <20091111141459.GB51538@heechee.tobez.org> Date: Wed, 11 Nov 2009 15:39:24 +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.46 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:39:26 -0000 Anton, Nice to read you again. :) I'll PM you my LDAP.pm where all the relevant functions are located. I'm not proud of it but I hope it helps. Helmut -------------------------------------------------- From: "Anton Berezin" Sent: Wednesday, November 11, 2009 3:14 PM To: "Helmut Schneider" Cc: Subject: Re: Bus error: 10 (core dumped) > 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