httpd-bugs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bugzi...@apache.org
Subject DO NOT REPLY [Bug 44854] New: httpd dumps core on a module using apache_log_request on solaris
Date Tue, 22 Apr 2008 11:34:52 GMT
https://issues.apache.org/bugzilla/show_bug.cgi?id=44854

           Summary: httpd dumps core on a module using apache_log_request on
                    solaris
           Product: Apache httpd-2
           Version: 2.2.6
          Platform: Sun
        OS/Version: Solaris
            Status: NEW
          Severity: normal
          Priority: P2
         Component: Core
        AssignedTo: bugs@httpd.apache.org
        ReportedBy: rahul@sun.com


Here is my module.

|cat mod_logtst.c 
#include "httpd.h"
#include "http_config.h"
#include "http_protocol.h"

module AP_MODULE_DECLARE_DATA logtst_module;

int apache_log_request(request_rec *r)
{
    const char *redirectLocation = NULL;
    if (r->headers_out)
        redirectLocation = apr_table_get(r->headers_out, "Location");

    return DECLINED;
}

void logtst_register_hooks(apr_pool_t *p)
{
    ap_hook_log_transaction(apache_log_request,NULL,NULL,APR_HOOK_MIDDLE);
}

module AP_MODULE_DECLARE_DATA logtst_module =
{
    STANDARD20_MODULE_STUFF,
    NULL,
    NULL,
    NULL,
    NULL,
    NULL,
    logtst_register_hooks
};

compile and installed the module,
|sh -x makelg
+ cc -I/usr/apache2/2.2/include -c -o mod_logtst.o mod_logtst.c
+ cc -G -o mod_logtst.so mod_logtst.o
+ sudo cp mod_logtst.so /usr/apache2/2.2/libexec


make sure that module is loaded
|cat /space/httpd-framework/t/conf/httpd.conf | grep logtst
<IfModule !mod_logtst.c>
    LoadModule logtst_module "/usr/apache2/2.2/libexec/mod_logtst.so"

run post tests in the perl test framework.
|t/TEST -httpd /usr/apache2/2.2/bin/httpd -httpd_conf
/space/httpd-framework/t/conf/httpd.conf -verbose http11/post.t
....
[  error] oh gosh, server dumped core 
[  error] for stacktrace, run: gdb /usr/apache2/2.2/bin/httpd -core
/space/httpd-framework/t/core

(I got the core trace only once, on other times, the stack was corrupted)
|pstack t/core
core 't/core' of 18021: /usr/apache2/2.2/bin/httpd -d /space/httpd-framework/t
-f /space/httpd
 cea4e885 apr_table_get (394a, cc001280) + 39
 cc000ccb apache_log_request (857a1f8) + 33
 080744e1 ap_run_log_transaction (857a1f8) + 25
 08087a9f ap_process_request (857a1f8) + 97
 0808583a ap_process_http_connection (856a450) + 52
 08082835 ap_run_process_connection (856a450) + 25
 08082ad6 ap_process_connection (856a450, 856a1b8) + 3a
 0808bc82 child_main (2) + 2f6
 0808bdd4 make_child (80c2a78, 2) + 84
 0808bfae perform_idle_server_maintenance (80c0b88) + e2
 0808c2d0 ap_mpm_run (80c0b88, 80eec40, 80c2a78) + 234
 0806dba0 main     (7, 8047b5c, 8047b7c) + 6d8
 0806cde6 _start   (7, 8047c48, 8047c63, 8047c66, 8047c87, 8047c8a) + 7a


-- 
Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.

---------------------------------------------------------------------
To unsubscribe, e-mail: bugs-unsubscribe@httpd.apache.org
For additional commands, e-mail: bugs-help@httpd.apache.org


Mime
View raw message