<div id="__MailbirdStyleContent" style="font-size: 10pt;font-family: Arial;color: #000000;text-align: left" dir="ltr">
                                        Hi all --<div><br></div><div>So, I am trying to debug this on Windows. I want to figure out why the SHA-384 and beyond are not working in the debug build.</div><div><br></div><div><img id="a4cc6288-ede4-4bf4-a1f1-fed3b785f004" src="cid:43598bb5-a9df-40ca-a195-b471de56979c" width="526" height="150"></img><br></div><div><br></div><div>Here is the code:</div><div><br></div><div><div><span style="font-size: 13.3333px">#(newMD5 newSHA1 newSHA224 newSHA256 newSHA384 newSHA512 newSHA512p224 newSHA512p256) collect: [:sym |</span></div><div><span style="font-size: 13.3333px"><span style="white-space:pre"> </span>sym -> ((HashFunction perform: sym) hmac</span></div><div><span style="font-size: 13.3333px"><span style="white-space:pre">                   </span>key: 'key';</span></div><div><span style="font-size: 13.3333px"><span style="white-space:pre">                   </span>hashMessage: '') hex] as: OrderedDictionary</span></div></div><div><span style="font-size: 13.3333px"><br></span></div><div><span style="font-size: 13.3333px">Best,</span></div><div><span style="font-size: 13.3333px">Marcel</span></div><div><span style="font-size: 13.3333px"><br></span></div><div class="mb_sig"></div>
                                        <blockquote class="history_container" type="cite" style="border-left-style: solid;border-width: 1px;margin-top: 20px;margin-left: 0px;padding-left: 10px;min-width: 500px">
                        <p style="color: #AAAAAA; margin-top: 10px;">Am 10.12.2021 15:30:49 schrieb Marcel Taeumel <marcel.taeumel@hpi.de>:</p><div style="font-family:Arial,Helvetica,sans-serif"><div id="__MailbirdStyleContent" style="font-size: 10pt;font-family: Arial;color: #000000;text-align: left" dir="ltr">
                                        <div>Interestingly, the debug build for Windows produces test failures. Debug builds on both Windows 10 and Ubuntu 18.04 have the same errors.<br></div><div><span style="font-size: 13.3333px"><br></span></div><div><span style="font-size: 13.3333px">ERRORS</span></div><div><span style="font-size: 13.3333px">CryptoHashFunctionTest>>#testHMAC</span></div><div><span style="font-size: 13.3333px">CryptoHashFunctionTest>>#testHMACMD5Spec</span></div><div><span style="font-size: 13.3333px">CryptoHashFunctionTest>>#testHMACSHA1Spec</span></div><div><span style="font-size: 13.3333px">CryptoHashFunctionTest>>#testHMACSHA256Spec</span></div><div><span style="font-size: 13.3333px">CryptoHashFunctionTest>>#testHMACSHA512Spec</span></div><div><span style="font-size: 13.3333px">CryptoHashFunctionTest>>#testLargeSHA1</span></div><div><span style="font-size: 13.3333px">CryptoHashFunctionTest>>#testMD5</span></div><div><span style="font-size: 13.3333px">CryptoHashFunctionTest>>#testSHA1</span></div><div><span style="font-size: 13.3333px">CryptoHashFunctionTest>>#testSHA256</span></div><div><span style="font-size: 13.3333px">CryptoHashFunctionTest>>#testSHA512</span></div><div><span style="font-size: 13.3333px"><br></span></div><div><span style="font-size: 13.3333px">Example #testMAC</span></div><div><span style="font-size: 13.3333px">MessageNotUnderstood: ByteArray >> asInteger</span></div><div><span style="font-size: 13.3333px"><br></span></div><div><span style="font-size: 13.3333px">Is there some code missing here?</span></div><div><span style="font-size: 13.3333px"><br></span></div><div><span style="font-size: 13.3333px">FAILURES (Windows 10 only)</span></div><div><span style="font-size: 13.3333px">HMACTest>>#testEmptyStringWithKeyKey</span></div><div><span style="font-size: 13.3333px">SHA384WithSHA2PluginTest>>#testInputStream</span></div><div><span style="font-size: 13.3333px">SHA384WithSHA2PluginTest>>#testInputs</span></div><div><span style="font-size: 13.3333px">SHA512WithSHA2PluginTest>>#testInputStream</span></div><div><span style="font-size: 13.3333px">SHA512WithSHA2PluginTest>>#testInputs</span></div><div><span style="font-size: 13.3333px">SHA512p224WithSHA2PluginTest>>#testInputStream</span></div><div><span style="font-size: 13.3333px">SHA512p224WithSHA2PluginTest>>#testInputs</span></div><div><span style="font-size: 13.3333px">SHA512p256WithSHA2PluginTest>>#testInputStream</span></div><div><span style="font-size: 13.3333px">SHA512p256WithSHA2PluginTest>>#testInputs</span></div><div><span style="font-size: 13.3333px"><br></span></div><div><span style="font-size: 13.3333px">Example #testInputs</span></div><div><span style="font-size: 13.3333px">Expected: cf83e1357eefb8bdf1542850d66d8007d620e4050b5715dc83f4a921d36ce9ce47d0d13c5d85f2b0ff8318d2877eec2f63b931bd47417a81a538327af927da3e</span></div><div><span style="font-size: 13.3333px">Actual: 00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000</span></div><div><span style="font-size: 13.3333px"><br></span></div><div><span style="font-size: 13.3333px">Why is this working in the debug build on Ubuntu?</span></div><div class="mb_sig"></div>
                                        <blockquote class="history_container" type="cite" style="border-left-style: solid;border-width: 1px;margin-top: 20px;margin-left: 0px;padding-left: 10px;min-width: 500px">
                        <p style="color: #AAAAAA; margin-top: 10px;">Am 10.12.2021 15:06:41 schrieb Marcel Taeumel <marcel.taeumel@hpi.de>:</p><div style="font-family:Arial,Helvetica,sans-serif"><div id="__MailbirdStyleContent" style="font-size: 10pt;font-family: Arial;color: #000000;text-align: left" dir="ltr">
                                        <div><span style="font-size: 13.3333px">Hmm... Clang seems to be part of the problem. A gcc build on Ubuntu 18.04 did not crash.</span></div><div><span style="font-size: 13.3333px"><br></span></div><div><span style="font-size: 13.3333px">squeak.cog.spur_win64x64 (Windows 10 21H2)</span></div><div><span style="font-size: 13.3333px">Clang 13.0.0 - CRASH</span></div><div><span style="font-size: 13.3333px">Clang 8.0.1 - CRASH</span></div><div><span style="font-size: 13.3333px"><br></span></div><div><span style="font-size: 13.3333px">squeak.cog.spur_linux64x64 (Ubuntu 18.04)</span></div><div><span style="font-size: 13.3333px">gcc 7.5.0 - OK (with some failing tests)</span></div><div><span style="font-size: 13.3333px">Clang 9.0.0 - CRASH</span></div><div class="mb_sig"></div><blockquote class="history_container" type="cite" style="border-left-style: solid;border-width: 1px;margin-top: 20px;margin-left: 0px;padding-left: 10px;min-width: 500px">
                        <p style="color: #AAAAAA; margin-top: 10px;">Am 10.12.2021 14:40:26 schrieb Marcel Taeumel <marcel.taeumel@hpi.de>:</p><div style="font-family:Arial,Helvetica,sans-serif"><div id="__MailbirdStyleContent" style="font-size: 10pt;font-family: Arial;color: #000000;text-align: left" dir="ltr">
                                        Hi Levente --<div><br></div><div>Windows VM crashes, too. But at a different test: #testHMACSH512Spec.</div><div><br></div><div><img id="1ffe3087-33dd-44ee-b952-14c2b79d1ac9" src="cid:837f865b-4582-49d2-b097-b2a05e2dc12e" width="360" height="350"></img><br></div><div><br></div><div>And the filename for the crash-dmp is broken.</div><div><br></div><div>Best,</div><div>Marcel</div><div><br></div><div class="mb_sig"></div>
                                        <blockquote class="history_container" type="cite" style="border-left-style: solid;border-width: 1px;margin-top: 20px;margin-left: 0px;padding-left: 10px;min-width: 500px">
                        <p style="color: #AAAAAA; margin-top: 10px;">Am 10.12.2021 13:43:45 schrieb Levente Uzonyi <leves@caesar.elte.hu>:</p><div style="font-family:Arial,Helvetica,sans-serif"> <br>Hi Marcel,<br><br>The SHA2 plugin (primitiveSHA256ProcessBufferUpdatingHash) still<br>crashes with that VM on 64-bit linux.<br>The plugin code works with earlier versions, so it's either a VM <br>change of the past 6-9 months, a code generator bug or a compiler bug IMO.<br><br>To reproduce the crash, evaluate the following:<br><br>Installer ss<br>      project: 'Registers';<br>         install: 'Registers-Core'.<br>Installer ss<br>      project: 'Cryptography';<br>      addPackage: 'CryptographyHashing';<br>    addPackage: 'CryptographyHashingTests';<br>       install.<br>(Smalltalk classNamed: #SHA256WithSHA2PluginTest) run: #testInputs<br><br>Interestingly another test (SHA512WithSHA2PluginTest) using a very <br>similar primitive but with DoubleWords works fine. So perhaps it's an <br>alignment issue.<br><br>Assert and debug VMs do not have that issue, so it's not that easy to <br>debug it. What I found was that buffer's value at <br>https://github.com/OpenSmalltalk/opensmalltalk-vm/blob/99f1116c0f7a4ba9a0bf88cf7deb276325aa2d79/src/plugins/SHA2Plugin/SHA2Plugin.c#L277<br>was not the expected pointer, so the subsequent copying into it resulted <br>in segmentation fault.<br><br><br>Levente<br><br><br></div></blockquote></div></div></blockquote>
                                        </div></div></blockquote></div></div></blockquote></div>