[ 
https://issues.apache.org/jira/browse/QPID-3027?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13066339#comment-13066339
 ] 

Paul Colby commented on QPID-3027:
----------------------------------

This is very strange error... the crash happens while destructing static 
objects in the libqpidmessaging library, and seems to be timing-related... ie 
only happens if the Qpid Messaging library is loaded and then unloaded very 
quickly.

However, the problem does not happen if the Qpid Messaging library is built 
using CMake instead of Autotools.  Moreover, it doesn't matter if the cqpid PHP 
library is built via CMake or Autotools - the crash still happens in 
libqpidmessaging or not depending on whether or not *that* library was built 
via Autotools or CMake.

Of course, that observation may also just be related to subtle differences in 
timing.  But either way, the problem seems to be with the destruction of 
very-recently-created static objects within libqpidmessaging - which is more 
than just a little bit beyond me... (and, I suspect, not specific to my PHP 
binding).

For now, I suggest you use CMake.  Or don't use the *.ini file at all, but 
instead load the cqpid PHP library when you actually intend to use it (using 
the library between creation and destruction alleviates the issue for me).

> 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:dev-subscr...@qpid.apache.org

Reply via email to