Hey,

See backtrace, it's immediate clear what happens... the filename is 
already freed.

(gdb) run -X
Starting program: /dat/dev/php/apache_1.3.27/src/httpd -X

Program received signal SIGSEGV, Segmentation fault.
0x080afdbf in php_strlcpy (dst=0x832bdc0 
"/home/httpd/html/pres/show.php", 
    src=0x5a5a5a5a <Address 0x5a5a5a5a out of bounds>, siz=1024)
    at /dat/dev/php/php-4.3.0dev/main/strlcpy.c:58
58                              if ((*d++ = *s++) == 0)
(gdb) bt
#0  0x080afdbf in php_strlcpy (dst=0x832bdc0 
"/home/httpd/html/pres/show.php", 
    src=0x5a5a5a5a <Address 0x5a5a5a5a out of bounds>, siz=1024)
    at /dat/dev/php/php-4.3.0dev/main/strlcpy.c:58
#1  0x080a6fe4 in php_error_cb (type=1, 
    error_filename=0x5a5a5a5a <Address 0x5a5a5a5a out of bounds>, 
    error_lineno=0, format=0x82a64bf "PDFlib error: %s", 
args=0xbfffe6a8)
    at /dat/dev/php/php-4.3.0dev/main/main.c:545
#2  0x080d1df7 in zend_error (type=1, format=0x82a64bf "PDFlib error: 
%s")
    at /dat/dev/php/php-4.3.0dev/Zend/zend.c:710
#3  0x0817f646 in custom_errorhandler (p=0x86afef4, type=3, 
    shortmsg=0xbfffe6d0 "function 'PDF_delete' must not be called in 
'page' scope") at /dat/dev/php/php-4.3.0dev/ext/pdf/pdf.c:280
#4  0x40066ce5 in pdf_error (p=0x86afef4, type=3, 
    fmt=0x400a8660 "function '%s' must not be called in '%s' scope")
    at p_basic.c:207
#5  0x40066db8 in pdf_scope_error (p=0x86afef4, funame=0x400a884d 
"PDF_delete")
    at p_basic.c:291
#6  0x40067345 in PDF_delete (p=0x86afef4) at p_basic.c:657
#7  0x0817f5d9 in _free_pdf_doc (rsrc=0x8539b3c)
    at /dat/dev/php/php-4.3.0dev/ext/pdf/pdf.c:248
#8  0x080d9097 in list_entry_destructor (ptr=0x8539b3c)
    at /dat/dev/php/php-4.3.0dev/Zend/zend_list.c:177
#9  0x080d74b4 in zend_hash_apply_deleter (ht=0x8341d68, p=0x8539fd4)
---Type <return> to continue, or q <return> to quit---
    at /dat/dev/php/php-4.3.0dev/Zend/zend_hash.c:598
#10 0x080d76ea in zend_hash_graceful_reverse_destroy (ht=0x8341d68)
    at /dat/dev/php/php-4.3.0dev/Zend/zend_hash.c:664
#11 0x080d91d1 in zend_destroy_rsrc_list (ht=0x8341d68)
    at /dat/dev/php/php-4.3.0dev/Zend/zend_list.c:233
#12 0x080c809c in shutdown_executor ()
    at /dat/dev/php/php-4.3.0dev/Zend/zend_execute_API.c:213
#13 0x080d1b8a in zend_deactivate ()
    at /dat/dev/php/php-4.3.0dev/Zend/zend.c:624
#14 0x080a7d28 in php_request_shutdown (dummy=0x0)
    at /dat/dev/php/php-4.3.0dev/main/main.c:913
#15 0x0809fb04 in php_apache_request_shutdown ()
#16 0x08250ca8 in run_cleanups ()
#17 0x0824f546 in ap_clear_pool ()
#18 0x0824f5c6 in ap_destroy_pool ()
#19 0x0824f532 in ap_clear_pool ()
#20 0x0825f89d in child_main ()
#21 0x0825feb0 in make_child ()
#22 0x08260024 in startup_children ()
#23 0x082606a0 in standalone_main ()
#24 0x08260f0f in main ()
#25 0x40552306 in __libc_start_main (main=0x8260b60 <main>, argc=2, 
    ubp_av=0xbffffad4, init=0x807cbec <_init>, fini=0x82777f0 <_fini>, 
---Type <return> to continue, or q <return> to quit---
    rtld_fini=0x4000d2dc <_dl_fini>, stack_end=0xbffffacc)
    at ../sysdeps/generic/libc-start.c:129


Derick


-- 

---------------------------------------------------------------------------
 Derick Rethans                                   http://derickrethans.nl/ 
 JDI Media Solutions                               http://www.jdimedia.nl/
---------------------------------------------------------------------------


-- 
PHP Development Mailing List <http://www.php.net/>
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to