Apache OpenOffice (AOO) Bugzilla – Issue 27063
SegFault when closing the office after the options dialog has been opened once
Last modified: 2004-06-08 11:43:31 UTC
1. start the office 2. select Tools/Options 3. close the dialog with the ok button 4. close the office When debugged the output is >[1] libvcl680ss.so:ImpBitmap::~ImpBitmap(0x3b1b08, 0x0, 0x4c0, 0x0, 0x30e4b0, 0xfcc1d618), at 0xfe5f9308 [2] libvcl680ss.so:Bitmap::ImplReleaseRef(0x465cfc, 0xff379d58, 0x3b1b08, 0x1b4c40, 0x30e4a8, 0x1), at 0xfe5cbedc [3] libvcl680ss.so:Bitmap::~Bitmap(0x465cfc, 0xd, 0xd, 0x0, 0x0, 0x0), at 0xfe5cb3e8 [4] libvcl680ss.so:ImplImageData::~ImplImageData(0x465cf8, 0xff2b6000, 0xb41f0, 0xff2b6000, 0xfda528b0, 0x0), at 0xfe5f65a8 [5] libvcl680ss.so:ImplImage::~ImplImage(0x3b1b38, 0x465cf8, 0x0, 0xfdb3fa48, 0xff05d900, 0x1), at 0xfe5f6678 [6] libvcl680ss.so:Image::~Image(0xff15201c, 0x3b1b38, 0x1, 0x457344, 0xffffffff, 0x0), at 0xfe5f6c3c [7] 0xfeffc9c0(0x457338, 0x3ca8, 0xff21b6c8, 0xff11d5c8, 0x120c20, 0x3c00), at 0xfeffc9bf [8] libc.so.1:_exithandle(0xff2b85c0, 0x92, 0x15f76, 0xffbeeb5c, 0xfe75b394, 0xff2b6000), at 0xff21b2b8 [9] libc.so.1:exit(0x0, 0xffbeec2c, 0xffbeec34, 0xaf800, 0x0, 0x400), at 0xff299fd0
Cause: a static image that gets destructed after leaving main(). This is wrong; one must not call VCL after DeInitVCL(), including destructors. I don't know why this crashes on Solaris only or why it does so now and not earlier (this is really old code), but it is wrong anyway. Will replace by pointers and leak the static images relying on the OS to free these resources; this fixes the immediate crash. Writing a followup issue to os as ui team lead so that a clean solution can be found.
the followup is issue 27071
pl->sw: please verify in CWS vcl21
fxed
SW: no segfault in cws_vcl21 => verified
SW: no segfault in src680_m41 => closed