Go Back   ZeroC Forums > Help Center

Reply
 
LinkBack Thread Tools Rate Thread Display Modes
  #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
  #2 (permalink)  
Old 04-22-2004
bernard's Avatar
bernard bernard is offline
ZeroC Staff
 
Name: Bernard Normier
Organization: ZeroC, Inc.
Project: Ice
 
Join Date: Feb 2003
Location: Palm Beach Gardens, FL
Posts: 816
Hi Sreeram,

Thanks for the bug report, test-case and patch! I confirm you found a real bug, which won't be in the next Ice release.

Cheers,
Bernard
Reply With Quote
Reply



Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Similar Threads
Thread Thread Starter Forum Replies Last Post
IceUtil::Mutex for C# amrufon Help Center 1 09-05-2006 10:35 AM
Thread.cpp:413: IceUtil::ThreadSyscallException grahamyin Help Center 2 09-28-2005 12:54 AM
Question about IceUtil? JaneShang Help Center 1 05-17-2005 11:31 AM
Zero value for IceUtil::Time catalin Help Center 1 10-05-2004 08:28 AM
IceUtil/CtrlCHandler.cpp vukicevic Bug Reports 3 05-28-2003 10:20 PM


All times are GMT -4. The time now is 08:18 AM.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.0.0
(c) 2008 ZeroC, Inc.