Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 110363 - Out of memory errors with DBD-mysql-3.0002_p3
Summary: Out of memory errors with DBD-mysql-3.0002_p3
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Gentoo Perl team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-10-24 12:32 UTC by Haroon Rafique
Modified: 2006-05-31 16:59 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
Test script for retrieving data from mysql (actually a query from bugzilla) (test-mysql.pl,644 bytes, text/plain)
2005-10-24 12:33 UTC, Haroon Rafique
Details
Test script for retrieving data from mysql (actually a query from bugzilla) (test-mysql.pl,677 bytes, text/plain)
2005-10-24 12:35 UTC, Haroon Rafique
Details
emerge --info (emerge-info.txt,2.73 KB, text/plain)
2005-10-24 12:36 UTC, Haroon Rafique
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Haroon Rafique 2005-10-24 12:32:27 UTC
After upgrading from DBD-mysql 2.9007 to 3.0002_p3, a local bugzilla
installation running with mysql broke completely. I was able to isolate it with
a simple test case which was failing under 3.0002_p3 and running fine with 2.9007.

I will attach the script immediately after this comment. It was dying with the
following errors.

Out of memory!
Out of memory!
Callback called exit.

Some version numbers:

DBI-1.48
DBD-mysql-2.9007
perl-5.8.7-r1
gcc-3.4.4-r1
mysql-4.1.14

