To comment on the following update, log in, then open the issue:
http://www.openoffice.org/issues/show_bug.cgi?id=72248
Issue #|72248
Summary|vcl compiled with debug crashes
Component|porting
Version|680m193
Platform|Macintosh
URL|
OS/Version|All
Status|NEW
Status whiteboard|
Keywords|
Resolution|
Issue type|DEFECT
Priority|P3
Subcomponent|MacOSX
Assigned to|thb
Reported by|pjanik
------- Additional comments from [EMAIL PROTECTED] Mon Dec 4 03:05:12 -0800
2006 -------
Hi,
Stephan reported that vcl when compiled with debug=t in aquavcl01 crashes. The
stack was very simply
- it crashed in the constructor of AquaSalBitmap, see bellow.
I identified that the problem is in vcl/aqua/source/gdi/salbmp.cxx. It crashes
in the constructor of
AquaSalBitmap which is declared as:
class AquaSalBitmap : public SalBitmap
{
public:
CGContextRef mxGraphicContext;
BitmapPalette maPalette;
basebmp::RawMemorySharedArray maUserBuffer;
basebmp::RawMemorySharedArray maContextBuffer;
sal_uInt16 mnBits;
...
Notice the usage of basebmp::RawMemorySharedArray. It looked suspect for us,
but we do not know of
any other place where it is used or how to use it properly.
The other question is why I'm now getting completely different stack here with
complete vcl debug=t
build:
==============================
SAL_FRAME_STYLE_INTRO
==============================
Reading symbols for shared libraries . done
Reading symbols for shared libraries . done
sofficebin(4692,0xa000cfc0) malloc: *** error for object 0x392e200: incorrect
checksum for freed
object - object was probably modified after being freed, break at szone_error
to debug
sofficebin(4692,0xa000cfc0) malloc: *** set a breakpoint in szone_error to debug
sofficebin(4692,0xa000cfc0) malloc: *** error for object 0x392e200: incorrect
checksum for freed
object - object was probably modified after being freed, break at szone_error
to debug
sofficebin(4692,0xa000cfc0) malloc: *** set a breakpoint in szone_error to debug
sofficebin(4692,0xa000cfc0) malloc: *** error for object 0x392e200: incorrect
checksum for freed
object - object was probably modified after being freed, break at szone_error
to debug
sofficebin(4692,0xa000cfc0) malloc: *** set a breakpoint in szone_error to debug
sofficebin(4692,0xa000cfc0) malloc: *** error for object 0x392e200: incorrect
checksum for freed
object - object was probably modified after being freed, break at szone_error
to debug
sofficebin(4692,0xa000cfc0) malloc: *** set a breakpoint in szone_error to debug
sofficebin(4692,0xa000cfc0) malloc: *** error for object 0x392e200: incorrect
checksum for freed
object - object was probably modified after being freed, break at szone_error
to debug
sofficebin(4692,0xa000cfc0) malloc: *** set a breakpoint in szone_error to debug
sofficebin(4692,0xa000cfc0) malloc: *** error for object 0x392e200: incorrect
checksum for freed
object - object was probably modified after being freed, break at szone_error
to debug
sofficebin(4692,0xa000cfc0) malloc: *** set a breakpoint in szone_error to debug
Bounds changed event
>*>_> GetClientSize
>*>_> GetClientSize
>*>_> SetBackgroundBitmap
>*>_> GetParent
sofficebin(4692,0xa000cfc0) malloc: *** error for object 0x392b1c0: incorrect
checksum for freed
object - object was probably modified after being freed, break at szone_error
to debug
sofficebin(4692,0xa000cfc0) malloc: *** set a breakpoint in szone_error to debug
Malloc warnigns looks suspect as well.
Program received signal EXC_BAD_ACCESS, Could not access memory.
Reason: KERN_INVALID_ADDRESS at address: 0x3f800000
0x903318ac in path_element ()
(gdb) where
#0 0x903318ac in path_element ()
#1 0x90388c63 in CGPathAddPath ()
#2 0x904fbe7b in CGContextAddPath ()
#3 0x0124da42 in AquaSalGraphics::InitContextForPainting (this=0x392bb40,
xContext=0x39563d0)
at
/Users/pavel/BUILD/AQUA/BuildDir/ooo_SRC680_m195_src/vcl/aqua/source/gdi/salgdiutils.cxx:89
#4 0x0124dc94 in AquaSalGraphics::BeginGraphics (this=0x392bb40) at
/Users/pavel/BUILD/AQUA/
BuildDir/ooo_SRC680_m195_src/vcl/aqua/source/gdi/salgdiutils.cxx:145
#5 0x01253708 in AquaSalGraphics::drawBitmap (this=0x392bb40,
pPosAry=0xbfffe51c,
[EMAIL PROTECTED]) at
/Users/pavel/BUILD/AQUA/BuildDir/ooo_SRC680_m195_src/vcl/aqua/
source/gdi/salgdi.cxx:577
#6 0x01253620 in AquaSalGraphics::copyBits (this=0x392bb40,
pPosAry=0xbfffe6a4,
pSrcGraphics=0x392bda0) at
/Users/pavel/BUILD/AQUA/BuildDir/ooo_SRC680_m195_src/vcl/aqua/
source/gdi/salgdi.cxx:546
#7 0x0111fa31 in SalGraphics::CopyBits (this=0x392bb40, pPosAry=0xbfffe6a4,
pSrcGraphics=0x392bda0, pOutDev=0x2fd5624, pSrcOutDev=0x2fd574c) at
/Users/pavel/BUILD/
AQUA/BuildDir/ooo_SRC680_m195_src/vcl/source/gdi/salgdilayout.cxx:431
#8 0x0109f239 in OutputDevice::ImplDrawOutDevDirect (this=0x2fd5624,
pSrcDev=0x2fd574c,
pVoidPosAry=0xbfffe6a4) at
/Users/pavel/BUILD/AQUA/BuildDir/ooo_SRC680_m195_src/vcl/source/
gdi/outdev2.cxx:287
#9 0x010a51cd in OutputDevice::DrawOutDev (this=0x2fd5624, [EMAIL PROTECTED],
[EMAIL PROTECTED], [EMAIL PROTECTED], [EMAIL PROTECTED], [EMAIL PROTECTED]) at
/Users/
pavel/BUILD/AQUA/BuildDir/ooo_SRC680_m195_src/vcl/source/gdi/outdev2.cxx:433
#10 0x14ea0692 in desktop::SplashScreen::Paint ()
But nevertheless it is still connected with bitmap with splashscreen in this
case.
To reproduce:
1. compile complete VCL without debug:
cd vcl; build
Test application -> it works.
2. recompile everything with debug turned on:
rm -rf unxmac*pro; build debug=t
Application crashes.
3. touch aqua/source/gdi/salbmp.cxx
cd aqua/source/gdi; dmake
build debug=t
Application starts.
---------------------------------------------------------------------
Please do not reply to this automatically generated notification from
Issue Tracker. Please log onto the website and enter your comments.
http://qa.openoffice.org/issue_handling/project_issues.html#notification
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]