Public bug reported:

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.

** Affects: php-stomp (Ubuntu)
     Importance: Undecided
         Status: New

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1680184

Title:
  php-stomp causes Segmentation fault

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/php-stomp/+bug/1680184/+subscriptions

-- 
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to