Return-Path: Delivered-To: apmail-perl-dev-archive@www.apache.org Received: (qmail 55075 invoked from network); 20 Feb 2007 00:00:44 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 20 Feb 2007 00:00:44 -0000 Received: (qmail 87972 invoked by uid 500); 20 Feb 2007 00:00:52 -0000 Delivered-To: apmail-perl-dev-archive@perl.apache.org Received: (qmail 87948 invoked by uid 500); 20 Feb 2007 00:00:52 -0000 Mailing-List: contact dev-help@perl.apache.org; run by ezmlm Precedence: bulk list-help: list-unsubscribe: List-Post: List-Id: Delivered-To: mailing list dev@perl.apache.org Received: (qmail 87937 invoked by uid 99); 20 Feb 2007 00:00:52 -0000 Received: from herse.apache.org (HELO herse.apache.org) (140.211.11.133) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 19 Feb 2007 16:00:52 -0800 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests= X-Spam-Check-By: apache.org Received-SPF: pass (herse.apache.org: local policy) Received: from [64.127.99.51] (HELO app.redhotpenguin.com) (64.127.99.51) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 19 Feb 2007 16:00:41 -0800 Received: (qmail 32065 invoked by uid 1005); 19 Feb 2007 16:00:21 -0800 Received: from c-24-7-60-203.hsd1.ca.comcast.net (HELO [192.168.2.2]) (24.7.60.203) (smtp-auth username fred@redhotpenguin.com, mechanism plain) by app.redhotpenguin.com (qpsmtpd/0.31.1) with ESMTP; Mon, 19 Feb 2007 16:00:14 -0800 Message-ID: <45DA3A31.6070806@taperfriendlymusic.org> Date: Mon, 19 Feb 2007 16:00:49 -0800 From: Fred Moyer User-Agent: Thunderbird 1.5.0.9 (Macintosh/20061207) MIME-Version: 1.0 To: dev@perl.apache.org Subject: Trying to get a backtrace while debugging stacked handlers bug Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org X-Old-Spam-Check-By: app.redhotpenguin.com X-Old-Spam-Status: No, hits=0.0 required=5.0 tests= Hello, I've been hacking on this issue here - http://marc.theaimsgroup.com/?l=apache-modperl-dev&m=115827296213433&w=2 and am trying cause a core dump so I can look through the backtrace with gdb and figure out what's going on. I'm a bit new to this level of debugging so please bear with my naivete (have had my copy of practical mod_perl handy so that's been my guide but I still need a little help) To do this, I pushed a handler which should core dump, as so: # all 3 run PerlPostReadRequestHandler TestHooks::stacked_handlers2::ok TestHooks::stacked_handlers2::ok PerlPostReadRequestHandler TestHooks::stacked_handlers2::push_handlers PerlPostReadRequestHandler TestHooks::stacked_handlers2::dump sub dump { my $r = shift; $r->log->error("Dumping core"); Debug::DumpCore::segv(); } but I'm not getting a core file. I've built mod_perl with MP_TRACE=1 and MP_DEBUG=1, and set MP_PERL_TRACE=all, but I haven't gotten the granularity I desire when running the test with ./t/TEST -VERBOSE t/hooks/stacked_handlers2.t. I get the call stack down to the handler level, but I need to get a more fine grained view of what functions are being called. Any advice welcome :) I know I'll figure it out eventually, but I'm guessing that this stuff is old hat to everyone on this list. Thanks, Fred --------------------------------------------------------------------- To unsubscribe, e-mail: dev-unsubscribe@perl.apache.org For additional commands, e-mail: dev-help@perl.apache.org