<p></p>
<p>hmm, there's already a related comment in <code>src/vte.c:vte_close()</code> about crashes on FreeBSD.<br>
Okay, trying the hard way by blocking <code>vte_start</code> completely if <code>vte_close</code> is running:</p>
<div class="highlight highlight-source-c"><pre>--- geany-<span class="pl-c1">1.36</span>.orig/src/vte.c
+++ geany-<span class="pl-c1">1.36</span>/src/vte.c
@@ -<span class="pl-c1">393</span>,<span class="pl-c1">9</span> +<span class="pl-c1">393</span>,<span class="pl-c1">10</span> @@ <span class="pl-k">static</span> <span class="pl-k">void</span> <span class="pl-en">create_vte</span>(<span class="pl-k">void</span>)
        g_signal_connect_after(vte, <span class="pl-s"><span class="pl-pds">"</span>realize<span class="pl-pds">"</span></span>, G_CALLBACK(on_vte_realize), NULL);
 }
 
-
+<span class="pl-k">static</span> <span class="pl-k">int</span> vte_closing;
 <span class="pl-k">void</span> <span class="pl-en">vte_close</span>(<span class="pl-k">void</span>)
 {
+       vte_closing = <span class="pl-c1">1</span>;
        <span class="pl-c1">g_free</span>(vf);
        <span class="pl-c"><span class="pl-c">/*</span> free the vte widget before unloading vte module</span>
<span class="pl-c">      * this prevents a segfault on X close window if the message window is hidden <span class="pl-c">*/</span></span>
@@ -<span class="pl-c1">485</span>,<span class="pl-c1">6</span> +<span class="pl-c1">486</span>,<span class="pl-c1">8</span> @@ <span class="pl-k">static</span> <span class="pl-k">void</span> <span class="pl-smi">vte_commit_cb</span>(VteTerminal *v
 
 <span class="pl-k">static</span> <span class="pl-k">void</span> <span class="pl-smi">vte_start</span>(GtkWidget *widget)
 {
+       <span class="pl-k">if</span> (<span class="pl-c1">0</span> < vte_closing)
+         <span class="pl-k">return</span>;
        <span class="pl-c"><span class="pl-c">/*</span> split the shell command line, so arguments will work too <span class="pl-c">*/</span></span>
        gchar **argv = <span class="pl-c1">g_strsplit</span>(vc-><span class="pl-smi">shell</span>, <span class="pl-s"><span class="pl-pds">"</span> <span class="pl-pds">"</span></span>, -<span class="pl-c1">1</span>);
 </pre></div>
<p>Building and publishing the RPM on <a href="https://build.opensuse.org/package/show/home:berny:branches:GNOME:Apps/geany" rel="nofollow">OBS</a> takes a while ...</p>

<p style="font-size:small;-webkit-text-size-adjust:none;color:#666;">—<br />You are receiving this because you are subscribed to this thread.<br />Reply to this email directly, <a href="https://github.com/geany/geany/issues/2457#issuecomment-611220910">view it on GitHub</a>, or <a href="https://github.com/notifications/unsubscribe-auth/AAIOWJZVMBE5IVWRJ2SAKC3RLTZCBANCNFSM4LPCLJBQ">unsubscribe</a>.<img src="https://github.com/notifications/beacon/AAIOWJYJEGGGCSQAGBLOMNDRLTZCBA5CNFSM4LPCLJB2YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOERXH3LQ.gif" height="1" width="1" alt="" /></p>
<script type="application/ld+json">[
{
"@context": "http://schema.org",
"@type": "EmailMessage",
"potentialAction": {
"@type": "ViewAction",
"target": "https://github.com/geany/geany/issues/2457#issuecomment-611220910",
"url": "https://github.com/geany/geany/issues/2457#issuecomment-611220910",
"name": "View Issue"
},
"description": "View this Issue on GitHub",
"publisher": {
"@type": "Organization",
"name": "GitHub",
"url": "https://github.com"
}
}
]</script>