Return-Path: Delivered-To: apmail-perl-modperl-archive@www.apache.org Received: (qmail 40340 invoked from network); 6 May 2004 19:19:52 -0000 Received: from daedalus.apache.org (HELO mail.apache.org) (208.185.179.12) by minotaur-2.apache.org with SMTP; 6 May 2004 19:19:52 -0000 Received: (qmail 30422 invoked by uid 500); 6 May 2004 19:19:31 -0000 Delivered-To: apmail-perl-modperl-archive@perl.apache.org Received: (qmail 30408 invoked by uid 500); 6 May 2004 19:19:31 -0000 Mailing-List: contact modperl-help@perl.apache.org; run by ezmlm Precedence: bulk list-help: list-unsubscribe: list-post: Delivered-To: mailing list modperl@perl.apache.org Received: (qmail 30383 invoked from network); 6 May 2004 19:19:31 -0000 Message-ID: <409A8FC2.5050002@stason.org> Date: Thu, 06 May 2004 12:19:30 -0700 From: Stas Bekman Organization: Hope, Humanized User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.6) Gecko/20040115 X-Accept-Language: en-us, en, he, ru MIME-Version: 1.0 To: Brian Hirt Cc: Glenn , modperl@perl.apache.org Subject: Re: Callback called exit. References: <20040506050058.GA23679@netspace.org> <76889970-9F7C-11D8-9B5D-000D93AD2E74@mobygames.com> In-Reply-To: <76889970-9F7C-11D8-9B5D-000D93AD2E74@mobygames.com> Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit 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 Brian Hirt wrote: > I too followed the advice too, but it did nothing but lead my down the > wrong path. The advice should be updated. > > My point is that $^M does absolutely nothing unless you use perl's > malloc, which isn't true for most common perl installations these days. > compiling with PERL_EMERGENCY_SBRK doesn't help either because it's > the default if you usemymalloc, and useless if you don't You MUST > compile perl with "-Dusemymalloc=y". A simple grep in the perl hints > directory shows that many popular systems such as linux, freebsd and > openbsd default to the system malloc which disables the functionality > of $^M. > > I'd simply like to see the documentation updated, and I'm happy to do > it. I know it would have saved me hours and hours of headaches. The > documentation as it stands now is misleading. > > of course if you use perl's malloc, the advice helps. Doc patches are always welcome here. Please patch against the source pod. http://perl.apache.org/download/docs.html#Download > I'd still like to know why mod_perl can get into an infinite loop > writtitng "Callback called exit". In perl.c, when that happens > my_exit_jump(); is called which should presumably exit the process, but > somehow that doesn't happen and some sort of infinite loop occurs > outside of my code that fills the log of with gigibytes of 'Callback > called exit' messages. Normally that happens when perl gets its calls stack messed up and it starts to loop. I know I hit that myself while developing mp2 when I was trying to write my own version of die/exit/etc, which I quickly gave up. It is possible that there is a bug in perl, which gets triggered only in certain situations. If you can give p5p a reproducable case, I'm sure it'll be fixed. __________________________________________________________________ Stas Bekman JAm_pH ------> Just Another mod_perl Hacker http://stason.org/ mod_perl Guide ---> http://perl.apache.org mailto:stas@stason.org http://use.perl.org http://apacheweek.com http://modperlbook.org http://apache.org http://ticketmaster.com -- Report problems: http://perl.apache.org/bugs/ Mail list info: http://perl.apache.org/maillist/modperl.html List etiquette: http://perl.apache.org/maillist/email-etiquette.html