CPU-loop on Mac on libreoffice-4-1

Norbert Thiebaud nthiebaud at gmail.com
Tue May 21 08:13:41 PDT 2013


On Tue, May 21, 2013 at 10:05 AM, Norbert Thiebaud <nthiebaud at gmail.com> wrote:
> I did a test build and run some manual test on 4-1
>
> I noticed a cpu-loop. apparently one thread went rogue:
> attached some debugging info (process 'sample' generated by the
> Activity Monitor)
>

and for bonus point... it crash when I quit

Process:         soffice [12973]
Path:
/Volumes/LibreOfficeDev/LibreOfficeDev.app/Contents/MacOS/soffice
Identifier:      org.libreoffice.script
Version:         4.1.0.0.alpha1 (???)
Code Type:       X86 (Native)
Parent Process:  launchd [322]

Date/Time:       2013-05-21 10:11:31.345 -0500
OS Version:      Mac OS X 10.6.8 (10K549)
Report Version:  6

Interval Since Last Report:          1116616 sec
Crashes Since Last Report:           4
Per-App Interval Since Last Report:  1137 sec
Per-App Crashes Since Last Report:   1
Anonymous UUID:                      80DA7628-1FAC-4CFF-BDEB-C2B268BC8FB5

Exception Type:  EXC_BAD_ACCESS (SIGBUS)
Exception Codes: KERN_PROTECTION_FAILURE at 0x0000000000000410
Crashed Thread:  5

