Yan Xu created MESOS-812:
----------------------------

             Summary: Authentication code does not work on OS X with sudo.
                 Key: MESOS-812
                 URL: https://issues.apache.org/jira/browse/MESOS-812
             Project: Mesos
          Issue Type: Bug
          Components: test
            Reporter: Yan Xu


e.g. [ RUN      ] AuthenticationTest.AuthenticatedFramework (Note that other 
tests involve authentication also fail)
It only seg faults as root.

Backtrace:
{noformat}
Program received signal EXC_BAD_ACCESS, Could not access memory.
Reason: KERN_INVALID_ADDRESS at address: 0x0000000000000001
[Switching to process 94582 thread 0x1203]
0x00007fff8d2a0bc9 in pthread_mutex_lock ()
(gdb) bt
#0  0x00007fff8d2a0bc9 in pthread_mutex_lock ()
#1  0x00007fff9202019b in ldap_create_control ()
#2  0x00007fff8959bbc9 in sasl_dispose ()
#3  0x0000000100308f1e in 
__gnu_cxx::new_allocator<testing::Expectation>::destroy () at 
/usr/include/c++/4.2.1/ext/new_allocator.h:73
#4  0x0000000100308f1e in 
mesos::internal::sasl::AuthenticatorProcess::~AuthenticatorProcess (this=0x1) 
at authenticator.hpp:402
#5  0x0000000100e6be0c in __gnu_cxx::new_allocator<std::pair<std::string const, 
Option<std::string> > >::destroy () at 
/usr/include/c++/4.2.1/ext/new_allocator.h:378
#6  0x0000000100e6be0c in mesos::internal::sasl::Authenticator::~Authenticator 
(this=0x1) at authenticator.hpp:402
#7  0x0000000100e84bf9 in __gnu_cxx::new_allocator<std::pair<std::string const, 
Option<std::string> > >::destroy () at 
/usr/include/c++/4.2.1/ext/new_allocator.h:34
#8  0x0000000100e84bf9 in 
boost::detail::sp_counted_impl_p<mesos::internal::sasl::Authenticator>::dispose 
(this=0x1) at checked_delete.hpp:402
#9  0x0000000100e85b1a in boost::detail::atomic_exchange_and_add () at 
/Users/user/mesos/build/3rdparty/libprocess/3rdparty/boost-1.53.0/boost/smart_ptr/detail/sp_counted_base_gcc_x86.hpp:146
#10 0x0000000100e85b1a in boost::detail::sp_counted_base::weak_release () at 
/Users/user/mesos/build/3rdparty/libprocess/3rdparty/boost-1.53.0/boost/smart_ptr/detail/sp_counted_base_gcc_x86.hpp:158
#11 0x0000000100e85b1a in boost::detail::sp_counted_base::release () at 
/Users/user/mesos/build/3rdparty/libprocess/3rdparty/boost-1.53.0/boost/smart_ptr/detail/sp_counted_base_gcc_x86.hpp:147
#12 0x0000000100e85b1a in __gnu_cxx::new_allocator<std::pair<std::string const, 
Option<std::string> > >::destroy () at 
/usr/include/c++/4.2.1/ext/new_allocator.h:371
#13 0x0000000100e85b1a in std::pair<process::UPID const, 
Owned<mesos::internal::sasl::Authenticator> >::~pair (this=0x1) at 
sp_counted_base_gcc_x86.hpp:402
#14 0x0000000100ea7f31 in 
boost::unordered::detail::destroy<std::pair<process::UPID const, 
Owned<mesos::internal::sasl::Authenticator> > > () at master.cpp:805
#15 0x0000000100ea7f31 in 
boost::unordered::detail::destroy_value_impl<std::allocator<boost::unordered::detail::ptr_node<std::pair<process::UPID
 const, Owned<mesos::internal::sasl::Authenticator> > > >, 
std::pair<process::UPID const, Owned<mesos::internal::sasl::Authenticator> > > 
() at 
/Users/user/mesos/build/3rdparty/libprocess/3rdparty/boost-1.53.0/boost/unordered/detail/allocate.hpp:805
#16 0x0000000100ea7f31 in 
boost::unordered::detail::table<boost::unordered::detail::map<std::allocator<std::pair<process::UPID
 const, Owned<mesos::internal::sasl::Authenticator> > >, process::UPID, 
Owned<mesos::internal::sasl::Authenticator>, boost::hash<process::UPID>, 
std::equal_to<process::UPID> > >::delete_node () at 
/Users/user/mesos/build/3rdparty/libprocess/3rdparty/boost-1.53.0/boost/unordered/detail/table.hpp:518
#17 0x0000000100ea7f31 in 
boost::unordered::detail::table<boost::unordered::detail::map<std::allocator<std::pair<process::UPID
 const, Owned<mesos::internal::sasl::Authenticator> > >, process::UPID, 
