[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [sc-dev] trying to catch a trace of sclang crashing (also is: sclang crash on quit (related to #1438?))



On 26.Nov 2015, at 7:13 , Tim Blechmann <tim@xxxxxxxxxx> wrote:

>> 
>> another thing you can do is to run sclang from XCode but that's
>> more complicated now that its wrapped in the IDE. but at least then
>> if you crash it has a nice fat red highlight on the source code
>> where it died.
> 
> not exactly necessary:
> * launch sclang from the IDE
> * attach the debugger to the sclang process (could be gdb/linux, lldb/osx or cdb/windows)

that's what I've done.

> * crash sclang and get the backtraces ...

getting the traces is the part of uncertainty for me.
but maybe sclang should (finally) crash an it will be self-explanatory to me. ;)

anyway, I wonder what happens here:

The regular flow is
	launch lldb
	wait for the sclang to attach
	launch sc-ide
	sclang gets attached and stops
	continue sclang
	work in the ide on my project
	quit sc-ide
	lldb shows sclang exited w/ code 0

once in a while this below happens - not that what I'm looking for, but different:

(lldb) process attach --name sclang --waitfor
Process 79322 stopped
(lldb) process continue
Process 79322 resuming
Process 79322 stopped
* thread #1: tid = 0x4c47ad, 0x00007fff8745102a libsystem_kernel.dylib`__open_nocancel + 10, queue = 'com.apple.main-thread', stop reason = signal SIGTERM
    frame #0: 0x00007fff8745102a libsystem_kernel.dylib`__open_nocancel + 10
libsystem_kernel.dylib`__open_nocancel + 10:
-> 0x7fff8745102a:  jae    0x7fff87451031            ; __open_nocancel + 17
   0x7fff8745102c:  jmpq   0x7fff874524d4            ; cerror_nocancel
   0x7fff87451031:  ret    
   0x7fff87451032:  nop    
(lldb) process continue
Process 79322 resuming
Process 79322 exited with status = 0 (0x00000000) 
(lldb) 



_______________________________________________
sc-dev mailing list

info (subscription, etc.): http://www.birmingham.ac.uk/facilities/ea-studios/research/supercollider/mailinglist.aspx
archive: https://listarc.bham.ac.uk/marchives/sc-dev/
search: https://listarc.bham.ac.uk/lists/sc-dev/search/