php-stomp causes Segmentation fault

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

Bug Description

Description: Ubuntu 16.04.2 LTS
Release: 16.04

php-stomp:
  Installed: 1.0.9-0ubuntu1
  Candidate: 1.0.9-0ubuntu1
  Version table:
 *** 1.0.9-0ubuntu1 500
        500 http://us-west-2.ec2.archive.ubuntu.com/ubuntu xenial/universe amd64 Packages
        100 /var/lib/dpkg/status

Steps to reproduce:
1) Download and install activemq from http://activemq.apache.org/download.html, as the activemq package in xenial does not have support for the stomp protocol, as documented at https://bugs.launchpad.net/ubuntu/+source/activemq/+bug/1646650 (I followed these directions: https://www.virtual-server.org/blog/how-to-install-activemq-on-ubuntu-16-04/)
2) apt-get install php-cli php-stomp
3) Create a simple PHP script:

#!/usr/bin/env php
<?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)

Notes:
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 (https://pecl.php.net/package-changelog.php?package=stomp) 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