Home Help Center

Bug in IceUtil::Thread


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.

Tachyon Technologies


  • bernardbernard Jupiter, FLAdministrators, ZeroC Staff Bernard NormierOrganization: ZeroC, Inc.Project: Ice ZeroC Staff
    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.

Sign In or Register to comment.