You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@mesos.apache.org by Jörg Schad <jo...@mesosphere.io> on 2015/05/28 07:04:08 UTC

Fwd: New Defects reported by Coverity Scan for Mesos

FYI

---------- Forwarded message ----------
From: <sc...@coverity.com>
Date: Thu, May 28, 2015 at 7:02 AM
Subject: New Defects reported by Coverity Scan for Mesos
To: joerg@mesosphere.io



Hi,

Please find the latest report on new defect(s) introduced to Mesos found
with Coverity Scan.

2 new defect(s) introduced to Mesos found with Coverity Scan.


New defect(s) Reported-by: Coverity Scan
Showing 2 of 2 defect(s)


** CID 1301208:    (PASS_BY_VALUE)
/var/jenkins/workspace/mesos-coverity/3rdparty/libprocess/3rdparty/stout/include/stout/some.hpp:
40 in Some<_Some<mesos::internal::Task>>(T1)()
/var/jenkins/workspace/mesos-coverity/3rdparty/libprocess/3rdparty/stout/include/stout/some.hpp:
40 in Some<mesos::internal::Task>(T1)()
/var/jenkins/workspace/mesos-coverity/3rdparty/libprocess/3rdparty/stout/include/stout/some.hpp:
40 in Some<_Some<proc::ProcessStatus>>(T1)()
/var/jenkins/workspace/mesos-coverity/3rdparty/libprocess/3rdparty/stout/include/stout/some.hpp:
40 in Some<mesos::internal::slave::state::TaskState>(T1)()
/var/jenkins/workspace/mesos-coverity/3rdparty/libprocess/3rdparty/stout/include/stout/some.hpp:
40 in Some<proc::ProcessStatus>(T1)()
/var/jenkins/workspace/mesos-coverity/3rdparty/libprocess/3rdparty/stout/include/stout/some.hpp:
40 in Some<mesos::internal::slave::state::RunState>(T1)()
/var/jenkins/workspace/mesos-coverity/3rdparty/libprocess/3rdparty/stout/include/stout/some.hpp:
40 in Some<mesos::internal::slave::state::ExecutorState>(T1)()
/var/jenkins/workspace/mesos-coverity/3rdparty/libprocess/3rdparty/stout/include/stout/some.hpp:
40 in Some<mesos::internal::slave::state::FrameworkState>(T1)()
/var/jenkins/workspace/mesos-coverity/3rdparty/libprocess/3rdparty/stout/include/stout/some.hpp:
40 in Some<mesos::internal::slave::state::SlaveState>(T1)()
/var/jenkins/workspace/mesos-coverity/3rdparty/libprocess/3rdparty/stout/include/stout/some.hpp:
40 in Some<mesos::ResourceStatistics>(T1)()
/var/jenkins/workspace/mesos-coverity/3rdparty/libprocess/3rdparty/stout/include/stout/some.hpp:
40 in Some<_Some<mesos::internal::slave::state::State>>(T1)()
/var/jenkins/workspace/mesos-coverity/3rdparty/libprocess/3rdparty/stout/include/stout/some.hpp:
40 in Some<mesos::internal::log::Storage::State>(T1)()
/var/jenkins/workspace/mesos-coverity/3rdparty/libprocess/3rdparty/stout/include/stout/some.hpp:
40 in Some<mesos::internal::slave::state::State>(T1)()


