httpd-users-de mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From armin langhofer <off...@langhofer.at>
Subject Re: [nachtrag] Re: setfault bei url_fopen
Date Fri, 11 Aug 2006 10:40:23 GMT


Alexander Lazic schrieb:
> On Don 10.08.2006 16:22, Alexander Lazic wrote:
>> On Don 10.08.2006 15:11, armin langhofer wrote:
>>>
>>>>
>>>> wie war das nochmal mit den logs?
>>>>
>>>> Und bitte _unter_ dem Zitat antworten. Danke.
>>>
>>> <?php
>>> echo "before";
>>> flush();
>>>
>>> new SoapClient("http://wsdl.langhofer.at/atm.wsdl.xml");
>>> echo "after";
>>> flush();
>>>
>>> ?>
>>
>> Faellst du vielleicht in einer der Bugs:
>>
>> http://www.google.com/search?rls=en&q=SoapClient+php+segfault&num=100&ie=utf-8&oe=utf-8
>>

meiner meinung nach nicht.

>>
>> Welche Version von den jeweiligen Komponenten hast du?!
>> Kann man dem SoapClient eine Debug entlocken?!
>> Kann man dem PHP eine Debug entlocken?!
>> Was sagt ein strace -fveall -a 100 -s 100 ... dazu?!

PHP 5.1.4-pl1-gentoo with Hardening-Patch 0.4.11


--- strace snip ---
rt_sigaction(SIGPROF, {0x4071dcd4, [PROF], SA_RESTORER|SA_RESTART,
0x40613bf8}, {0x4071dcd4, [PROF], SA_RESTORER|SA_RESTART, 0x40613bf8},
8) = 0
rt_sigprocmask(SIG_UNBLOCK, [PROF], NULL, 8)
                            = 0
time(NULL)
                            = 1155292208
gettimeofday({1155292208, 941830}, NULL)
                            = 0
getpid()
                            = 12543
fstat64(0, {st_dev=makedev(0, 9), st_ino=17, st_mode=S_IFCHR|0620,
st_nlink=1, st_uid=0, st_gid=5, st_blksize=1024, st_blocks=0,
st_rdev=makedev(136, 15), st_atime=2006/08/11-12:30:07,
st_mtime=2006/08/11-12:30:08, st_ctime=2006/08/11-12:16:06}) = 0
lseek(0, 0, SEEK_CUR)
                            = -1 ESPIPE (Illegal seek)
fstat64(1, {st_dev=makedev(0, 9), st_ino=17, st_mode=S_IFCHR|0620,
st_nlink=1, st_uid=0, st_gid=5, st_blksize=1024, st_blocks=0,
st_rdev=makedev(136, 15), st_atime=2006/08/11-12:30:07,
st_mtime=2006/08/11-12:30:08, st_ctime=2006/08/11-12:16:06}) = 0
lseek(1, 0, SEEK_CUR)
                            = -1 ESPIPE (Illegal seek)
fstat64(2, {st_dev=makedev(0, 9), st_ino=17, st_mode=S_IFCHR|0620,
st_nlink=1, st_uid=0, st_gid=5, st_blksize=1024, st_blocks=0,
st_rdev=makedev(136, 15), st_atime=2006/08/11-12:30:07,
st_mtime=2006/08/11-12:30:08, st_ctime=2006/08/11-12:16:06}) = 0
lseek(2, 0, SEEK_CUR)
                            = -1 ESPIPE (Illegal seek)
getcwd("/web/langhofer/100/test.langhofer.net/htdocs", 4096)
                            = 45
time(NULL)
                            = 1155292208
