James Harkins | 3 Jul 2010 04:00
Picon

Re: Re: makeDebugFrame crash *again*...

On 7/1/10 4:04 PM, Tim Blechmann wrote:
>>> well - definitely has to do with GC, and the number of DebugFrames in
>>> there is almost 512... I can't get this to happen in SuperCollider.app
>>> though. Did it happen for you there as well?
>>>
>>>        
>> Oh yeah, often. It usually didn't take so many frames either. In this
>> case, I'm quite sure the stack was not that deep -- somehow that
>> function got into some infinite recursion that it should not have done.
>> But I've seen similar crashes that are only 10-15 calls deep.
>>      
> well, the recursion doesn't need to be infinite, but it is just rather deep
> ... unfortunately, it is not a recursion, that can easily be converted to an
> iteration ...
>
> but do you have some code, that reproduces this?

No, it's inconsistent. It just happened again while opening the Help 
gui. Error.debug=true gave me a valid backtrace once - then I tried to 
use the help gui and kablooey.

Host Name:      ddw
Date/Time:      2010-07-03 09:57:03.041 +0800
OS Version:     10.4.11 (Build 8S2167)
Report Version: 4

Command: sclang
Path:    /Users/dewdrop/Applications/sc-emacs/common/build/sclang
Parent:  Aquamacs Emacs [13076]

Version: ??? (???)

PID:    13092
Thread: 0

Exception:  EXC_BAD_ACCESS (0x0001)
Codes:      KERN_PROTECTION_FAILURE (0x0002) at 0x000004f9

Thread 0 Crashed:
0   libsclang.dylib               0x003fc909 MakeDebugFrame(VMGlobals*, 
PyrFrame*, pyrslot*) + 29
1   libsclang.dylib               0x003fc9dd MakeDebugFrame(VMGlobals*, 
PyrFrame*, pyrslot*) + 241
2   libsclang.dylib               0x003fc9dd MakeDebugFrame(VMGlobals*, 
PyrFrame*, pyrslot*) + 241
3   libsclang.dylib               0x003fc9dd MakeDebugFrame(VMGlobals*, 
PyrFrame*, pyrslot*) + 241
4   libsclang.dylib               0x003fc9dd MakeDebugFrame(VMGlobals*, 
PyrFrame*, pyrslot*) + 241
5   libsclang.dylib               0x003fc9dd MakeDebugFrame(VMGlobals*, 
PyrFrame*, pyrslot*) + 241
6   libsclang.dylib               0x003fc9dd MakeDebugFrame(VMGlobals*, 
PyrFrame*, pyrslot*) + 241
7   libsclang.dylib               0x003fc9dd MakeDebugFrame(VMGlobals*, 
PyrFrame*, pyrslot*) + 241
8   libsclang.dylib               0x003fc9dd MakeDebugFrame(VMGlobals*, 
PyrFrame*, pyrslot*) + 241
9   libsclang.dylib               0x003fcb4b prGetBackTrace(VMGlobals*, 
int) + 31
10  libsclang.dylib               0x003f9e82 doPrimitive(VMGlobals*, 
PyrMethod*, int) + 198
11  libsclang.dylib               0x003b9904 Interpret(VMGlobals*) + 11872
12  libsclang.dylib               0x003bb691 runInterpreter + 103
13  libsclang.dylib               0x003bd3ce runLibrary + 80
14  libsclang.dylib               0x003e8bd5 SC_LanguageClient::tick() + 85
15  libsclang.dylib               0x003ea9c6 
SC_TerminalClient::commandLoop() + 96
16  libsclang.dylib               0x003ea61a SC_TerminalClient::run(int, 
char**) + 230
17  sclang                        0x00002ed5 main + 57
18  sclang                        0x0000282a _start + 216
19  sclang                        0x00002751 start + 41

>   also the crash data from a
> debug build may be handy ...
>    

Nice idea. Don't have time ATM.
hjh

-- 

James Harkins /// dewdrop world
jamshark70@...
http://www.dewdrop-world.net

"Come said the Muse,
Sing me a song no poet has yet chanted,
Sing me the universal." -- Whitman

blog: http://www.dewdrop-world.net/words
audio clips: http://www.dewdrop-world.net/audio
more audio: http://soundcloud.com/dewdrop_world/tracks

_______________________________________________
sc-dev mailing list

info (subscription, etc.): http://www.beast.bham.ac.uk/research/sc_mailing_lists.shtml
archive: http://www.listarc.bham.ac.uk/marchives/sc-dev/
search: http://www.listarc.bham.ac.uk/lists/sc-dev/search/


Gmane