[fpc-devel] Possible internal corruption
J. Gareth Moreton
gareth at moreton-family.com
Fri Jun 29 11:05:14 CEST 2018
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.
On Fri 29/06/18 10:27 , Martok listbox at martoks-place.de sent:
> A clue that leads me to believe there's internal corruption is that a
> .s file yields an alignment field of ".balign 119,0x90", which should
Could you set a breakpoint on aggas.pas:721 (the call to doalign) with a
conditional on "tai_align_abstract(hp).aligntype=119" and check what the
type of hp is? It could be that at some point a node gets its typ changed
aligntype should be either one of 2^[0..5], never something else...
This is where AddressSanitizer support would be *nice*.
Ceterum censeo b32079 esse sanandam.
fpc-devel maillist - fpc-devel at lists.freepascal.org 
 mailto:fpc-devel at lists.freepascal.org
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the fpc-devel