Thread 0:  Dispatch queue: com.apple.main-thread
0   libconfigmgrlo.dylib          	0x0a23821b
std::_Rb_tree<rtl::OUString, std::pair<rtl::OUString const,
rtl::Reference<configmgr::Node> >,
std::_Select1st<std::pair<rtl::OUString const,
rtl::Reference<configmgr::Node> > >, std::less<rtl::OUString>,
std::allocator<std::pair<rtl::OUString const,
rtl::Reference<configmgr::Node> > >
>::_M_erase(std::_Rb_tree_node<std::pair<rtl::OUString const,
rtl::Reference<configmgr::Node> > >*) + 59
1   libconfigmgrlo.dylib          	0x0a25c69a
configmgr::SetNode::~SetNode() + 58
2   libconfigmgrlo.dylib          	0x0a238228
std::_Rb_tree<rtl::OUString, std::pair<rtl::OUString const,
rtl::Reference<configmgr::Node> >,
std::_Select1st<std::pair<rtl::OUString const,
rtl::Reference<configmgr::Node> > >, std::less<rtl::OUString>,
std::allocator<std::pair<rtl::OUString const,
rtl::Reference<configmgr::Node> > >
>::_M_erase(std::_Rb_tree_node<std::pair<rtl::OUString const,
rtl::Reference<configmgr::Node> > >*) + 72
3   libconfigmgrlo.dylib          	0x0a24f750
configmgr::GroupNode::~GroupNode() + 64
4   libconfigmgrlo.dylib          	0x0a238228
std::_Rb_tree<rtl::OUString, std::pair<rtl::OUString const,
rtl::Reference<configmgr::Node> >,
std::_Select1st<std::pair<rtl::OUString const,
rtl::Reference<configmgr::Node> > >, std::less<rtl::OUString>,
std::allocator<std::pair<rtl::OUString const,
rtl::Reference<configmgr::Node> > >
>::_M_erase(std::_Rb_tree_node<std::pair<rtl::OUString const,
rtl::Reference<configmgr::Node> > >*) + 72
5   libconfigmgrlo.dylib          	0x0a238202
std::_Rb_tree<rtl::OUString, std::pair<rtl::OUString const,
rtl::Reference<configmgr::Node> >,
std::_Select1st<std::pair<rtl::OUString const,
rtl::Reference<configmgr::Node> > >, std::less<rtl::OUString>,
std::allocator<std::pair<rtl::OUString const,
rtl::Reference<configmgr::Node> > >
>::_M_erase(std::_Rb_tree_node<std::pair<rtl::OUString const,
rtl::Reference<configmgr::Node> > >*) + 34
6   libconfigmgrlo.dylib          	0x0a238202
std::_Rb_tree<rtl::OUString, std::pair<rtl::OUString const,
rtl::Reference<configmgr::Node> >,
std::_Select1st<std::pair<rtl::OUString const,
rtl::Reference<configmgr::Node> > >, std::less<rtl::OUString>,
std::allocator<std::pair<rtl::OUString const,
rtl::Reference<configmgr::Node> > >
>::_M_erase(std::_Rb_tree_node<std::pair<rtl::OUString const,
rtl::Reference<configmgr::Node> > >*) + 34
7   libconfigmgrlo.dylib          	0x0a238202
std::_Rb_tree<rtl::OUString, std::pair<rtl::OUString const,
rtl::Reference<configmgr::Node> >,
std::_Select1st<std::pair<rtl::OUString const,
rtl::Reference<configmgr::Node> > >, std::less<rtl::OUString>,
std::allocator<std::pair<rtl::OUString const,
rtl::Reference<configmgr::Node> > >
>::_M_erase(std::_Rb_tree_node<std::pair<rtl::OUString const,
rtl::Reference<configmgr::Node> > >*) + 34
8   libconfigmgrlo.dylib          	0x0a238202
std::_Rb_tree<rtl::OUString, std::pair<rtl::OUString const,
rtl::Reference<configmgr::Node> >,
std::_Select1st<std::pair<rtl::OUString const,
rtl::Reference<configmgr::Node> > >, std::less<rtl::OUString>,
std::allocator<std::pair<rtl::OUString const,
rtl::Reference<configmgr::Node> > >
>::_M_erase(std::_Rb_tree_node<std::pair<rtl::OUString const,
rtl::Reference<configmgr::Node> > >*) + 34
9   libconfigmgrlo.dylib          	0x0a238202
std::_Rb_tree<rtl::OUString, std::pair<rtl::OUString const,
rtl::Reference<configmgr::Node> >,
std::_Select1st<std::pair<rtl::OUString const,
rtl::Reference<configmgr::Node> > >, std::less<rtl::OUString>,
std::allocator<std::pair<rtl::OUString const,
rtl::Reference<configmgr::Node> > >
>::_M_erase(std::_Rb_tree_node<std::pair<rtl::OUString const,
rtl::Reference<configmgr::Node> > >*) + 34
10  libconfigmgrlo.dylib          	0x0a238202
std::_Rb_tree<rtl::OUString, std::pair<rtl::OUString const,
rtl::Reference<configmgr::Node> >,
std::_Select1st<std::pair<rtl::OUString const,
rtl::Reference<configmgr::Node> > >, std::less<rtl::OUString>,
std::allocator<std::pair<rtl::OUString const,
rtl::Reference<configmgr::Node> > >
>::_M_erase(std::_Rb_tree_node<std::pair<rtl::OUString const,
rtl::Reference<configmgr::Node> > >*) + 34
11  libconfigmgrlo.dylib          	0x0a25bfe5
configmgr::RootNode::~RootNode() + 53
12  libconfigmgrlo.dylib          	0x0a231181
configmgr::Components::~Components() + 289
13  libSystem.B.dylib             	0x91bd6bff __cxa_finalize + 208
14  libSystem.B.dylib             	0x91bd6b14 exit + 33
15  com.apple.AppKit              	0x944ff2be -[NSApplication terminate:] + 1056
16  com.apple.AppKit              	0x94304a26 -[NSApplication
sendAction:to:from:] + 112
17  com.apple.AppKit              	0x943048d9 -[NSMenuItem
_corePerformAction] + 435
18  com.apple.AppKit              	0x943045ca -[NSCarbonMenuImpl
performActionWithHighlightingForItemAtIndex:] + 174
19  com.apple.AppKit              	0x943044b6 -[NSMenu
performActionForItemAtIndex:] + 65
20  com.apple.AppKit              	0x94304469 -[NSMenu
_internalPerformActionForItemAtIndex:] + 50
21  com.apple.AppKit              	0x943043cf -[NSMenuItem
_internalPerformActionThroughMenuIfPossible] + 97
22  com.apple.AppKit              	0x94304313 -[NSCarbonMenuImpl
_carbonCommandProcessEvent:handlerCallRef:] + 336
23  com.apple.AppKit              	0x942f8a55 NSSLMMenuEventHandler + 404
24  com.apple.HIToolbox           	0x9a8d7c2f
DispatchEventToHandlers(EventTargetRec*, OpaqueEventRef*,
HandlerCallRec*) + 1567
25  com.apple.HIToolbox           	0x9a8d6ef6
SendEventToEventTargetInternal(OpaqueEventRef*, OpaqueEventTargetRef*,
HandlerCallRec*) + 411
26  com.apple.HIToolbox           	0x9a8f97f3 SendEventToEventTarget + 52
27  com.apple.HIToolbox           	0x9a925e87
SendHICommandEvent(unsigned long, HICommand const*, unsigned long,
unsigned long, unsigned char, void const*, OpaqueEventTargetRef*,
OpaqueEventTargetRef*, OpaqueEventRef**) + 448
28  com.apple.HIToolbox           	0x9a94ab90
SendMenuCommandWithContextAndModifiers + 66
29  com.apple.HIToolbox           	0x9a94ab47 SendMenuItemSelectedEvent + 121
30  com.apple.HIToolbox           	0x9a94aa5d
FinishMenuSelection(SelectionData*, MenuResult*, MenuResult*) + 152
31  com.apple.HIToolbox           	0x9a91a160
MenuSelectCore(MenuData*, Point, double, unsigned long,
OpaqueMenuRef**, unsigned short*) + 454
32  com.apple.HIToolbox           	0x9a9198bb _HandleMenuSelection2 + 465
33  com.apple.HIToolbox           	0x9a9196d9 _HandleMenuSelection + 53
34  com.apple.AppKit              	0x942f1f96 _NSHandleCarbonMenuEvent + 285
35  com.apple.AppKit              	0x942c6b46 _DPSNextEvent + 2304
36  com.apple.AppKit              	0x942c5dd6 -[NSApplication
nextEventMatchingMask:untilDate:inMode:dequeue:] + 156
37  libvcllo.dylib                	0x01a6a2b4
AquaSalInstance::Yield(bool, bool) + 1204
38  libvcllo.dylib                	0x01730274 Application::Yield(bool) + 84
39  libvcllo.dylib                	0x0173032c Application::Execute() + 60
40  libsofficeapp.dylib           	0x0006cbda desktop::Desktop::Main() + 7642
41  libvcllo.dylib                	0x01736602 ImplSVMain() + 226
42  libvcllo.dylib                	0x01a69341
AquaSalInstance::handleAppDefinedEvent(NSEvent*) + 129
43  libvcllo.dylib                	0x01aa5e0b -[VCL_NSApplication
sendEvent:] + 315
44  com.apple.AppKit              	0x94288253 -[NSApplication run] + 917
45  com.apple.AppKit              	0x94280289 NSApplicationMain + 574
46  libvcllo.dylib                	0x01a69c07 ImplSVMainHook(int*) + 343
47  libvcllo.dylib                	0x01736631 SVMain() + 17
48  libsofficeapp.dylib           	0x0009c835 soffice_main + 325
49  org.libreoffice.script        	0x00001f4e main + 30
50  org.libreoffice.script        	0x00001f25 start + 53

