<HTML>
<style> BODY { font-family:Arial, Helvetica, sans-serif;font-size:12px; }</style>It turns out that it's invalid memory. Trying to call "ClassName" raises an access violation (other aligns work fine). There's a dangling pointer somewhere. I found one in the CMOV optimisation code, but that hasn't fixed the crash.<br>
<div><br>
</div><div>Gareth</div><div><br>
</div> <br>
<span style="font-weight: bold;">On Fri 29/06/18 10:27 , Martok listbox@martoks-place.de sent:<br>
</span><blockquote style="BORDER-LEFT: #F5F5F5 2px solid; MARGIN-LEFT: 5px; MARGIN-RIGHT: 0px; PADDING-LEFT: 5px; PADDING-RIGHT: 0px"><span style="color: rgb(102, 102, 102);">> A clue that leads me to believe there's internal corruption is that a produced
</span><br>
<span style="color: rgb(102, 102, 102);">> .s file yields an alignment field of ".balign 119,0x90", which should never
</span><br>
<span style="color: rgb(102, 102, 102);">> happen.
</span><br>
Could you set a breakpoint on aggas.pas:721 (the call to doalign) with a
<br>
conditional on "tai_align_abstract(hp).aligntype=119" and check what the actual
<br>
type of hp is? It could be that at some point a node gets its typ changed in an
<br>
invalid way?
<br>
aligntype should be either one of 2^[0..5], never something else...
<br>
<br>
This is where AddressSanitizer support would be *nice*.
<br>
<br>
<br>
--
<br>
Regards,
<br>
Martok
<br>
<br>
Ceterum censeo b32079 esse sanandam.
<br>
<br>
_______________________________________________
<br>
fpc-devel maillist - <a href="mailto:fpc-devel@lists.freepascal.org">fpc-devel@lists.freepascal.org</a>
<br>
<a target="_blank" href="<a href="http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-devel">http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-devel</a>"><span style="color: red;">http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-devel</span></a>
<br>
<br>
<br>
</blockquote></HTML>