From dev-return-11334-apmail-apr-dev-archive=apr.apache.org@apr.apache.org Mon Mar 15 19:15:36 2004 Return-Path: Delivered-To: apmail-apr-dev-archive@www.apache.org Received: (qmail 82341 invoked from network); 15 Mar 2004 19:15:36 -0000 Received: from daedalus.apache.org (HELO mail.apache.org) (208.185.179.12) by minotaur-2.apache.org with SMTP; 15 Mar 2004 19:15:36 -0000 Received: (qmail 88357 invoked by uid 500); 15 Mar 2004 19:15:11 -0000 Delivered-To: apmail-apr-dev-archive@apr.apache.org Received: (qmail 88296 invoked by uid 500); 15 Mar 2004 19:15:11 -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 Received: (qmail 88181 invoked from network); 15 Mar 2004 19:15:10 -0000 Mime-Version: 1.0 (Apple Message framework v612) In-Reply-To: <1079376989.4055fc5d6b4fc@webmail.mydomain.com> References: <1079376989.4055fc5d6b4fc@webmail.mydomain.com> Content-Type: text/plain; charset=US-ASCII; format=flowed Message-Id: <15A8CFFC-76B5-11D8-83B0-000393B3C494@clove.org> Content-Transfer-Encoding: 7bit From: Aaron Bannert Subject: Re: testglobalmutex.c Date: Mon, 15 Mar 2004 11:15:13 -0800 To: dev@apr.apache.org X-Mailer: Apple Mail (2.612) X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N X-Spam-Rating: minotaur-2.apache.org 1.6.2 0/1000/N On Mar 15, 2004, at 10:56 AM, rbb@rkbloom.net wrote: > Nope. Take a look at the thread that is complaining about the API for > global_mutex and proc_mutex. Without that global_mutex_create call, > the program > segfaults on any Unix machine. This is a bug in the _child_init API, > because it > should accept a lockmech_e argument so that the lock can be created > properly. Actually the bug is that the unix implementation of apr_global_mutex_child_init assumes the (apr_global_mutex **mutex) is valid, and it shouldn't. So yes, we should pass the lock mechanism to the child_init so that the struct can be allocated by the proc mutex implementation. -aaron