[fpc-devel] Lazarus Apache module crashes during concurrent requests
Michael Van Canneyt
michael at freepascal.org
Wed Sep 24 13:17:12 CEST 2008
On Wed, 24 Sep 2008, Jonas Maebe wrote:
>
> On 24 Sep 2008, at 13:02, Michael Van Canneyt wrote:
>
> >On Wed, 24 Sep 2008, Jonas Maebe wrote:
> >
> > >
> > >On 24 Sep 2008, at 12:35, Michael Van Canneyt wrote:
> > >
> > > >This is a known problem; the heap manager does not function correctly in
> > > >a
> > > >DLL when an external program (apache, in this case) creates new threads.
> > >
> > >The heap manager is simply not thread safe until the FPC threading system
> > >has
> > >been initialised (by starting a thread).
> >
> >It is not that simple. The heap manager cannot handle situations where
> >threads have been started by code that is not aware of the FPC threading
> >mechanisms - such as apache.
>
> Ah yes, that's indeed a problem with the new 2.3.x heap manager. I don't think
> the 2.2.x heap manager cares though, since it uses a regular critical
> section/mutex.
2.2.2 has/had other problems for Apache :-)
Michael.
More information about the fpc-devel
mailing list