apr-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Aaron Bannert <aa...@clove.org>
Subject Re: [PATCH] proc_mutex causes core dump
Date Sat, 24 Aug 2002 02:15:00 GMT
On Thu, Aug 22, 2002 at 03:41:21PM -0400, Chris Darroch wrote:
> Hi --
> 
>    I happened to discover that calling apr_global_mutex_trylock()
> caused a core dump (I'm using Solaris 8, but that doesn't really
> matter here).  It's because line 917 in the apr_proc_mutex_trylock()
> function in apr/locks/unix/proc_mutex.c calls:
> 
> mutex->meth->tryacquire(mutex)
> 
> but the tryacquire function pointer is, for all cases, set to NULL.
> A quick fix, without actually implementing any of the tryacquire
> functions, is below; APR_ENOTIMPL is returned by stub functions instead.

This sounds good to me, I'll commit it and then look at the followup
patch.

-aaron

Mime
View raw message