Re: [Csnd-dev] [EXTERNAL] [Csnd-dev] crash in csound_rtio

Eduardo Moguillansky <[email protected]> Sat, 11 Jul 2026 21:38:37 +0200
Newsgroups gmane.comp.audio.csound.devel
Message-ID <CAHFFssK7A2Tf3rUyTHU3Nd3=pZLYk2+cuC9ABKU4AZJKD4LvaQ@mail.gmail.com>
--0000000000008e777306565b01d0
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable

I see the problem now, csound seems to still look in the default user path
for plugins, even if OPCODE7DIR is set. Thanks for the heads-up regarding
ABI changes

On Sat, Jul 11, 2026 at 6:17=E2=80=AFPM Victor Lazzarini <
[email protected]> wrote:

> By the way, the ABI has changed - maybe this is the reason? Was the
>  binary recompiled and re-linked?
>
> Prof. Victor Lazzarini
> Maynooth University
> Ireland
>
> On 11 Jul 2026, at 17:12, Victor Lazzarini <
> [email protected]> wrote:
>
> =EF=BB=BF
> midiGlobals is allocated in csoundReset(), it looks like something going
> very wrong for it to be NULL.
>
> Maybe a backtrace may give some clues.
>
> Prof. Victor Lazzarini
> Maynooth University
> Ireland
>
> On 11 Jul 2026, at 16:42, Eduardo Moguillansky <
> [email protected]> wrote:
>
> =EF=BB=BF
> *Warning*
>
> This email originated from outside of Maynooth University's Mail System.
> Do not reply, click links or open attachments unless you recognise the
> sender and know the content is safe.
> 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 =3D 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
>
> The information contained in this email may be confidential and
> privileged. It is intended only for the addressee(s) stated above. If you
> are not an addressee any use, dissemination, distribution, publication or
> copying of the information contained in this email is strictly prohibited=
.
> If you have received this email in error, please immediately notify us by
> email at [email protected] and delete this email from your system.
>
> Please note that Maynooth University is subject to Freedom of Information
> and Data Protection laws. We may be required to disclose the content of
> emails under the* FOI Act 2014*, the* Data Protection Act 2018* or *GDPR*=
.
>
> Is don seola=C3=AD / do na seolaithe thuasluaite amh=C3=A1in an r=C3=ADom=
hphost seo.
> D=E2=80=99fh=C3=A9adfadh an t-eolas at=C3=A1 ann a bheith r=C3=BAnda agus=
 faoi phribhl=C3=A9id. Mura
> seola=C3=AD t=C3=BA, t=C3=A1 cosc ioml=C3=A1n ar aon eolas at=C3=A1 sa r=
=C3=ADomhphost seo a =C3=BAs=C3=A1id, a
> scaipeadh, a dh=C3=A1ileadh, a fhoilsi=C3=BA n=C3=B3 a ch=C3=B3ipe=C3=A1i=
l. M=C3=A1 fuair t=C3=BA an
> r=C3=ADomhphost seo tr=C3=AD thimpiste, cuir sin in i=C3=BAl d=C3=BAinn l=
=C3=A1ithreach tr=C3=AD
> r=C3=ADomhphost a chur chuig  [email protected]  agus scrios an r=C3=
=ADomhphost
> seo =C3=B3 do ch=C3=B3ras.
>
> Tabhair faoi deara go bhfuil Ollscoil Mh=C3=A1 Nuad faoi r=C3=A9ir dhl=C3=
=ADthe um
> Shaor=C3=A1il Faisn=C3=A9ise agus um Chosaint Sonra=C3=AD. D=E2=80=99fh=
=C3=A9adfadh ceangal a bheith
> orainn =C3=A1bhar r=C3=ADomhphoist a nochtadh faoin *Acht um Shaor=C3=A1i=
l Faisn=C3=A9ise
> 2014*, faoin *Acht um Chosaint Sonra=C3=AD 2018* n=C3=B3 faoi *GDPR*.
>
> Registered charity number 20037130
>
>
>
> The information contained in this email may be confidential and
> privileged. It is intended only for the addressee(s) stated above. If you
> are not an addressee any use, dissemination, distribution, publication or
> copying of the information contained in this email is strictly prohibited=
.
> If you have received this email in error, please immediately notify us by
> email at [email protected] and delete this email from your system.
>
> Please note that Maynooth University is subject to Freedom of Information
> and Data Protection laws. We may be required to disclose the content of
> emails under the* FOI Act 2014*, the* Data Protection Act 2018* or *GDPR*=
.
>
> Is don seola=C3=AD / do na seolaithe thuasluaite amh=C3=A1in an r=C3=ADom=
hphost seo.
> D=E2=80=99fh=C3=A9adfadh an t-eolas at=C3=A1 ann a bheith r=C3=BAnda agus=
 faoi phribhl=C3=A9id. Mura
