Skip to content

*** glibc detected *** python: double free or corruption (!prev): 0x0000000001d53ad0 *** #57950

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
BlendsInWell mannequin opened this issue Jan 9, 2012 · 4 comments
Closed
Labels
type-crash A hard crash of the interpreter, possibly with a core dump

Comments

@BlendsInWell
Copy link
Mannequin

BlendsInWell mannequin commented Jan 9, 2012

BPO 13741
Files
  • server.py
  • Note: these values reflect the state of the issue at the time it was migrated and might not reflect the current state.

    Show more details

    GitHub fields:

    assignee = None
    closed_at = <Date 2012-01-09.18:18:15.138>
    created_at = <Date 2012-01-09.05:22:32.132>
    labels = ['invalid', 'type-crash']
    title = '*** glibc detected *** python: double free or corruption (!prev): 0x0000000001d53ad0 ***'
    updated_at = <Date 2012-01-09.18:18:15.137>
    user = 'https://bugs.python.org/BlendsInWell'

    bugs.python.org fields:

    activity = <Date 2012-01-09.18:18:15.137>
    actor = 'neologix'
    assignee = 'none'
    closed = True
    closed_date = <Date 2012-01-09.18:18:15.138>
    closer = 'neologix'
    components = []
    creation = <Date 2012-01-09.05:22:32.132>
    creator = 'BlendsInWell'
    dependencies = []
    files = ['24183']
    hgrepos = []
    issue_num = 13741
    keywords = []
    message_count = 4.0
    messages = ['150920', '150926', '150929', '150958']
    nosy_count = 2.0
    nosy_names = ['neologix', 'BlendsInWell']
    pr_nums = []
    priority = 'normal'
    resolution = 'not a bug'
    stage = 'resolved'
    status = 'closed'
    superseder = None
    type = 'crash'
    url = 'https://bugs.python.org/issue13741'
    versions = ['Python 2.7']

    @BlendsInWell
    Copy link
    Mannequin Author

    BlendsInWell mannequin commented Jan 9, 2012

    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: ========
    0040000-00633000 r-xp 0000000 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 0000000 00:00 0
    01b30000-01f26000 rw-p 0000000 00:00 0 [heap]
    7fbd1dffc000-7fbd1dffd000 ---p 0000000 00:00 0
    7fbd1dffd000-7fbd1e7fd000 rw-p 0000000 00:00 0
    7fbd1e7fd000-7fbd1e7fe000 ---p 0000000 00:00 0
    7fbd1e7fe000-7fbd1effe000 rw-p 0000000 00:00 0
    7fbd1effe000-7fbd1efff000 ---p 0000000 00:00 0
    7fbd1efff000-7fbd1f7ff000 rw-p 0000000 00:00 0
    7fbd1f7ff000-7fbd1f800000 ---p 0000000 00:00 0
    7fbd1f800000-7fbd20000000 rw-p 0000000 00:00 0
    7fbd20000000-7fbd2011e000 rw-p 0000000 00:00 0
    7fbd2011e000-7fbd24000000 ---p 0000000 00:00 0
    7fbd24411000-7fbd24426000 r-xp 0000000 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 0000000 00:00 0
    7fbd24628000-7fbd24e28000 rw-p 0000000 00:00 0
    7fbd24e28000-7fbd24e34000 r-xp 0000000 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 0000000 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 0000000 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 0000000 00:00 0
    7fbd2545b000-7fbd25463000 r-xp 0000000 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 0000000 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 0000000 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 0000000 00:00 0
    7fbd25b3d000-7fbd25b40000 r-xp 0000000 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 0000000 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 0000000 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 0000000 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

    @BlendsInWell BlendsInWell mannequin added the type-crash A hard crash of the interpreter, possibly with a core dump label Jan 9, 2012
    @neologix
    Copy link
    Mannequin

    neologix mannequin commented Jan 9, 2012

    /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.
    """

    @BlendsInWell
    Copy link
    Mannequin Author

    BlendsInWell mannequin commented Jan 9, 2012

    I'll try Python 2.6, but this says 2.7 is supported: http://initd.org/psycopg/features/

    Thanks for the suggestion!

    @neologix
    Copy link
    Mannequin

    neologix mannequin commented Jan 9, 2012

    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.

    @neologix neologix mannequin closed this as completed Jan 9, 2012
    @neologix neologix mannequin added the invalid label Jan 9, 2012
    @ezio-melotti ezio-melotti transferred this issue from another repository Apr 10, 2022
    Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
    Labels
    type-crash A hard crash of the interpreter, possibly with a core dump
    Projects
    None yet
    Development

    No branches or pull requests

    0 participants