Running MySQLdb 1.2.3c1 with Python 2.6.2 under apache 1.3, mod_wsgi 2.3, pylons 0.9.7, SQLAlchemy 0.5.3.
Apache is custom built, RHEL4.
Linux version 2.6.9-42.ELsmp (email@example.com) (gcc version 3.4.6 20060404 (Red Hat 3.4.6-2)) #1 SMP Wed Jul 12 23:27:17 EDT 2006
Getting occasional segfaults under Apache. The parent process will restart the dead process, which will last for a while and then die again. The segfaults seem to be correlated with higher load on the server, but that could just be due to the larger number of requests per second during those periods (it seems to scale faster than linear, however).
0 0x0233afa0 in ?? ()
1 0x00533c93 in _mysql_ConnectionObject_dealloc (self=0x9b77924) at _mysql.c:698
2 0x0797f33b in subtype_dealloc (self=0x9b77924) at Objects/typeobject.c:1018
3 0x07966ca0 in dict_dealloc (mp=0xb6fb2a44) at Objects/dictobject.c:911
4 0x0797f459 in subtype_dealloc (self=0xb77c8ecc) at Objects/typeobject.c:1006
5 0x003dbfa8 in deque_dealloc (deque=0xb77db844) at /mnt/crawlspace3/home/geordan/src/svn/et/misc/geordan/alexandria/build/Python-2.6.2/Modules/_collectionsmodule.c:456
6 0x07966ca0 in dict_dealloc (mp=0xb6f0546c) at Objects/dictobject.c:911
7 0x07947b61 in instance_dealloc (inst=0xb77d6dec) at Objects/classobject.c:668
8 0x07966a8d in PyDict_Clear (op=0xb6f0524c) at Objects/dictobject.c:817
9 0x07968d36 in dict_tp_clear (op=0xb6f0524c) at Objects/dictobject.c:2011
10 0x079d7e6d in collect (generation=2) at Modules/gcmodule.c:714
11 0x079d8865 in PyGC_Collect () at Modules/gcmodule.c:1292
12 0x079cbfce in Py_Finalize () at Python/pythonrun.c:424
13 0x0793c141 in wsgi_python_child_cleanup (data=0x0) at mod_wsgi.c:4440
14 0x0807e4e0 in ap_clear_pool (a=0x94d0dfc) at alloc.c:1937
15 0x0807e702 in ap_destroy_pool (a=0x94d0dfc) at alloc.c:681
16 0x080883c9 in clean_child_exit (code=0) at http_main.c:603
17 0x0808a344 in child_main (child_num_arg=Variable "child_num_arg" is not available.) at http_main.c:5468
18 0x0808a8a6 in make_child (s=Variable "s" is not available.) at http_main.c:5673
19 0x0808a949 in startup_children (number_to_start=9) at http_main.c:5710
20 0x0808b961 in standalone_main (argc=Variable "argc" is not available.) at http_main.c:6113
21 0x0808c7ce in main (argc=3, argv=0xbfe11fb4) at http_main.c:6494
I cannot make the core dump generally available, but would be happy to run any additional commands against the image. Unfortunately, we've been unable to reproduce the problem on our staging / testing servers, so we've only been able to see this by putting 1.2.3c1 into production. We've since rolled production back to 1.2.2 and are just having to deal with the utf-8 related memory leaks, so it's unlikely we'll have much besides this core dump to work with.