Bug #2438 | Runaway memory consumption | ||
---|---|---|---|
Submitted: | 18 Jan 2004 16:42 | Modified: | 2 Feb 2004 9:34 |
Reporter: | T.J. | Email Updates: | |
Status: | Closed | Impact on me: | |
Category: | MySQL Server | Severity: | S2 (Serious) |
Version: | 4.1.1 | OS: | Linux (Mandrake Linux 9.2/WindowsXP) |
Assigned to: | Victor Vagin | CPU Architecture: | Any |
[18 Jan 2004 16:42]
T.J.
[19 Jan 2004 7:08]
Sergei Golubchik
what does you script do ? can you attach it to the bugreport (using [Files] tab) ?
[20 Jan 2004 0:57]
T.J.
One of three necessary scripts. This will create the table. Must already have a database called testing created for it to work.
Attachment: CreateTable.pl (text/x-perl), 3.60 KiB.
[20 Jan 2004 0:58]
T.J.
One of three necessary scripts. This will create the big text file for the main script. Creates a text file that is ~ 26 mb.
Attachment: makebig.pl (text/x-perl), 925 bytes.
[20 Jan 2004 0:59]
T.J.
One of three necessary scripts. This is the main script file.
Attachment: test.pl (text/x-perl), 2.62 KiB.
[20 Jan 2004 1:03]
T.J.
Due to the nature of the scripts and the sensitivity of the data I was forced to re-create the script for these testing purposes. I tested them on a Windows XP machine running 4.1, as it happened the same as before I assume that the effect will be similar on Linux as my original script. Within the test script I have also included the SELECT count(*)...INSERT...UPDATE sequence commented out. After confirming the runaway memory consumption with the INSERT...ON DUPLICATE KEY you may try commenting that sequence out and uncommenting the other sequence to prove that it is in fact the mysql command out of control, and not the script. Oh, and before I mentioned that DBI was necessary for perl, apparently DBI doesn't always contain DBD::MySQL, so make sure you also have that installed as well.
[20 Jan 2004 1:05]
T.J.
Also, in case it wasn't obvious in my previous post, I have included the three files necessary to re-create the bug in the files section.
[21 Jan 2004 9:18]
Dean Ellis
Verified against 4.1.2/Linux using the supplied scripts. I also used the queries which the script produces directly through the mysql client with the same result. Thank you for the test case!
[1 Feb 2004 10:30]
Victor Vagin
Thak you very much for such detailed bug-report
[2 Feb 2004 9:34]
Victor Vagin
Thank you for your bug report. This issue has been committed to our source repository of that product and will be incorporated into the next release. If necessary, you can access the source repository and build the latest available version, including the bugfix, yourself. More information about accessing the source trees is available at http://www.mysql.com/doc/en/Installing_source_tree.html
[2 Jun 2004 0:10]
Steven Horowitz
Is this bug present in 4.0.18, or only in 4.1.1?