[Csnd-dev] crash in csound_rtio

Eduardo Moguillansky <[email protected]> Sat, 11 Jul 2026 17:42:39 +0200
Newsgroups gmane.comp.audio.csound.devel
Message-ID <CAHFFssJ_wV9KyD26JP2rYRDa5ri8peE4DMtB+Wf5Noi3bVM+Yg@mail.gmail.com>
--000000000000b05751065657b522
Content-Type: text/plain; charset="UTF-8"

I am getting a confusing crash with latest develop. The csound binary
crashes (even if csound is called without any args)
within csoundSetExternalMidiErrorStringCallback in csound_rtio.c

void
csoundSetExternalMidiErrorStringCallback(CSOUND *csound,
                                         const char *(*func)(int32_t)) {
  csound->midiGlobals->MidiErrorStringCallback = func;
}

csound->midiGlobals seems to be null, but maybe the problem is that this
function is being called at all?

If I comment the line "csound->midiGlobals..." out, the crash is gone.

best regards,
Eduardo

--000000000000b05751065657b522
Content-Type: text/html; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable

<div dir=3D"ltr"><div>I am getting a confusing crash with latest develop. T=
he csound binary crashes (even if csound is called without any args) within=
=C2=A0csoundSetExternalMidiErrorStringCallback in csound_rtio.c</div><div><=
br></div><div>void<br>csoundSetExternalMidiErrorStringCallback(CSOUND *csou=
nd,<br>=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=
=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =
=C2=A0const char *(*func)(int32_t)) {<br>=C2=A0 csound-&gt;midiGlobals-&gt;=
MidiErrorStringCallback =3D func;<br>}</div><div><br></div><div>csound-&gt;=
midiGlobals seems to be null, but maybe the problem is that this function i=
s being called at all?=C2=A0</div><div><br></div><div>If I comment the line=
 &quot;csound-&gt;midiGlobals...&quot; out, the crash is gone.=C2=A0</div><=
div><br></div><div>best regards,</div><div>Eduardo</div></div>

--000000000000b05751065657b522--