On Tue, 2010-07-13 at 07:02 -0700, manua wrote: > Hi Tim, > > My program crashes on activemq::library::ActiveMQCPP::initializeLibrary(); > > I am using ActriveMQ 5.3 with i686 i686 i386 GNU/Linux box and > compiler is gcc version 4.1.2 20070925 (Red Hat 4.1.2-33). > > Thanks, > Manu > >
Which version of AMQCPP, also what versions of APR and APR-Util are you using? Another use on Redhat has reported that a build of APR with the following options was required in order to get things working, seems there may be some issues with APRs portable atomics ./configure --disable-lfs and --enable-nonportable-atomics Regards > > > Timothy Bish wrote: > > > > On Tue, 2010-07-13 at 06:02 -0700, manua wrote: > >> Hi All, > >> > >> I getting the following error while creating the object in AMQ, > >> > >> #0 0x002cd777 in apr_atomic_add32 (mem=0x95123ec, val=4294967295) at > >> atomic/unix/mutex.c:78 > >> #1 0x016208b8 in > >> decaf::util::concurrent::atomic::AtomicInteger::decrementAndGet > >> (this=0x95123e8) > >> at decaf/util/concurrent/atomic/AtomicInteger.cpp:69 > >> #2 0x015de038 in decaf::lang::ArrayPointer<unsigned char, > >> decaf::util::concurrent::atomic::AtomicRefCounter>::reset ( > >> this=0xbfa95928, value=0x95130a8 "\177", size=4) at > >> ./decaf/util/concurrent/atomic/AtomicRefCounter.h:68 > >> #3 0x015ddc5c in InetAddress (this=0xbfa9591c, hostna...@0xbfa95954, > >> ipAddress=0x16604bb "\177", numBytes=4) > >> at decaf/net/InetAddress.cpp:79 > >> #4 0x015daff7 in Inet4Address (this=0xbfa9591c, > >> hostna...@0xbfa95954, > >> ipAddress=0x16604bb "\177", numBytes=4) > >> at decaf/net/Inet4Address.cpp:34 > >> #5 0x015dc073 in __static_initialization_and_destruction_0 > >> (__initialize_p=<value optimized out>, > >> __priority=<value optimized out>) at decaf/net/InetAddress.cpp:39 > >> #6 0x016371b6 in __do_global_ctors_aux () from > >> /usr/local/lib/libactivemq-cpp.so.12 > >> #7 0x01161b11 in _init () from /usr/local/lib/libactivemq-cpp.so.12 > >> #8 0x00811573 in call_init () from /lib/ld-linux.so.2 > >> #9 0x00811683 in _dl_init_internal () from /lib/ld-linux.so.2 > >> #10 0x0080388f in _dl_start_user () from /lib/ld-linux.so.2 > >> > >> What could be the cause of this error or what i am doing wrong. > >> Please let me know your inputs. > >> > >> Thanks, > >> Manu > > > > Need a bit more info on you setup, what versions you are using of the > > client and what OS / Compiler you are using. Also a sample app that > > demonstrates the issue would be of help. > > > > Regards > > > > > > -- > > Tim Bish > > > > Open Source Integration: http://fusesource.com > > ActiveMQ in Action: http://www.manning.com/snyder/ > > > > Follow me on Twitter: http://twitter.com/tabish121 > > My Blog: http://timbish.blogspot.com/ > > > > > > > -- Tim Bish Open Source Integration: http://fusesource.com ActiveMQ in Action: http://www.manning.com/snyder/ Follow me on Twitter: http://twitter.com/tabish121 My Blog: http://timbish.blogspot.com/