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

Cong Wang commented on MESOS-1967:
----------------------------------

Hmm, libnl should be blamed, it uses its own copy of the types of some idiag 
attributes, which is copied from a relatively new kernel header after the 
following commit:

{noformat}
commit d594e987c6f5417cc63dd7e107a2a03a7eeee03f
Author: Eric Dumazet <eduma...@google.com>
Date:   Mon Jun 4 03:50:35 2012 +0000

    sock_diag: add SK_MEMINFO_BACKLOG
    
    Adding socket backlog len in INET_DIAG_SKMEMINFO is really useful to
    diagnose various TCP problems.
    
    Signed-off-by: Eric Dumazet <eduma...@google.com>
    Signed-off-by: David S. Miller <da...@davemloft.net>
{noformat}

So when running on older kernel, its SK_MEMINFO_VARS is larger than what it 
should be, therefore we failed.

The fix is obviously that libnl should use the kernel header directly rather 
than a copy. I am working on a patch now.

> Test RoutingTest.INETSockets fails on some machine
> --------------------------------------------------
>
>                 Key: MESOS-1967
>                 URL: https://issues.apache.org/jira/browse/MESOS-1967
>             Project: Mesos
>          Issue Type: Bug
>            Reporter: Jie Yu
>            Assignee: Chi Zhang
>
> {noformat}
> [ RUN      ] RoutingTest.INETSockets
> ../../../mesos/src/tests/routing_tests.cpp:238: Failure
> infos: Input data out of range
> ABORT: 
> (../../../mesos/3rdparty/libprocess/3rdparty/stout/include/stout/try.hpp:92): 
> Try::get() but state == ERROR: Input data out of range*** Aborted at 
> 1414000937 (unix time) try "date -d @1414000937" if you are using GNU date ***
> PC: @     0x7f2c2d509fc5 __GI_raise
> *** SIGABRT (@0x1b49000040b1) received by PID 16561 (TID 0x7f2c31031720) from 
> PID 16561; stack trace: ***
>     @     0x7f2c2f0d4ca0 (unknown)
>     @     0x7f2c2d509fc5 __GI_raise
>     @     0x7f2c2d50ba70 __GI_abort
>     @           0x4cf782 _Abort()
>     @           0x4cf7bc _Abort()
>     @           0x99459e RoutingTest_INETSockets_Test::TestBody()
>     @           0xa1c363 
> testing::internal::HandleExceptionsInMethodIfSupported<>()
>     @           0xa13617 testing::Test::Run()
>     @           0xa136be testing::TestInfo::Run()
>     @           0xa137c5 testing::TestCase::Run()
>     @           0xa13a68 testing::internal::UnitTestImpl::RunAllTests()
>     @           0xa13cf7 testing::UnitTest::Run()
>     @           0x49bc4b main
>     @     0x7f2c2d4f79f4 __libc_start_main
>     @           0x4aad79 (unknown)
> make[3]: *** [check-local] Aborted
> {noformat}



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

Reply via email to