When I apachectl stop it breaks the httpd debug freeze and outputs the following:

Carp::CODE(0x18f6968)(/opt/local/lib/perl5/5.8.7/Carp/Heavy.pm:122):
122: return @_ if ref($_[0]); # don't break references as exceptions
  DB<3>
Carp::CODE(0x18f6968)(/opt/local/lib/perl5/5.8.7/Carp/Heavy.pm:123):
123:      my $i = long_error_loc();

Thanks,
Boysenberry

boysenberrys.com | habitatlife.com | selfgnosis.com

On Sep 19, 2005, at 8:05 PM, Boysenberry Payne wrote:

When I get to the following line the debugger hangs:

my $apr = APR::Request::Apache2->handle( $r );

In the following situation:

use Apache2::RequestRec ();
use Apache2::RequestIO ();
use Apache2::Const -compile => qw(OK REDIRECT);
use strict;
use diagnostics;

use APR::Pool ();
use Apache::DB ();
Apache::DB->init();

use APR::Request::Apache2 ();

sub handler {

        my $r = shift;
        my $r_con = $r->connection;
        my $apr = APR::Request::Apache2->handle( $r_con );
        my $data;
        foreach my $name ( $apr->param ) {
                my $i = 0;
                foreach( $apr->param( $name ) ) {
                        $i++;
                }
                if( $i == 1 ) {
                        $data->{$name} = $apr->param( $name );
                } elsif( $i > 1 ) {
                        my @type = $apr->param( $name );
                        $data->{$name} = [EMAIL PROTECTED];
                }
        }
        $this->{data} = $data;
        ...
        return Apache2::Const::OK;
}
1;

I started httpd -X

Anyone know what I'm doing wrong?

Thanks,
Boysenberry

boysenberrys.com | habitatlife.com | selfgnosis.com

On Sep 19, 2005, at 7:08 PM, Frank Wiles wrote:

On Mon, 19 Sep 2005 18:50:40 -0500
Boysenberry Payne <[EMAIL PROTECTED]> wrote:

I'm getting the following error:
[Mon Sep 19 18:45:48 2005] [notice] child pid 29371 exit signal Bus
error (10)

How do I go about troubleshooting this in MP2.  I'm just switching to
it and finally
after 3 days got libapreq installed, yeah...  Is there a new and
improved way to debug
or anything new in MP2 that I should take into consideration?  I'm
using my own handlers.

  You might look into use Apache::DB to be able to step through your
  code line by line to find the problem.

 ---------------------------------
   Frank Wiles <[EMAIL PROTECTED]>
   http://www.wiles.org
 ---------------------------------







Reply via email to