________________________________________________________________________________________________________
*** CID 1301208:    (PASS_BY_VALUE)
/var/jenkins/workspace/mesos-coverity/3rdparty/libprocess/3rdparty/stout/include/stout/some.hpp:
40 in Some<_Some<mesos::internal::Task>>(T1)()
34
35       const T t;
36     };
37
38
39     template <typename T>
>>>     CID 1301208:    (PASS_BY_VALUE)
>>>     Passing parameter t of type "_Some<mesos::internal::Task>" (size
144 bytes) by value.
40     _Some<T> Some(T t)
41     {
42       return _Some<T>(t);
43     }
44
/var/jenkins/workspace/mesos-coverity/3rdparty/libprocess/3rdparty/stout/include/stout/some.hpp:
40 in Some<mesos::internal::Task>(T1)()
34
35       const T t;
36     };
37
38
39     template <typename T>
>>>     CID 1301208:    (PASS_BY_VALUE)
>>>     Passing parameter t of type "mesos::internal::Task" (size 144
bytes) by value.
40     _Some<T> Some(T t)
41     {
42       return _Some<T>(t);
43     }
44
/var/jenkins/workspace/mesos-coverity/3rdparty/libprocess/3rdparty/stout/include/stout/some.hpp:
40 in Some<_Some<proc::ProcessStatus>>(T1)()
34
35       const T t;
36     };
37
38
39     template <typename T>
>>>     CID 1301208:    (PASS_BY_VALUE)
>>>     Passing parameter t of type "_Some<proc::ProcessStatus>" (size 256
bytes) by value.
40     _Some<T> Some(T t)
41     {
42       return _Some<T>(t);
43     }
44
/var/jenkins/workspace/mesos-coverity/3rdparty/libprocess/3rdparty/stout/include/stout/some.hpp:
40 in Some<mesos::internal::slave::state::TaskState>(T1)()
34
35       const T t;
36     };
37
38
39     template <typename T>
>>>     CID 1301208:    (PASS_BY_VALUE)
>>>     Passing parameter t of type
"mesos::internal::slave::state::TaskState" (size 264 bytes) by value.
40     _Some<T> Some(T t)
41     {
42       return _Some<T>(t);
43     }
44
/var/jenkins/workspace/mesos-coverity/3rdparty/libprocess/3rdparty/stout/include/stout/some.hpp:
40 in Some<proc::ProcessStatus>(T1)()
34
35       const T t;
36     };
37
38
39     template <typename T>
>>>     CID 1301208:    (PASS_BY_VALUE)
>>>     Passing parameter t of type "proc::ProcessStatus" (size 256 bytes)
by value.
40     _Some<T> Some(T t)
41     {
42       return _Some<T>(t);
43     }
44
/var/jenkins/workspace/mesos-coverity/3rdparty/libprocess/3rdparty/stout/include/stout/some.hpp:
40 in Some<mesos::internal::slave::state::RunState>(T1)()
34
35       const T t;
36     };
37
38
39     template <typename T>
>>>     CID 1301208:    (PASS_BY_VALUE)
>>>     Passing parameter t of type
"mesos::internal::slave::state::RunState" (size 136 bytes) by value.
40     _Some<T> Some(T t)
41     {
42       return _Some<T>(t);
43     }
44
/var/jenkins/workspace/mesos-coverity/3rdparty/libprocess/3rdparty/stout/include/stout/some.hpp:
40 in Some<mesos::internal::slave::state::ExecutorState>(T1)()
34
35       const T t;
36     };
37
38
39     template <typename T>
>>>     CID 1301208:    (PASS_BY_VALUE)
>>>     Passing parameter t of type
"mesos::internal::slave::state::ExecutorState" (size 248 bytes) by value.
40     _Some<T> Some(T t)
41     {
42       return _Some<T>(t);
43     }
44
/var/jenkins/workspace/mesos-coverity/3rdparty/libprocess/3rdparty/stout/include/stout/some.hpp:
40 in Some<mesos::internal::slave::state::FrameworkState>(T1)()
34
35       const T t;
36     };
37
38
39     template <typename T>
>>>     CID 1301208:    (PASS_BY_VALUE)
>>>     Passing parameter t of type
"mesos::internal::slave::state::FrameworkState" (size 248 bytes) by value.
40     _Some<T> Some(T t)
41     {
42       return _Some<T>(t);
43     }
44
/var/jenkins/workspace/mesos-coverity/3rdparty/libprocess/3rdparty/stout/include/stout/some.hpp:
40 in Some<mesos::internal::slave::state::SlaveState>(T1)()
34
35       const T t;
36     };
37
38
39     template <typename T>
>>>     CID 1301208:    (PASS_BY_VALUE)
>>>     Passing parameter t of type
"mesos::internal::slave::state::SlaveState" (size 192 bytes) by value.
40     _Some<T> Some(T t)
41     {
42       return _Some<T>(t);
43     }
44
/var/jenkins/workspace/mesos-coverity/3rdparty/libprocess/3rdparty/stout/include/stout/some.hpp:
40 in Some<mesos::ResourceStatistics>(T1)()
34
35       const T t;
36     };
37
38
39     template <typename T>
>>>     CID 1301208:    (PASS_BY_VALUE)
>>>     Passing parameter t of type "mesos::ResourceStatistics" (size 288
bytes) by value.
40     _Some<T> Some(T t)
41     {
42       return _Some<T>(t);
43     }
44
/var/jenkins/workspace/mesos-coverity/3rdparty/libprocess/3rdparty/stout/include/stout/some.hpp:
40 in Some<_Some<mesos::internal::slave::state::State>>(T1)()
34
35       const T t;
36     };
37
38
39     template <typename T>
>>>     CID 1301208:    (PASS_BY_VALUE)
>>>     Passing parameter t of type
"_Some<mesos::internal::slave::state::State>" (size 248 bytes) by value.
40     _Some<T> Some(T t)
41     {
42       return _Some<T>(t);
43     }
44
/var/jenkins/workspace/mesos-coverity/3rdparty/libprocess/3rdparty/stout/include/stout/some.hpp:
40 in Some<mesos::internal::log::Storage::State>(T1)()
34
35       const T t;
36     };
37
38
39     template <typename T>
>>>     CID 1301208:    (PASS_BY_VALUE)
>>>     Passing parameter t of type "mesos::internal::log::Storage::State"
(size 152 bytes) by value.
40     _Some<T> Some(T t)
41     {
42       return _Some<T>(t);
43     }
44
/var/jenkins/workspace/mesos-coverity/3rdparty/libprocess/3rdparty/stout/include/stout/some.hpp:
40 in Some<mesos::internal::slave::state::State>(T1)()
34
35       const T t;
36     };
37
38
39     template <typename T>
>>>     CID 1301208:    (PASS_BY_VALUE)
>>>     Passing parameter t of type "mesos::internal::slave::state::State"
(size 248 bytes) by value.
40     _Some<T> Some(T t)
41     {
42       return _Some<T>(t);
43     }
44