> seola=C3=AD t=C3=BA, t=C3=A1 cosc ioml=C3=A1n ar aon eolas at=C3=A1 sa r=
=C3=ADomhphost seo a =C3=BAs=C3=A1id, a
> scaipeadh, a dh=C3=A1ileadh, a fhoilsi=C3=BA n=C3=B3 a ch=C3=B3ipe=C3=A1i=
l. M=C3=A1 fuair t=C3=BA an
> r=C3=ADomhphost seo tr=C3=AD thimpiste, cuir sin in i=C3=BAl d=C3=BAinn l=
=C3=A1ithreach tr=C3=AD
> r=C3=ADomhphost a chur chuig  [email protected]  agus scrios an r=C3=
=ADomhphost
> seo =C3=B3 do ch=C3=B3ras.
>
> Tabhair faoi deara go bhfuil Ollscoil Mh=C3=A1 Nuad faoi r=C3=A9ir dhl=C3=
=ADthe um
> Shaor=C3=A1il Faisn=C3=A9ise agus um Chosaint Sonra=C3=AD. D=E2=80=99fh=
=C3=A9adfadh ceangal a bheith
> orainn =C3=A1bhar r=C3=ADomhphoist a nochtadh faoin *Acht um Shaor=C3=A1i=
l Faisn=C3=A9ise
> 2014*, faoin *Acht um Chosaint Sonra=C3=AD 2018* n=C3=B3 faoi *GDPR*.
>
> Registered charity number 20037130
>
>
>

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

<div dir=3D"ltr">I see the problem now, csound seems to still look in the d=
efault user path for plugins, even if OPCODE7DIR is set. Thanks for the hea=
ds-up regarding ABI changes</div><br><div class=3D"gmail_quote gmail_quote_=
container"><div dir=3D"ltr" class=3D"gmail_attr">On Sat, Jul 11, 2026 at 6:=
17=E2=80=AFPM Victor Lazzarini &lt;<a href=3D"mailto:000010b17ddd988e-dmarc=
[email protected]">[email protected]=
.ie</a>&gt; wrote:<br></div><blockquote class=3D"gmail_quote" style=3D"marg=
in:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1e=
x">



<div dir=3D"auto">
<div>By the way, the ABI has changed - maybe this is the reason? Was the =
=C2=A0binary recompiled and re-linked?</div>
<div><br>
</div>
<div dir=3D"ltr">Prof. Victor Lazzarini
<div>Maynooth University</div>
<div>Ireland</div>
</div>
<div dir=3D"ltr"><br>
<blockquote type=3D"cite">On 11 Jul 2026, at 17:12, Victor Lazzarini &lt;<a=
 href=3D"mailto:[email protected]" target=
