#35570 [Fbk->Opn]: segfault when re-using soap client object

From: Date: Tue, 06 Dec 2005 13:46:18 +0000
Subject: #35570 [Fbk->Opn]: segfault when re-using soap client object
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-89821@lists.php.net to get a copy of this message
ID: 35570 User updated by: rick at revenew dot nl Reported By: rick at revenew dot nl -Status: Feedback +Status: Open Bug Type: SOAP related Operating System: Debian Sarge (Linux) amd64 PHP Version: 5.1.1 New Comment: Hmm just noticed something really strange. I just recompiled php 5.1.1 with the exact same configure options, only I added --enable-debug to start making a backtrace. Now with the --enable-debug it works fine :S So, I got curious offcourse and recompiled again without --enable-debug and bam... a segfault again. Previous Comments: ------------------------------------------------------------------------ [2005-12-06 14:17:40] tony2001@php.net Please provide BOTH short but complete reproduce script and GDB backtrace. Thanks. ------------------------------------------------------------------------ [2005-12-06 14:10:13] rick at revenew dot nl the latest snapshot still segfaults ------------------------------------------------------------------------ [2005-12-06 13:59:58] tony2001@php.net Please try using this CVS snapshot: http://snaps.php.net/php5.1-latest.tar.gz For Windows: http://snaps.php.net/win32/php5.1-win32-latest.zip ------------------------------------------------------------------------ [2005-12-06 13:53:16] rick at revenew dot nl Description: ------------ The first method I call on a soap client object works fine. The second call however, produces a segfault. When I recreate the soap client object in between the calls the script works fine. This bug also occurs in PHP 5.0.4 and 5.0.5. But it didn't exist on my previous i386 Debian woody server (the php code is identical). Reproduce code: --------------- $wq = new SoapClient('http://soap-server-ip/WQLogin/wsdl/IWQLoginService'); $ul = $wq->GetUserList(); foreach ($ul as $array) { if($array->UserName == $_GET['username']) { if($array->Password == $_GET['password']) { if(in_array('1',$array->Permissions)) { $wq->GetUserUID($array->UserID); The last line causes the segfault. But when I insert: $wq = new SoapClient('http://soap-server-ip/WQLogin/wsdl/IWQLoginService'); one line before the last, it works fine. Expected result: ---------------- no segfault ;) Actual result: -------------- segfault, haven't got a backtrace yet. Can create one if you require it. ------------------------------------------------------------------------ -- Edit this bug report at http://bugs.php.net/?id=35570&edit=1

« previous php.bugs (#89821) next »