|  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 Add Comment Developer Edit
Anyone can comment on a bug. Have a simpler test case? Does it work for you on a different platform? Let us know!
Just going to say 'Me too!'? Don't clutter the database with that please — but make sure to vote on the bug!
Your email address:
Solve the problem:
4 + 29 = ?
Subscribe to this entry?

 [2011-08-03 06:14 UTC] forrest dot ua at gmail dot com
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:

$connection = new AMQPConnection();

$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


Add a Patch

Pull Requests

Add a Pull Request


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

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: Tue Feb 27 07:01:28 2024 UTC