(gdb) run -X -f /usr/local/apache/conf/httpd.conf -k start -DSSL -X
Stas wrote:

> Thanks for the trace with args, Jie, but it gives no new info.
>
> Program received signal SIGSEGV, Segmentation fault.
> [Switching to LWP 12]
> 0xfea9bbbc in modperl_env_request_tie (my_perl=0x1026fe0, r=0x17a8c78) at
> modperl_env.c:355
> 355         EnvMgObj = (char *)r;
>
>
> which expands to:
>
> SvMAGIC((SV*)((((XPVGV*)(my_perl->Ienvgv->sv_any))->xgv_gp)->gv_hv))->mg_ptr = (char 
> *)r;
>
> so it's possible that my_perl->Ienvgv (which is PL_envgv) is corrupted, or any of 
> the following members:
>
> What do you get:
>
> gdb> print my_perl->Ienvgv
> gdb> print *my_perl->Ienvgv
>
>
> then I'd continue:
>
> gdb> print my_perl->Ienvgv->sv_any
> gdb> print (XPVGV*)(my_perl->Ienvgv->sv_any)
>
>
> etc.

OK, here is:


Starting program: /u0/local/apache_2.0.49/bin/./httpd -X -f 
/usr/local/apache/conf/httpd.conf -k start -DSSL -X
[New LWP 1]
[New LWP 2]
[New LWP 3]
[New LWP 4]
[New LWP 5]
[New LWP 6]
[New LWP 7]
[New LWP 8]
[New LWP 9]
[New LWP 10]
[New LWP 11]
[New LWP 12]
[New LWP 13]
[LWP 2 exited]
[New LWP 2]

Program received signal SIGSEGV, Segmentation fault.
[Switching to LWP 12]
0xfea9bbbc in modperl_env_request_tie (my_perl=0x157b098, r=0x16911a0) at 
modperl_env.c:355
355         EnvMgObj = (char *)r;
(gdb) bt
#0  0xfea9bbbc in modperl_env_request_tie (my_perl=0x157b098, r=0x16911a0) at 
modperl_env.c:355
#1  0xfea7edf8 in modperl_response_handler_cgi (r=0x16911a0) at mod_perl.c:934
#2  0xe4864 in ap_run_handler (r=0x16911a0) at config.c:151
#3  0xe5488 in ap_invoke_handler (r=0x16911a0) at config.c:358
#4  0x9190c in ap_process_request (r=0x16911a0) at http_request.c:246
#5  0x88b74 in ap_process_http_connection (c=0x1683260) at http_core.c:250
#6  0xfa390 in ap_run_process_connection (c=0x1683260) at connection.c:42
#7  0xfa96c in ap_process_connection (c=0x1683260, csd=0x1683170) at connection.c:175
#8  0xdef48 in process_socket (p=0x1683138, sock=0x1683170, my_child_num=0, 
my_thread_num=9,
bucket_alloc=0x1687148)
    at worker.c:530
#9  0xdfacc in worker_thread (thd=0x1e30c8, dummy=0x146a868) at worker.c:844
#10 0xff050868 in dummy_worker (opaque=0x1e30c8) at thread.c:88
(gdb) print my_perl->Ienvgv
$1 = (GV *) 0x0
(gdb) print *my_perl->Ienvgv
Cannot access memory at address 0x0
(gdb) print my_perl->Ienvgv->sv_any
Cannot access memory at address 0x0
(gdb) print (XPVGV*)(my_perl->Ienvgv->sv_any)
Cannot access memory at address 0x0


(gdb) where
#0  0xfea9bbbc in modperl_env_request_tie (my_perl=0x157b098, r=0x16911a0) at 
modperl_env.c:355
#1  0xfea7edf8 in modperl_response_handler_cgi (r=0x16911a0) at mod_perl.c:934
#2  0xe4864 in ap_run_handler (r=0x16911a0) at config.c:151
#3  0xe5488 in ap_invoke_handler (r=0x16911a0) at config.c:358
#4  0x9190c in ap_process_request (r=0x16911a0) at http_request.c:246
#5  0x88b74 in ap_process_http_connection (c=0x1683260) at http_core.c:250
#6  0xfa390 in ap_run_process_connection (c=0x1683260) at connection.c:42
#7  0xfa96c in ap_process_connection (c=0x1683260, csd=0x1683170) at connection.c:175
#8  0xdef48 in process_socket (p=0x1683138, sock=0x1683170, my_child_num=0, 
my_thread_num=9,
bucket_alloc=0x1687148)
    at worker.c:530
#9  0xdfacc in worker_thread (thd=0x1e30c8, dummy=0x146a868) at worker.c:844
#10 0xff050868 in dummy_worker (opaque=0x1e30c8) at thread.c:88

Regards,



Jie

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to