<p>Otherwise, a segmentation fault on quit time is produced when using third party libraries such as Vulkan drivers that depend on it.</p>
<p>Here is the stack trace that I obtain:</p>
<p>C stack backtrace & registers:<br>
rax 0x7f9521972810 rbx 0x00000000 rcx 0x013df6a0 rdx 0x7f9522cf3ca0<br>
rdi 0x00000000 rsi 0x00000000 rbp 0x013cd090 rsp 0x7ffd0cf3f3d8<br>
r8  0x00000001 r9  0x00000007 r10 0x00000016 r11 0x00000000<br>
r12 0x013ddfe8 r13 0x00000000 r14 0x00000000 r15 0x00000000<br>
rip 0x7f9522d03960<br>
*/lib/x86_64-linux-gnu/libpthread.so.0(__pthread_mutex_lock+0x0)[0x7f9522d03960]<br>
sqcogspur64linuxht/lib/squeak/5.0-201906220205/squeak[0x41b7c3]<br>
sqcogspur64linuxht/lib/squeak/5.0-201906220205/squeak[0x41d24e]<br>
/lib/x86_64-linux-gnu/libpthread.so.0(+0x12dd0)[0x7f9522d0bdd0]<br>
/lib/x86_64-linux-gnu/libpthread.so.0(__pthread_mutex_lock+0x0)[0x7f9522d03960]<br>
/usr/lib/x86_64-linux-gnu/libX11.so.6(XrmDestroyDatabase+0x27)[0x7f952198d287]<br>
/usr/lib/x86_64-linux-gnu/libX11.so.6(_XFreeDisplayStructure+0x39b)[0x7f95219747ab]<br>
/usr/lib/x86_64-linux-gnu/libX11.so.6(XCloseDisplay+0xdf)[0x7f9521961c4f]<br>
sqcogspur64linuxht/lib/squeak/5.0-201906220205/vm-display-X11.so(disconnectXDisplay+0xa6)[0x7f9521b28456]<br>
sqcogspur64linuxht/lib/squeak/5.0-201906220205/squeak(ioExitWithErrorCode+0x21)[0x41dfe1]<br>
sqcogspur64linuxht/lib/squeak/5.0-201906220205/squeak(interpret+0xa1f5)[0x467fd5]<br>
sqcogspur64linuxht/lib/squeak/5.0-201906220205/squeak[0x469216]<br>
sqcogspur64linuxht/lib/squeak/5.0-201906220205/squeak(interpret+0x246)[0x45e026]<br>
sqcogspur64linuxht/lib/squeak/5.0-201906220205/squeak(main+0x2fa)[0x41acfa]<br>
/lib/x86_64-linux-gnu/libc.so.6(__libc_start_main+0xeb)[0x7f9522b3309b]<br>
sqcogspur64linuxht/lib/squeak/5.0-201906220205/squeak[0x41b024]<br>
[0x0]</p>

<hr>

<h4>You can view, comment on, or merge this pull request online at:</h4>
<p>  <a href='https://github.com/OpenSmalltalk/opensmalltalk-vm/pull/409'>https://github.com/OpenSmalltalk/opensmalltalk-vm/pull/409</a></p>

<h4>Commit Summary</h4>
<ul>
  <li>Always call XInitThreads, not only on the Pharo VM. Otherwise, a segmentation fault on quit time is produced when using third party libraries such as Vulkan drivers that depend on it.</li>
</ul>

<h4>File Changes</h4>
<ul>
  <li>
    <strong>M</strong>
    <a href="https://github.com/OpenSmalltalk/opensmalltalk-vm/pull/409/files#diff-0">platforms/unix/vm-display-X11/sqUnixX11.c</a>
    (7)
  </li>
</ul>

<h4>Patch Links:</h4>
<ul>
  <li><a href='https://github.com/OpenSmalltalk/opensmalltalk-vm/pull/409.patch'>https://github.com/OpenSmalltalk/opensmalltalk-vm/pull/409.patch</a></li>
  <li><a href='https://github.com/OpenSmalltalk/opensmalltalk-vm/pull/409.diff'>https://github.com/OpenSmalltalk/opensmalltalk-vm/pull/409.diff</a></li>
</ul>

<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/OpenSmalltalk/opensmalltalk-vm/pull/409?email_source=notifications&email_token=AIJPEW5WZ77GQUEXONTKGQDP3224PA5CNFSM4H2XYPF2YY3PNVWWK3TUL52HS4DFUVEXG43VMWVGG33NNVSW45C7NFSM4G3DXMLA">view it on GitHub</a>, or <a href="https://github.com/notifications/unsubscribe-auth/AIJPEW573PYPQXWTZBWG6TTP3224PANCNFSM4H2XYPFQ">mute the thread</a>.<img src="https://github.com/notifications/beacon/AIJPEWYHJF3RHQFU425WSUDP3224PA5CNFSM4H2XYPF2YY3PNVWWK3TUL52HS4DFUVEXG43VMWVGG33NNVSW45C7NFSM4G3DXMLA.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/OpenSmalltalk/opensmalltalk-vm/pull/409?email_source=notifications\u0026email_token=AIJPEW5WZ77GQUEXONTKGQDP3224PA5CNFSM4H2XYPF2YY3PNVWWK3TUL52HS4DFUVEXG43VMWVGG33NNVSW45C7NFSM4G3DXMLA",
"url": "https://github.com/OpenSmalltalk/opensmalltalk-vm/pull/409?email_source=notifications\u0026email_token=AIJPEW5WZ77GQUEXONTKGQDP3224PA5CNFSM4H2XYPF2YY3PNVWWK3TUL52HS4DFUVEXG43VMWVGG33NNVSW45C7NFSM4G3DXMLA",
"name": "View Pull Request"
},
"description": "View this Pull Request on GitHub",
"publisher": {
"@type": "Organization",
"name": "GitHub",
"url": "https://github.com"
}
}
]</script>