To sum up:
SuperCollider 3.13.1, Ubuntu studio 22.04.5 LTS.
From time to time the interpreter crash with this message:
Interpreter has crashed or stopped forcefully. [Exit code: 11]
it can happen anytime, I canāt isolate a piece of code to reproduce it unfortunately.
I can play with a piece of code without any trouble for weeks and one day suddenly, with the same code, the interpreter crash (not necessarily when I execute code, it can happen during the sound play at a moment when I donāt touch the keyboard).
it can happen several times in a row then no longer reproduce for several days/weeks.
After 6 months, I still not able to reproduce the problem with a piece of code, it looks totally random.
The output of gdb attach to sclang:
Thread 1 "sclang" received signal SIGSEGV, Segmentation fault.
PyrGC::DLInsertAfter (obj=0x557c0c48d900, after=0x557bfa1891c0, this=0x557bfa187440) at /home/fabien/SuperCollider_source/supercollider/lang/LangSource/GC.h:219
219 after->next->prev = obj;
(gdb) where
#0 PyrGC::DLInsertAfter (obj=0x557c0c48d900, after=0x557bfa1891c0,
this=0x557bfa187440)
at /home/fabien/SuperCollider_source/supercollider/lang/LangSource/GC.h:219
#1 PyrGC::ToBlack (obj=0x557c0c48d900, this=0x557bfa187440)
at /home/fabien/SuperCollider_source/supercollider/lang/LangSource/GC.h:243
#2 PyrGC::ScanOneObj (this=this@entry=0x557bfa187440)
at /home/fabien/SuperCollider_source/supercollider/lang/LangSource/GC.cpp:545
#3 0x0000557bde101ce8 in PyrGC::Collect (this=0x557bfa187440)
at /home/fabien/SuperCollider_source/supercollider/lang/LangSource/GC.cpp:676
#4 0x0000557bde102085 in PyrGC::Allocate (
inRunCollection=<optimized out>, sizeclass=3, inNumBytes=112,
--Type <RET> for more, q to quit, c to continue without paging--
this=0x557bfa187440)
at /home/fabien/SuperCollider_source/supercollider/lang/LangSource/GC.h:307
#5 PyrGC::NewFrame (this=0x557bfa187440, inNumBytes=112,
inFlags=inFlags@entry=0, inFormat=inFormat@entry=1,
inAccount=<optimized out>)
at /home/fabien/SuperCollider_source/supercollider/lang/LangSource/GC.cpp:393
#6 0x0000557bde1015ee in blockValue (g=0x557bde45f3a0 <gVMGlobals>,
numArgsPushed=2)
at /home/fabien/SuperCollider_source/supercollider/lang/LangPrimSource/PyrPrimitive.cpp:939
#7 0x0000557bde12daac in doPrimitive (g=0x557bde45f3a0 <gVMGlobals>,
meth=0x557bfca46500, numArgsPushed=<optimized out>)
at /home/fabien/SuperCollider_source/supercollider/lang/LangPrimSource/P--Type <RET> for more, q to quit, c to continue without paging--
yrPrimitive.cpp:3888
#8 0x0000557bde102a78 in Interpret (g=0x557bfa187440,
g@entry=0x557bde45f3a0 <gVMGlobals>)
at /home/fabien/SuperCollider_source/supercollider/lang/LangSource/PyrInterpreter3.cpp:3035
#9 0x0000557bde1bb3e8 in runInterpreter (g=0x557bde45f3a0 <gVMGlobals>,
selector=<optimized out>, numArgsPushed=<optimized out>)
at /home/fabien/SuperCollider_source/supercollider/lang/LangSource/PyrInterpreter3.cpp:127
#10 0x0000557bde1bfd4b in runLibrary (selector=<optimized out>)
at /home/fabien/SuperCollider_source/supercollider/lang/LangSource/PyrLexer.cpp:2274
#11 0x0000557bde1f8a7f in SC_LanguageClient::tickLocked (
this=this@entry=0x557bfa019f00, nextTime=nextTime@entry=0x7ffe47fd61b0)
at /home/fabien/SuperCollider_source/supercollider/lang/LangSource/SC_La--Type <RET> for more, q to quit, c to continue without paging--
nguageClient.cpp:277
#12 0x0000557bde11db86 in QtCollider::LangClient::tick (
this=0x557bfa019ef0)
at /home/fabien/SuperCollider_source/supercollider/QtCollider/LanguageClient.cpp:92
#13 0x00007c04680e733f in QObject::event(QEvent*) ()
from /lib/x86_64-linux-gnu/libQt5Core.so.5
#14 0x00007c0468f6c713 in QApplicationPrivate::notify_helper(QObject*, QEvent*) () from /lib/x86_64-linux-gnu/libQt5Widgets.so.5
#15 0x00007c04680b9e3a in QCoreApplication::notifyInternal2(QObject*, QEvent*) () from /lib/x86_64-linux-gnu/libQt5Core.so.5
#16 0x00007c04681123eb in QTimerInfoList::activateTimers() ()
from /lib/x86_64-linux-gnu/libQt5Core.so.5
#17 0x00007c0468112d34 in ?? () from /lib/x86_64-linux-gnu/libQt5Core.so.5
#18 0x00007c046711bcbb in g_main_context_dispatch ()
--Type <RET> for more, q to quit, c to continue without paging--
from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#19 0x00007c0467171258 in ?? () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#20 0x00007c0467119363 in g_main_context_iteration ()
from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#21 0x00007c04681130b8 in QEventDispatcherGlib::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () from /lib/x86_64-linux-gnu/libQt5Core.so.5
#22 0x00007c04680b875b in QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) () from /lib/x86_64-linux-gnu/libQt5Core.so.5
#23 0x00007c04680c0cf4 in QCoreApplication::exec() ()
from /lib/x86_64-linux-gnu/libQt5Core.so.5
#24 0x0000557bde11d9ed in non-virtual thunk to QtCollider::LangClient::commandLoop() ()
at /home/fabien/SuperCollider_source/supercollider/QtCollider/LanguageClient.cpp:37
#25 0x0000557bde10ef40 in SC_TerminalClient::run (this=0x557bfa019f00,
--Type <RET> for more, q to quit, c to continue without paging--
argc=<optimized out>, argv=<optimized out>)
at /home/fabien/SuperCollider_source/supercollider/lang/LangSource/SC_TerminalClient.cpp:275
#26 0x0000557bde0fcd12 in main (argc=3, argv=0x7ffe47fd6798)
at /home/fabien/SuperCollider_source/supercollider/lang/LangSource/cmdLineFuncs.cpp:27
(gdb) continue
Continuing.
Couldn't get registers: Aucun processus ayant ce numƩro.
(gdb) [Thread 0x7c03d2ffd640 (LWP 2517) exited]
[Thread 0x7c03d37fe640 (LWP 2515) exited]
[Thread 0x7c03d3fff640 (LWP 2496) exited]
[Thread 0x7c03ce7f4640 (LWP 2495) exited]
[Thread 0x7c03cdff3640 (LWP 2378) exited]
[Thread 0x7c03cd7f2640 (LWP 2377) exited]
[Thread 0x7c03ccff1640 (LWP 2376) exited]
[Thread 0x7c03f0ff9640 (LWP 2360) exited]
[Thread 0x7c03f17fa640 (LWP 2359) exited]
[Thread 0x7c03f1ffb640 (LWP 2358) exited]
[Thread 0x7c03f27fc640 (LWP 2353) exited]
[Thread 0x7c03f2ffd640 (LWP 2352) exited]
[Thread 0x7c03f37fe640 (LWP 2351) exited]
[Thread 0x7c03f3fff640 (LWP 2350) exited]
[Thread 0x7c0418ff9640 (LWP 2349) exited]
[Thread 0x7c0419ffb640 (LWP 2348) exited]
[Thread 0x7c041b7fe640 (LWP 2344) exited]
[Thread 0x7c042cfff640 (LWP 2342) exited]
[Thread 0x7c042dbfe640 (LWP 2341) exited]
[Thread 0x7c042e3ff640 (LWP 2335) exited]
[Thread 0x7c042f7fe640 (LWP 2332) exited]
[Thread 0x7c043cfff640 (LWP 2330) exited]
[Thread 0x7c0448dfd640 (LWP 2329) exited]
[Thread 0x7c04495fe640 (LWP 2328) exited]
[Thread 0x7c0449dff640 (LWP 2327) exited]
[Thread 0x7c0450d66640 (LWP 2324) exited]
[Thread 0x7c04527ff640 (LWP 2319) exited]
[Thread 0x7c0453972640 (LWP 2316) exited]
[Thread 0x7c0454173640 (LWP 2315) exited]
[Thread 0x7c045439f400 (LWP 2291) exited]
[Thread 0x7c042ffff640 (LWP 2331) exited]
[New process 2291]
Program terminated with signal SIGSEGV, Segmentation fault.
The program no longer exists.
Thank you for your help