Summary: | Crashing on attempt to start in ImplFontCharMap::DeReference | ||
---|---|---|---|
Product: | LibreOffice | Reporter: | Aurimas Mikalauskas <aurimas.mikalauskas> |
Component: | LibreOffice | Assignee: | Not Assigned <libreoffice-bugs> |
Status: | RESOLVED FIXED | ||
Severity: | normal | CC: | aurimas.mikalauskas, caolan.mcnamara, chmilblick, peterkidwell |
Priority: | medium | ||
Version: | 3.4.0 Beta1 | ||
Hardware: | x86-64 (AMD64) | ||
OS: | macOS (All) | ||
Whiteboard: | |||
Crash report or crash signature: | Regression By: | ||
Bug Depends on: | |||
Bug Blocks: | 35673 | ||
Attachments: | patch that seems to fix crashing bug (doubly freeing memory) |
Description
Aurimas Mikalauskas
2011-04-18 01:05:06 UTC
Additional crash report: Backtrace with symbols: Macbook 5,2 ... Mac OS X 10.6.7 #0 ImplFontCharMap::DeReference (this=0x1775e190) at metric.cxx:347 #1 0x017d8b14 in FontCharMap::~FontCharMap (this=0xbfffbbb8) at metric.cxx:841 #2 0x017f78ae in OutputDevice::HasGlyphs (this=0x17740540, rTempFont=@0x1e715264, rStr=@0xbfffbc2c, nIndex=0, nLen=65535) at outdev3.cxx:8145 #3 0x01989f59 in Window::ImplCheckUIFont (this=0x17740540, rFont=@0x1e715264) at window.cxx:297 #4 0x0199b2e7 in Window::ImplUpdateGlobalSettings (this=0x17740540, rSettings=@0xbfffbdec, bCallHdl=0 '\000') at window.cxx:319 #5 0x01768db7 in Application::MergeSystemSettings (rSettings=@0xbfffbdec) at svapp.cxx:667 #6 0x00a56eac in SvtTabAppearanceCfg::SetApplicationDefaults () #7 0x0006aff6 in dyld_stub_write () #8 0x01770ad8 in ImplSVMain () at svmain.cxx:174 #9 0x01a7422b in AquaSalInstance::handleAppDefinedEvent (pEvent=0x3a57370) at salinst.cxx:605 #10 0x01a7965b in -[VCL_NSApplication sendEvent:] (self=0x3a283d0, _cmd=0x9181aa58, pEvent=0x3a57370) at vclnsapp.mm:63 #11 0x9104b2a7 in -[NSApplication run] () #12 0x910432d9 in NSApplicationMain () #13 0x01a74fb7 in ~OString [inlined] () at salinst.cxx:244 #14 0x01a74fb7 in ~OString [inlined] () at /Users/jollyrotten/Code/libo/solver/300/unxmacxi.pro/inc/rtl/string.hxx:191 #15 0x01a74fb7 in ImplSVMainHook (pnInit=0x1) at salinst.cxx:244 #16 0x01770b81 in SVMain () at svmain.cxx:208 #17 0x00097d65 in soffice_main () #18 0x00001ebe in main () Hope this helps! *** Bug 36267 has been marked as a duplicate of this bug. *** I think we're missing a AddReference at http://cgit.freedesktop.org/libreoffice/libs-gui/tree/vcl/aqua/source/gdi/salgdi.cxx?h=libreoffice-3-4#n156 Created attachment 45759 [details]
patch that seems to fix crashing bug (doubly freeing memory)
This patch seems to fix the bug for me: change suggested by caolan (many thanks!).
extra mpCharMap->AddReference near the end of ::GetImplFontCharMap
Most excellent, thanks for this. done in master and cherry-picked to 3-4 Yay - 4/20 daily build runs on my Mac now! |