Return-Path: Delivered-To: apmail-httpd-dev-archive@www.apache.org Received: (qmail 14454 invoked from network); 2 Mar 2007 18:58:43 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 2 Mar 2007 18:58:43 -0000 Received: (qmail 31455 invoked by uid 500); 2 Mar 2007 18:58:48 -0000 Delivered-To: apmail-httpd-dev-archive@httpd.apache.org Received: (qmail 31389 invoked by uid 500); 2 Mar 2007 18:58:48 -0000 Mailing-List: contact dev-help@httpd.apache.org; run by ezmlm Precedence: bulk Reply-To: dev@httpd.apache.org list-help: list-unsubscribe: List-Post: List-Id: Delivered-To: mailing list dev@httpd.apache.org Received: (qmail 31378 invoked by uid 99); 2 Mar 2007 18:58:48 -0000 Received: from herse.apache.org (HELO herse.apache.org) (140.211.11.133) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 02 Mar 2007 10:58:48 -0800 X-ASF-Spam-Status: No, hits=-0.0 required=10.0 tests=SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (herse.apache.org: domain of trawick@gmail.com designates 64.233.182.188 as permitted sender) Received: from [64.233.182.188] (HELO nf-out-0910.google.com) (64.233.182.188) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 02 Mar 2007 10:58:37 -0800 Received: by nf-out-0910.google.com with SMTP id n28so1303344nfc for ; Fri, 02 Mar 2007 10:58:15 -0800 (PST) DKIM-Signature: a=rsa-sha1; c=relaxed/relaxed; d=gmail.com; s=beta; h=domainkey-signature:received:received:message-id:date:from:to:subject:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=hPkmq5BNHy18m4DxYD6jqqDIbwnnemTRA25NzJYQ4FlJV6x1Bsbt/mBP11J4yHlm6l8AWDmbQWK1amUZcy8x5bE4cqDyuQnd2mIHLiv0UfeZ/vq09pm5L4Afe9tWXl1egH5a4xts5Rfq4omQfNfYjKi6U12v+7wFvSCmWBmWqUM= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=beta; h=received:message-id:date:from:to:subject:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=qLu3cgs6InZyhDQy9/qylrODXJJnVu9c7EPWGd70DoM9+xrDeC4Mfl9Kg59Ojk88UW7Npx3fJrlDwVFrdpzIoa8sdAPwUrlqU6W55sB+BqXIDGQyEZ0sUTnG/8oew+KfjE/SmXzKSmSgoMeTY5kTGp87eLoLQO0yM5HIxCsRNBE= Received: by 10.82.111.8 with SMTP id j8mr1123956buc.1172861895671; Fri, 02 Mar 2007 10:58:15 -0800 (PST) Received: by 10.82.164.14 with HTTP; Fri, 2 Mar 2007 10:58:15 -0800 (PST) Message-ID: Date: Fri, 2 Mar 2007 13:58:15 -0500 From: "Jeff Trawick" To: dev@httpd.apache.org Subject: Re: Module Crashes if build as a shared object In-Reply-To: MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline References: X-Virus-Checked: Checked by ClamAV on apache.org On 2/28/07, MKhurana@in.safenet-inc.com wrote: > > > > Hi all > > One of my apache module crashes if it is used as shared module but works > fine if it is build as static module. Watch out for static variable usage in your module. That's a common cause of this type of problem. Static variables don't retain their values between the multiple calls to the post-config hook when your module is built as a DSO. > Also it was working fine as shared module before I upgraded to kernel 2.6 > and glibc 2.3.4. shrug > Following is the back trace > > > (gdb) bt > #0 0xffffe410 in __kernel_vsyscall () > #1 0xb7d43bbb in pthread_setspecific () from /lib/libpthread.so.0 > #2 0x080c92de in child_main (child_num_arg=0) at worker.c:1258 child_main doesn't call pthread_setspecific(), so some info is missing or just incorrect. I'd recommend stepping through your module's initialization hooks and looking for unexpected behavior.