https://bz.apache.org/bugzilla/show_bug.cgi?id=64452

--- Comment #21 from michael.h...@brz.gv.at ---
With mod_security it is the same 2.4.41 deletes the tmp file with 2.4.43 the
file is left in use on the filesystem.

here the gdb output from 2.4.41+2.4.43

=> 2.4.41

(gdb) break apr_file_mktemp
Breakpoint 2 at 0x7ffff74f6a64: file file_io/unix/mktemp.c, line 182.
(gdb) break file_cleanup
Breakpoint 3 at 0x7ffff74f6b6f: file file_io/unix/open.c, line 31.
(gdb) continue
Continuing.

Breakpoint 2, apr_file_mktemp (fp=0x7fffa9781740, template=0x7fffa4036228
"/tmp/apr-tmp.XXXXXX", flags=0, p=0x7fffa401f8a8) at file_io/unix/mktemp.c:182
182                            APR_FOPEN_DELONCLOSE : flags;
(gdb) continue
Continuing.

Breakpoint 3, file_cleanup (file=0x7fffa4036240, is_child=0) at
file_io/unix/open.c:31
31          apr_status_t rv = APR_SUCCESS;
(gdb) print *file
$1 = {pool = 0x7fffa401f8a8, filedes = 22, fname = 0x7fffa40362b8
"/tmp/apr-tmp.Z3okA8", flags = 2375, eof_hit = 0, is_pipe = 0, timeout = -1,
buffered = 0,
  blocking = BLK_UNKNOWN, ungetchar = -1, buffer = 0x0, bufpos = 0, bufsize =
0, dataRead = 0, direction = 0, filePtr = 0, thlock = 0x0}
(gdb) continue
Continuing.

Breakpoint 2, apr_file_mktemp (fp=0x7fffa9781838, template=0x7fffa40362f8
"/tmp/modproxy.tmp.XXXXXX", flags=0, p=0x7fffa401f8a8) at
file_io/unix/mktemp.c:182
182                            APR_FOPEN_DELONCLOSE : flags;
(gdb) continue
Continuing.

Breakpoint 3, file_cleanup (file=0x7fffa4036318, is_child=0) at
file_io/unix/open.c:31
31          apr_status_t rv = APR_SUCCESS;
(gdb) print *file
$2 = {pool = 0x7fffa401f8a8, filedes = 22, fname = 0x7fffa4036390
"/tmp/modproxy.tmp.qCDiSk", flags = 2375, eof_hit = 0, is_pipe = 0, timeout =
-1, buffered = 0,
  blocking = BLK_UNKNOWN, ungetchar = -1, buffer = 0x0, bufpos = 0, bufsize =
0, dataRead = 0, direction = 0, filePtr = 0, thlock = 0x0}
(gdb) next
32          int fd = file->filedes;
(gdb) next
37          file->filedes = -1;
(gdb) next
39          if (close(fd) == 0) {
(gdb) next
41              if (!is_child && (file->flags & APR_FOPEN_DELONCLOSE)) {
(gdb) next
42                  unlink(file->fname);
(gdb) next
45              if (file->thlock) {


=> 2.4.43


(gdb) break apr_file_mktemp
Breakpoint 2 at 0x7ffff74f6a64: file file_io/unix/mktemp.c, line 182.
(gdb) break file_cleanup
Breakpoint 3 at 0x7ffff74f6b6f: file file_io/unix/open.c, line 31.
(gdb) continue
Continuing.

Breakpoint 2, apr_file_mktemp (fp=0x7fffaa783730, template=0x7fffa4036310
"/tmp/apr-tmp.XXXXXX", flags=0, p=0x7fffa401f898) at file_io/unix/mktemp.c:182
182                            APR_FOPEN_DELONCLOSE : flags;
(gdb) continue
Continuing.

Breakpoint 3, file_cleanup (file=0x7fffa4036328, is_child=0) at
file_io/unix/open.c:31
31          apr_status_t rv = APR_SUCCESS;
(gdb) print *file
$1 = {pool = 0x7fffa401f898, filedes = 23, fname = 0x7fffa40363a0
"/tmp/apr-tmp.Vn2UKe", flags = 2375, eof_hit = 0, is_pipe = 0, timeout = -1,
buffered = 0,
  blocking = BLK_UNKNOWN, ungetchar = -1, buffer = 0x0, bufpos = 0, bufsize =
0, dataRead = 0, direction = 0, filePtr = 0, thlock = 0x0}
(gdb) continue
Continuing.

Breakpoint 2, apr_file_mktemp (fp=0x7fffaa783828, template=0x7fffa40363e0
"/tmp/modproxy.tmp.XXXXXX", flags=0, p=0x7fffa401f898) at
file_io/unix/mktemp.c:182
182                            APR_FOPEN_DELONCLOSE : flags;
(gdb) continue
Continuing.


any ideas?

-- 
You are receiving this mail because:
You are the assignee for the bug.
---------------------------------------------------------------------
To unsubscribe, e-mail: bugs-unsubscr...@httpd.apache.org
For additional commands, e-mail: bugs-h...@httpd.apache.org

Reply via email to