** CID 1301207:    (PASS_BY_VALUE)
/var/jenkins/workspace/mesos-coverity/3rdparty/libprocess/3rdparty/stout/include/stout/some.hpp:
33 in
_Some<_Some<mesos::internal::Task>>::_Some(_Some<mesos::internal::Task>)()
/var/jenkins/workspace/mesos-coverity/3rdparty/libprocess/3rdparty/stout/include/stout/some.hpp:
33 in _Some<mesos::internal::Task>::_Some(mesos::internal::Task)()
/var/jenkins/workspace/mesos-coverity/3rdparty/libprocess/3rdparty/stout/include/stout/some.hpp:
33 in _Some<_Some<proc::ProcessStatus>>::_Some(_Some<proc::ProcessStatus>)()
/var/jenkins/workspace/mesos-coverity/3rdparty/libprocess/3rdparty/stout/include/stout/some.hpp:
33 in
_Some<mesos::internal::slave::state::TaskState>::_Some(mesos::internal::slave::state::TaskState)()
/var/jenkins/workspace/mesos-coverity/3rdparty/libprocess/3rdparty/stout/include/stout/some.hpp:
33 in _Some<proc::ProcessStatus>::_Some(proc::ProcessStatus)()
/var/jenkins/workspace/mesos-coverity/3rdparty/libprocess/3rdparty/stout/include/stout/some.hpp:
33 in
_Some<mesos::internal::slave::state::RunState>::_Some(mesos::internal::slave::state::RunState)()
/var/jenkins/workspace/mesos-coverity/3rdparty/libprocess/3rdparty/stout/include/stout/some.hpp:
33 in
_Some<mesos::internal::slave::state::ExecutorState>::_Some(mesos::internal::slave::state::ExecutorState)()
/var/jenkins/workspace/mesos-coverity/3rdparty/libprocess/3rdparty/stout/include/stout/some.hpp:
33 in
_Some<mesos::internal::slave::state::FrameworkState>::_Some(mesos::internal::slave::state::FrameworkState)()
/var/jenkins/workspace/mesos-coverity/3rdparty/libprocess/3rdparty/stout/include/stout/some.hpp:
33 in
_Some<mesos::internal::slave::state::SlaveState>::_Some(mesos::internal::slave::state::SlaveState)()
/var/jenkins/workspace/mesos-coverity/3rdparty/libprocess/3rdparty/stout/include/stout/some.hpp:
33 in _Some<mesos::ResourceStatistics>::_Some(mesos::ResourceStatistics)()
/var/jenkins/workspace/mesos-coverity/3rdparty/libprocess/3rdparty/stout/include/stout/some.hpp:
33 in
_Some<_Some<mesos::internal::slave::state::State>>::_Some(_Some<mesos::internal::slave::state::State>)()
/var/jenkins/workspace/mesos-coverity/3rdparty/libprocess/3rdparty/stout/include/stout/some.hpp:
33 in
_Some<mesos::internal::slave::state::State>::_Some(mesos::internal::slave::state::State)()
/var/jenkins/workspace/mesos-coverity/3rdparty/libprocess/3rdparty/stout/include/stout/some.hpp:
33 in
_Some<mesos::internal::log::Storage::State>::_Some(mesos::internal::log::Storage::State)()


