[Lazarus] arm-linux crash(es)

Mark Morgan Lloyd markMLl.lazarus at telemetry.co.uk
Fri Sep 30 10:35:24 CEST 2011


Henry Vermaak wrote:
> On 29 September 2011 18:09, Vincent Snijders <vincent.snijders at gmail.com> wrote:
>> 2011/9/29 Henry Vermaak <henry.vermaak at gmail.com>:
>>> Hi Lazarus devs
>>>
>>> I'm getting a couple of crashes under arm-linux, which I think are mostly
>>> related to unaligned access.  There's a lot of code related to typinfo that
>>> does pointer arithmetic that will definitely break on ARM processors.  I
>>> think some of the code probably pre-dates some of the helper functions in
>>> typinfo, but the functions in typinfo are written with aligned access in
>>> mind.  I've fixed a particular crash as shown in the attached patch.  Is
>>> this acceptable?  If so, I can try and fix more of this code.
>> See also:
>> http://bugs.freepascal.org/view.php?id=19109
> 
> Hmm, I'll take a look.  Is anyone planning to merge any of this?

I've been using Ludo's align_all.diff for several weeks on ARM (Linux) 
and SPARC (Linux, Solaris). I'll try a clean trunk when I have time, to 
see if the additional file Felipe merged yesterday (r18900) is adequate.

-- 
Mark Morgan Lloyd
markMLl .AT. telemetry.co .DOT. uk

[Opinions above are the author's, not those of his employers or colleagues]




More information about the Lazarus mailing list