|
Erdi Balint
erdibalint at freemail.hu
Sun Oct 9 05:40:06 EDT 2005
Hi all,
I am trying to write a small python-mysql application with mod_python
but got stuck right at the beginning. The following code snippet:
import MySQLdb
db = MySQLdb.connect(user="xxx",passwd="xxx",db="xxx")
return db
causes a Segmentation fault.
apache log:
[Sun Oct 9 11:09:52 2005] [notice] child pid 6736 exit signal
Segmentation fault (11)
(in fact, any mysql db operation causes the same)
I am using python-mysqldb version 1.2.1c3-2 and libapache-mod-python
version 2.7.10-4 (both installed from Debian packages, thinking that
they were stable releases). Apache version is 1.3.33. Am I doing
something wrong?
Thank you for your help,
Balint
|