Re: [Quickfix-developers] Re: ThreadedSocketAcceptor Segmentation Faults
Brought to you by:
orenmnero
|
From: Oren M. <or...@qu...> - 2005-11-08 15:26:35
|
Actually, it looks to me like some fixes that were applied to the =
initiator have not been applied to the acceptor. For instance, in the =
initiator the spawned thread adds and removes itself, while in the =
acceptor this is done by different threads which are not properly =
synchronized.
--oren
----- Original Message -----=20
From: Caleb Epstein=20
To: Alberto Bellido Rodr=EDguez=20
Cc: qui...@li...=20
Sent: Tuesday, November 08, 2005 7:13 AM
Subject: Re: [Quickfix-developers] Re: ThreadedSocketAcceptor =
Segmentation Faults
On 11/8/05, Alberto Bellido Rodr=EDguez <bellido@3.14financial.com> =
wrote:
#0 0x4048318c in pthread_detach () from /lib/tls/libpthread.so.0
#1 0x400d5edc in FIX::thread_detach (thread=3D0) at Utility.cpp:344
#2 0x4009323f in FIX::ThreadedSocketAcceptor::removeThread
(this=3D0xbffff500, s=3D57) at stl_map.h:332=20
#3 0x40093335 in FIX::ThreadedSocketAcceptor::socketThread =
(p=3D0x3) at
ThreadedSocketConnection.h:51
#4 0x40482b3c in start_thread () from /lib/tls/libpthread.so.0
#5 0x4032092a in clone () from /lib/tls/libc.so.6=20
I really think this call should be changed to a thread_join, at least =
on UNIX systems. Detaching a running thread seems like playing Russion =
Roulette to me.
--=20
Caleb Epstein
caleb dot epstein at gmail dot com |