lstat64("/web", {st_dev=makedev(9, 1), st_ino=2, st_mode=S_IFDIR|0755,
st_nlink=6, st_uid=0, st_gid=0, st_blksize=4096, st_blocks=8,
st_size=4096, st_atime=2006/08/11-12:16:09,
st_mtime=2006/08/10-13:58:00, st_ctime=2006/08/10-13:58:00}) = 0
lstat64("/web/langhofer", {st_dev=makedev(9, 1), st_ino=13975553,
st_mode=S_IFDIR|0755, st_nlink=31, st_uid=0, st_gid=0, st_blksize=4096,
st_blocks=8, st_size=4096, st_atime=2006/08/11-12:16:10,
st_mtime=2006/08/07-18:39:38, st_ctime=2006/08/07-18:39:38}) = 0
lstat64("/web/langhofer/100", {st_dev=makedev(9, 1), st_ino=13975916,
st_mode=S_IFDIR|0755, st_nlink=72, st_uid=0, st_gid=0, st_blksize=4096,
st_blocks=8, st_size=4096, st_atime=2006/08/11-12:16:10,
st_mtime=2006/08/06-22:08:18, st_ctime=2006/08/06-22:08:18}) = 0
lstat64("/web/langhofer/100/test.langhofer.net", {st_dev=makedev(9, 1),
st_ino=13976941, st_mode=S_IFDIR|0755, st_nlink=10, st_uid=0, st_gid=0,
st_blksize=4096, st_blocks=8, st_size=4096,
st_atime=2006/08/11-12:16:42, st_mtime=2006/05/03-19:18:11,
st_ctime=2006/05/03-19:18:11}) = 0
lstat64("/web/langhofer/100/test.langhofer.net/htdocs",
{st_dev=makedev(9, 1), st_ino=13976942, st_mode=S_IFDIR|0777,
st_nlink=12, st_uid=1003, st_gid=453, st_blksize=4096, st_blocks=8,
st_size=4096, st_atime=2006/08/11-12:26:11,
st_mtime=2006/08/11-12:30:08, st_ctime=2006/08/11-12:30:08}) = 0
lstat64("/web/langhofer/100/test.langhofer.net/htdocs/soapclient.php",
{st_dev=makedev(9, 1), st_ino=13980377, st_mode=S_IFREG|0644,
st_nlink=1, st_uid=0, st_gid=0, st_blksize=4096, st_blocks=8,
st_size=170, st_atime=2006/08/11-12:30:08, st_mtime=2006/08/11-12:20:18,
st_ctime=2006/08/11-12:20:18}) = 0
ioctl(4, SNDCTL_TMR_TIMEBASE or TCGETS, 0xbfffcfcc)
                            = -1 ENOTTY (Inappropriate ioctl for device)
