[omniORB] catching exceptions in _remove_ref

Teemu Torma teemu at torma.org
Wed Mar 14 13:07:33 GMT 2007


I've had couple of instances over the years when a servant destructor 
leaks an exception when poa calls _remove_ref, causing the shutdown to 
hang.  Destructors should not throw, but bugs infestations happen 
sometimes during development.

These cases a bit hard to find and debug, and since letting the 
exception propagate does never any good, why not just log and ignore 
them?  

The attached patch does this in one case, there are potentially others 
too, and the logging could be more noisy to not go unnoticed.

Teemu
-------------- next part --------------
A non-text attachment was scrubbed...
Name: omniorb-remove-ref.patch
Type: text/x-diff
Size: 607 bytes
Desc: not available
Url : http://www.omniorb-support.com/pipermail/omniorb-list/attachments/20070314/cb2e5ebe/omniorb-remove-ref.bin


More information about the omniORB-list mailing list