Return-Path: Delivered-To: apmail-apr-dev-archive@apr.apache.org Received: (qmail 1776 invoked by uid 500); 24 Jul 2003 11:28:47 -0000 Mailing-List: contact dev-help@apr.apache.org; run by ezmlm Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: Delivered-To: mailing list dev@apr.apache.org Delivered-To: moderator for dev@apr.apache.org Received: (qmail 29135 invoked from network); 24 Jul 2003 10:51:47 -0000 Message-ID: <00c801c351d1$83117540$7500a8c0@goliath> From: "David Reid" To: "APR Dev List" References: <200307230316.07351.apr@insode.de> <20030723094550.GB16996@redhat.com> Subject: Re: trylock does not work on RH 9 Date: Thu, 24 Jul 2003 11:51:18 +0100 MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 5.00.2919.6700 X-MimeOLE: Produced By Microsoft MimeOLE V5.00.2919.6700 X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N > On Wed, Jul 23, 2003 at 03:16:07AM +0200, apr@insode.de wrote: > > Hi, > > > > I am writing an Apache 2.0 module and have problems with the mutex_trylock > > functions. > > > > apr_global_mutex_lock() and apr_global_mutex_unlock() work but > > apr_global_mutex_trylock() segfaults the apache2 childs on my RedHat 9 box. > > > > Any help is welcome... is this a bug or do I have to use trylock() with > > different arguments than lock() ? > > This is an APR bug, thanks for the report. apr_proc_mutex_trylock will > always segfault in the various Unix implementations, so > apr_global_mutex_trylock is simply not usable yet unfortunately. Do we know why and can it be fixed? david