=3D"_blank">[email protected]</a>&gt; wrote=
:<br>
<br>
</blockquote>
</div>
<blockquote type=3D"cite">
<div dir=3D"ltr">=EF=BB=BF
<div dir=3D"ltr">midiGlobals is allocated in csoundReset(), it looks like s=
omething going very wrong for it to be NULL.</div>
<div dir=3D"ltr"><br>
</div>
<div dir=3D"ltr">Maybe a backtrace may give some clues.</div>
<div dir=3D"ltr"><br>
</div>
<div dir=3D"ltr">
<div dir=3D"ltr">Prof. Victor Lazzarini
<div>Maynooth University</div>
<div>Ireland</div>
</div>
<div dir=3D"ltr"><br>
<blockquote type=3D"cite">On 11 Jul 2026, at 16:42, Eduardo Moguillansky &l=
t;<a href=3D"mailto:[email protected]" target=3D"_blank">eduar=
[email protected]</a>&gt; wrote:<br>
<br>
</blockquote>
</div>
<blockquote type=3D"cite">
<div dir=3D"ltr">=EF=BB=BF
<div style=3D"font-size:10pt;font-family:&quot;Segoe UI&quot;,&quot;Tahoma&=
quot;,&quot;Lucida Grande&quot;,sans-serif;color:rgb(0,51,51);text-align:ju=
stify">
<div style=3D"background-color:rgb(255,233,170);border:1px solid rgb(240,17=
2,2);padding:1em;margin:1em;border-radius:5px">
<h1 style=3D"font-size:inherit;color:rgb(255,0,0);font-weight:normal;text-t=
ransform:uppercase;padding:0px;margin:0px;display:inline">
<span style=3D"display:none">*</span>Warning<span style=3D"display:none">*<=
/span></h1>
<p style=3D"margin:0px;padding:0px;display:inline">This email originated fr=
om outside of Maynooth University&#39;s Mail System. Do not reply, click li=
nks or open attachments unless you recognise the sender and know the conten=
t is safe.</p>
</div>
</div>
<div>
<div dir=3D"ltr">
<div>I am getting a confusing crash with latest develop. The csound binary =
crashes (even if csound is called without any args) within=C2=A0csoundSetEx=
ternalMidiErrorStringCallback in csound_rtio.c</div>
<div><br>
</div>
<div>void<br>
csoundSetExternalMidiErrorStringCallback(CSOUND *csound,<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=A0co=
nst 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 is being called at all?=C2=A0</div>
<div><br>
</div>
<div>If I comment the line &quot;csound-&gt;midiGlobals...&quot; out, the c=
rash is gone.=C2=A0</div>
<div><br>
</div>
<div>best regards,</div>
<div>Eduardo</div>
</div>
</div>
</div>
</blockquote>
</div>
<p style=3D"line-height:115%;font-size:10px;font-family:&quot;Aptos&quot;,s=
ans-serif;margin:0cm 0cm 8pt">
<span style=3D"font-size:10px;line-height:115%">The information contained i=
n this email may be confidential and privileged. It is intended only for th=
e addressee(s) stated above. If you are not an addressee any use, dissemina=
tion, distribution, publication
 or copying of the information contained in this email is strictly prohibit=
ed. If you have received this email in error, please immediately notify us =
by email at
<a title=3D"mailto:[email protected]" href=3D"mailto:[email protected]=
e" target=3D"_blank">[email protected]</a> and delete this email from yo=
ur system.</span></p>
<p style=3D"line-height:115%;font-size:16px;font-family:&quot;Aptos&quot;,s=
ans-serif;margin:0cm 0cm 8pt">
<span style=3D"font-size:10px;line-height:115%">Please note that Maynooth U=
niversity is subject to Freedom of Information and Data Protection laws. We=
 may be required to disclose the content of emails under the<strong>=C2=A0F=
OI Act 2014</strong>, the<strong>=C2=A0Data
 Protection Act 2018</strong> or <strong>GDPR</strong>.</span></p>
<p style=3D"line-height:115%;font-size:10px;font-family:&quot;Aptos&quot;,s=
ans-serif;margin:0cm 0cm 8pt">
<span style=3D"font-size:10px;line-height:115%">Is don seola=C3=AD / do na =
seolaithe thuasluaite amh=C3=A1in an r=C3=ADomhphost seo. D=E2=80=99fh=C3=
=A9adfadh an t-eolas at=C3=A1 ann a bheith r=C3=BAnda agus faoi phribhl=C3=
=A9id. Mura seola=C3=AD t=C3=BA, t=C3=A1 cosc ioml=C3=A1n ar aon eolas at=
=C3=A1 sa r=C3=ADomhphost seo a =C3=BAs=C3=A1id,
 a scaipeadh, a dh=C3=A1ileadh, a fhoilsi=C3=BA n=C3=B3 a ch=C3=B3ipe=C3=A1=
il. M=C3=A1 fuair t=C3=BA an r=C3=ADomhphost seo tr=C3=AD thimpiste, cuir s=
in in i=C3=BAl d=C3=BAinn l=C3=A1ithreach tr=C3=AD r=C3=ADomhphost a chur c=
huig =C2=A0<a title=3D"mailto:[email protected]" href=3D"mailto:dataprot=
[email protected]" target=3D"_blank">[email protected]</a>=C2=A0
 agus scrios an r=C3=ADomhphost seo =C3=B3 do ch=C3=B3ras.</span></p>
<p style=3D"line-height:115%;font-size:10px;font-family:&quot;Aptos&quot;,s=
ans-serif;margin:0cm 0cm 8pt">
<span style=3D"font-size:10px;line-height:115%">Tabhair faoi deara go bhfui=
l Ollscoil Mh=C3=A1 Nuad faoi r=C3=A9ir dhl=C3=ADthe um Shaor=C3=A1il Faisn=
=C3=A9ise agus um Chosaint Sonra=C3=AD. D=E2=80=99fh=C3=A9adfadh ceangal a =
bheith orainn =C3=A1bhar r=C3=ADomhphoist a nochtadh faoin
<strong>Acht um Shaor=C3=A1il Faisn=C3=A9ise 2014</strong>, faoin <strong>A=
cht um Chosaint Sonra=C3=AD 2018</strong> n=C3=B3 faoi
<strong>GDPR</strong>.</span></p>
<p style=3D"line-height:115%;font-size:16px;font-family:&quot;Aptos&quot;,s=
ans-serif;margin:0cm 0cm 8pt">
<span style=3D"font-size:10px;line-height:115%">Registered charity number 2=
0037130</span></p>
<p style=3D"line-height:115%;font-size:16px;font-family:&quot;Aptos&quot;,s=
ans-serif;margin:0cm 0cm 8pt">
=C2=A0</p>
</div>
</blockquote>
<p style=3D"line-height:115%;font-size:10px;font-family:&quot;Aptos&quot;,s=
ans-serif;margin:0cm 0cm 8pt">
<span style=3D"font-size:10px;line-height:115%">The information contained i=
n this email may be confidential and privileged. It is intended only for th=
e addressee(s) stated above. If you are not an addressee any use, dissemina=
tion, distribution, publication
 or copying of the information contained in this email is strictly prohibit=
ed. If you have received this email in error, please immediately notify us =
by email at
<a title=3D"mailto:[email protected]" href=3D"mailto:[email protected]=
e" target=3D"_blank">[email protected]</a> and delete this email from yo=
ur system.</span></p>
<p style=3D"line-height:115%;font-size:16px;font-family:&quot;Aptos&quot;,s=
ans-serif;margin:0cm 0cm 8pt">
<span style=3D"font-size:10px;line-height:115%">Please note that Maynooth U=
niversity is subject to Freedom of Information and Data Protection laws. We=
 may be required to disclose the content of emails under the<strong>=C2=A0F=
OI Act 2014</strong>, the<strong>=C2=A0Data
 Protection Act 2018</strong> or <strong>GDPR</strong>.</span></p>
<p style=3D"line-height:115%;font-size:10px;font-family:&quot;Aptos&quot;,s=
ans-serif;margin:0cm 0cm 8pt">
<span style=3D"font-size:10px;line-height:115%">Is don seola=C3=AD / do na =
seolaithe thuasluaite amh=C3=A1in an r=C3=ADomhphost seo. D=E2=80=99fh=C3=
=A9adfadh an t-eolas at=C3=A1 ann a bheith r=C3=BAnda agus faoi phribhl=C3=
=A9id. Mura seola=C3=AD t=C3=BA, t=C3=A1 cosc ioml=C3=A1n ar aon eolas at=
=C3=A1 sa r=C3=ADomhphost seo a =C3=BAs=C3=A1id,
 a scaipeadh, a dh=C3=A1ileadh, a fhoilsi=C3=BA n=C3=B3 a ch=C3=B3ipe=C3=A1=
il. M=C3=A1 fuair t=C3=BA an r=C3=ADomhphost seo tr=C3=AD thimpiste, cuir s=
in in i=C3=BAl d=C3=BAinn l=C3=A1ithreach tr=C3=AD r=C3=ADomhphost a chur c=
huig =C2=A0<a title=3D"mailto:[email protected]" href=3D"mailto:dataprot=
[email protected]" target=3D"_blank">[email protected]</a>=C2=A0
 agus scrios an r=C3=ADomhphost seo =C3=B3 do ch=C3=B3ras.</span></p>
<p style=3D"line-height:115%;font-size:10px;font-family:&quot;Aptos&quot;,s=
ans-serif;margin:0cm 0cm 8pt">
<span style=3D"font-size:10px;line-height:115%">Tabhair faoi deara go bhfui=
l Ollscoil Mh=C3=A1 Nuad faoi r=C3=A9ir dhl=C3=ADthe um Shaor=C3=A1il Faisn=
=C3=A9ise agus um Chosaint Sonra=C3=AD. D=E2=80=99fh=C3=A9adfadh ceangal a =
bheith orainn =C3=A1bhar r=C3=ADomhphoist a nochtadh faoin
<strong>Acht um Shaor=C3=A1il Faisn=C3=A9ise 2014</strong>, faoin <strong>A=
cht um Chosaint Sonra=C3=AD 2018</strong> n=C3=B3 faoi
<strong>GDPR</strong>.</span></p>
<p style=3D"line-height:115%;font-size:16px;font-family:&quot;Aptos&quot;,s=
ans-serif;margin:0cm 0cm 8pt">
<span style=3D"font-size:10px;line-height:115%">Registered charity number 2=
0037130</span></p>
<p style=3D"line-height:115%;font-size:16px;font-family:&quot;Aptos&quot;,s=
ans-serif;margin:0cm 0cm 8pt">
=C2=A0</p>

</div>

</blockquote></div>

--0000000000008e777306565b01d0--