I have a diff attached that downgrades p5-DBD-mysql to 2.9004. Since the version in -current segfaults often enough, I think it should be applied in time for 4.0, or the port marked BROKEN.
The attached diff solves the segfaults for me. (ignore the $OpenBSD$ versions, I based it off of the last 2.x version in tree, then updated it with -current syntax.) On 2006 Aug 14 (Mon) at 16:41:06 -0700 (-0700), Peter Hessler wrote: :Agreed, my problems went away with 2.9004. : :Additional information, including a test case is avaliable at : http://lists.mysql.com/perl/3933 : : :On Sat, 12 Aug 2006 23:23:54 -0300 :"Marcos Laufer" <[EMAIL PROTECTED]> wrote: : :: This seems to be fixed if you downgrade to p5-DBD-mysql-2.9004. :: :: ----- Original Message ----- :: From: "Peter Hessler" <[EMAIL PROTECTED]> :: To: <ports@openbsd.org> :: Sent: Friday, August 11, 2006 10:54 PM :: Subject: Re: sig11 cores in DBD::mysql :: :: :: Sigh. This happens with 3.0003 from packages, and 3.0006 from :: self-updated ports. Both backtraces are identical. :: :: :: :: On Fri, 11 Aug 2006 12:27:34 -0700 :: Peter Hessler <[EMAIL PROTECTED]> wrote: :: :: : Using p5-DBD-mysql-3.0006 from packages, I am seeing semi-regular :: : crashes in DBD::mysql. :: : :: : :: : $ gdb /usr/bin/perl :: : GNU gdb 6.3 :: : Copyright 2004 Free Software Foundation, Inc. :: : GDB is free software, covered by the GNU General Public License, and :: : you are welcome to change it and/or distribute copies of it under :: : certain conditions. Type "show copying" to see the conditions. :: : There is absolutely no warranty for GDB. Type "show warranty" for :: : details. This GDB was configured as "i386-unknown-openbsd3.9"...(no :: : debugging symbols found) :: : :: : (gdb) target core perl.core :: : Core was generated by `perl'. :: : Program terminated with signal 11, Segmentation fault. :: : Reading symbols from /usr/lib/libperl.so.10.0...done. :: : Loaded symbols for /usr/lib/libperl.so.10.0 :: : Reading symbols from /usr/lib/libm.so.2.1...done. :: : ... :: : Reading symbols from /usr/lib/libcrypto.so.12.0...done. :: : Loaded symbols for /usr/lib/libcrypto.so.12.0 :: : #0 0x092cd922 in mysql_st_internal_execute (h=0x812aac30, :: : statement=0x8191c49c, attribs=0x0, num_params=1, params=0x8ae02d80, :: : result=0xcfbdfac8, svsock=0x7fb69054, use_mysql_use_result=0) at :: : dbdimp.c:2346 2346 char *salloc = parse_params(svsock, (gdb) bt :: : #0 0x092cd922 in mysql_st_internal_execute (h=0x812aac30, :: : statement=0x8191c49c, attribs=0x0, num_params=1, params=0x8ae02d80, :: : result=0xcfbdfac8, svsock=0x7fb69054, use_mysql_use_result=0) at :: : dbdimp.c:2346 #1 0x092d3da0 in XS_DBD__mysql__db_do (cv=0x800cc3e4) :: : at mysql.xs:458 #2 0x0433ccc3 in XS_DBI_dispatch () from /usr/local/ :: : libdata/perl5/site_perl/i386-openbsd/auto/DBI/DBI.so #3 0x0b174fe4 :: : in Perl_pp_entersub () at /usr/src/gnu/usr.bin/perl/pp_hot.c:2890 #4 :: : 0x0b1d6c29 in Perl_runops_standard () at /usr/src/gnu/usr.bin/perl/ :: : run.c:37 #5 0x0b1c5457 in S_run_body (oldscope=1) at /usr/src/gnu/ :: : usr.bin/perl/perl.c:1936 #6 0x0b1c5257 in perl_run :: : (my_perl=0x85a10030) at /usr/src/gnu/usr.bin/perl/perl.c:1855 #7 :: : 0x1c0012e6 in main () :: : :: : :: : :: : This seems to be identical to the problems reported in :: : http://rt.cpan.org/Public/Bug/Display.html?id=18884 and :: : http://rt.cpan.org/Public/Bug/Display.html?id=20868 :: : :: : I only see this in bugzilla (not in other apps that use DBD::mysql), :: : and it has been reported to bugzilla at :: : https://bugzilla.mozilla.org/show_bug.cgi?id=329556 :: : :: : :: : :: : -- :: : Good leaders being scarce, following yourself is allowed. :: : :: :: :: -- :: Anything worth doing is worth overdoing. :: : : :-- :The United States is like the guy at the party who gives cocaine to :everybody and still nobody likes him. : -- Jim Samuels : -- HOW YOU CAN TELL THAT IT'S GOING TO BE A ROTTEN DAY: #15 Your pet rock snaps at you.
Index: Makefile =================================================================== RCS file: /usr/local/cvs/openbsd/ports/databases/p5-DBD-mysql/Makefile,v retrieving revision 1.12 diff -u -r1.12 Makefile --- Makefile 1 Aug 2006 22:19:46 -0000 1.12 +++ Makefile 21 Aug 2006 22:11:42 -0000 @@ -1,10 +1,10 @@ -# $OpenBSD: Makefile,v 1.12 2006/08/01 22:19:46 espie Exp $ +# $OpenBSD: Makefile,v 1.6 2004/11/22 16:59:29 espie Exp $ NOT_FOR_ARCHS= ${NO_SHARED_ARCHS} COMMENT= 'MySQL drivers for the Perl DBI' -DISTNAME= DBD-mysql-3.0003 +DISTNAME= DBD-mysql-2.9004 PKGNAME= p5-${DISTNAME} CATEGORIES= databases perl5 @@ -15,7 +15,7 @@ PERMIT_DISTFILES_FTP= Yes WANTLIB= crypto m ssl z -MASTER_SITES= ${MASTER_SITE_PERL_CPAN:=../../authors/id/C/CA/CAPTTOFU/} +MASTER_SITES= ${MASTER_SITE_PERL_CPAN:=DBD/} BUILD_DEPENDS= :p5-DBI->=1.08:databases/p5-DBI RUN_DEPENDS= :p5-DBI->=1.08:databases/p5-DBI Index: distinfo =================================================================== RCS file: /usr/local/cvs/openbsd/ports/databases/p5-DBD-mysql/distinfo,v retrieving revision 1.6 retrieving revision 1.3 diff -u -r1.6 -r1.3 --- distinfo 31 May 2006 19:53:06 -0000 1.6 +++ distinfo 5 Jan 2005 16:22:26 -0000 1.3 @@ -1,4 +1,4 @@ -MD5 (DBD-mysql-3.0003.tar.gz) = 7aa7c182ac59ab39cb7a32a8f9d6e945 -RMD160 (DBD-mysql-3.0003.tar.gz) = 89b5eea5c37966636bc2a8ee7e2b1f72671a57ff -SHA1 (DBD-mysql-3.0003.tar.gz) = a516be8657737777d4a8d227a27ec25d00b86ee7 -SIZE (DBD-mysql-3.0003.tar.gz) = 111761 +MD5 (DBD-mysql-2.9004.tar.gz) = fe3e8c65718368a3fa653e592f82248b +RMD160 (DBD-mysql-2.9004.tar.gz) = d31f12b25228adfd7551fe5de185e50be3990460 +SHA1 (DBD-mysql-2.9004.tar.gz) = 1f1d974210a1c429d3679a4fe1816a1d7e17dc24 +SIZE (DBD-mysql-2.9004.tar.gz) = 114043