________________________________________________________________________________________________________
*** CID 1301207:    (PASS_BY_VALUE)
/var/jenkins/workspace/mesos-coverity/3rdparty/libprocess/3rdparty/stout/include/stout/some.hpp:
33 in
_Some<_Some<mesos::internal::Task>>::_Some(_Some<mesos::internal::Task>)()
27
28     // NOTE: We use an intermediate type, _Some, so that one doesn't need
29     // to explicitly define the template type when doing 'Some(value)'.
30     template <typename T>
31     struct _Some
32     {
>>>     CID 1301207:    (PASS_BY_VALUE)
>>>     Passing parameter _t of type "_Some<mesos::internal::Task>" (size
144 bytes) by value.
33       _Some(T _t) : t(_t) {}
34
35       const T t;
36     };
37
38
/var/jenkins/workspace/mesos-coverity/3rdparty/libprocess/3rdparty/stout/include/stout/some.hpp:
33 in _Some<mesos::internal::Task>::_Some(mesos::internal::Task)()
27
28     // NOTE: We use an intermediate type, _Some, so that one doesn't need
29     // to explicitly define the template type when doing 'Some(value)'.
30     template <typename T>
31     struct _Some
32     {
>>>     CID 1301207:    (PASS_BY_VALUE)
>>>     Passing parameter _t of type "mesos::internal::Task" (size 144
bytes) by value.
33       _Some(T _t) : t(_t) {}
34
35       const T t;
36     };
37
38
/var/jenkins/workspace/mesos-coverity/3rdparty/libprocess/3rdparty/stout/include/stout/some.hpp:
33 in _Some<_Some<proc::ProcessStatus>>::_Some(_Some<proc::ProcessStatus>)()
27
28     // NOTE: We use an intermediate type, _Some, so that one doesn't need
29     // to explicitly define the template type when doing 'Some(value)'.
30     template <typename T>
31     struct _Some
32     {
>>>     CID 1301207:    (PASS_BY_VALUE)
>>>     Passing parameter _t of type "_Some<proc::ProcessStatus>" (size 256
bytes) by value.
33       _Some(T _t) : t(_t) {}
34
35       const T t;
36     };
37
38
/var/jenkins/workspace/mesos-coverity/3rdparty/libprocess/3rdparty/stout/include/stout/some.hpp:
33 in
_Some<mesos::internal::slave::state::TaskState>::_Some(mesos::internal::slave::state::TaskState)()
27
28     // NOTE: We use an intermediate type, _Some, so that one doesn't need
29     // to explicitly define the template type when doing 'Some(value)'.
30     template <typename T>
31     struct _Some
32     {
>>>     CID 1301207:    (PASS_BY_VALUE)
>>>     Passing parameter _t of type
"mesos::internal::slave::state::TaskState" (size 264 bytes) by value.
33       _Some(T _t) : t(_t) {}
34
35       const T t;
36     };
37
38
/var/jenkins/workspace/mesos-coverity/3rdparty/libprocess/3rdparty/stout/include/stout/some.hpp:
33 in _Some<proc::ProcessStatus>::_Some(proc::ProcessStatus)()
27
28     // NOTE: We use an intermediate type, _Some, so that one doesn't need
29     // to explicitly define the template type when doing 'Some(value)'.
30     template <typename T>
31     struct _Some
32     {
>>>     CID 1301207:    (PASS_BY_VALUE)
>>>     Passing parameter _t of type "proc::ProcessStatus" (size 256 bytes)
by value.
33       _Some(T _t) : t(_t) {}
34
35       const T t;
36     };
37
38
/var/jenkins/workspace/mesos-coverity/3rdparty/libprocess/3rdparty/stout/include/stout/some.hpp:
33 in
_Some<mesos::internal::slave::state::RunState>::_Some(mesos::internal::slave::state::RunState)()
27
28     // NOTE: We use an intermediate type, _Some, so that one doesn't need
29     // to explicitly define the template type when doing 'Some(value)'.
30     template <typename T>
31     struct _Some
32     {
>>>     CID 1301207:    (PASS_BY_VALUE)
>>>     Passing parameter _t of type
"mesos::internal::slave::state::RunState" (size 136 bytes) by value.
33       _Some(T _t) : t(_t) {}
34
35       const T t;
36     };
37
38
/var/jenkins/workspace/mesos-coverity/3rdparty/libprocess/3rdparty/stout/include/stout/some.hpp:
33 in
_Some<mesos::internal::slave::state::ExecutorState>::_Some(mesos::internal::slave::state::ExecutorState)()
27
28     // NOTE: We use an intermediate type, _Some, so that one doesn't need
29     // to explicitly define the template type when doing 'Some(value)'.
30     template <typename T>
31     struct _Some
32     {
>>>     CID 1301207:    (PASS_BY_VALUE)
>>>     Passing parameter _t of type
"mesos::internal::slave::state::ExecutorState" (size 248 bytes) by value.
33       _Some(T _t) : t(_t) {}
34
35       const T t;
36     };
37
38
/var/jenkins/workspace/mesos-coverity/3rdparty/libprocess/3rdparty/stout/include/stout/some.hpp:
33 in
_Some<mesos::internal::slave::state::FrameworkState>::_Some(mesos::internal::slave::state::FrameworkState)()
27
28     // NOTE: We use an intermediate type, _Some, so that one doesn't need
29     // to explicitly define the template type when doing 'Some(value)'.
30     template <typename T>
31     struct _Some
32     {
>>>     CID 1301207:    (PASS_BY_VALUE)
>>>     Passing parameter _t of type
"mesos::internal::slave::state::FrameworkState" (size 248 bytes) by value.
33       _Some(T _t) : t(_t) {}
34
35       const T t;
36     };
37
38
/var/jenkins/workspace/mesos-coverity/3rdparty/libprocess/3rdparty/stout/include/stout/some.hpp:
33 in
_Some<mesos::internal::slave::state::SlaveState>::_Some(mesos::internal::slave::state::SlaveState)()
27
28     // NOTE: We use an intermediate type, _Some, so that one doesn't need
29     // to explicitly define the template type when doing 'Some(value)'.
30     template <typename T>
31     struct _Some
32     {
>>>     CID 1301207:    (PASS_BY_VALUE)
>>>     Passing parameter _t of type
"mesos::internal::slave::state::SlaveState" (size 192 bytes) by value.
33       _Some(T _t) : t(_t) {}
34
35       const T t;
36     };
37
38
/var/jenkins/workspace/mesos-coverity/3rdparty/libprocess/3rdparty/stout/include/stout/some.hpp:
33 in _Some<mesos::ResourceStatistics>::_Some(mesos::ResourceStatistics)()
27
28     // NOTE: We use an intermediate type, _Some, so that one doesn't need
29     // to explicitly define the template type when doing 'Some(value)'.
30     template <typename T>
31     struct _Some
32     {
>>>     CID 1301207:    (PASS_BY_VALUE)
>>>     Passing parameter _t of type "mesos::ResourceStatistics" (size 288
bytes) by value.
33       _Some(T _t) : t(_t) {}
34
35       const T t;
36     };
37
38
/var/jenkins/workspace/mesos-coverity/3rdparty/libprocess/3rdparty/stout/include/stout/some.hpp:
33 in
_Some<_Some<mesos::internal::slave::state::State>>::_Some(_Some<mesos::internal::slave::state::State>)()
27
28     // NOTE: We use an intermediate type, _Some, so that one doesn't need
29     // to explicitly define the template type when doing 'Some(value)'.
30     template <typename T>
31     struct _Some
32     {
>>>     CID 1301207:    (PASS_BY_VALUE)
>>>     Passing parameter _t of type
"_Some<mesos::internal::slave::state::State>" (size 248 bytes) by value.
33       _Some(T _t) : t(_t) {}
34
35       const T t;
36     };
37
38
/var/jenkins/workspace/mesos-coverity/3rdparty/libprocess/3rdparty/stout/include/stout/some.hpp:
33 in
_Some<mesos::internal::slave::state::State>::_Some(mesos::internal::slave::state::State)()
27
28     // NOTE: We use an intermediate type, _Some, so that one doesn't need
29     // to explicitly define the template type when doing 'Some(value)'.
30     template <typename T>
31     struct _Some
32     {
>>>     CID 1301207:    (PASS_BY_VALUE)
>>>     Passing parameter _t of type "mesos::internal::slave::state::State"
(size 248 bytes) by value.
33       _Some(T _t) : t(_t) {}
34
35       const T t;
36     };
37
38
/var/jenkins/workspace/mesos-coverity/3rdparty/libprocess/3rdparty/stout/include/stout/some.hpp:
33 in
_Some<mesos::internal::log::Storage::State>::_Some(mesos::internal::log::Storage::State)()
27
28     // NOTE: We use an intermediate type, _Some, so that one doesn't need
29     // to explicitly define the template type when doing 'Some(value)'.
30     template <typename T>
31     struct _Some
32     {
>>>     CID 1301207:    (PASS_BY_VALUE)
>>>     Passing parameter _t of type "mesos::internal::log::Storage::State"
(size 152 bytes) by value.
33       _Some(T _t) : t(_t) {}
34
35       const T t;
36     };
37
38


________________________________________________________________________________________________________
To view the defects in Coverity Scan visit,
https://scan.coverity.com/projects/711?tab=overview

To manage Coverity Scan email notifications for "joerg@mesosphere.io",
click
https://scan.coverity.com/subscriptions/edit?email=joerg%40mesosphere.io&token=1ab6db8bad56cccbe5aad54789808ce9
.