You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@mesos.apache.org by "Niklas Quarfot Nielsen (JIRA)" <ji...@apache.org> on 2014/05/13 17:39:15 UTC
[jira] [Created] (MESOS-1356) Uncaught exceptions
Niklas Quarfot Nielsen created MESOS-1356:
---------------------------------------------
Summary: Uncaught exceptions
Key: MESOS-1356
URL: https://issues.apache.org/jira/browse/MESOS-1356
Project: Mesos
Issue Type: Technical task
Reporter: Niklas Quarfot Nielsen
We usually do _not_ use exceptions in Mesos, but some libraries may and we should handle them and perhaps convert them into Try<>/Error.
________________________________________________________________________________________________________
*** CID 1213893: Uncaught exception (UNCAUGHT_EXCEPT)
/src/slave/containerizer/linux_launcher.cpp: 148 in mesos::internal::slave::_childMain(const std::tr1::function<int ()> &, int *)()
142 return (*func)();
143 }
144
145
146 // Helper that creates a new session then blocks on reading the pipe before
147 // calling the supplied function.
>>> CID 1213893: Uncaught exception (UNCAUGHT_EXCEPT)
>>> In function "_childMain" an exception of type "std::tr1::bad_function_call" is thrown and never caught.
148 static int _childMain(
149 const lambda::function<int()>& childFunction,
150 int pipes[2])
151 {
152 // In child.
153 os::close(pipes[1]);
________________________________________________________________________________________________________
*** CID 1213894: Uncaught exception (UNCAUGHT_EXCEPT)
/src/slave/containerizer/linux_launcher.cpp: 137 in mesos::internal::slave::childMain(void *)()
131
132 return Nothing();
133 }
134
135
136 // Helper for clone() which expects an int(void*).
>>> CID 1213894: Uncaught exception (UNCAUGHT_EXCEPT)
>>> In function "childMain" an exception of type "std::tr1::bad_function_call" is thrown and never caught.
137 static int childMain(void* child)
138 {
139 const lambda::function<int()>* func =
140 static_cast<const lambda::function<int()>*> (child);
141
142 return (*func)();
________________________________________________________________________________________________________
*** CID 1213895: Uncaught exception (UNCAUGHT_EXCEPT)
/src/usage/main.cpp: 72 in main()
66 << endl
67 << "Supported options:" << endl
68 << flags.usage();
69 }
70
71
>>> CID 1213895: Uncaught exception (UNCAUGHT_EXCEPT)
>>> In function "main" an exception of type "google::protobuf::FatalException" is thrown and never caught.
72 int main(int argc, char** argv)
73 {
74 GOOGLE_PROTOBUF_VERIFY_VERSION;
75
76 Flags flags;
77
/src/usage/main.cpp: 72 in main()
66 << endl
67 << "Supported options:" << endl
68 << flags.usage();
69 }
70
71
>>> CID 1213895: Uncaught exception (UNCAUGHT_EXCEPT)
>>> In function "main" an exception of type "google::protobuf::FatalException" is thrown and never caught.
72 int main(int argc, char** argv)
73 {
74 GOOGLE_PROTOBUF_VERIFY_VERSION;
75
76 Flags flags;
77
/src/usage/main.cpp: 72 in main()
66 << endl
67 << "Supported options:" << endl
68 << flags.usage();
69 }
70
71
>>> CID 1213895: Uncaught exception (UNCAUGHT_EXCEPT)
>>> In function "main" an exception of type "google::protobuf::FatalException" is thrown and never caught.
72 int main(int argc, char** argv)
73 {
74 GOOGLE_PROTOBUF_VERIFY_VERSION;
75
76 Flags flags;
77
________________________________________________________________________________________________________
*** CID 1213896: Uncaught exception (UNCAUGHT_EXCEPT)
/src/launcher/executor.cpp: 423 in main()
417 };
418
419 } // namespace internal {
420 } // namespace mesos {
421
422
>>> CID 1213896: Uncaught exception (UNCAUGHT_EXCEPT)
>>> In function "main" an exception of type "std::tr1::bad_function_call" is thrown and never caught.
423 int main(int argc, char** argv)
424 {
425 mesos::internal::CommandExecutor executor;
426 mesos::MesosExecutorDriver driver(&executor);
427 return driver.run() == mesos::DRIVER_STOPPED ? 0 : 1;
--
This message was sent by Atlassian JIRA
(v6.2#6252)