classification
Title: *** glibc detected *** python: double free or corruption (!prev): 0x0000000001d53ad0 ***
Type: crash Stage: resolved
Components: Versions: Python 2.7
process
Status: closed Resolution: not a bug
Dependencies: Superseder:
Assigned To: Nosy List: BlendsInWell, neologix
Priority: normal Keywords:

Created on 2012-01-09 05:22 by BlendsInWell, last changed 2012-01-09 18:18 by neologix. This issue is now closed.

Files
File name Uploaded Description Edit
server.py BlendsInWell, 2012-01-09 05:22
Messages (4)
msg150920 - (view) Author: Andrew (BlendsInWell) Date: 2012-01-09 05:22
Hello,
This program crashes after 12-24 hours of running.  My OS is Ubuntu 11.10, I'm using Python 2.7.2, and gcc 4.6.1.

Here's the error:

*** glibc detected *** python: double free or corruption (!prev): 0x0000000001d53ad0 ***
======= Backtrace: =========
/lib/x86_64-linux-gnu/libc.so.6(+0x78a96)[0x7fbd28c21a96]
/lib/x86_64-linux-gnu/libc.so.6(cfree+0x6c)[0x7fbd28c25d7c]
/usr/lib/python2.7/dist-packages/psycopg2/_psycopg.so(+0xd6aa)[0x7fbd27c806aa]
/usr/lib/python2.7/dist-packages/psycopg2/_psycopg.so(+0xde51)[0x7fbd27c80e51]
/usr/lib/python2.7/dist-packages/psycopg2/_psycopg.so(+0x13f9b)[0x7fbd27c86f9b]
/usr/lib/python2.7/dist-packages/psycopg2/_psycopg.so(+0x146c6)[0x7fbd27c876c6]
python(PyEval_EvalFrameEx+0x2f9)[0x4b6569]
python(PyEval_EvalFrameEx+0xb07)[0x4b6d77]
======= Memory map: ========
00400000-00633000 r-xp 00000000 08:06 1901460                            /usr/bin/python2.7
00832000-00833000 r--p 00232000 08:06 1901460                            /usr/bin/python2.7
00833000-0089c000 rw-p 00233000 08:06 1901460                            /usr/bin/python2.7
0089c000-008ae000 rw-p 00000000 00:00 0 
01b30000-01f26000 rw-p 00000000 00:00 0                                  [heap]
7fbd1dffc000-7fbd1dffd000 ---p 00000000 00:00 0 
7fbd1dffd000-7fbd1e7fd000 rw-p 00000000 00:00 0 
7fbd1e7fd000-7fbd1e7fe000 ---p 00000000 00:00 0 
7fbd1e7fe000-7fbd1effe000 rw-p 00000000 00:00 0 
7fbd1effe000-7fbd1efff000 ---p 00000000 00:00 0 
7fbd1efff000-7fbd1f7ff000 rw-p 00000000 00:00 0 
7fbd1f7ff000-7fbd1f800000 ---p 00000000 00:00 0 
7fbd1f800000-7fbd20000000 rw-p 00000000 00:00 0 
7fbd20000000-7fbd2011e000 rw-p 00000000 00:00 0 
7fbd2011e000-7fbd24000000 ---p 00000000 00:00 0 
7fbd24411000-7fbd24426000 r-xp 00000000 08:06 1754089                    /lib/x86_64-linux-gnu/libgcc_s.so.1
7fbd24426000-7fbd24625000 ---p 00015000 08:06 1754089                    /lib/x86_64-linux-gnu/libgcc_s.so.1
7fbd24625000-7fbd24626000 r--p 00014000 08:06 1754089                    /lib/x86_64-linux-gnu/libgcc_s.so.1
7fbd24626000-7fbd24627000 rw-p 00015000 08:06 1754089                    /lib/x86_64-linux-gnu/libgcc_s.so.1
7fbd24627000-7fbd24628000 ---p 00000000 00:00 0 
7fbd24628000-7fbd24e28000 rw-p 00000000 00:00 0 
7fbd24e28000-7fbd24e34000 r-xp 00000000 08:06 1754109                    /lib/x86_64-linux-gnu/libnss_files-2.13.so
7fbd24e34000-7fbd25033000 ---p 0000c000 08:06 1754109                    /lib/x86_64-linux-gnu/libnss_files-2.13.so
7fbd25033000-7fbd25034000 r--p 0000b000 08:06 1754109                    /lib/x86_64-linux-gnu/libnss_files-2.13.so
7fbd25034000-7fbd25035000 rw-p 0000c000 08:06 1754109                    /lib/x86_64-linux-gnu/libnss_files-2.13.so
7fbd25035000-7fbd2503f000 r-xp 00000000 08:06 1754113                    /lib/x86_64-linux-gnu/libnss_nis-2.13.so
7fbd2503f000-7fbd2523f000 ---p 0000a000 08:06 1754113                    /lib/x86_64-linux-gnu/libnss_nis-2.13.so
7fbd2523f000-7fbd25240000 r--p 0000a000 08:06 1754113                    /lib/x86_64-linux-gnu/libnss_nis-2.13.so
7fbd25240000-7fbd25241000 rw-p 0000b000 08:06 1754113                    /lib/x86_64-linux-gnu/libnss_nis-2.13.so
7fbd25241000-7fbd25258000 r-xp 00000000 08:06 1754103                    /lib/x86_64-linux-gnu/libnsl-2.13.so
7fbd25258000-7fbd25457000 ---p 00017000 08:06 1754103                    /lib/x86_64-linux-gnu/libnsl-2.13.so
7fbd25457000-7fbd25458000 r--p 00016000 08:06 1754103                    /lib/x86_64-linux-gnu/libnsl-2.13.so
7fbd25458000-7fbd25459000 rw-p 00017000 08:06 1754103                    /lib/x86_64-linux-gnu/libnsl-2.13.so
7fbd25459000-7fbd2545b000 rw-p 00000000 00:00 0 
7fbd2545b000-7fbd25463000 r-xp 00000000 08:06 1754105                    /lib/x86_64-linux-gnu/libnss_compat-2.13.so
7fbd25463000-7fbd25662000 ---p 00008000 08:06 1754105                    /lib/x86_64-linux-gnu/libnss_compat-2.13.so
7fbd25662000-7fbd25663000 r--p 00007000 08:06 1754105                    /lib/x86_64-linux-gnu/libnss_compat-2.13.so
7fbd25663000-7fbd25664000 rw-p 00008000 08:06 1754105                    /lib/x86_64-linux-gnu/libnss_compat-2.13.so
7fbd25664000-7fbd2566b000 r-xp 00000000 08:06 1754132                    /lib/x86_64-linux-gnu/librt-2.13.so
7fbd2566b000-7fbd2586a000 ---p 00007000 08:06 1754132                    /lib/x86_64-linux-gnu/librt-2.13.so
7fbd2586a000-7fbd2586b000 r--p 00006000 08:06 1754132                    /lib/x86_64-linux-gnu/librt-2.13.so
7fbd2586b000-7fbd2586c000 rw-p 00007000 08:06 1754132                    /lib/x86_64-linux-gnu/librt-2.13.so
7fbd2586c000-7fbd2587a000 r-xp 00000000 08:06 1982536                    /usr/lib/python2.7/dist-packages/mx/DateTime/mxDateTime/mxDateTime.so
7fbd2587a000-7fbd25a7a000 ---p 0000e000 08:06 1982536                    /usr/lib/python2.7/dist-packages/mx/DateTime/mxDateTime/mxDateTime.so
7fbd25a7a000-7fbd25a7b000 r--p 0000e000 08:06 1982536                    /usr/lib/python2.7/dist-packages/mx/DateTime/mxDateTime/mxDateTime.so
7fbd25a7b000-7fbd25a7c000 rw-p 0000f000 08:06 1982536                    /usr/lib/python2.7/dist-packages/mx/DateTime/mxDateTime/mxDateTime.so
7fbd25a7c000-7fbd25b3d000 rw-p 00000000 00:00 0 
7fbd25b3d000-7fbd25b40000 r-xp 00000000 08:06 1754095                    /lib/x86_64-linux-gnu/libgpg-error.so.0.8.0
7fbd25b40000-7fbd25d3f000 ---p 00003000 08:06 1754095                    /lib/x86_64-linux-gnu/libgpg-error.so.0.8.0
7fbd25d3f000-7fbd25d40000 r--p 00002000 08:06 1754095                    /lib/x86_64-linux-gnu/libgpg-error.so.0.8.0
7fbd25d40000-7fbd25d41000 rw-p 00003000 08:06 1754095                    /lib/x86_64-linux-gnu/libgpg-error.so.0.8.0
7fbd25d41000-7fbd25d51000 r-xp 00000000 08:06 8518                       /usr/lib/x86_64-linux-gnu/libtasn1.so.3.1.11
7fbd25d51000-7fbd25f50000 ---p 00010000 08:06 8518                       /usr/lib/x86_64-linux-gnu/libtasn1.so.3.1.11
7fbd25f50000-7fbd25f51000 r--p 0000f000 08:06 8518                       /usr/lib/x86_64-linux-gnu/libtasn1.so.3.1.11
7fbd25f51000-7fbd25f52000 rw-p 00010000 08:06 8518                       /usr/lib/x86_64-linux-gnu/libtasn1.so.3.1.11
7fbd25f52000-7fbd25fcc000 r-xp 00000000 08:06 1754091                    /lib/x86_64-linux-gnu/libgcrypt.so.11.7.0
7fbd25fcc000-7fbd261cc000 ---p 0007a000 08:06 1754091                    /lib/x86_64-linux-gnu/libgcrypt.so.11.7.0
7fbd261cc000-7fbd261cd000 r--p 0007a000 08:06 1754091                    /lib/x86_64-linux-gnu/libgcrypt.so.11.7.0
7fbd261cd000-7fbd261d0000 rw-p 0007b000 08:06 1754091                    /lib/x86_64-linux-gnu/libgcrypt.so.11.7.0
7fbd261d0000-7fbd26271000 r-xp 00000000 08:06 8379                       /usr/lib/x86_64-linux-gnu/libgnutls.so.26.16.14
7fbd26271000-7fbd26470000 ---p 000a1000 08:06 8379                       /usr/lib/x86_64-linux-gnu/libgnutls.so.26.16.14
7fbd26470000-7fbd26477000 r--p 000a0000 08:06 8379                       /usr/lib/x86_64-linux-gnu/libgnutls.so.26.16.14
7fbd26477000-7fbd26478000 Aborted
msg150926 - (view) Author: Charles-Fran├žois Natali (neologix) * (Python committer) Date: 2012-01-09 08:26
/usr/lib/python2.7/dist-packages/psycopg2/_psycopg.so(+0xd6aa)[0x7fbd27c806aa]
/usr/lib/python2.7/dist-packages/psycopg2/_psycopg.so(+0xde51)[0x7fbd27c80e51]
/usr/lib/python2.7/dist-packages/psycopg2/_psycopg.so(+0x13f9b)[0x7fbd27c86f9b]
/usr/lib/python2.7/dist-packages/psycopg2/_psycopg.so(+0x146c6)[0x7fbd27c876c6]

Looks like you should report this to Psyco, no?

Also, you can read this on the project's main page:
"""
16 July 2010

Python 2.7 is unsupported so far. Anyone interested in porting Psyco to it is welcome. I started the work in a branch but it needs finishing.
"""
msg150929 - (view) Author: Andrew (BlendsInWell) Date: 2012-01-09 10:46
I'll try Python 2.6, but this says 2.7 is supported: http://initd.org/psycopg/features/

Thanks for the suggestion!
msg150958 - (view) Author: Charles-Fran├žois Natali (neologix) * (Python committer) Date: 2012-01-09 18:18
> I'll try Python 2.6, but this says 2.7 is supported

(OOps, mixed up psyco and psycopg).
Anyway, if you look at the backtrace, you'll see it segfaults inside psycopg.
You should report this crash to this project.
Closing.
History
Date User Action Args
2012-01-09 18:18:15neologixsetstatus: open -> closed
resolution: not a bug
messages: + msg150958

stage: resolved
2012-01-09 10:46:58BlendsInWellsetstatus: pending -> open

messages: + msg150929
2012-01-09 08:26:34neologixsetstatus: open -> pending
nosy: + neologix
messages: + msg150926

2012-01-09 05:22:32BlendsInWellcreate