View Single Post
  #1 (permalink)  
Old 04-21-2004
kssreeram kssreeram is offline
Registered User
 
 
Join Date: Oct 2003
Posts: 11
Bug in IceUtil::Thread

Hi

There is a race condition caused crash in IceUtil::Thread. It happens when the newly created thread exits really quick. This bug has been tested on both Win32(WindowsXP) and on Linux(Redhat 9.0).

The Thread::start() method does not retain a owning reference to the thread object before calling 'beginthread()'. Thus if the newly created thread completes very quickly, then an access violation is caused in Thread::start().

I've attached a zip file which contains both a program TestThread.cpp which will reproduce the crash, and a patch to Ice to fix the bug.

Regards
Sreeram
Tachyon Technologies
Attached Files
File Type: zip threadbugandpatch.zip (1.3 KB, 106 views)
Reply With Quote