php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #57653 Segmentation fault with join()
Submitted: 2007-05-07 09:45 UTC Modified: 2008-03-02 11:48 UTC
From: soenke dot ruempler at northclick dot de Assigned:
Status: Closed Package: spread (PECL)
PHP Version: 5.2.0 OS: Debian Etch
Private report: No CVE-ID: None
View Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
If you reported this bug, you can edit this bug over here.
Block user comment
Status: Assign to:
Package:
Bug Type:
Summary:
From: soenke dot ruempler at northclick dot de
New email:
PHP Version: OS:

 

 [2007-05-07 09:45 UTC] soenke dot ruempler at northclick dot de
Description:
------------
The extension gets an segfault when join() is called:

Program received signal SIGSEGV, Segmentation fault.
[Switching to Thread 46917698445296 (LWP 2972)]
0x00000000006376ea in add_next_index_string ()
(gdb) bt
#0 0x00000000006376ea in add_next_index_string ()
#1 0x00002aabe25043a0 in zif_spread_join (ht=<value optimized out>, return_value=0x2aabdef78728, return_value_ptr=<value optimized out>,
this_ptr=<value optimized out>, return_value_used=<value optimized out>) at /root/pecl/spread/php_spread.c:600
#2 0x000000000065f6d7 in execute ()
#3 0x000000000064f0f3 in execute ()
#4 0x0000000000632169 in zend_execute_scripts ()
#5 0x00000000005f2968 in php_execute_script ()
#6 0x00000000006b89e5 in main ()

Reproduce code:
---------------
<?php
$blah = spread_connect('4803', 'bb');
spread_join($blah, array('gruppe'));


Expected result:
----------------
No segfault.

Actual result:
--------------
Segfault :)

Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2007-05-14 14:49 UTC] s dot tretter at szene1 dot at
First try my patch: http://pecl.php.net/bugs/bug.php?id=9349
and then use "objects" like:
$a = new Spread();
$a->connect("4803");
$a->join("group");

ng
 [2007-10-15 12:43 UTC] ktamas77 at gmail dot com
Hi, 

After applying the patch, and using OOP instead of procedural function calling, I've receive the following warning:

PHP Warning:  Spread::join(): SP_Join: expect groups to an array of strings or a string in /home/test/test.php on line 6

Source:

<?

$a = new Spread ();

$a->connect ("4803@192.168.0.8");
$a->join ("test");

?>
 [2008-03-02 11:48 UTC] rrichards@php.net
This bug has been fixed in CVS.

In case this was a documentation problem, the fix will show up at the
end of next Sunday (CET) on pecl.php.net.

In case this was a pecl.php.net website problem, the change will show
up on the website in short time.
 
Thank you for the report, and for helping us make PECL better.


 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Fri Dec 27 02:01:29 2024 UTC