Thread 1:
0   libSystem.B.dylib             	0x91be5aa2 __semwait_signal + 10
1   libSystem.B.dylib             	0x91be575e _pthread_cond_wait + 1191
2   libSystem.B.dylib             	0x91be52b1
pthread_cond_timedwait$UNIX2003 + 72
3   libuno_sal.dylib.3            	0x0001465b
rtl_cache_wsupdate_all(void*) + 251
4   libSystem.B.dylib             	0x91be5259 _pthread_start + 345
5   libSystem.B.dylib             	0x91be50de thread_start + 34

Thread 2:  Dispatch queue: com.apple.libdispatch-manager
0   libSystem.B.dylib             	0x91bde382 kevent + 10
1   libSystem.B.dylib             	0x91bdea9c _dispatch_mgr_invoke + 215
2   libSystem.B.dylib             	0x91bddf59 _dispatch_queue_invoke + 163
3   libSystem.B.dylib             	0x91bddcfe _dispatch_worker_thread2 + 240
4   libSystem.B.dylib             	0x91bdd781 _pthread_wqthread + 390
5   libSystem.B.dylib             	0x91bdd5c6 start_wqthread + 30

Thread 3:
0   libSystem.B.dylib             	0x91be5aa2 __semwait_signal + 10
1   libSystem.B.dylib             	0x91be575e _pthread_cond_wait + 1191
2   libSystem.B.dylib             	0x91be73f8 pthread_cond_wait$UNIX2003 + 73
3   libuno_sal.dylib.3            	0x0002ea12 osl_waitCondition + 98
4   liblnglo.dylib                	0x0f95f049
GrammarCheckingIterator::DequeueAndCheck() + 425
5   libuno_sal.dylib.3            	0x0000e08e osl_thread_start_Impl + 398
6   libSystem.B.dylib             	0x91be5259 _pthread_start + 345
7   libSystem.B.dylib             	0x91be50de thread_start + 34

