Message156017
Hi -- I'm getting a segfault running the attached crasher.py script.
Valgrind traces it down to an Invalid free() / delete / delete[] in
_PyUnicode_Ready().
Reproduce:
==========
Rev: 870c0ef7e8a2
Build: ./configure --without-pymalloc CFLAGS="-O0 -g" && make
$ ./python crasher.py
Segmentation fault
$ valgrind --db-attach=yes --suppressions=./Misc/valgrind-python.supp ./python crasher.py
==3476== Memcheck, a memory error detector
==3476== Copyright (C) 2002-2010, and GNU GPL'd, by Julian Seward et al.
==3476== Using Valgrind-3.6.1 and LibVEX; rerun with -h for copyright info
==3476== Command: ./python crasher.py
==3476==
==3476== Invalid free() / delete / delete[]
==3476== at 0x4C2748D: free (vg_replace_malloc.c:366)
==3476== by 0x44763C: _PyUnicode_Ready (unicodeobject.c:1405)
==3476== by 0x44ACF8: PyUnicode_FromFormatV (unicodeobject.c:2500)
==3476== by 0x4A1CF4: PyErr_Format (errors.c:621)
==3476== by 0x42F8FE: type_getattro (typeobject.c:2551)
==3476== by 0x43493A: wrap_binaryfunc (typeobject.c:4317)
==3476== by 0x550008: wrapper_call (descrobject.c:1067)
==3476== by 0x532C93: PyObject_Call (abstract.c:2150)
==3476== by 0x49012B: PyEval_CallObjectWithKeywords (ceval.c:3920)
==3476== by 0x54F136: wrapperdescr_call (descrobject.c:309)
==3476== by 0x532C93: PyObject_Call (abstract.c:2150)
==3476== by 0x491A1E: ext_do_call (ceval.c:4355)
==3476== Address 0x4 is not stack'd, malloc'd or (recently) free'd
==3476== |
|
Date |
User |
Action |
Args |
2012-03-16 12:33:41 | skrah | set | recipients:
+ skrah, loewis, vstinner |
2012-03-16 12:33:41 | skrah | set | messageid: <1331901221.34.0.872170817389.issue14334@psf.upfronthosting.co.za> |
2012-03-16 12:33:40 | skrah | link | issue14334 messages |
2012-03-16 12:33:39 | skrah | create | |
|