<p>The VM built by travis (201805090836, 64-bit Squeak Cog Spur) segfaults when creating an SSL connection. Here is a stack trace from gdb:</p>
<blockquote>
<p>Program received signal SIGSEGV, Segmentation fault.<br>
0x0000000000000000 in ?? ()<br>
(gdb) bt<br>
#0  0x0000000000000000 in ?? ()<br>
<a class="issue-link js-issue-link" data-error-text="Failed to load issue title" data-id="160595621" data-permission-text="Issue title is private" data-url="https://github.com/OpenSmalltalk/opensmalltalk-vm/issues/1" href="https://github.com/OpenSmalltalk/opensmalltalk-vm/issues/1">#1</a>  0x00007ffff296132a in sqVerifyNameInner (ssl=ssl@entry=0x89b3e0, cert=cert@entry=0x8abdb0, serverName=0x89bad0, serverNameLength=serverNameLength@entry=13, matchType=matchType@entry=2)<br>
at /home/travis/build/OpenSmalltalk/opensmalltalk-vm/platforms/unix/plugins/SqueakSSL/sqUnixOpenSSL.inc:106<br>
<a class="issue-link js-issue-link" data-error-text="Failed to load issue title" data-id="160789081" data-permission-text="Issue title is private" data-url="https://github.com/OpenSmalltalk/opensmalltalk-vm/issues/2" href="https://github.com/OpenSmalltalk/opensmalltalk-vm/issues/2">#2</a>  0x00007ffff29614ab in sqVerifyDNS (ssl=ssl@entry=0x89b3e0, cert=cert@entry=0x8abdb0, serverName=, serverNameLength=serverNameLength@entry=13)<br>
at /home/travis/build/OpenSmalltalk/opensmalltalk-vm/platforms/unix/plugins/SqueakSSL/sqUnixOpenSSL.inc:94<br>
<a class="issue-link js-issue-link" data-error-text="Failed to load issue title" data-id="160789405" data-permission-text="Issue title is private" data-url="https://github.com/OpenSmalltalk/opensmalltalk-vm/issues/3" href="https://github.com/OpenSmalltalk/opensmalltalk-vm/issues/3">#3</a>  0x00007ffff2961e3f in sqConnectSSL (handle=handle@entry=1, srcBuf=srcBuf@entry=0x1025330 "\026\003\003", srcLen=srcLen@entry=279, dstBuf=dstBuf@entry=0x1020b88 "\026\003\003", dstLen=)<br>
at /home/travis/build/OpenSmalltalk/opensmalltalk-vm/platforms/unix/plugins/SqueakSSL/sqUnixOpenSSL.inc:454<br>
<a class="issue-link js-issue-link" data-error-text="Failed to load issue title" data-id="160909142" data-permission-text="Issue title is private" data-url="https://github.com/OpenSmalltalk/opensmalltalk-vm/issues/4" href="https://github.com/OpenSmalltalk/opensmalltalk-vm/issues/4">#4</a>  0x00007ffff295de2f in primitiveConnect () at /home/travis/build/OpenSmalltalk/opensmalltalk-vm/src/plugins/SqueakSSL/SqueakSSL.c:217</p>
</blockquote>
<p>This happens on Ubuntu 14.04 (libssl1.0.0). I presume travis had a newer version of openssl, and the different value of OPENSSL_VERSION_NUMBER during compilation time was enough to make some functions, like <em>sqo_sk_GENERAL_NAME_num</em>  be linked to null. It's not exactly clear how the overlay works, so I just tried a few functions and got the following results:</p>
<blockquote>
<p>(gdb) print sqo_X509_get_ext_d2i<br>
$3 = (void <em>(</em>)(X509 *, int, int *, int *)) 0x7ffff2440a90 <X509_get_ext_d2i><br>
(gdb) print sqo_sk_GENERAL_NAME_num<br>
No symbol "sqo_sk_GENERAL_NAME_num" in current context.<br>
(gdb) print sqo_sk_GENERAL_NAME_value<br>
No symbol "sqo_sk_GENERAL_NAME_value" in current context.<br>
(gdb) print sqVerifySAN<br>
$6 = {sqInt (sqSSL *, const GENERAL_NAME *, const void <em>, const size_t, const int)} 0x7ffff29610f0 <br>
(gdb) print sk_GENERAL_NAME_num<br>
No symbol "sk_GENERAL_NAME_num" in current context.<br>
(gdb) print sqo_SKM_sk_num<br>
No symbol "sqo_SKM_sk_num" in current context.<br>
(gdb) print sqo_sk_num<br>
$7 = (int (</em>)(const _STACK *)) 0x0<br>
(gdb) print sk_num<br>
$8 = {<text variable, no debug info>} 0x7ffff24064c0 <sk_num></p>
</blockquote>
<p>If you need any further information, let me know.</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/OpenSmalltalk/opensmalltalk-vm/issues/260">view it on GitHub</a>, or <a href="https://github.com/notifications/unsubscribe-auth/AhLyW5ogi0QDzuOp0AIdOLUyhIlvT9--ks5tyHSEgaJpZM4T85Sg">mute the thread</a>.<img src="https://github.com/notifications/beacon/AhLyWzs1ONA9NCKm0iQuYAFqTogBKYgKks5tyHSEgaJpZM4T85Sg.gif" height="1" width="1" alt="" /></p>
<div itemscope itemtype="http://schema.org/EmailMessage">
<div itemprop="action" itemscope itemtype="http://schema.org/ViewAction">
  <link itemprop="url" href="https://github.com/OpenSmalltalk/opensmalltalk-vm/issues/260"></link>
  <meta itemprop="name" content="View Issue"></meta>
