Report A fatal bug about File IceUtil/Thread.cpp

mill888mill888 Can LinOrganization: PersonalProject: Just for studyMember
edited April 9 in Bug Reports

Anyone who are still using ice of prior to version 3.2(3.2 Included ) on Linux/Unix?
In File IceUtil/Thread.cpp, in the function of IceUtil::Thread::start(size_t stackSize), int rc = pthread_attr_init(&attr), but attr does not destroyed after pthread_create , this would lead to memory leak or memory arise.

So, you must use pthread_attr_destroy(&attr) after pthread_create, and recompile the ice .

But after version 3.2, this problem is solved.

Tagged:

Comments

  • bernardbernard Jupiter, FLBernard NormierOrganization: ZeroC, Inc.Project: IceAdministrators, ZeroC Staff ZeroC Staff

    Ice 3.2 is quite old, and I would suggest you use a more recent version for your studies.

    How did you come across this issue in such an old version?

    Best regards,
    Bernard

Sign In or Register to comment.