ID:               38017
 Updated by:       [EMAIL PROTECTED]
 Reported By:      baco at infomaniak dot ch
-Status:           Open
+Status:           Feedback
 Bug Type:         XML related
 Operating System: Linux Debian Sarge
 PHP Version:      5.1.4
 New Comment:

Yeah, that's what I thought - please try to add configure options one
by one and see which one causes the problem.
Hint: I suspect it could be --with-curl or --with-openssl.


Previous Comments:
------------------------------------------------------------------------

[2006-07-05 18:48:16] baco at infomaniak dot ch

Unable to reproduce the issue with  
  
'./configure' '--prefix=/opt/php' '--mandir=/usr/share/man'  
'--with-apxs=/opt/apache/bin/apxs' '--enable-debug'  
  
So a special configure option do this ... ?!?

------------------------------------------------------------------------

[2006-07-05 18:35:11] [EMAIL PROTECTED]

Uhm.. Now THAT doesn't make any sense to me.
What Apache version is that? And which MPM are you using if it's Apache
2? 
Also, please try to remove all those configure options which are not
required to execute this piece of code. 
I guess just "./configure --with-apxs= ... --enable-debug" should be
enough.
 

------------------------------------------------------------------------

[2006-07-05 18:23:54] baco at infomaniak dot ch

Thanks for the link how-to debug PHP because with first 
method I wasn't able to have a core file. 
 
gdb bin/httpd 
... 
Program received signal SIGSEGV, Segmentation fault. 
[Switching to Thread -1210309344 (LWP 29253)] 
0xb7e3d07f in memcpy () from /lib/tls/libc.so.6 
 
bt 
0xb7e3d07f in memcpy () from /lib/tls/libc.so.6 
(gdb) bt 
#0  0xb7e3d07f in memcpy () from /lib/tls/libc.so.6 
#1  0x0808b76f in XML_Parse () 
#2  0x085f03e4 in ?? () 
#3  0x00000039 in ?? () 
#4  0xb78e225e in _emalloc (size=140444644, 
    __zend_filename=0xb78a1ac0 
"U1À\211å\203ì(\211D$\0301À\211D$\024¸Ç", 
    __zend_lineno=0, __zend_orig_filename=0x0, 
__zend_orig_lineno=0) 
    
at
/tmp/INFOMANIAK/BUILD/php-5.1.4/20060705185658/php-5.1.4/Zend/zend_alloc.c:214

#5  0xb7919aa8 in zend_do_fcall_common_helper_SPEC 
(execute_data=0xbfb698c0) 
    at zend_vm_execute.h:200 
#6  0xb79191c8 in execute (op_array=0x85f009c) at 
zend_vm_execute.h:92 
#7  0xb78fb430 in zend_execute_scripts (type=8, retval=0x0, 
file_count=3) 
    
at
/tmp/INFOMANIAK/BUILD/php-5.1.4/20060705185658/php-5.1.4/Zend/zend.c:1109

#8  0xb78b77c3 in php_execute_script 
(primary_file=0xbfb6bc40) 
    
at
/tmp/INFOMANIAK/BUILD/php-5.1.4/20060705185658/php-5.1.4/main/main.c:1732

#9  0xb796fee9 in apache_php_module_main (r=0x812289c, 
display_source_mode=0) 
    
at
/tmp/INFOMANIAK/BUILD/php-5.1.4/20060705185658/php-5.1.4/sapi/apache/sapi_apache.c:53

#10 0xb7970aca in send_php (r=0x812289c, 
display_source_mode=0, filename=0x0) 
    
at
/tmp/INFOMANIAK/BUILD/php-5.1.4/20060705185658/php-5.1.4/sapi/apache/mod_php5.c:661

#11 0xb7970c53 in send_parsed_php (r=0x812289c) 
    
at
/tmp/INFOMANIAK/BUILD/php-5.1.4/20060705185658/php-5.1.4/sapi/apache/mod_php5.c:676

#12 0x08055dff in ap_invoke_handler () 
#13 0x0812289c in ?? () 
#14 0xb7b3f394 in zend_vm_decode.1 () 
from /opt/apache/libexec/libphp5.so 
#15 0x00000017 in ?? () 
#16 0xffffffff in ?? () 
#17 0xffffffff in ?? () 
#18 0xffffffff in ?? () 
#19 0x080c19b4 in ?? () 
#20 0x080c19a4 in ?? () 
#21 0x08122ba4 in ?? () 
#22 0xbfb6bfa0 in ?? () 
#23 0x00000002 in ?? () 
#24 0x0805592c in run_method () 
#25 0x00000017 in ?? () 
#26 0x085c5ce8 in ?? () 
#27 0x0812289c in ?? () 
#28 0x084ce32c in ?? () 
#29 0x0812289c in ?? () 
#30 0xb7f54d32 in add_env_module_vars_unset () 
   from /opt/apache/libexec/mod_env.so 
#31 0x00000017 in ?? () 
#32 0x00000000 in ?? () 
#33 0x084ce32c in ?? () 
#34 0x085c5ce8 in ?? () 
#35 0x0806f3c1 in process_request_internal () 
#36 0x0812289c in ?? () 
#37 0xb7f4dd68 in ?? () 
#38 0x00000001 in ?? () 
#39 0x00000000 in ?? () 
#40 0x0812421c in ?? () 
#41 0x080acece in priorities () 
#42 0xb7dd8974 in __libc_start_main () 
from /lib/tls/libc.so.6 
#43 0xb7dd8974 in __libc_start_main () 
from /lib/tls/libc.so.6 
#44 0x08050051 in _start () 
at ../sysdeps/i386/elf/start.S:102

------------------------------------------------------------------------

[2006-07-05 18:11:23] [EMAIL PROTECTED]

strace does not add any value.
But GDB backtrace could do that.
See this link http://bugs.php.net/bugs-generating-backtrace.php

------------------------------------------------------------------------

[2006-07-05 18:06:29] baco at infomaniak dot ch

New strace of previous code 
 
open("/home/www/29212ea8a58d20e52ba0886bd64685bb/web/test.php", 
O_RDONLY) = 7 
fstat64(7, {st_mode=S_IFREG|0644, st_size=235, ...}) = 0 
lseek(7, 0, SEEK_CUR)                   = 0 
read(7, "<?php\n\t$data = \'<?xml version=\"1"..., 8192) = 
235 
read(7, "", 8192)                       = 0 
read(7, "", 8192)                       = 0 
brk(0)                                  = 0x85f2000 
brk(0x8613000)                          = 0x8613000 
close(7)                                = 0 
--- SIGSEGV (Segmentation fault) @ 0 (0) --- 
chdir("/opt/apache")                    = 0 
rt_sigaction(SIGSEGV, {SIG_DFL}, {SIG_DFL}, 8) = 0 
getpid()                                = 29068 
kill(29068, SIGSEGV)                    = 0 
sigreturn()                             = ? (mask now []) 
--- SIGSEGV (Segmentation fault) @ 0 (0) --- 
Process 29068 detached 
 
New gdb output from new code 
 
(gdb) continue 
Continuing. 
Program received signal SIGSEGV, Segmentation fault. 
[Switching to Thread -1210239712 (LWP 29128)] 
0xb7e4e07f in memcpy () from /lib/tls/libc.so.6

------------------------------------------------------------------------

The remainder of the comments for this report are too long. To view
the rest of the comments, please view the bug report online at
    http://bugs.php.net/38017

-- 
Edit this bug report at http://bugs.php.net/?id=38017&edit=1

Reply via email to