</div>
<meta itemprop="description" content="View this Issue on GitHub"></meta>
</div>

<script type="application/json" data-scope="inboxmarkup">{"api_version":"1.0","publisher":{"api_key":"05dde50f1d1a384dd78767c55493e4bb","name":"GitHub"},"entity":{"external_key":"github/OpenSmalltalk/opensmalltalk-vm","title":"OpenSmalltalk/opensmalltalk-vm","subtitle":"GitHub repository","main_image_url":"https://cloud.githubusercontent.com/assets/143418/17495839/a5054eac-5d88-11e6-95fc-7290892c7bb5.png","avatar_image_url":"https://cloud.githubusercontent.com/assets/143418/15842166/7c72db34-2c0b-11e6-9aed-b52498112777.png","action":{"name":"Open in GitHub","url":"https://github.com/OpenSmalltalk/opensmalltalk-vm"}},"updates":{"snippets":[{"icon":"DESCRIPTION","message":"SSL segmentation fault (libssl 1.0.0) (#260)"}],"action":{"name":"View Issue","url":"https://github.com/OpenSmalltalk/opensmalltalk-vm/issues/260"}}}</script>
<script type="application/ld+json">{"@type":"MessageCard","@context":"http://schema.org/extensions","hideOriginalBody":"false","originator":"37567f93-e2a7-4e2a-ad37-a9160fc62647","title":"SSL segmentation fault (libssl 1.0.0) (#260)","sections":[{"text":"","activityTitle":"**smalltalking**","activityImage":"https://cloud.githubusercontent.com/assets/143418/15842166/7c72db34-2c0b-11e6-9aed-b52498112777.png","activitySubtitle":"@smalltalking","facts":[{"name":"Repository: ","value":"OpenSmalltalk/opensmalltalk-vm"},{"name":"Issue #: ","value":260}]}],"potentialAction":[{"name":"Add a comment","@type":"ActionCard","inputs":[{"isMultiLine":true,"@type":"TextInput","id":"IssueComment","isRequired":false}],"actions":[{"name":"Comment","@type":"HttpPOST","target":"https://api.github.com","body":"{\"commandName\":\"IssueComment\",\"repositoryFullName\":\"OpenSmalltalk/opensmalltalk-vm\",\"issueId\":260,\"IssueComment\":\"{{IssueComment.value}}\"}"}]},{"name":"Close issue","@type":"HttpPOST","target":"https://api.github.com","body":"{\"commandName\":\"IssueClose\",\"repositoryFullName\":\"OpenSmalltalk/opensmalltalk-vm\",\"issueId\":260}"},{"targets":[{"os":"default","uri":"https://github.com/OpenSmalltalk/opensmalltalk-vm/issues/260"}],"@type":"OpenUri","name":"View on GitHub"},{"name":"Unsubscribe","@type":"HttpPOST","target":"https://api.github.com","body":"{\"commandName\":\"MuteNotification\",\"threadId\":334730400}"}],"themeColor":"26292E"}</script>