You are viewing a plain text version of this content. The canonical link for it is here.
Posted to bugs@httpd.apache.org by bu...@apache.org on 2012/05/18 21:39:57 UTC

[Bug 53265] New: segfault when call ap_log_rerror

https://issues.apache.org/bugzilla/show_bug.cgi?id=53265

          Priority: P2
            Bug ID: 53265
          Assignee: bugs@httpd.apache.org
           Summary: segfault when call ap_log_rerror
          Severity: normal
    Classification: Unclassified
          Reporter: hy93@cornell.edu
          Hardware: PC
            Status: NEW
           Version: 2.4.1
         Component: Core
           Product: Apache httpd-2

We had an Apache module we wrote which works fine in Apache 2.2.*. But it
generated segfault when loaded in Apache 2.4.1. After some debugging, We found
the segfault was caused by calling ap_log_rerror. In Apache server/log.c, in
function do_errorlog_default,  it tried to access info->r->useragent_addr->port
which generated segfault. Here is our code:

static void cuwa_register_hooks(apr_pool_t *p)
{
...

ap_hook_create_request(cuwa_create_request, NULL, NULL, APR_HOOK_MIDDLE);

...

}
static int cuwa_create_request(request_rec *r)
{
    ....
    ap_log_rerror(APLOG_MARK, APLOG_DEBUG, 0, r,"message");

    if (!r->main && !r->prev)
    {
        ap_add_input_filter_handle(cuwa_filter_handle, NULL, r, r->connection);
    }

    return OK;
}

-- 
You are receiving this mail because:
You are the assignee for the bug.

[Bug 53265] segfault when call ap_log_rerror

Posted by bu...@apache.org.
https://issues.apache.org/bugzilla/show_bug.cgi?id=53265

hy93@cornell.edu changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |hy93@cornell.edu
                 OS|                            |All

-- 
You are receiving this mail because:
You are the assignee for the bug.

[Bug 53265] segfault when call ap_log_rerror

Posted by bu...@apache.org.
https://issues.apache.org/bugzilla/show_bug.cgi?id=53265

Eric Covener <co...@gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
         Resolution|DUPLICATE                   |FIXED

-- 
You are receiving this mail because:
You are the assignee for the bug.

[Bug 53265] segfault when call ap_log_rerror

Posted by bu...@apache.org.
https://issues.apache.org/bugzilla/show_bug.cgi?id=53265

Eric Covener <co...@gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
         Resolution|---                         |DUPLICATE

--- Comment #1 from Eric Covener <co...@gmail.com> ---
http://svn.apache.org/viewvc?view=revision&revision=1334344

Will be released in 2.4.3

*** This bug has been marked as a duplicate of bug 50823 ***

-- 
You are receiving this mail because:
You are the assignee for the bug.