Menu

#4 Free DCE forking bug

open
nobody
None
5
2003-07-29
2003-07-29
Anonymous
No

We have discovered a bug in the current release of
Free DCE which causes an unhandled exception and
crash when an application using Free DCE forks.

The exception (pthread_badparam_e) is thrown by
pthread_detach in cases where it is called immediately
after a call to pthread_join on the same thread. It is
thrown because, in newer versions of pthreads, the
pthread_join call automatically detaches the thread.
The exception is harmless, it indicates an attempt to
detach an already detached thread.

The fix we have implemented is to simply catch and
ignore the exception.

These modules are affected:

/ncklib/transport/dg/dgclive.c
/ncklib/transport/dg/dgslive.c
/ncklib/transport/dg/dglsn.c
/ncklib/com/comnlst.c
/ncklib/rpc/rpctimer.c

We can provide modified versions of these modules on
request.

Bill Sudbrink
Senior Software Engineer
Docucorp International
bsudbrink@docucorp.com

Discussion