httpd-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Joe Schaefer <joe+gm...@sunstarsys.com>
Subject Re: segfault ap_save_brigage in the latest 2.0
Date Mon, 27 Sep 2004 17:49:29 GMT
Joe Orton <jorton@redhat.com> writes:

[...]

> when it did start up it would segfault consistently when running the
> tests you reference like:
> 
> #0  pool_clear_debug (pool=0x441, file_line=0x2a95d3fc19 "undefined")
>     at memory/unix/apr_pools.c:1341
> 1341	    while (pool->child)
> #0  pool_clear_debug (pool=0x441, file_line=0x2a95d3fc19 "undefined")
>     at memory/unix/apr_pools.c:1341
> #1  0x0000002a95d35db4 in apr_pool_destroy_debug (pool=0x441, 
>     file_line=0x2a95d3fc19 "undefined") at memory/unix/apr_pools.c:1426
> #2  0x0000002a95d35ce6 in pool_clear_debug (pool=0x1a223c0, 
> file_line=0x2a95d3fc19 "undefined")
>     at memory/unix/apr_pools.c:1342
> #3  0x0000002a95d35db4 in apr_pool_destroy_debug (pool=0x1a223c0, 
>     file_line=0x2a95d3fc19 "undefined") at memory/unix/apr_pools.c:1426
> #4  0x0000002a95d369b0 in apr_pool_destroy (pool=0x441) at 
> memory/unix/apr_pools.c:2206
> #5  0x0000002a9e1fb8ff in XS_Apache__SubRequest_DESTROY 
> (my_perl=0x2525420, cv=0x1844ff0)
>     at SubRequest.xs:36

Does this mp2 patch help?

Index: t/response/TestAPI/sub_request.pm
===================================================================
RCS file: /home/cvspublic/modperl-2.0/t/response/TestAPI/sub_request.pm,v
retrieving revision 1.1
diff -u -r1.1 sub_request.pm
--- t/response/TestAPI/sub_request.pm   14 Aug 2004 05:10:12 -0000      1.1
+++ t/response/TestAPI/sub_request.pm   27 Sep 2004 17:48:01 -0000
@@ -34,7 +34,7 @@

     # test an explictit DESTROY (which happens automatically on the
     # scope exit)
-    $subr->DESTROY;
+    undef $subr;
     ok 1;

     Apache::OK;


-- 
Joe Schaefer


Mime
View raw message