Owned<mesos::internal::sasl::Authenticator>, boost::hash<process::UPID>, 
std::equal_to<process::UPID> > >::delete_nodes () at 
/Users/user/mesos/build/3rdparty/libprocess/3rdparty/boost-1.53.0/boost/unordered/detail/table.hpp:533
#18 0x0000000100ea7f31 in __gnu_cxx::new_allocator<std::pair<std::string const, 
Option<std::string> > >::destroy () at 
/usr/include/c++/4.2.1/ext/new_allocator.h:534
#19 0x0000000100ea7f31 in 
boost::unordered::detail::table_impl<boost::unordered::detail::map<std::allocator<std::pair<process::UPID
 const, Owned<mesos::internal::sasl::Authenticator> > >, process::UPID, 
Owned<mesos::internal::sasl::Authenticator>, boost::hash<process::UPID>, 
std::equal_to<process::UPID> > >::erase_key (this=0x102980d30, k=@0x0) at 
master.cpp:402
#20 0x0000000100e72fd1 in boost::unordered::unordered_map<process::UPID, 
Owned<mesos::internal::sasl::Authenticator>, boost::hash<process::UPID>, 
std::equal_to<process::UPID>, std::allocator<std::pair<process::UPID const, 
Owned<mesos::internal::sasl::Authenticator> > > >::erase () at 
/Users/user/mesos/build/3rdparty/libprocess/3rdparty/boost-1.53.0/boost/unordered/unordered_map.hpp:1142
#21 0x0000000100e72fd1 in __gnu_cxx::new_allocator<std::pair<std::string const, 
Option<std::string> > >::destroy () at 
/usr/include/c++/4.2.1/ext/new_allocator.h:1746
#22 0x0000000100e72fd1 in mesos::internal::master::Master::_authenticate 
(this=0x102018e00, pid=@0x102e06e18, promise=@0x102e06e28, future=@0x1006606b8) 
at unordered_map.hpp:402
#23 0x0000000100031fa0 in std::tr1::__shared_ptr<std::tr1::function<void 
()(mesos::internal::master::Master*)>, 
(__gnu_cxx::_Lock_policy)2>::~__shared_ptr () at boost_shared_ptr.h:133
#24 0x0000000100031fa0 in 
std::tr1::__shared_count<(__gnu_cxx::_Lock_policy)2>::~__shared_count () at 
/usr/include/c++/4.2.1/tr1/boost_shared_ptr.h:974
#25 0x0000000100031fa0 in __gnu_cxx::new_allocator<std::pair<std::string const, 
Option<std::string> > >::destroy () at 
/usr/include/c++/4.2.1/ext/new_allocator.h:504
#26 0x0000000100031fa0 in std::tr1::_Bind<void (*()(std::tr1::_Placeholder<1>, 
std::tr1::shared_ptr<std::tr1::function<void 
()(mesos::internal::master::Master*)> >))(process::ProcessBase*, 
std::tr1::shared_ptr<std::tr1::function<void 
()(mesos::internal::master::Master*)> >)>::operator()<process::ProcessBase*> 
(this=0x1020190b0, __u1=@0x3) at boost_shared_ptr.h:402
#27 0x00000001000306b8 in __gnu_cxx::new_allocator<std::pair<std::string const, 
Option<std::string> > >::destroy () at 
/usr/include/c++/4.2.1/ext/new_allocator.h:502
#28 0x00000001000306b8 in std::tr1::_Function_handler<void 
()(process::ProcessBase*), std::tr1::_Bind<void (*()(std::tr1::_Placeholder<1>, 
std::tr1::shared_ptr<std::tr1::function<void 
()(mesos::internal::master::Master*)> >))(process::ProcessBase*, 
std::tr1::shared_ptr<std::tr1::function<void 
()(mesos::internal::master::Master*)> >)> >::_M_invoke (__a1=0x1020191c0, 
__functor=@0x1020190b0) at functional_iterate.h:402
#29 0x000000010108a030 in __gnu_cxx::new_allocator<std::pair<std::string const, 
process::ProcessBase::Asset> >::destroy () at 
/usr/include/c++/4.2.1/ext/new_allocator.h:2576
#30 0x000000010108a030 in process::ProcessManager::resume (this=0x102980ee0, 
process=0x1020191c0) at process.cpp:402
#31 0x000000010108aa38 in __gnu_cxx::new_allocator<std::pair<std::string const, 
process::ProcessBase::Asset> >::destroy () at 
/usr/include/c++/4.2.1/ext/new_allocator.h:1283
#32 0x000000010108aa38 in process::schedule (arg=0x101e35980) at process.cpp:402
#33 0x00007fff8d29b772 in _pthread_start ()
#34 0x00007fff8d2881a1 in thread_start ()
{noformat}



--
This message was sent by Atlassian JIRA
(v6.1#6144)

Reply via email to