[Stackless] Segfault on KeyboardInterrupt

Jeff Senn senn at maya.com
Tue Jan 19 15:36:15 CET 2010


I notice that you are running a 64 bit build...  and I wonder if a
32 bit build would exhibit the same behavior...   In any case
I doubt very many people are using a Snow Leopard build of 
Stackless yet.

Also a gdb stack dump *might* be more useful than the 
Apple crash reporter.

On Jan 19, 2010, at 5:33 AM, Simon Wittber wrote:

> Stackless is segfaulting when I KeyboardInterrupt and a task is
> currently running. Below code demonstrates the issue for me. Is this
> happening to anyone else? Any assistance is appreciated!
> 
> I'm running:
> 
> Python 2.6.4 Stackless 3.1b3 060516 (release26-maint, Dec 30 2009, 11:42:32)
> [GCC 4.2.1 (Apple Inc. build 5646) (dot 1)] on darwin
> 
> This is the code.
> 
> ----------------------------------------------------------------------
> import stackless
> def loop():
>    while True:
>        stackless.schedule()
> stackless.tasklet(loop)()
> stackless.run()
> 
> ^C/bin/bash: line 1: 12739 Segmentation fault      ( python bug.py ) <
> /var/folders/SG/SGonhYtiFN0y9XQEdJZAeE+++TI/-Tmp-/v908179/36
> 
> shell returned 139
> ----------------------------------------------------------------------
> 
> 
> Crash Report is pasted below.
> 
> Process:         python [12743]
> Path:            /opt/local/bin/python
> Identifier:      python
> Version:         ??? (???)
> Code Type:       X86-64 (Native)
> Parent Process:  bash [12742]
> 
> Date/Time:       2010-01-19 18:27:36.691 +0800
> OS Version:      Mac OS X 10.6.2 (10C540)
> Report Version:  6
> 
> Exception Type:  EXC_BAD_ACCESS (SIGSEGV)
> Exception Codes: 0x000000000000000d, 0x0000000000000000
> Crashed Thread:  0  Dispatch queue: com.apple.main-thread
> 
> Thread 0 Crashed:  Dispatch queue: com.apple.main-thread
> 0   python                              0x00000001000bc212
> slp_schedule_task + 322
> 1   ???                                 0x0a80fa6e9b98b6c4 0 +
> 756880090362066628
> 
> Thread 0 crashed with X86 Thread State (64-bit):
>  rax: 0x00000001002a4ef0  rbx: 0x0000000100300150  rcx:
> 0x00000001002a4ef0  rdx: 0x00007fff5fbf60a0
>  rdi: 0x00007fff5fbf65d0  rsi: 0x000000010085c1d0  rbp:
> 0x00000001002996e0  rsp: 0x00007fff5fbf60a8
>   r8: 0x00007fffffe0082c   r9: 0x0000000000000000  r10:
> 0x0000000000000000  r11: 0x00007fff5fbf6050
>  r12: 0x0000000000000000  r13: 0x00000001002a4f80  r14:
> 0x0000000100350d40  r15: 0x0000000000000000
>  rip: 0x00000001000bc212  rfl: 0x0000000000010206  cr2: 0x000000012709c000
> 
> Binary Images:
>       0x100000000 -        0x100161fe7 +python ??? (???)
> <A0170845-2996-5EF3-22A4-DB0C4035ACFD> /opt/local/bin/python
>    0x7fff5fc00000 -     0x7fff5fc3bdef  dyld 132.1 (???)
> <B633F790-4DDB-53CD-7ACF-2A3682BCEA9F> /usr/lib/dyld
>    0x7fff80586000 -     0x7fff8058aff7  libmathCommon.A.dylib ???
> (???) <95718673-FEEE-B6ED-B127-BCDBDB60D4E5>
> /usr/lib/system/libmathCommon.A.dylib
>    0x7fff805cd000 -     0x7fff8078bff7  libSystem.B.dylib ??? (???)
> <526DD3E5-2A8B-4512-ED97-01B832369959> /usr/lib/libSystem.B.dylib
>    0x7fffffe00000 -     0x7fffffe01fff  libSystem.B.dylib ??? (???)
> <526DD3E5-2A8B-4512-ED97-01B832369959> /usr/lib/libSystem.B.dylib
> 
> 
> 
> 
>    :: Simon Wittber
>    :: http://www.linkedin.com/in/simonwittber
>    :: skype: simonwittber
>    :: phone: +61.4.0135.0685
>    :: jabber/msn: simonwittber at gmail.com
> 
> _______________________________________________
> Stackless mailing list
> Stackless at stackless.com
> http://www.stackless.com/mailman/listinfo/stackless
> 





More information about the Stackless mailing list