read(4, "<?php\n\techo \"before\";\n\t\tflush();\n\t\t\nnew
SoapClient(\"http://wsdl.langhofer.at/atm.wsdl.xml\", array(\'t"...,
8192) = 170
read(4, "", 4096)
                            = 0
read(4, "", 8192)
                            = 0
close(4)
                            = 0
munmap(0x430c1000, 4096)
                            = 0
fstat64(1, {st_dev=makedev(0, 9), st_ino=17, st_mode=S_IFCHR|0620,
st_nlink=1, st_uid=0, st_gid=5, st_blksize=1024, st_blocks=0,
st_rdev=makedev(136, 15), st_atime=2006/08/11-12:30:07,
st_mtime=2006/08/11-12:30:08, st_ctime=2006/08/11-12:16:06}) = 0
mmap2(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1,
0)                           = 0x430c1000
write(1, "before", 6before)
                                  = 6
time(NULL)
                            = 1155292208
open("/tmp/wsdl-ca064d929621f4987c860d300162bff7", O_RDONLY)
                            = -1 ENOENT (No such file or directory)
stat64("http://wsdl.langhofer.at/atm.wsdl.xml", 0xbfffbad0)
                            = -1 ENOENT (No such file or directory)
stat64("http://wsdl.langhofer.at/atm.wsdl.xml", 0xbfffba30)
                            = -1 ENOENT (No such file or directory)
stat64("/etc/xml/catalog", {st_dev=makedev(9, 0), st_ino=1062882,
st_mode=S_IFREG|0644, st_nlink=1, st_uid=0, st_gid=0, st_blksize=4096,
st_blocks=8, st_size=2229, st_atime=2006/08/11-12:29:55,
st_mtime=2004/07/28-22:31:39, st_ctime=2005/02/18-19:45:22}) = 0
time(NULL)
                            = 1155292208
lstat64("/etc", {st_dev=makedev(9, 0), st_ino=212577,
st_mode=S_IFDIR|0755, st_nlink=71, st_uid=0, st_gid=0, st_blksize=4096,
st_blocks=8, st_size=4096, st_atime=2006/08/11-12:29:49,
st_mtime=2006/08/11-12:29:40, st_ctime=2006/08/11-12:29:40}) = 0
lstat64("/etc/xml", {st_dev=makedev(9, 0), st_ino=1062881,
st_mode=S_IFDIR|0755, st_nlink=2, st_uid=0, st_gid=0, st_blksize=4096,
st_blocks=8, st_size=4096, st_atime=2006/08/11-12:29:49,
st_mtime=2004/07/28-22:18:35, st_ctime=2005/02/18-19:45:22}) = 0
lstat64("/etc/xml/catalog", {st_dev=makedev(9, 0), st_ino=1062882,
st_mode=S_IFREG|0644, st_nlink=1, st_uid=0, st_gid=0, st_blksize=4096,
st_blocks=8, st_size=2229, st_atime=2006/08/11-12:29:55,
st_mtime=2004/07/28-22:31:39, st_ctime=2005/02/18-19:45:22}) = 0
open("/etc/xml/catalog", O_RDONLY)
                            = 4
fstat64(4, {st_dev=makedev(9, 0), st_ino=1062882, st_mode=S_IFREG|0644,
st_nlink=1, st_uid=0, st_gid=0, st_blksize=4096, st_blocks=8,
st_size=2229, st_atime=2006/08/11-12:29:55,
st_mtime=2004/07/28-22:31:39, st_ctime=2005/02/18-19:45:22}) = 0
lseek(4, 0, SEEK_CUR)
                            = 0
read(4, "<?xml version=\"1.0\"?>\n<!DOCTYPE catalog PUBLIC
\"-//OASIS//DTD Entity Resolution XML Catalog V1.0//EN"..., 8192) = 2229
read(4, "", 8192)
                            = 0
read(4, "", 8192)
                            = 0
close(4)
                            = 0
stat64("http://wsdl.langhofer.at/atm.wsdl.xml", 0xbfffb9d0)
                            = -1 ENOENT (No such file or directory)
--- SIGSEGV (Segmentation fault) @ 0 (0) ---
+++ killed by SIGSEGV +++
--- strace snip ---

> 
> Falls das dein SoapClient ist http://www.php.net/manual/en/ref.soap.php
> dann basiert er auf der libxml, was eine C-Lib ist und uns vielleicht
> ein Stueck weiter bringt.

also libxml ist in meim gentoo nicht instlaliert, vielleicht hat sich
php beim kompilieren selbst die xml libs runtergeladen? oder sie kommen
im php paket mit?

> 
> http://www.php.net/manual/en/function.soap-soapclient-construct.php sagt
> folgendes bei den optionen:

> 
> ---
> The trace and exceptions options are useful for debuging purpose.
> ---

die trace und exceptions funktionen geben fehlercodes vom soapserver
aus, aber eine soapverbindung wird erst gar nicht aufgebaut weil der
soapclient vorher schon stirbt - diese funktionen helfen also hier nicht
weiter.

armin

--------------------------------------------------------------------------
                Apache HTTP Server Mailing List "users-de" 
      unsubscribe-Anfragen an users-de-unsubscribe@httpd.apache.org
           sonstige Anfragen an users-de-help@httpd.apache.org
--------------------------------------------------------------------------


Mime
View raw message