php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #59883 Segmentation fault on AMQPQueue::consume
Submitted: 2011-08-03 06:14 UTC Modified: 2013-02-18 00:35 UTC
From: forrest dot ua at gmail dot com Assigned:
Status: No Feedback Package: amqp (PECL)
PHP Version: 5.3.3 OS: 2.6.35-28 x86_64 Linux
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: forrest dot ua at gmail dot com
New email:
PHP Version: OS:

 

 [2011-08-03 06:14 UTC] forrest dot ua at gmail dot com
Description:
------------
Every time when I call AMQPQueue::consume "Segmentation 
fault" appears. After debugging this module I've found that 
this error in file "amqp_queue.c" line 601

"int messages_in_queue = r->message_count;"


RabbitMQ 2.4.1

Reproduce code:
---------------
<?php

$connection = new AMQPConnection();
$connection->connect();

$queue = new AMQPQueue($connection, 'test');
$options = array(
 'min' => 1,
 'max' => 5,
 'ack' => true
);

$messages = $queue->consume($options);

foreach ($messages as $message) {
    echo $message['message_body'];
}

?>

Expected result:
----------------
returned messages

Actual result:
--------------
"Segmentation fault" after $queue->consume

Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2011-08-03 06:17 UTC] forrest dot ua at gmail dot com
correct summary
 [2011-10-08 03:08 UTC] pdezwart at gmail dot com
Not enough information was provided for us to be able
to handle this bug. Please re-read the instructions at
http://bugs.php.net/how-to-report.php

If you can provide more information, feel free to add it
to this bug and change the status back to "Open".

Thank you for your interest in PECL.


Given code does not work since queue "test" is not defined prior to consumption. Please provide full reproducible code.
 [2013-02-18 00:35 UTC] pecl-dev at lists dot php dot net
No feedback was provided. The bug is being suspended because
we assume that you are no longer experiencing the problem.
If this is not the case and you are able to provide the
information that was requested earlier, please do so and
change the status of the bug back to "Open". Thank you.
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Sun Oct 13 23:01:26 2024 UTC