Apache OpenOffice (AOO) Bugzilla – Issue 79056
vos: OAcceptorSocket dtor and base dtor both attempt to delete the socket
Last modified: 2007-08-27 10:55:51 UTC
So it looks to me that if you destruct vos: OAcceptorSocket it will delete the socket, and then OSocket's dtor will then be called which also attempt to reference the deleted socket to close it. How about this minimal patch
Created attachment 46409 [details] patch to avoid
->Caolan: Couldn't we just move the "osl_closeSocket" call to "OSocket::close" and completely remove "OAcceptorSocket::~OAcceptorSocket" ? Anyway, reassigned to Hennes ...
.
Simple enough to make it into 2.3 ;-)
Removing ~OAcceptorSocket would make the change incompatible. Furthermore: close() is a virtual method of OAcceptorSocket and calling close() from base dtor will call OScoket::close() but not OAcceptorSocket::close(). Taking Caolans patch.
Fixed on CWS hropatches
Verfied the patch.
closed