|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2012-08-30 12:44 UTC] aforbes at webgains dot com
[2012-09-06 10:34 UTC] bkw at codingforce dot com
[2012-09-06 12:15 UTC] aforbes at webgains dot com
[2012-09-10 05:37 UTC] pdezwart@php.net
[2012-09-10 05:37 UTC] pdezwart@php.net
-Status: Open
+Status: Duplicate
|
|||||||||||||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Sun Oct 26 11:00:02 2025 UTC |
Description: ------------ ===================== AMQP version 1.05 PHP version 5.3.16 CentOS 6.3 Final ===================== php -i |grep configure Configure Command => './configure' '--host=x86_64-unknown-linux-gnu' '-- build=x86_64-unknown-linux-gnu' '--program-prefix=' '--prefix=/usr' '--exec- prefix=/usr' '--bindir=/usr/bin' '--sbindir=/usr/sbin' '--sysconfdir=/etc' '-- datadir=/usr/share' '--includedir=/usr/include' '--libdir=/usr/lib64' '-- libexecdir=/usr/libexec' '--localstatedir=/var' '--sharedstatedir=/var/lib' '-- mandir=/usr/share/man' '--infodir=/usr/share/info' '--cache-file=../config.cache' '--with-libdir=lib64' '--with-config-file-path=/etc' '--with-config-file-scan- dir=/etc/php.d' '--enable-debug' '--with-pic' '--disable-rpath' '--without-pear' '--with-bz2' '--with-exec-dir=/usr/bin' '--with-freetype-dir=/usr' '--with-png- dir=/usr' '--with-xpm-dir=/usr' '--enable-gd-native-ttf' '--with-t1lib=/usr' '-- without-gdbm' '--with-gettext' '--with-gmp' '--with-iconv' '--with-jpeg-dir=/usr' '--with-openssl' '--with-pcre-regex=/usr' '--with-zlib' '--with-layout=GNU' '-- enable-exif' '--enable-ftp' '--enable-magic-quotes' '--enable-sockets' '--with- kerberos' '--enable-ucd-snmp-hack' '--enable-shmop' '--enable-calendar' '--with- libxml-dir=/usr' '--enable-xml' '--with-system-tzdata' '--with-mhash' '--enable- force-cgi-redirect' '--libdir=/usr/lib64/php' '--enable-pcntl' '--with- imap=shared' '--with-imap-ssl' '--enable-mbstring=shared' '--enable-mbregex' '-- with-gd=shared' '--enable-bcmath=shared' '--enable-dba=shared' '--with-db4=/usr' '--with-xmlrpc=shared' '--with-ldap=shared' '--with-ldap-sasl' '--enable- mysqlnd=shared' '--with-mysql=shared,mysqlnd' '--with-mysqli=shared,mysqlnd' '-- with-mysql-sock=/var/lib/mysql/mysql.sock' '--enable-dom=shared' '--with- pgsql=shared' '--enable-wddx=shared' '--with-snmp=shared,/usr' '--enable- soap=shared' '--with-xsl=shared,/usr' '--enable-xmlreader=shared' '--enable- xmlwriter=shared' '--with-curl=shared,/usr' '--enable-fastcgi' '--enable- pdo=shared' '--with-pdo-odbc=shared,unixODBC,/usr' '--with-pdo- mysql=shared,mysqlnd' '--with-pdo-pgsql=shared,/usr' '--with-pdo- sqlite=shared,/usr' '--with-pdo-dblib=shared,/usr' '--with-sqlite3=shared,/usr' '- -with-sqlite=shared,/usr' '--enable-json=shared' '--enable-zip=shared' '--without- readline' '--with-libedit' '--with-pspell=shared' '--enable-phar=shared' '--with- mcrypt=shared,/usr' '--with-tidy=shared,/usr' '--with-mssql=shared,/usr' '-- enable-sysvmsg=shared' '--enable-sysvshm=shared' '--enable-sysvsem=shared' '-- enable-posix=shared' '--with-unixODBC=shared,/usr' '--enable-fileinfo=shared' '-- enable-intl=shared' '--with-icu-dir=/usr' '--with-enchant=shared,/usr' '--with- recode=shared,/usr' =================================== When we run the code (see test script) and it exits early (for any reason) e,g, exit; it exits with a segmentation fault. gdb trace (as far as I got it) [Thread debugging using libthread_db enabled] [New Thread 0x7fffdeca1700 (LWP 3772)] [Thread 0x7fffdeca1700 (LWP 3772) exited] Program received signal SIGSEGV, Segmentation fault. 0x00007fffee050ef0 in remove_channel_from_connection (connection=0x10e93b0, channel= 0x14b1b80) at /amqp-1.0.5/amqp_connection.c:272 272 if (resource->slots[slot] == channel) { Test script: --------------- $amqp = new AMQPConnection(); $amqp->setHost('localhost'); try { $amqp->connect(); $channel = new AMQPChannel($amqp); } catch (AMQPException $e) { //DO Something throw $e } $exchange = new AMQPExchange($channel); $exchange->setName('myexchange'); $exchange->setType(AMQP_EX_TYPE_TOPIC); $exchange->declare(); exit; //This will cause the segfault Expected result: ---------------- The script exits. Actual result: -------------- Segmentation Fault (Core Dumped)