Re: Re: segfault in builtins-thread.c
Ben Collins <[email protected]> Thu, 20 May 2004 12:57:20 -0400
| Newsgroups | gmane.comp.lang.prothon.devel |
|---|---|
| Message-ID | <[email protected]> |
On Thu, May 20, 2004 at 09:18:49AM -0700, Mark Hahn wrote: > > "Kenny MacDermid" <[email protected]> wrote in message > news:[email protected]... > > Hey'a Mark, > > > > I was wondering what version of the APR are you compiling > > against? I've tried 0.9.4 and 0.9.5 (from svn), against your > > 0.0.6 and current and I still seem to get segfaults pretty > > much every other time I run it against Bind.pr, Threads.pr and > > others. > > Ben Collins is our linux guy. I asked him to look at this. Well, it's not a linux problem, just that it showed up with linux (and possible with this particular machine/compiler). new_thread_object is a global being used by threads between calls improperly. Protect that variable somehow from the race condition between apr_thread_create() and register_thread(). -- Debian - http://www.debian.org/ Linux 1394 - http://www.linux1394.org/ Subversion - http://subversion.tigris.org/ WatchGuard - http://www.watchguard.com/