[Python-Dev] collections module (original) (raw)
Jeff Epler jepler at unpythonic.net
Tue Jan 13 15:53:00 EST 2004
- Previous message: [Python-Dev] collections module
- Next message: [Python-Dev] collections module
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
On Tue, Jan 13, 2004 at 01:53:31PM -0600, Jeff Epler wrote:
I also got the same (?) failure as tim described: testlist make: *** [test] Segmentation fault
test_sort (test.test_list.ListTest) ... ==32746== ==32746== Invalid write of size 4 ==32746== at 0x806A855: ins1 (listobject.c:175) ==32746== by 0x806B144: listappend (listobject.c:637) ==32746== by 0x80A5928: call_function (ceval.c:3440) ==32746== by 0x80A3F16: eval_frame (ceval.c:2127) ==32746== Address 0x41302B2C is 0 bytes inside a block of size 1 alloc'd ==32746== at 0x40160DB8: malloc (in /usr/lib/valgrind/valgrind.so) ==32746== by 0x806B50E: listsort (listobject.c:1884) ==32746== by 0x80EEF07: PyCFunction_Call (methodobject.c:118) ==32746== by 0x805AAD3: PyObject_Call (abstract.c:1759)
It's in the self-modifying list test: z = range(12) def c(x, y): z.append(1) # HERE return cmp(x, y) z.sort(c)
Jeff
- Previous message: [Python-Dev] collections module
- Next message: [Python-Dev] collections module
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]