While investigating a hang in the lttng-live source component when
running with glib 2.22.5, we have found that this version had a bug in
g_ptr_array_remove_index_fast. When removing the last element of the
array, the free func is not called.
It was fixed in the following commit:
https://github.com/GNOME/glib/commit/
5fffa39b6ae8f8faf1036fbf07de02ffe84ef099
The first major release where this is fixed is 2.26. We went through
the platforms we need to support, and the oldest glib version we need to
support is 2.28.6, on Solaris 11. Therefore, fix the issue with
lttng-live by bumping the required glib version to 2.28.
Change-Id: Ib56ac221dfc5ecf45eb62b837fe0b6f54032cf31
Signed-off-by: Simon Marchi <simon.marchi@efficios.com>
Reviewed-on: https://review.lttng.org/c/babeltrace/+/2210
Reviewed-by: Michael Jeanson <mjeanson@efficios.com>
Reviewed-by: Jonathan Rajotte Julien <jonathan.rajotte-julien@efficios.com>
Tested-by: jenkins <jenkins@lttng.org>
* A C library (for example,
https://www.gnu.org/software/libc/[GNU{nbsp}C Library],
https://www.musl-libc.org/[musl libc])
- * https://developer.gnome.org/glib/[GLib]{nbsp}≥{nbsp}2.22
+ * https://developer.gnome.org/glib/[GLib]{nbsp}≥{nbsp}2.28
(Debian/Ubuntu: `libglib2.0-dev`; Fedora: `glib2-devel`)
_**If you need the `bt2` Python bindings**_::
* A C library (for example,
https://www.gnu.org/software/libc/[GNU{nbsp}C Library],
https://www.musl-libc.org/[musl libc])
- * https://developer.gnome.org/glib/[GLib]{nbsp}≥{nbsp}2.22
+ * https://developer.gnome.org/glib/[GLib]{nbsp}≥{nbsp}2.28
(Debian/Ubuntu: `libglib2.0-0`; Fedora: `glib2`)
_**If you need the `bt2` Python bindings**_::
# Check what libraries are required on this platform to link sockets programs.
AX_LIB_SOCKET_NSL
-# Check for glib >= 2.22 with gmodule support
-AM_PATH_GLIB_2_0([2.22.0], [],
- AC_MSG_ERROR([glib >= 2.22 is required - download it from ftp://ftp.gtk.org/pub/gtk]),
+# Check for glib >= 2.28 with gmodule support
+AM_PATH_GLIB_2_0([2.28.0], [],
+ AC_MSG_ERROR([glib >= 2.28 is required - download it from ftp://ftp.gtk.org/pub/gtk]),
[gmodule-no-export]
)