[Lazarus] Is FreeBSD supported?

Helmut Hartl helmut.hartl at firmos.at
Wed Feb 29 13:24:19 CET 2012


Am 29.02.12 12:17, schrieb Marco van de Voort:
> On Wed, Feb 29, 2012 at 10:37:19AM +0100, Helmut Hartl wrote:
>> You may get trouble with threaded applications crashing with fpc 2.6,
>> and FreeBSD 9 which comes from a bad/incomplete semaphore definition IIRC.
>
> Did you debug that yourself? I didn't merge it because the patch doesn't
> look sane to me.

To be honest no - I asked for hint's why our software does not run on 
freebsd 9 and provided a gdb stacktrace. Pierre Muller answered he made 
a patch for the above mentionend, in a specific revision.
(svn diff -r 19175:19176 > bsd_sem_patch.diff )

--
Date:22.09.11 12:37
Committer: pierre
svn revno: 19176 (on /trunk)
   * Fix failure of webtbs/tw17560:
     the C structure sem (also TSemaphore record) used in cthreads unit
     inside cIntSemaphoreInit function via
     a GetMem(sizeof(TSempahore). sem was a simple cint
     value which lead to memoryt overwriting past end of
     allocated memory in sem_XXX calls.
--

I looked over it, tested our software and I found no negative behaviour
until today so I simply respected pierre's word and advice.

Without that patch, nearly every multithreaded app crashes on
FreeBSD 9 on application startup.

helmut




More information about the Lazarus mailing list