Build Perl with newer version of Berkeley/Sleepycat/Oracle DB -- How?

Ronald F. Guilmette rfg at tristatelogic.com
Sun Oct 17 04:30:57 UTC 2010



The subject line says it all... well... pretty much.

I have Sleepycat/Oracle DB 4.something installed, and I really
would like to rebuild and reinstall the standard DB_File package
so as to get it to use the 4.something version of DB, rather than
the 1.85 version that's in my libc.a.  But I really have no idea
how to go about this, so any hints would be apreciated.

Oh!  And one other thing.  I was just running a modest sized new Perl
program I've been writing that uses DB_File and that ties a %hash to
a Berkeley DB file.  Basically, I've debugged it and it _had_ seemed
to be working well, but I just ran it on a bit more input data and this
time, Perl itself crashed rather mysteriously.  I'm including the gdb
traceback for the resulting perl5.8.9.core corefile, in case anybody
wants to speculate on the case here, or maybe help me to kill whatever
bug caused this.  (Should the Perl interpreter EVER crash with a SIGSEGV?)


=============================
(gdb) where
#0  0x2828f70d in arc4random_addrandom () from /lib/libc.so.7
#1  0x2828bafd in dbopen () from /lib/libc.so.7
#2  0x2828a4ff in __srget () from /lib/libc.so.7
#3  0x2828bbc9 in dbopen () from /lib/libc.so.7
#4  0x2828a21f in __srget () from /lib/libc.so.7
#5  0x2828d290 in __hash_open () from /lib/libc.so.7
#6  0x282ef5f2 in XS_DB_File_STORE ()
   from /usr/local/lib/perl5/5.8.9/mach/auto/DB_File/DB_File.so
#7  0x280fbaf2 in Perl_pp_entersub ()
   from /usr/local/lib/perl5/5.8.9/mach/CORE/libperl.so
#8  0x280fa245 in Perl_runops_standard ()
   from /usr/local/lib/perl5/5.8.9/mach/CORE/libperl.so
#9  0x280f2d80 in S_call_body ()
   from /usr/local/lib/perl5/5.8.9/mach/CORE/libperl.so
#10 0x280f54bc in Perl_call_sv ()
   from /usr/local/lib/perl5/5.8.9/mach/CORE/libperl.so
#11 0x280f5da4 in Perl_call_method ()
   from /usr/local/lib/perl5/5.8.9/mach/CORE/libperl.so
#12 0x280ea8b7 in S_magic_methcall ()
   from /usr/local/lib/perl5/5.8.9/mach/CORE/libperl.so
#13 0x280eac8a in Perl_magic_setpack ()
   from /usr/local/lib/perl5/5.8.9/mach/CORE/libperl.so
#14 0x280ed3c8 in Perl_mg_set ()
   from /usr/local/lib/perl5/5.8.9/mach/CORE/libperl.so
#15 0x28103078 in Perl_pp_sassign ()
   from /usr/local/lib/perl5/5.8.9/mach/CORE/libperl.so
#16 0x280fa245 in Perl_runops_standard ()
   from /usr/local/lib/perl5/5.8.9/mach/CORE/libperl.so
#17 0x280f6304 in perl_run ()
   from /usr/local/lib/perl5/5.8.9/mach/CORE/libperl.so
#18 0x0804892e in main ()
(gdb) quit


More information about the freebsd-questions mailing list