_mysql.c:_mysql_ConnectionObject_kill has this code: unsigned long pid; int r; [snip] if (!PyArg_ParseTuple(args, "i:kill", &pid)) return NULL; The 'i' format specifier implies an "int*", not an "unsigned long*". Are these types guaranteed to be equally sized on every architecture? (e.g. on a 64-bit big-endian CPU where sizeof(long) == 8 such as s390x, does it leave the 4 most significant bytes of "pid" uninitialized, thus killing random processes?) Found using an experimental static analysis tool: http://dmalcolm.livejournal.com/3689.html
(see http://docs.python.org/c-api/arg.html )
I agree, this is bogus. Reported upstream at https://sourceforge.net/tracker/?func=detail&aid=2902635&group_id=22307&atid=374932
MySQL-python-1.2.3-0.4.c1.fc12 has been submitted as an update for Fedora 12. http://admin.fedoraproject.org/updates/MySQL-python-1.2.3-0.4.c1.fc12
MySQL-python-1.2.3-0.4.c1.fc11 has been submitted as an update for Fedora 11. http://admin.fedoraproject.org/updates/MySQL-python-1.2.3-0.4.c1.fc11
MySQL-python-1.2.3-0.4.c1.fc11 has been pushed to the Fedora 11 testing repository. If problems still persist, please make note of it in this bug report. If you want to test the update, you can install it with su -c 'yum --enablerepo=updates-testing update MySQL-python'. You can provide feedback for this update here: http://admin.fedoraproject.org/updates/F11/FEDORA-2009-12089
MySQL-python-1.2.3-0.4.c1.fc12 has been pushed to the Fedora 12 testing repository. If problems still persist, please make note of it in this bug report. If you want to test the update, you can install it with su -c 'yum --enablerepo=updates-testing update MySQL-python'. You can provide feedback for this update here: http://admin.fedoraproject.org/updates/F12/FEDORA-2009-12101
I fixed this upstream by using the "k" to correctly unpack into an unsigned long: http://mysql-python.svn.sourceforge.net/viewvc/mysql-python/branches/MySQLdb-1.2/MySQLdb/_mysql.c?r1=630&r2=634
MySQL-python-1.2.3-0.4.c1.fc11 has been pushed to the Fedora 11 stable repository. If problems still persist, please make note of it in this bug report.
MySQL-python-1.2.3-0.4.c1.fc12 has been pushed to the Fedora 12 stable repository. If problems still persist, please make note of it in this bug report.