When creating a channel with default attributes, the "template" containing the default attributes is never free'd. Modify channel_new_default_attr to return a RAII wrapper from the sessiond's liblttng-ctl memory management wrappers. Cha...Jérémie Galarneau
The caller of poptGetOptArg() assumes the ownership of the returned string. As such, a unique_ptr is used to manage the lifetime of the option arguments used in lttng-enable-channel. Change-Id: Ib73e9548b3166df579904c2a82fe3930918e8066 ...Jérémie Galarneau
Observed issue ============== When running kernel tracing tests (such as `tests/regression/tools/clear/test_kernel`) with Babeltrace 2.0, the tests fail to parse traces. # ./tests/regression/tools/clear/test_kernel 1..839 #...Jérémie Galarneau
Observed issue ============== When building with -D_GLIBCXX_DEBUG, the build fails with: In file included from bt2_plugins/event_name/event_name.cpp:8: In file included from bt2_plugins/event_name/../utils.hpp:11: In file include...Jérémie Galarneau
Observed issue ============== On 32-bit ARM, a crash due to SIGBUS is observed during the tests/regression/ust/blocking/test_blocking test. The `lttng` client is killed when accessing the memory_usage field of a lttng_data_stream_info:...Jérémie Galarneau
On armhf, the test output log on the CI shows strange test durations: duration_ms: -622153596000.000000 The culprit is the `clock` application which uses an inadequate format specifier now that Debian 13 uses 64-bit time (even on 32-b...Jérémie Galarneau
Coverity reported CHECKED_RETURN (CID 1635265) indicating that mi_lttng_writer_command_close() was being called without checking its return value, whereas it is checked in 25 out of 26 other call sites. This fix adds a check for the ret...Jérémie Galarneau
Coverity reports INVALIDATE_ITERATOR (CID 1635269) indicating that an iterator from std::unordered_map::find() was being dereferenced without checking if it was valid (i.e., not equal to end()). In practice this can't happen since the d...Jérémie Galarneau
Coverity reported DIVIDE_BY_ZERO (CID 1635268) indicating that the logical_size variable could be zero when calculating the usage ratio, leading to undefined behavior. This isn't a reachable condition as far as I can tell since buffers ...Jérémie Galarneau
Coverity reported several UNCAUGHT_EXCEPT warnings (CID 1635270, 1635271, 1635264, 1635267) indicating that exceptions could be thrown from the noexcept _run() method. Additionally, CID 1635263 reported that the constructor marked noexce...Jérémie Galarneau