Issue 27063 - SegFault when closing the office after the options dialog has been opened once
Summary: SegFault when closing the office after the options dialog has been opened once
Status: CLOSED FIXED
Alias: None
Product: ui
Classification: Code
Component: code (show other issues)
Version: current
Hardware: All Solaris
: P2 Trivial (vote)
Target Milestone: OOo 2.0
Assignee: stephan.wunderlich
QA Contact: issues@ui
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2004-03-29 10:55 UTC by stephan.wunderlich
Modified: 2004-06-08 11:43 UTC (History)
1 user (show)

See Also:
Issue Type: DEFECT
Latest Confirmation in: ---
Developer Difficulty: ---


Attachments

Note You need to log in before you can comment on or make changes to this issue.
Description stephan.wunderlich 2004-03-29 10:55:04 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
Comment 1 philipp.lohmann 2004-03-29 13:05:25 UTC
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.
Comment 2 philipp.lohmann 2004-03-29 13:12:25 UTC
the followup is issue 27071
Comment 3 philipp.lohmann 2004-04-23 14:35:59 UTC
pl->sw: please verify in  CWS vcl21
Comment 4 philipp.lohmann 2004-04-23 14:36:17 UTC
fxed
Comment 5 stephan.wunderlich 2004-04-28 10:18:11 UTC
SW: no segfault in cws_vcl21 => verified
Comment 6 stephan.wunderlich 2004-06-08 11:43:31 UTC
SW: no segfault in src680_m41 => closed