On Tue, 23 Jan 2007, Esther Foo Rui Tse wrote:

Hi all,

My application is getting really unstable whenever I start or kill a thread.
The seg fault occurred randomly (as sometimes it is ok), but most of the
time it crashed with fault either when I start a new thread to something or
when I close a thread after something was done.

This is the backtrack from gdb.. As it does not trace back to my code, I
find it difficult to understand the crash.. so hope that someone can give me
a hint of what is happening and on how to solve this seg fault.

Thanks in advance. :)

I was having many problems with crash-on-exit problems when I was using the
OpenThreads::Cancel facility. I found it a lot more stable to just set a global variable and check that periodically within each thread and just
exit when it was set. Since I'm on Linux OpenThreads uses pthreads underneath,
and I never got a satisfactory explanation on why pthread_cancel would behave that way.

--
    ____   __     Eric Sokolowsky  (GST)    NASA Goddard Space Flight Center
   / __/__/_/__  Visualization Programmer    Scientific Visualization Studio
  / __/ _/ / _/ 301.286.3751                  Mailstop 610.3 Bldg 28 Rm E102
 /___/_//_/__/ [EMAIL PROTECTED]   Greenbelt, MD 20771
_______________________________________________
osg-users mailing list
[email protected]
http://openscenegraph.net/mailman/listinfo/osg-users
http://www.openscenegraph.org/

Reply via email to