php-stomp causes Segmentation fault

Bug #1680184 reported by Stephen Leavitt
This bug affects 1 person
Affects Status Importance Assigned to Milestone
php-stomp (Ubuntu)

Bug Description

Description: Ubuntu 16.04.2 LTS
Release: 16.04

  Installed: 1.0.9-0ubuntu1
  Candidate: 1.0.9-0ubuntu1
  Version table:
 *** 1.0.9-0ubuntu1 500
        500 xenial/universe amd64 Packages
        100 /var/lib/dpkg/status

Steps to reproduce:
1) Download and install activemq from, as the activemq package in xenial does not have support for the stomp protocol, as documented at (I followed these directions:
2) apt-get install php-cli php-stomp
3) Create a simple PHP script:

#!/usr/bin/env php

$stomp = new Stomp('tcp://localhost:61613');

echo "Hello, world.\n";

$stomp = null;

What I expect to happen:
The script should output the following:

Hello, world.

What actually happens:
The script generates this output instead:

Segmentation fault (core dumped)

Uninstalling php-stomp and installing the Stomp extension from PECL via "pecl install stomp-2.0.0" (after installing php-pear and php-dev) allows it to work just fine, and the script outputs "Hello, world." as I expect it to. The Changelog notes for 2.0.0 ( indicate that it provides PHP7 Support. So it would appear that the patch in the php-stomp-1.0.9 source package named 'backport-f2cf9741.patch' does not provide complete bug-free support for PHP7. Backtraces even with debug symbol packages installed for every package on the system do not point the finger directly at the php-stomp extension. Would recommend updating the backport patch or simply upgrading to stomp-2.0.0 instead to achieve proper compatibility with PHP7.

To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers