Coverity warning: sessiond: uncaught exception in main
authorJérémie Galarneau <jeremie.galarneau@efficios.com>
Thu, 13 Apr 2023 18:34:31 +0000 (14:34 -0400)
committerJérémie Galarneau <jeremie.galarneau@efficios.com>
Tue, 18 Apr 2023 14:37:00 +0000 (10:37 -0400)
commit64f8e4936e6d54cff9c1f6d642a1b6745b7984d9
treeabb72d7347e4264368c2ceae794d6dcc2cd5a71e
parent003f455dab0204dd3f066ecdbea0470035f8181f
Coverity warning: sessiond: uncaught exception in main

Coverity reports:
1508778 Uncaught exception
If the exception is ever thrown, the program will crash.

In main: A C++ exception is thrown but never caught (CWE-248)

In particular, Coverity reports that pthread_mutex_lock can error-out,
which would cause an lttng::posix_error exception to be thrown.

This isn't particularly likely to happen, but it is nonetheless
preferable to catch exceptions at the top-level and log them before
exiting.

Change-Id: I4f7a52db3c9cd19764e7d12fd62afa60af99dabd
Reported-by: Coverity Scan
Signed-off-by: Jérémie Galarneau <jeremie.galarneau@efficios.com>
src/bin/lttng-sessiond/main.cpp
This page took 0.025562 seconds and 4 git commands to generate.