Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 11 Nov 2009 15:39:24 +0100
From:      "Helmut Schneider" <jumper99@gmx.de>
To:        "Anton Berezin" <tobez@freebsd.org>
Cc:        freebsd-perl@freebsd.org
Subject:   Re: Bus error: 10 (core dumped)
Message-ID:  <98CC4DD4CE9A4A43903BC49F92CDDAB0@vpe.de>
In-Reply-To: <20091111141459.GB51538@heechee.tobez.org>
References:  <E364B646969048B1B2E609520A850E09@vpe.de> <20091111141459.GB51538@heechee.tobez.org>

next in thread | previous in thread | raw e-mail | index | archive | help
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" <tobez@freebsd.org>
Sent: Wednesday, November 11, 2009 3:14 PM
To: "Helmut Schneider" <jumper99@gmx.de>
Cc: <freebsd-perl@freebsd.org>
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 




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