Return-Path: Delivered-To: apmail-tomcat-dev-archive@www.apache.org Received: (qmail 7515 invoked from network); 24 Apr 2007 13:16:23 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 24 Apr 2007 13:16:23 -0000 Received: (qmail 30805 invoked by uid 500); 24 Apr 2007 13:16:25 -0000 Delivered-To: apmail-tomcat-dev-archive@tomcat.apache.org Received: (qmail 30765 invoked by uid 500); 24 Apr 2007 13:16:25 -0000 Mailing-List: contact dev-help@tomcat.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: "Tomcat Developers List" Delivered-To: mailing list dev@tomcat.apache.org Received: (qmail 30754 invoked by uid 99); 24 Apr 2007 13:16:25 -0000 Received: from herse.apache.org (HELO herse.apache.org) (140.211.11.133) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 24 Apr 2007 06:16:25 -0700 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 henri.gomez@gmail.com designates 64.233.162.233 as permitted sender) Received: from [64.233.162.233] (HELO nz-out-0506.google.com) (64.233.162.233) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 24 Apr 2007 06:16:17 -0700 Received: by nz-out-0506.google.com with SMTP id x7so1695727nzc for ; Tue, 24 Apr 2007 06:15:56 -0700 (PDT) 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=PAzanmCHj90ipzvGnyv5x4pkTKw5PzUr6F/HKn34ww1mGQbRYX8w2KRNLhVbcjxqFoLaAFFhoQ5l4XKoyCvxXIzPiufwoB8WxwGsPHbwro9RW0eyvU7+HVwPW8b+GNEWHTI9bSsiTdmh0OzTnqSGxhJ4M/BaOIWhPw1XTWKyAw4= 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=Jk5Og65O+6OaneLa/ixwDZSY5MenzdpMGSAOzL7dA1setfmRMabCE3CVVEjCWKEq93FfwjLca3EgZWR6jJF51SP7CI4yeiOwywhQQBjZB/DxKmykXBaVI88RehYq3FMjtTyNQ8xIF5ztToDYgP5vtEE3jLYXSVtYKfkwalh5diM= Received: by 10.115.88.1 with SMTP id q1mr3018314wal.1177420556247; Tue, 24 Apr 2007 06:15:56 -0700 (PDT) Received: by 10.115.72.15 with HTTP; Tue, 24 Apr 2007 06:15:56 -0700 (PDT) Message-ID: <6291fc850704240615s6b0d9093xccc287e176aa87fd@mail.gmail.com> Date: Tue, 24 Apr 2007 15:15:56 +0200 From: "Henri Gomez" To: "Tomcat Developers List" Subject: Re: More on i5/OS and some modifications needed In-Reply-To: <462E0258.4080406@kippdata.de> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline References: <3iGbeK7K29xXqpTGf302BA6QWrBhemCTbwRoOY5aUrS@akmail> <6291fc850704230744n677f6e83i37d87d6aeab4b4a7@mail.gmail.com> <6291fc850704231508o7b5bd5eaofb4942ceec3a48e8@mail.gmail.com> <6291fc850704240201m6e076c9chdb849efd36e8d9ba@mail.gmail.com> <462DCFCF.2040405@kippdata.de> <6291fc850704240321y70a6651bo31c6b10b1e7395d2@mail.gmail.com> <6291fc850704240537h33f6b619yf9964a4101caefcd@mail.gmail.com> <462E0258.4080406@kippdata.de> X-Virus-Checked: Checked by ClamAV on apache.org I made it works by adding main_log = NULL in jklog_cleanup static apr_status_t jklog_cleanup(void *d) { /* set the main_log to NULL */ d = NULL; main_log = NULL; return APR_SUCCESS; } Don't forget that jk is initialized twice and on i5/OS in the same thread, so may be the static var should be reset. What do you think of the patch ? 2007/4/24, Rainer Jung : > main_log is a static in mod_jk.c, which is initialized as NULL. > > It gets set inside open_jklog() which gets called once for every virtual > server by jk_post_config() during server initialization. > > The first virtual server inherits its logger conf->log from its > configuration to main_log. It also registers a cleanup handler which > will NULL its conf->log, but that should not change main_log. > > main_log should never get reset. > > To find the problem, it would be best to first reduce the apache config > to not use any virtual servers. > > You can log the value of main_log for debug purposes anywhere in > mod_jk.c, because its a global static. > > Regards, > > Rainer > > Henri Gomez schrieb: > > I'm looking for the exception in jk_log. It happen in ws_write right > > now and I wonder what's the life cycle of main_log. > > > > On i5/OS, the init / post are done on the same thread (not the same on > > Unixes). > > > > How is reset the main_log ? > > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: dev-unsubscribe@tomcat.apache.org > For additional commands, e-mail: dev-help@tomcat.apache.org > > --------------------------------------------------------------------- To unsubscribe, e-mail: dev-unsubscribe@tomcat.apache.org For additional commands, e-mail: dev-help@tomcat.apache.org