[Bug 588859] Re: python-mysqldb silently drops exceptions on deadlocks
dino99
588859 at bugs.launchpad.net
Fri Aug 28 09:52:31 UTC 2015
This version has expired
** Changed in: python-mysqldb (Ubuntu)
Status: New => Invalid
** Changed in: python-mysqldb
Importance: Unknown => Undecided
** Changed in: python-mysqldb
Status: Unknown => New
** Changed in: python-mysqldb
Remote watch: SourceForge.net Tracker #3008217 => None
** Changed in: python-mysqldb (Debian)
Importance: Unknown => Undecided
** Changed in: python-mysqldb (Debian)
Remote watch: Debian Bug tracker #584260 => None
** Changed in: python-mysqldb (Debian)
Status: New => Invalid
** Changed in: python-mysqldb
Status: New => Invalid
--
You received this bug notification because you are a member of Ubuntu
Foundations Bugs, which is subscribed to python-mysqldb in Ubuntu.
https://bugs.launchpad.net/bugs/588859
Title:
python-mysqldb silently drops exceptions on deadlocks
Status in MySQLdb:
Invalid
Status in python-mysqldb package in Ubuntu:
Invalid
Status in python-mysqldb package in Debian:
Invalid
Bug description:
Binary package hint: python-mysqldb
There is a missing check in _mysql.c _mysql_ResultObject_Initialize,
where a failed SELECT that ends in a deadlock, returns a NULL from
mysql_store result, but according to
http://dev.mysql.com/doc/refman/5.0/en/null-mysql-store-result.html,
you have to check errno or num_fields afterwards.
Not doing this, causes exceptions to be silently dropped.
Here's a similar bugreport
http://sourceforge.net/tracker/?func=detail&aid=2776267&group_id=22307&atid=374932
Attached is a patch that fixes the problem in _mysql.c. It was made
against 1.2.3, but applies to 1.2.2 with some fuzz.
Patch has also been submitted to python-mysqldb at sourceforge
(http://sourceforge.net/tracker/?func=detail&aid=3008217&group_id=22307&atid=374934)
and for debian (http://bugs.debian.org/cgi-
bin/bugreport.cgi?bug=584260)
To manage notifications about this bug go to:
https://bugs.launchpad.net/python-mysqldb/+bug/588859/+subscriptions
More information about the foundations-bugs
mailing list