I would suggest not making 3.0002_p3 for a *long* time.
Comment 1 Haroon Rafique 2005-10-24 12:33:48 UTC
Created attachment 71351 [details]
Test script for retrieving data from mysql (actually a query from bugzilla)
Comment 2 Haroon Rafique 2005-10-24 12:35:14 UTC
Created attachment 71352 [details]
Test script for retrieving data from mysql (actually a query from bugzilla)
Comment 3 Haroon Rafique 2005-10-24 12:36:31 UTC
Created attachment 71353 [details]
emerge --info
Comment 4 Haroon Rafique 2005-10-24 12:42:40 UTC
(In reply to comment #3)
> Created an attachment (id=71353) [edit]
> emerge --info
> 

I toned down my CFLAGS and CXXFLAGS to "-march=pentium4 -Os -pipe" with no
change whatsoever. 3.0002_p3 still fails.
Comment 5 Per Pomsel 2005-11-01 04:12:40 UTC
I've got the same problem here.
After changing the bugzilla installation to another server (with mysql v5.0.15)
i can't get it running here. Bugzilla checksetup.pl shows an "out of memory!" error.
The testscript shows the same "out of memory!" error.

emerge --info
System uname: 2.6.14-gentoo i686 Pentium III (Katmai)
Gentoo Base System version 1.12.0_pre9
ccache version 2.4 [enabled]
dev-lang/python:     2.4.2
sys-apps/sandbox:    1.2.13
sys-devel/autoconf:  2.13, 2.59-r7
sys-devel/automake:  1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6-r1
sys-devel/binutils:  2.16.1
sys-devel/libtool:   1.5.20
virtual/os-headers:  2.6.11-r2
ACCEPT_KEYWORDS="x86 ~x86"
AUTOCLEAN="yes"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-O2 -march=pentium3 -fomit-frame-pointer -pipe"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/kde/2/share/config /usr/kde/3/share/config
/usr/share/config /var/qmail/control"
CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/env.d"
CXXFLAGS="-O2 -march=pentium3 -fomit-frame-pointer -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoconfig ccache distlocks sandbox sfperms strict"
GENTOO_MIRRORS="ftp://pegasus.gfs"
LANG="de_DE@euro"
LC_ALL="de_DE@euro"
LINGUAS="de"
MAKEOPTS="-j2"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage"
SYNC="rsync://pegasus.gfs/gentoo-portage"
USE="x86 7zip acpi aim alsa apache2 apm arts avi berkdb bitmap-fonts bzip2
ccache cgi clamav clamd cli command-args crypt curl curlwrappers discard-path
eds elf emboss encode extensions fam foomaticdb force-cgi-redirect fortran ftp
gd gdbm gif gmp gnome gnutls gpm graphicsmagick graphviz gs gstreamer gtk2 gzip
http icp icq imagemagick imap imlib irc jabber jbig john jp2 jpeg jpeg2k kde
ldap libclamav libg++ libwww lzo lzw mad mbox md5sum mhash mikmod mime mmx mng
motif mp3 mpeg msn mysql mysqli nagios-dns nagios-game nagios-ntp nagios-ping
nagios-ssh ncurses netpbm nfs nis nls nocd ntlm ogg oggvorbis opengl oscar oss
pam pcre pdflib pear perl php png postgres python qt quicktime quotas rar
readline samba sasl session silc slang smtp snmp sockets spell sse ssl svg
symlink syslog tcpd test tetex threads tiff tokenizer tos truetype
truetype-fonts type1-fonts udev unicode ups userlocales vhosts vorbis webdav wmf
xml xml2 xmlrpc xmms xsl xv yahoo zip zlib linguas_de userland_GNU kernel_linux
elibc_glibc"
Unset:  ASFLAGS, CTARGET, LDFLAGS
Comment 6 Edward Roper 2005-11-17 15:57:51 UTC
(In reply to comment #0)
Just dropping in to comment that this version of DBD-mysql also broke my Maia
Mailguard installation. Rolling back DBD-mysql resolved the issue. 
Comment 7 Thomas Scheiblauer 2005-11-26 01:38:46 UTC
I've also had problems with this release.
3.0002_p3 segfaults when used by zmaudit.pl (Zoneminder http://www.zoneminder.com).
I was able to pin it down to the execute call within the following code excerpt.
Within this call it segfaults after a few loops in a non-deterministic fashion.
It works perfectly with the previous ebuild of DBD-mysql.

+++ code excerpt
        my $db_monitors;
        my $sql1 = "select Id from Monitors order by Id";
        my $sth1 = $dbh->prepare_cached( $sql1 ) or die( "Can't prepare '$sql1':
".$dbh->errstr() );
        my $sql2 = "select Id, (unix_timestamp() - unix_timestamp(StartTime)) as
Age from Events where MonitorId = ? order by Id";
        my $sth2 = $dbh->prepare_cached( $sql2 ) or die( "Can't prepare '$sql2':
".$dbh->errstr() );
        my $res = $sth1->execute() or die( "Can't execute: ".$sth1->errstr() );
        while( my $monitor = $sth1->fetchrow_hashref() )
        {
                Debug( "Found database monitor '$monitor->{Id}'" );
                my $db_events = $db_monitors->{$monitor->{Id}} = {};
                my $res = $sth2->execute( $monitor->{Id} ) or die( "Can't
execute: ".$sth2->errstr() );
                while ( my $event = $sth2->fetchrow_hashref() )
                {
                        $db_events->{$event->{Id}} = $event->{Age};
                }
                Debug( "Got ".int(keys(%$db_events))." events\n" );
                $sth2->finish();
        }
        $sth1->finish();
+++
Comment 8 Haroon Rafique 2005-11-26 13:32:04 UTC
(In reply to comment #0)
> I would suggest not making 3.0002_p3 for a *long* time.

Oops... that's supposed to day "I would suggest not making 3.0002_p2 **stable** 
for a *long* time.
Comment 9 Martin Mokrejš 2005-12-09 03:32:10 UTC
Hi,
   I have same problem with bugzilla-2.20/checksetup.pl
See my bugreport at https://bugzilla.mozilla.org/show_bug.cgi?id=297649

Solution is to use v3.0002 (haven't tried myself yet):
http://groups.google.com.au/group/netscape.public.mozilla.webtools/browse_thread/thread/df6c6e5468c47fd2/52e14738b3cf2080?lnk=raot&hl=en
Comment 10 Haroon Rafique 2005-12-09 06:39:22 UTC
(In reply to comment #9)
> Hi,
>    I have same problem with bugzilla-2.20/checksetup.pl
> See my bugreport at https://bugzilla.mozilla.org/show_bug.cgi?id=297649
> 
> Solution is to use v3.0002 (haven't tried myself yet):
>
http://groups.google.com.au/group/netscape.public.mozilla.webtools/browse_thread/thread/df6c6e5468c47fd2/52e14738b3cf2080?lnk=raot&hl=en


Here are the release dates for the 3.0002 series.

[DIR] DBD-mysql-3.0002/       11-Jul-2005 09:46    -   
[DIR] DBD-mysql-3.0002_1/     03-Aug-2005 19:47    -   
[DIR] DBD-mysql-3.0002_2/     26-Sep-2005 16:15    -   
[DIR] DBD-mysql-3.0002_3/     28-Sep-2005 11:46    -   
[DIR] DBD-mysql-3.0002_4/     06-Nov-2005 13:40    -   

Can you report if downgrading to 3.0002 fixes the problem?
Comment 11 Haroon Rafique 2005-12-09 06:45:30 UTC
(In reply to comment #10)
> 
> Here are the release dates for the 3.0002 series.
> 
> [DIR] DBD-mysql-3.0002/       11-Jul-2005 09:46    -   
> [DIR] DBD-mysql-3.0002_1/     03-Aug-2005 19:47    -   
> [DIR] DBD-mysql-3.0002_2/     26-Sep-2005 16:15    -   
> [DIR] DBD-mysql-3.0002_3/     28-Sep-2005 11:46    -   
> [DIR] DBD-mysql-3.0002_4/     06-Nov-2005 13:40    -   
> 
> Can you report if downgrading to 3.0002 fixes the problem?
>

I tried it myself and there are no problems with 3.0002.

Can the dev who added 3.0002_p3 to portage mask it please and instead add 3.0002
which seems to work fine?

From the Changelog:

*DBD-mysql-3.0002_p3 (16 Oct 2005)

  16 Oct 2005; Francesco Riosa <vivo@gentoo.org> -DBD-mysql-2.9006.ebuild,
  +DBD-mysql-3.0002_p3.ebuild:
  version bump and clean-up

Comment 12 Martin Mokrejš 2005-12-18 15:22:05 UTC
Any news on the awaited ebuild? Thanks. ;-)
Comment 13 Michael Cummings (RETIRED) gentoo-dev 2006-01-13 17:01:24 UTC
did _p4 fix these issues at all? Its at the threshold of being open to being unmasked, but I don't want to unmask if it still causes you problems. In bug 112281, it resolved issues with a spamassassin session with mysql, but i want to confirm that isn't a fluke. thanks!
Comment 14 Martin Mokrejš 2006-01-14 08:13:48 UTC
The testcase attached to this bug breaks with DBD-mysql-3.0002_p4. The testcase really works with plain 3.002 (the mysql-5.0-new_bit_type.patch does not apply cleanly, so I ometted that from my test). Please introduce the DBD-mysql-3.0002.ebuild.
Comment 15 Michael Cummings (RETIRED) gentoo-dev 2006-01-15 09:04:27 UTC
3.0002 added to the tree, will mark stable in 30 days if there are no further reports against it
Comment 16 Haroon Rafique 2006-05-25 09:46:40 UTC
(In reply to comment #15)
> 3.0002 added to the tree, will mark stable in 30 days if there are no further
> reports against it
> 

If anyone is still following this bug, I had good luck with dev-perl/DBD-mysql-3.0004 when I upgraded to it recently.
Comment 17 Michael Cummings (RETIRED) gentoo-dev 2006-05-27 13:18:11 UTC
(In reply to comment #16)
> If anyone is still following this bug, I had good luck with
> dev-perl/DBD-mysql-3.0004 when I upgraded to it recently.
> 

Yes, thanks!
Comment 18 Martin Mokrejš 2006-05-31 16:59:01 UTC
3.004 works for me as well.