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

Benjamin Bannier commented on MESOS-4983:
-----------------------------------------

Since not even the GCC maintainers feel comfortable calling GCC6 
production-ready I am not sure these kinds of bugreports are very useful. It is 
interesting to see if e.g., the added GCC6 diagnostics find unknown issues in 
Mesos code (they don't currently), but I feel this kind of report would be more 
interesting for GCC developers. Since they are preparing a release currently 
they might even be very interested in reduced reproducers (as an example, the 
GCC tag you are using is the first one able to compile Mesos code without 
internal compiler errors, and the maintainers where quick to come up with fixes 
for two issues I raised over there).

> Segfault in ProcessTest.Spawn with GCC 6
> ----------------------------------------
>
>                 Key: MESOS-4983
>                 URL: https://issues.apache.org/jira/browse/MESOS-4983
>             Project: Mesos
>          Issue Type: Bug
>          Components: libprocess, tests
>            Reporter: Neil Conway
>              Labels: mesosphere
>
> {{ProcessTest.Spawn}} fails deterministically for me with GCC 6 and 
> {{--enable-optimize}}. Recent Arch Linux, GCC "6.0.0 20160227".
> {noformat}
> [ RUN      ] ProcessTest.Spawn
> *** Aborted at 1458333317 (unix time) try "date -d @1458333317" if you are 
> using GNU date ***
> PC: @           0x522926 SpawnProcess::initialize()
> *** SIGSEGV (@0x0) received by PID 11359 (TID 0x7faa6075f700) from PID 0; 
> stack trace: ***
>     @     0x7faa670dbe80 (unknown)
>     @           0x522926 SpawnProcess::initialize()
>     @           0x646fa6 process::ProcessManager::resume()
>     @           0x6471ff 
> _ZNSt6thread11_State_implISt12_Bind_simpleIFSt5_BindIFZN7process14ProcessManager12init_threadsEvEUlRKSt6atomicIbEE_St17reference_wrapperIS7_EEEvEEE6_M_runEv
>     @     0x7faa6764a812 execute_native_thread_routine
>     @     0x7faa670d2424 start_thread
>     @     0x7faa65b04cbd __clone
>     @                0x0 (unknown)
> Makefile:1748: recipe for target 'check-local' failed
> make[5]: *** [check-local] Segmentation fault (core dumped)
> {noformat}
> Backtrace:
> {noformat}
> Program terminated with signal SIGSEGV, Segmentation fault.
> #0  testing::internal::ActionResultHolder<void>::GetValueAndDelete (this=0x0) 
> at 3rdparty/gmock-1.7.0/include/gmock/gmock-spec-builders.h:1373
> 1373    void GetValueAndDelete() const { delete this; }
> [Current thread is 1 (Thread 0x7faa6075f700 (LWP 11365))]
> (gdb) bt
> #0  testing::internal::ActionResultHolder<void>::GetValueAndDelete (this=0x0) 
> at 3rdparty/gmock-1.7.0/include/gmock/gmock-spec-builders.h:1373
> #1  testing::internal::FunctionMockerBase<void ()>::InvokeWith(std::tuple<> 
> const&) (args=empty std::tuple, this=0x7ffff12a7c88) at 
> 3rdparty/gmock-1.7.0/include/gmock/gmock-spec-builders.h:1530
> #2  testing::internal::FunctionMocker<void ()>::Invoke() 
> (this=0x7ffff12a7c88) at 
> 3rdparty/gmock-1.7.0/include/gmock/gmock-generated-function-mockers.h:76
> #3  SpawnProcess::initialize (this=0x7ffff12a7c80) at 
> /mesos-2/3rdparty/libprocess/src/tests/process_tests.cpp:113
> #4  0x0000000000646fa6 in process::ProcessManager::resume (this=0x25a2b60, 
> process=0x7ffff12a7d38) at /mesos-2/3rdparty/libprocess/src/process.cpp:2504
> #5  0x00000000006471ff in process::ProcessManager::<lambda(const 
> atomic_bool&)>::operator() (__closure=<optimized out>, joining=...) at 
> /mesos-2/3rdparty/libprocess/src/process.cpp:2218
> #6  std::_Bind<process::ProcessManager::init_threads()::<lambda(const 
> atomic_bool&)>(std::reference_wrapper<const std::atomic<bool> 
> >)>::__call<void, 0ul> (__args=<optimized out>, this=<optimized out>) at 
> /home/vagrant/local/gcc/include/c++/6.0.0/functional:943
> #7  std::_Bind<process::ProcessManager::init_threads()::<lambda(const 
> atomic_bool&)>(std::reference_wrapper<const std::atomic<bool> 
> >)>::operator()<> (this=<optimized out>) at 
> /home/vagrant/local/gcc/include/c++/6.0.0/functional:1002
> #8  
> std::_Bind_simple<std::_Bind<process::ProcessManager::init_threads()::<lambda(const
>  atomic_bool&)>(std::reference_wrapper<const std::atomic<bool> 
> >)>()>::_M_invoke<> (this=<optimized out>) at 
> /home/vagrant/local/gcc/include/c++/6.0.0/functional:1400
> #9  
> std::_Bind_simple<std::_Bind<process::ProcessManager::init_threads()::<lambda(const
>  atomic_bool&)>(std::reference_wrapper<const std::atomic<bool> 
> >)>()>::operator() (this=<optimized out>) at 
> /home/vagrant/local/gcc/include/c++/6.0.0/functional:1389
> #10 
> std::thread::_State_impl<std::_Bind_simple<std::_Bind<process::ProcessManager::init_threads()::<lambda(const
>  atomic_bool&)>(std::reference_wrapper<const std::atomic<bool> >)>()> 
> >::_M_run(void) (this=<optimized out>) at 
> /home/vagrant/local/gcc/include/c++/6.0.0/thread:196
> #11 0x00007faa6764a812 in std::(anonymous 
> namespace)::execute_native_thread_routine (__p=0x25a3bf0) at 
> ../../../../../gcc-trunk/libstdc++-v3/src/c++11/thread.cc:83
> #12 0x00007faa670d2424 in start_thread () from /usr/lib/libpthread.so.0
> #13 0x00007faa65b04cbd in clone () from /usr/lib/libc.so.6
> {noformat}



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

Reply via email to