From:             [EMAIL PROTECTED]
Operating system: FreeBSD
PHP version:      4CVS-2002-11-01
PHP Bug Type:     Zlib Related
Bug description:  Segfault in sapi_apache_header_handler

#0  0x2836810e in sapi_apache_header_handler (sapi_header=0xbfbff5e4,
sapi_headers=0x2853c790) at mod_php4.c:259
259                     table_set(r->headers_out, header_name,
header_content);
(gdb) bt
#0  0x2836810e in sapi_apache_header_handler (sapi_header=0xbfbff5e4,
sapi_headers=0x2853c790) at mod_php4.c:259
#1  0x28370f79 in sapi_add_header_ex (header_line=0x8be0a0c
"Content-Encoding", header_line_len=22, duplicate=1 '\001',
    replace=1 '\001') at SAPI.c:557
#2  0x283828ac in zif_ob_gzhandler (ht=2, return_value=0x8bdb86c,
this_ptr=0x0, return_value_used=1) at zlib.c:1273
#3  0x2835178e in call_user_function_ex (function_table=0x80de080,
object_pp=0x0, function_name=0x8d7718c,
    retval_ptr_ptr=0xbfbff7a8, param_count=2, params=0xbfbff75c,
no_separation=1, symbol_table=0x0)
    at zend_execute_API.c:532
#4  0x28376197 in php_end_ob_buffer (send_buffer=1 '\001', just_flush=0
'\000') at output.c:177
#5  0x2837652f in php_end_ob_buffers (send_buffer=1 '\001') at
output.c:267
#6  0x2836b907 in php_request_shutdown (dummy=0x0) at main.c:775
#7  0x28368442 in php_apache_request_shutdown (dummy=0x0) at
mod_php4.c:390
#8  0x80514f2 in run_cleanups ()
#9  0x805cd15 in make_child ()
Cannot access memory at address 0x3dc26069.

#0  0x2836810e in sapi_apache_header_handler (sapi_header=0xbfbff5e4,
sapi_headers=0x2853c790) at mod_php4.c:259
259                     table_set(r->headers_out, header_name,
header_content);
(gdb) list
254             if (!strcasecmp(header_name, "Content-Type")) {
255                     r->content_type = pstrdup(r->pool,
header_content);
256             } else if (!strcasecmp(header_name, "Set-Cookie")) {
257                     table_add(r->headers_out, header_name,
header_content);
258             } else {
259                     table_set(r->headers_out, header_name,
header_content);
260             }
261
262             *p = ':';  /* a well behaved header handler shouldn't
change its original arguments */
263
(gdb) p r->headers_out
Cannot access memory at address 0x84.
-- 
Edit bug report at http://bugs.php.net/?id=20211&edit=1
-- 
Try a CVS snapshot:         http://bugs.php.net/fix.php?id=20211&r=trysnapshot
Fixed in CVS:               http://bugs.php.net/fix.php?id=20211&r=fixedcvs
Fixed in release:           http://bugs.php.net/fix.php?id=20211&r=alreadyfixed
Need backtrace:             http://bugs.php.net/fix.php?id=20211&r=needtrace
Try newer version:          http://bugs.php.net/fix.php?id=20211&r=oldversion
Not developer issue:        http://bugs.php.net/fix.php?id=20211&r=support
Expected behavior:          http://bugs.php.net/fix.php?id=20211&r=notwrong
Not enough info:            http://bugs.php.net/fix.php?id=20211&r=notenoughinfo
Submitted twice:            http://bugs.php.net/fix.php?id=20211&r=submittedtwice
register_globals:           http://bugs.php.net/fix.php?id=20211&r=globals
PHP 3 support discontinued: http://bugs.php.net/fix.php?id=20211&r=php3
Daylight Savings:           http://bugs.php.net/fix.php?id=20211&r=dst
IIS Stability:              http://bugs.php.net/fix.php?id=20211&r=isapi

Reply via email to