[ 
https://issues.apache.org/jira/browse/MESOS-2134?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14218373#comment-14218373
 ] 

Dominic Hamon commented on MESOS-2134:
--------------------------------------

stack trace when {{StandaloneMasterDetector}} is used:

{noformat}
465 || [ RUN      ] MetricsTest.Slave
466 || *** Aborted at 1416426068 (unix time) try "date -d @1416426068" if you 
are using GNU date ***
467 || PC: @     0x2b2f01ffd5d8 process::PID<>::PID()
468 || *** SIGSEGV (@0x0) received by PID 3040 (TID 0x2b2f0ba78700) from PID 0; 
stack trace: ***
469 ||     @     0x2b2f0ec5c3c7 os::Linux::chained_handler()
470 ||     @     0x2b2f0ec60659 JVM_handle_linux_signal
471 ||     @     0x2b2f05c8c340 (unknown)
472 ||     @     0x2b2f01ffd5d8 process::PID<>::PID()
473 ||     @     0x2b2f01ffd5aa process::Process<>::self()
474 ||     @     0x2b2f01fe7ad2 process::dispatch<>()
475 ||     @     0x2b2f01fe4bd6 
mesos::internal::StandaloneMasterDetector::detect()
476 ||     @     0x2b2f0231e284 mesos::internal::slave::Slave::detected()
477 ||     @     0x2b2f02385496 
_ZZN7process8dispatchIN5mesos8internal5slave5SlaveERKNS_6FutureI6OptionINS1_10MasterInfoEEEES9_EEvRKNS_3PIDIT_EEMSD_FvT0_ET1_ENKUlPNS_11ProcessBaseEE_clESM_
478 ||     @     0x2b2f023850e2 
_ZNSt17_Function_handlerIFvPN7process11ProcessBaseEEZNS0_8dispatchIN5mesos8internal5slave5SlaveERKNS0_6FutureI6OptionINS5_10MasterInfoEEEESD_EEvRKNS0_3PIDIT_EEMSH_FvT0_ET1_EUlS2_E_E9_M_invokeERKSt9_Any_dataS2_
479 ||     @     0x2b2f02ac7508 std::function<>::operator()()
480 ||     @     0x2b2f02ab57c4 process::ProcessBase::visit()
481 ||     @     0x2b2f02b0b07e process::DispatchEvent::visit()
482 ||     @           0x8a92e1 process::ProcessBase::serve()
483 ||     @     0x2b2f02aa50cd process::ProcessManager::resume()
484 ||     @     0x2b2f02aa48fe process::schedule()
485 ||     @     0x2b2f05c84182 start_thread
486 ||     @     0x2b2f05f94fbd (unknown)
487 ||     @                0x0 (unknown)
488 || make[3]: *** [check-local] Segmentation fault (core dumped)
{noformat}


> Create ability to have slave-only tests
> ---------------------------------------
>
>                 Key: MESOS-2134
>                 URL: https://issues.apache.org/jira/browse/MESOS-2134
>             Project: Mesos
>          Issue Type: Bug
>          Components: test
>            Reporter: Dominic Hamon
>
> When creating a test that only calls {{StartSlave}} without {{StartMaster}}, 
> the test will segfault.
> Creating a {{StandaloneMasterDetector}} without a leader and passing that 
> into {{StartSlave}} also segfaults within {{detect}}.
> Adding special cases to the {{StandaloneMasterDetector}} to return {{None()}} 
> when {{leader.isNone()}} fixes the issue, but changes the semantics of the 
> detector, so more thought is needed.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Reply via email to