[
https://issues.apache.org/jira/browse/QPID-3027?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13053288#comment-13053288
]
David Simon commented on QPID-3027:
-----------------------------------
hi Paul,
on Debian Squeeze with a brand new install there is a segfault when the
cqpid.so module is not in use. otherwise seems to be fine.
I followed the instructions, I used the svn revision you mentioned above.
problem:
david@qpid:~$ php -r ""
Segmentation fault
my system description:
david@qpid:~$ php-config
Usage: /usr/bin/php-config [OPTION]
Options:
--prefix [/usr]
--includes [-I/usr/include/php5 -I/usr/include/php5/main
-I/usr/include/php5/TSRM -I/usr/include/php5/Zend -I/usr/include/php5/ext
-I/usr/include/php5/ext/date/lib -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64]
--ldflags []
--libs [-lcrypt -lz -lcrypt -lonig -lssl -ldb -lqdbm -lbz2 -lz
-lpcre -lssl -lm -ldl -lnsl -lxml2 -lgssapi_krb5 -lkrb5 -lk5crypto -lcom_err
-lxml2 -lxml2 -lxml2 -lcrypt -lxml2 -lxml2 -lxml2 -lxml2 -lcrypt ]
--extension-dir [/usr/lib/php5/20090626+lfs]
--include-dir [/usr/include/php5]
--php-binary [/usr/bin/php]
--php-sapis [cli apache2handler]
--phpapi [20090626+lfs]
--configure-options [--prefix=/usr --with-apxs2=/usr/bin/apxs2
--with-config-file-path=/etc/php5/apache2
--with-config-file-scan-dir=/etc/php5/apache2/conf.d --build=i486-linux-gnu
--host=i486-linux-gnu --sysconfdir=/etc --localstatedir=/var
--mandir=/usr/share/man --disable-debug --with-regex=php --disable-rpath
--disable-static --with-pic --with-layout=GNU --with-pear=/usr/share/php
--enable-calendar --enable-sysvsem --enable-sysvshm --enable-sysvmsg
--enable-bcmath --with-bz2 --enable-ctype --with-db4 --with-qdbm=/usr
--without-gdbm --with-iconv --enable-exif --enable-ftp --with-gettext
--enable-mbstring --with-onig=/usr --with-pcre-regex=/usr --enable-shmop
--enable-sockets --enable-wddx --with-libxml-dir=/usr --with-zlib
--with-kerberos=/usr --with-openssl=/usr --enable-soap --enable-zip
--with-mhash=yes --with-exec-dir=/usr/lib/php5/libexec --with-system-tzdata
--without-mm --with-curl=shared,/usr --with-enchant=shared,/usr
--with-zlib-dir=/usr --with-gd=shared,/usr --enable-gd-native-ttf
--with-gmp=shared,/usr --with-jpeg-dir=shared,/usr
--with-xpm-dir=shared,/usr/X11R6 --with-png-dir=shared,/usr
--with-freetype-dir=shared,/usr --with-imap=shared,/usr --with-imap-ssl
--with-interbase=shared,/usr --with-pdo-firebird=shared,/usr
--enable-intl=shared --with-ttf=shared,/usr --with-t1lib=shared,/usr
--with-ldap=shared,/usr --with-ldap-sasl=/usr --with-mcrypt=shared,/usr
--with-mysql=shared,/usr --with-mysqli=shared,/usr/bin/mysql_config
--with-pspell=shared,/usr --with-unixODBC=shared,/usr --with-recode=shared,/usr
--with-xsl=shared,/usr --with-snmp=shared,/usr --with-sqlite=shared,/usr
--with-sqlite3=shared,/usr --with-mssql=shared,/usr --with-tidy=shared,/usr
--with-xmlrpc=shared --with-pgsql=shared,/usr]
--version [5.3.3-7+squeeze1]
--vernum [50303]
here is the gdb backtrace:
david@qpid:~$ gdb php
GNU gdb (GDB) 7.0.1-debian
Copyright (C) 2009 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law. Type "show copying"
and "show warranty" for details.
This GDB was configured as "i486-linux-gnu".
For bug reporting instructions, please see:
<http://www.gnu.org/software/gdb/bugs/>...
Reading symbols from /usr/bin/php...Reading symbols from
/usr/lib/debug/usr/bin/php5...done.
(no debugging symbols found)...done.
(gdb) run -r ""
Starting program: /usr/bin/php -r ""
[Thread debugging using libthread_db enabled]
Program received signal SIGSEGV, Segmentation fault.
0x00000000 in ?? ()
(gdb) bt
#0 0x00000000 in ?? ()
#1 0xb7980688 in __cxa_finalize () from /lib/i686/cmov/libc.so.6
#2 0xb7369df4 in __do_global_dtors_aux () from /lib/libqpidmessaging.so.2
#3 0xb73c1ba0 in _fini () from /lib/libqpidmessaging.so.2
#4 0xb7ff571e in ?? () from /lib/ld-linux.so.2
#5 0xb7ff6197 in ?? () from /lib/ld-linux.so.2
#6 0xb7ce0ca4 in ?? () from /lib/i686/cmov/libdl.so.2
#7 0xb7ff07f6 in ?? () from /lib/ld-linux.so.2
#8 0xb7ce109c in ?? () from /lib/i686/cmov/libdl.so.2
#9 0xb7ce0cda in dlclose () from /lib/i686/cmov/libdl.so.2
#10 0x083dcf54 in module_destructor (module=0x8913198) at
/home/david/php5-5.3.3/Zend/zend_API.c:2120
#11 0x083e4651 in zend_hash_apply_deleter (ht=0x88c0900, p=0x8912da8) at
/home/david/php5-5.3.3/Zend/zend_hash.c:813
#12 0x083e47ff in zend_hash_graceful_reverse_destroy (ht=0x88c0900) at
/home/david/php5-5.3.3/Zend/zend_hash.c:848
#13 0x083d4397 in zend_shutdown () at /home/david/php5-5.3.3/Zend/zend.c:831
#14 0x0835b4ac in php_module_shutdown () at
/home/david/php5-5.3.3/main/main.c:2166
#15 0x084a7345 in main (argc=3, argv=0xbffff874) at
/home/david/php5-5.3.3/sapi/cli/php_cli.c:1391
(gdb) f 1
#1 0xb7980688 in __cxa_finalize () from /lib/i686/cmov/libc.so.6
(gdb) f 10
#10 0x083dcf54 in module_destructor (module=0x8913198) at
/home/david/php5-5.3.3/Zend/zend_API.c:2120
2120 DL_UNLOAD(module->handle);
(gdb)
hope it helps
best regards,
David
> PHP binding of Qpid Messaging API
> ---------------------------------
>
> Key: QPID-3027
> URL: https://issues.apache.org/jira/browse/QPID-3027
> Project: Qpid
> Issue Type: New Feature
> Components: C++ Client
> Affects Versions: 0.8
> Reporter: Paul Colby
> Assignee: Ted Ross
> Attachments: FindPHPDev.cmake, Makefile, cqpid_php.20110220.diff,
> cqpid_php.20110301.diff, cqpid_php.20110328.diff, cqpid_php.20110415.diff,
> cqpid_php.diff
>
>
> Working on a PHP binding for the Qpid Messaging API via SWIG. There are
> several PHP-specific issues with C++ and SWIG which I've managed to
> workaround, so the binding is starting to take shape, but still very much a
> work in progress.
> The rough plan:
> 1. report relevant bugs / feature requests to SWIG (done).
> 2. clean-up Qpid php.i SWIG interface file (mostly done - just need to
> implement PHP namespaces).
> 3. implement qpid::types::Variant <-> PHP typemapping (not started).
> 4. implement printinfo pragma (should be easy, just need to choose what info
> to include).
> 5. create relevant [auto]makefile.
> Of course, there's lots of things to discuss / decide along the way... so
> I'll post 'em here as they come up.
--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira
---------------------------------------------------------------------
Apache Qpid - AMQP Messaging Implementation
Project: http://qpid.apache.org
Use/Interact: mailto:[email protected]