activemq-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Timothy Bish <tabish...@gmail.com>
Subject Re: Active MQ Client crash
Date Mon, 11 Feb 2008 12:51:37 GMT

Refer to this tutorial on pthreads attributes, our code usage is
correct: http://www.cs.cf.ac.uk/Dave/C/node30.html

Also see O'Reilly's Pthreads Programming book, pages 113-115.


On Fri, 2008-02-08 at 07:17 -0800, TheOnlyDan wrote:
> Hi,
> 
> I'm fairly new to the ActiveMQ API. I have 2 C++ applications, one is a
> simple client and a server. The server and the client talks through ActiveMQ
> cms, currently running on the same machine. I'm having problems tracking
> down crashes in the ActiveMQ code.
> 
> I'm currently testing how the client and the server behave when ActiveMQ
> java application is taken down and restarted. So far the results have not
> been good. Simple producer/consumer keep crashing. One crash was due to what
> I have to assume was a bug in Thread.cpp, namely that line :    
> ::pthread_attr_destroy( &thread->attributes );. Since thread->attributes is
> not a pointer and that pthread_attr_destroy is calling free, I got a crash.
> 
> Fixing this led me to more problems. I'm currently experiencing crashes in
> the transport layer, IOTransport.cpp to be precise. 
> 
> I'd like to know if people are experiencing the same problems and if some
> well know solutions are available.
> 
> Thanks,
> Dan.:-((
> 


Mime
View raw message