[
https://issues.apache.org/jira/browse/MESOS-32?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13069270#comment-13069270
]
Bill Zhao commented on MESOS-32:
--------------------------------
Here are the other threads:
billz@dhcp-44-175: ~/mesos$ gdb bin/mesos-master
GNU gdb 6.3.50-20050815 (Apple version gdb-1705) (Fri Jul 1 10:50:06 UTC 2011)
Copyright 2004 Free Software Foundation, Inc.
GDB is free software, covered by the GNU General Public License, and you are
welcome to change it and/or distribute copies of it under certain conditions.
Type "show copying" to see the conditions.
There is absolutely no warranty for GDB. Type "show warranty" for details.
This GDB was configured as "x86_64-apple-darwin"...Reading symbols for shared
libraries .... done
(gdb) run
Starting program: /Users/billz/mesos/bin/mesos-master
Reading symbols for shared libraries +++......................... done
I0721 15:54:19.099674 2064075104 logging.cpp:40] Logging to
/Users/billz/mesos/logs
I0721 15:54:19.107087 2064075104 main.cpp:75] Build: 2011-07-21 15:17:31 by
billz
I0721 15:54:19.107141 2064075104 main.cpp:76] Starting Mesos master
I0721 15:54:19.109128 2064075104 webui.cpp:66] Starting master web UI on port
8080
I0721 15:54:19.109236 8056832 master.cpp:379] Master started at
mesos://[email protected]:5050
I0721 15:54:19.109288 8056832 master.cpp:394] Master ID: 201107211554-0
I0721 15:54:19.109364 8056832 master.cpp:403] Creating "simple" allocator
I0721 15:54:19.109426 19939328 webui.cpp:34] Web UI thread started
I0721 15:54:19.166339 19939328 webui.cpp:46] Loading webui/master/webui.py
Reading symbols for shared libraries . done
Reading symbols for shared libraries .. done
Reading symbols for shared libraries . done
Reading symbols for shared libraries . done
Reading symbols for shared libraries . done
Reading symbols for shared libraries .... done
Reading symbols for shared libraries . done
Reading symbols for shared libraries . done
Reading symbols for shared libraries . done
Reading symbols for shared libraries ........ done
Program received signal SIGTRAP, Trace/breakpoint trap.
[Switching to process 88571 thread 0x1803]
0x00007fff9106ebff in __CFInitialize ()
(gdb) info threads
* 4 0x00007fff9106ebff in __CFInitialize ()
3 0x00007fff96064df2 in select$DARWIN_EXTSN ()
2 0x00007fff96064bf2 in __psynch_mutexwait ()
1 "com.apple.main-thread" 0x00007fff96064bca in __psynch_cvwait ()
(gdb) thread 1
[Switching to thread 1 (process 88571), "com.apple.main-thread"]
0x00007fff96064bca in __psynch_cvwait ()
(gdb) bt
#0 0x00007fff96064bca in __psynch_cvwait ()
#1 0x00007fff92c06274 in _pthread_cond_wait ()
#2 0x000000010013642b in Gate::arrive () at
/Users/billz/mesos/third_party/libprocess/src/gate.hpp:73
#3 0x000000010013642b in process::ProcessManager::external_wait
(this=0x101103a80, pid=@0x101103a30) at gate.hpp:2128
#4 0x000000010013db18 in process::wait (pid=@0x7fff5fbff788,
secs=6.9532229757399032e-310) at process.cpp:3206
#5 0x00000001000021dd in main (argc=8447488, argv=0x7fff5fbff7c0) at
main.cpp:92
(gdb) info threads
4 0x00007fff9106ebff in __CFInitialize ()
3 0x00007fff96064df2 in select$DARWIN_EXTSN ()
2 0x00007fff96064bf2 in __psynch_mutexwait ()
* 1 "com.apple.main-thread" 0x00007fff96064bca in __psynch_cvwait ()
(gdb) thread 2
[Switching to thread 2 (process 88571)]
0x00007fff96064bf2 in __psynch_mutexwait ()
(gdb) bt
#0 0x00007fff96064bf2 in __psynch_mutexwait ()
#1 0x00007fff92c011a1 in pthread_mutex_lock ()
#2 0x0000000100133710 in process::ProcessBase::enqueue
(dispatcher=0x101105790, this=0x10080e038) at process.cpp:2734
#3 0x00000001001360b9 in process::ProcessReference::~ProcessReference () at
/Users/billz/mesos/third_party/libprocess/src/process.cpp:1798
#4 0x00000001001360b9 in process::ProcessManager::deliver (this=0x101105790,
to=@0x100265de0, dispatcher=0x101105790, sender=0x10080e038) at process.cpp:1802
#5 0x000000010014d295 in
process::internal::vdispatch<process::GarbageCollector> (pid=@0x100265de0,
thunk=@0x101105790) at process.cpp:3258
#6 0x000000010014d39a in std::tr1::_Function_base::~_Function_base () at
dispatch.hpp:1069
#7 0x000000010014d39a in std::tr1::function<void
()(process::GarbageCollector*)>::~function () at
/usr/include/c++/4.2.1/tr1/functional:834
#8 0x000000010014d39a in process::dispatch<process::GarbageCollector,
process::ProcessBase const*, process::ProcessBase*> (pid=@0x10080e048,
a1=0x101802028) at dispatch.hpp:1069
#9 0x000000010013c122 in process::UPID::UPID () at process.cpp:1877
#10 0x000000010013c122 in process::ProcessBase::self () at
/Users/billz/mesos/third_party/libprocess/include/process/process.hpp:62
#11 0x000000010013c122 in process::ProcessManager::spawn (this=0x1007d0bb0,
process=0x101802028, manage=true) at process.cpp:1880
#12 0x000000010013d2e2 in process::ProcessBase::spawn (process=0x101802028,
manage=true) at process.cpp:3142
#13 0x00000001001500bc in process::spawn<process::TimerProcess> (t=0x100603590,
manage=false) at process.hpp:264
#14 0x000000010014f9d7 in process::PID<process::TimerProcess>::operator= () at
/Users/billz/mesos/third_party/libprocess/include/process/pid.hpp:34
#15 0x000000010014f9d7 in process::Timer::Timer (this=0x1007d0ef0, secs=0,
pid=@0x100603590, dispatcher=0x400) at timer.cpp:34
#16 0x000000010002f945 in std::tr1::function<void
()(mesos::internal::master::Master*)>::~function () at timer.hpp:42
#17 0x000000010002f945 in std::tr1::_Function_base::~_Function_base () at
/usr/include/c++/4.2.1/tr1/functional:42
#18 0x000000010002f945 in process::delay<mesos::internal::master::Master>
(secs=0, pid=@0x100603590) at timer.hpp:834
#19 0x000000010000c4ce in mesos::internal::master::Master::operator()
(this=0x10080e048) at master.cpp:411
#20 0x0000000100139df1 in process::ProcessManager::run (this=0x10080e600,
process=0x10080e800) at process.cpp:2328
#21 0x0000000100139f16 in process::trampoline (stack0=8130560, stack1=1,
process0=1024, process1=8194344) at process.cpp:913
(gdb) thread 3
[Switching to thread 3 (process 88571)]
0x00007fff96064df2 in select$DARWIN_EXTSN ()
(gdb) bt
#0 0x00007fff96064df2 in select$DARWIN_EXTSN ()
#1 0x00000001001542bb in select_poll ()
#2 0x000000010015824c in ev_loop ()
#3 0x000000010013728b in process::serve (arg=0x19) at process.cpp:891
#4 0x00007fff92c028bf in _pthread_start ()
#5 0x00007fff92c05b75 in thread_start ()
(gdb) info thread
Thread 3 has current state "WAITING"
Mach port #0x1703 (gdb port #0x4203)
frame 0: 0x00007fff96064df2 in select$DARWIN_EXTSN ()
pthread ID: 0x101281060
system-wide unique thread id: 0x6f16a
total user time: 24000
total system time: 45000
scaled cpu usage percentage: 0
scheduling policy in effect: 0x1
run state: 0x3 (WAITING)
flags: 0x1 (SWAPPED)
number of seconds that thread has slept: 0
current priority: 31
max priority: 63
suspend count: 0.
(gdb) info threads
4 0x00007fff9106ebff in __CFInitialize ()
* 3 0x00007fff96064df2 in select$DARWIN_EXTSN ()
2 0x00007fff96064bf2 in __psynch_mutexwait ()
1 "com.apple.main-thread" 0x00007fff96064bca in __psynch_cvwait ()
(gdb) thread 4
[Switching to thread 4 (process 88571)]
0x00007fff9106ebff in __CFInitialize ()
(gdb) bt
#0 0x00007fff9106ebff in __CFInitialize ()
#1 0x00007fff5fc0fde3 in
__dyld__ZN16ImageLoaderMachO11doImageInitERKN11ImageLoader11LinkContextE ()
#2 0x00007fff5fc0fa5b in
__dyld__ZN16ImageLoaderMachO16doInitializationERKN11ImageLoader11LinkContextE ()
#3 0x00007fff5fc0d258 in
__dyld__ZN11ImageLoader23recursiveInitializationERKNS_11LinkContextEjRNS_21InitializerTimingListE
()
#4 0x00007fff5fc0d1f1 in
__dyld__ZN11ImageLoader23recursiveInitializationERKNS_11LinkContextEjRNS_21InitializerTimingListE
()
#5 0x00007fff5fc0d1f1 in
__dyld__ZN11ImageLoader23recursiveInitializationERKNS_11LinkContextEjRNS_21InitializerTimingListE
()
#6 0x00007fff5fc0e02b in
__dyld__ZN11ImageLoader15runInitializersERKNS_11LinkContextERNS_21InitializerTimingListE
()
#7 0x00007fff5fc03189 in __dyld__ZN4dyld15runInitializersEP11ImageLoader ()
#8 0x00007fff5fc095cb in __dyld_dlopen ()
#9 0x00007fff8aeed95b in dlopen ()
#10 0x00000001004fa7da in _PyImport_GetDynLoadFunc ()
#11 0x00000001004eaea2 in _PyImport_LoadDynamicModule ()
#12 0x00000001004e9652 in PyImport_ReloadModule ()
#13 0x00000001004e9860 in PyImport_ReloadModule ()
#14 0x00000001004ea60d in PyImport_ImportModuleLevel ()
#15 0x00000001004ceb4c in _PyBuiltin_Init ()
#16 0x000000010045c4c0 in PyObject_Call ()
#17 0x00000001004d336b in PyEval_CallObjectWithKeywords ()
#18 0x00000001004d8a33 in PyEval_EvalFrameEx ()
#19 0x00000001004d9da4 in PyEval_EvalCodeEx ()
#20 0x00000001004d9e19 in PyEval_EvalCode ()
#21 0x00000001004e8346 in PyImport_ExecCodeModuleEx ()
#22 0x00000001004e888e in PyImport_ExecCodeModuleEx ()
#23 0x00000001004e9652 in PyImport_ReloadModule ()
#24 0x00000001004e9860 in PyImport_ReloadModule ()
#25 0x00000001004ea60d in PyImport_ImportModuleLevel ()
#26 0x00000001004ceb4c in _PyBuiltin_Init ()
#27 0x000000010045c4c0 in PyObject_Call ()
#28 0x00000001004d336b in PyEval_CallObjectWithKeywords ()
#29 0x00000001004d8a33 in PyEval_EvalFrameEx ()
#30 0x00000001004d9da4 in PyEval_EvalCodeEx ()
#31 0x00000001004d9e19 in PyEval_EvalCode ()
#32 0x00000001004e8346 in PyImport_ExecCodeModuleEx ()
#33 0x00000001004e888e in PyImport_ExecCodeModuleEx ()
#34 0x00000001004e9652 in PyImport_ReloadModule ()
#35 0x00000001004e9860 in PyImport_ReloadModule ()
#36 0x00000001004ea60d in PyImport_ImportModuleLevel ()
#37 0x00000001004ceb4c in _PyBuiltin_Init ()
#38 0x000000010045c4c0 in PyObject_Call ()
#39 0x00000001004d336b in PyEval_CallObjectWithKeywords ()
#40 0x00000001004d8a33 in PyEval_EvalFrameEx ()
#41 0x00000001004d9da4 in PyEval_EvalCodeEx ()
#42 0x00000001004d9e19 in PyEval_EvalCode ()
#43 0x00000001004e8346 in PyImport_ExecCodeModuleEx ()
#44 0x00000001004e888e in PyImport_ExecCodeModuleEx ()
#45 0x00000001004e9652 in PyImport_ReloadModule ()
#46 0x00000001004e9860 in PyImport_ReloadModule ()
#47 0x00000001004ea60d in PyImport_ImportModuleLevel ()
#48 0x00000001004ceb4c in _PyBuiltin_Init ()
#49 0x000000010045c4c0 in PyObject_Call ()
#50 0x00000001004d336b in PyEval_CallObjectWithKeywords ()
#51 0x00000001004d8a33 in PyEval_EvalFrameEx ()
#52 0x00000001004d9da4 in PyEval_EvalCodeEx ()
#53 0x00000001004d9e19 in PyEval_EvalCode ()
#54 0x00000001004f116b in Py_CompileString ()
#55 0x00000001004f122b in PyRun_FileExFlags ()
#56 0x00000001004f234f in PyRun_SimpleFileExFlags ()
#57 0x000000010004aa78 in mesos::internal::master::runMasterWebUI
(unnamed_arg=0x1) at webui.cpp:48
#58 0x00007fff92c028bf in _pthread_start ()
#59 0x00007fff92c05b75 in thread_start ()
(gdb)
> Mac OS X Lion errors
> --------------------
>
> Key: MESOS-32
> URL: https://issues.apache.org/jira/browse/MESOS-32
> Project: Mesos
> Issue Type: Bug
> Components: master
> Environment: Mac OS X - Lion (10.7)
> Reporter: Bill Zhao
> Original Estimate: 168h
> Remaining Estimate: 168h
>
> Mesos's code compiled without error. However, when I run mesos-master, I got
> a "Trace/BPT trap: 5" error.
> Error:
> billz@dhcp-44-175: ~/mesos$ bin/mesos-master
> I0721 15:23:43.394886 2064075104 logging.cpp:40] Logging to
> /Users/billz/mesos/logs
> I0721 15:23:43.435346 2064075104 main.cpp:75] Build: 2011-07-21 15:17:31 by
> billz
> I0721 15:23:43.435402 2064075104 main.cpp:76] Starting Mesos master
> I0721 15:23:43.436972 145375232 master.cpp:379] Master started at
> mesos://[email protected]:5050
> I0721 15:23:43.436986 2064075104 webui.cpp:66] Starting master web UI on port
> 8080
> I0721 15:23:43.437049 145375232 master.cpp:394] Master ID: 201107211523-0
> I0721 15:23:43.437192 146579456 webui.cpp:34] Web UI thread started
> I0721 15:23:43.437399 145375232 master.cpp:403] Creating "simple" allocator
> I0721 15:23:44.005723 146579456 webui.cpp:46] Loading webui/master/webui.py
> Trace/BPT trap: 5
--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira