|  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
 [2007-05-07 09:45 UTC] soenke dot ruempler at northclick dot de
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:
$blah = spread_connect('4803', 'bb');
spread_join($blah, array('gruppe'));

Expected result:
No segfault.

Actual result:
Segfault :)


Add a Patch

Pull Requests

Add a Pull Request


AllCommentsChangesGit/SVN commitsRelated reports
 [2007-05-14 14:49 UTC] s dot tretter at szene1 dot at
First try my patch:
and then use "objects" like:
$a = new Spread();

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

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



$a = new Spread ();

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

 [2008-03-02 11:48 UTC]
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

In case this was a 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: Mon Apr 22 14:01:31 2024 UTC