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 2003/02/23 17:47:21 UTC

DO NOT REPLY [Bug 17318] New: - Abend on deleting a temporary cache file if proxy enabled

DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG 
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://nagoya.apache.org/bugzilla/show_bug.cgi?id=17318>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND 
INSERTED IN THE BUG DATABASE.

http://nagoya.apache.org/bugzilla/show_bug.cgi?id=17318

Abend on deleting a temporary cache file if proxy enabled

           Summary: Abend on deleting a temporary cache file if proxy
                    enabled
           Product: Apache httpd-1.3
           Version: 1.3.27
          Platform: PC
        OS/Version: Netware
            Status: NEW
          Severity: Critical
          Priority: Other
         Component: mod_proxy
        AssignedTo: bugs@httpd.apache.org
        ReportedBy: hidetaka_ogawa@hi-ho.ne.jp


I have encountered unexpected server Abend if proxy module enabled.
Abend was occurred on deleting a temporary cache file, proxy_util.c line 675,
unlink(c->tempfile) call with NULL pointer (c->tempfile=NULL).

When the server Abend, I have pressed '386debug' (no quote) at the server
console to activate the NetWare Internal Debugger, and then have traced back the
call stack to find the reason above.

Here is a patch to fix this Abend problem.

--- cut here ---

--- apache_1.3.27_org/src/modules/proxy/proxy_util.c	2002-07-23
01:26:04.000000000 +0900
+++ apache_1.3.27_kai/src/modules/proxy/proxy_util.c	2003-02-24
00:28:34.000000000 +0900
@@ -672,7 +672,7 @@
                             ap_pclosef(c->req->pool, ap_bfileno(c->fp, B_WR));
                             c->fp = NULL;
                         }
-                        unlink(c->tempfile);
+                        if ( NULL != c->tempfile )	unlink(c->tempfile);
                         c = NULL;
                     }
                 }

--- cut here ---

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