Re: [Pyobjc-dev] crashing bug
Brought to you by:
ronaldoussoren
From: Ronald O. <ous...@ci...> - 2002-12-01 16:22:11
|
This one was easy: The (C) code sometimes failed to initialize a struct member, with disasterous (sp?) results. I checked in a fix for this, including a test-case. Ronald On Sunday, Dec 1, 2002, at 14:15 Europe/Amsterdam, Just van Rossum wrote: > The following snippet crashes hard, both in Python 2.2 and CVS Python: > > > from Foundation import NSObject > class Foo(NSObject): > def foo(self): > pass > print Foo.foo > > > (Made my object browser crash ;-) > > I've pasted Console.app output below. > > Just > > > 2002-12-01 14:09:06.577 Console[22849] Exception raised during posting > of > notification. Ignored. exception: *** NSRunStorage, > _NSBlockNumberForIndex(): > index (53353) beyond array bounds (53353) > > > Date/Time: 2002-12-01 14:11:46 +0100 > OS Version: 10.2.2 (Build 6F21) > Host: python.xs4all.nl > > Command: python2.3 > PID: 22927 > > Exception: EXC_BAD_ACCESS (0x0001) > Codes: KERN_INVALID_ADDRESS (0x0001) at 0x5f5f6e69 > > Thread 0 Crashed: > #0 0x006b14f0 in pysel_repr (selector.m:797) > #1 0x00031380 in PyObject_Str (object.c:283) > #2 0x0003109c in PyObject_Print (object.c:184) > #3 0x000799e4 in eval_frame (ceval.c:1439) > #4 0x0007bdb8 in PyEval_EvalCodeEx (ceval.c:2554) > #5 0x0007ea44 in PyEval_EvalCode (ceval.c:478) > #6 0x0000bca8 in run_node (pythonrun.c:1090) > #7 0x0000b470 in PyRun_SimpleFileExFlags (pythonrun.c:701) > #8 0x000062b4 in Py_Main (main.c:385) > #9 0x00001f64 in _start (crt.c:267) > #10 0x00001de4 in start > > PPC Thread State: > srr0: 0x006b14f0 srr1: 0x0200f030 vrsave: 0x00000000 > xer: 0x20000000 lr: 0x006b14d0 ctr: 0x9068af84 mq: 0x00000000 > r0: 0x00e9d6d0 r1: 0xbffff7d0 r2: 0x007d81fc r3: 0xbffff810 > r4: 0x00000100 r5: 0x007d1cb0 r6: 0x00e9d6d0 r7: 0x0008da68 > r8: 0x000799e4 r9: 0x5f5f6e61 r10: 0x9068af90 r11: 0x007dabc8 > r12: 0x9068af84 r13: 0x0037dffc r14: 0x003cd4b0 r15: 0x00000000 > r16: 0x000d848c r17: 0x00000000 r18: 0x00078788 r19: 0x00000000 > r20: 0x0007848c r21: 0x00000003 r22: 0x0037a800 r23: 0x003ee960 > r24: 0x0037deb0 r25: 0x003c2058 r26: 0x003c8376 r27: 0x00000001 > r28: 0x000f1300 r29: 0xa0000d2c r30: 0xbffff7d0 r31: 0x006b149c > > > > ------------------------------------------------------- > This sf.net email is sponsored by:ThinkGeek > Welcome to geek heaven. > http://thinkgeek.com/sf > _______________________________________________ > Pyobjc-dev mailing list > Pyo...@li... > https://lists.sourceforge.net/lists/listinfo/pyobjc-dev > |