Thread 4:  com.apple.CFSocket.private
0   libSystem.B.dylib             	0x91bd6ac6 select$DARWIN_EXTSN + 10
1   com.apple.CoreFoundation      	0x98b95c53 __CFSocketManager + 1091
2   libSystem.B.dylib             	0x91be5259 _pthread_start + 345
3   libSystem.B.dylib             	0x91be50de thread_start + 34

Thread 5 Crashed:
0   libconfigmgrlo.dylib          	0x0a237559
std::_Rb_tree<configmgr::RootAccess*, configmgr::RootAccess*,
std::_Identity<configmgr::RootAccess*>,
std::less<configmgr::RootAccess*>,
std::allocator<configmgr::RootAccess*>
>::_M_insert_unique(configmgr::RootAccess* const&) + 41
1   libconfigmgrlo.dylib          	0x0a22fcd3
configmgr::Components::addRootAccess(rtl::Reference<configmgr::RootAccess>
const&) + 35
2   libconfigmgrlo.dylib          	0x0a23c435
configmgr::configuration_provider::(anonymous
namespace)::Service::createInstanceWithArguments(rtl::OUString const&,
com::sun::star::uno::Sequence<com::sun::star::uno::Any> const&) + 3157
3   libupdchk.dylib               	0x0aef807e
UpdateCheckConfig::get(com::sun::star::uno::Reference<com::sun::star::uno::XComponentContext>
const&, rtl::Reference<UpdateCheckConfigListener> const&) + 2446
4   libupdchk.dylib               	0x0aeeebfd (anonymous
namespace)::UpdateCheckThread::run() + 221
5   libupdchk.dylib               	0x0aeeef72 threadFunc + 18
6   libuno_sal.dylib.3            	0x0000e08e osl_thread_start_Impl + 398
7   libSystem.B.dylib             	0x91be5259 _pthread_start + 345
8   libSystem.B.dylib             	0x91be50de thread_start + 34

Thread 6:
0   libSystem.B.dylib             	0x91bdd412 __workq_kernreturn + 10
1   libSystem.B.dylib             	0x91bdd9a8 _pthread_wqthread + 941
2   libSystem.B.dylib             	0x91bdd5c6 start_wqthread + 30

Thread 7:
0   libSystem.B.dylib             	0x91bdd412 __workq_kernreturn + 10
1   libSystem.B.dylib             	0x91bdd9a8 _pthread_wqthread + 941
2   libSystem.B.dylib             	0x91bdd5c6 start_wqthread + 30

Thread 5 crashed with X86 Thread State (32-bit):
  eax: 0x00000400  ebx: 0x115063b4  ecx: 0xb0630b00  edx: 0x00000400
  edi: 0x0a2a2100  esi: 0x0a2a2154  ebp: 0xb0630bc8  esp: 0xb0630b90
   ss: 0x0000001f  efl: 0x00010206  eip: 0x0a237559   cs: 0x00000017
   ds: 0x0000001f   es: 0x0000001f   fs: 0x0000001f   gs: 0x00000037
  cr2: 0x00000410


> Norbert


More information about the LibreOffice mailing list