Closed sebastinas closed 6 months ago
On GitLab by @jtojnar on Mar 12, 2023, 14:24
I have bisected this to https://gitlab.gnome.org/GNOME/glib/commit/45b5a6c1e56d5b73cc5ed798ef59a5601e56c170, the removal of slice allocator.
Similar crash happens with GEGL https://gitlab.gnome.org/GNOME/gegl/-/issues/320.
On GitLab by @jtojnar on Mar 12, 2023, 15:52
Opened an issue against GLib: https://gitlab.gnome.org/GNOME/glib/-/issues/2937
On GitLab by @stiglers-eponym on Mar 14, 2023, 13:22
Hi! This issue seems to be the reason why zathura crashes when trying to see the outline (or table of contents) of a PDF. For me this is a very relevant issue, and maybe others also experience this problem.
For users of Arch Linux: downgrading to GLib 2.74.6 helps.
On GitLab by @valoq on Mar 14, 2023, 13:49
As already reported, after upgrading to GLib 2.76 zathura crashes with Segmentation fault when the index is displayed.
There is no relevant output in the debug log but gdb shows:
Thread 1 "zathura" received signal SIGSEGV, Segmentation fault.
0x00007ffff7ea2f8b in girara_node_free () from /usr/lib/libgirara-gtk3.so.3
Possibly related: When compiling zathura with the new glib, I get the following warning:
[66/84] Compiling C object libzathura.a.p/zathura_utils.c.o
In file included from /usr/include/glib-2.0/glib/giochannel.h:36,
from /usr/include/glib-2.0/glib.h:56,
from /usr/include/gtk-3.0/gdk/gdkconfig.h:8,
from /usr/include/gtk-3.0/gdk/gdk.h:30,
from /usr/include/gtk-3.0/gtk/gtk.h:30,
from ../zathura/utils.c:8:
../zathura/utils.c: In function ‘zathura_get_version_string’:
/usr/include/glib-2.0/glib/gstring.h:72:5: warning: ignoring return value of ‘g_string_free_and_steal’ declared with attribute ‘warn_unused_result’ [-Wunused-result]
68 | (__builtin_constant_p (free_segment) ? \
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
69 | ((free_segment) ? \
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
70 | (g_string_free) ((str), (free_segment)) : \
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
71 | g_string_free_and_steal (str)) \
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
72 | : \
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
73 | (g_string_free) ((str), (free_segment)))
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../zathura/utils.c:225:3: note: in expansion of macro ‘g_string_free’
225 | g_string_free(string, FALSE);
| ^~~~~~~~~~~~~
On GitLab by @jtojnar on Mar 14, 2023, 13:58
Yes, the warning is also from GLib 2.76.0 bump: https://gitlab.gnome.org/GNOME/glib/-/commit/c3d07a625a407b56432f4b8c60295fd32ee1ee2b
It's not related to this issue, though.
On GitLab by @Antiz on Mar 14, 2023, 19:14
Hi, I'm (one of) the Arch Linux maintainer of the girara
package (and all of the zathura*
packages as well).
Thanks for fixing this issue!
We do have an open bug on Arch side regarding this issue . Is a new girara
release including this fix already planned?
It's basically just to decide if it's worth patching the current release on Arch side or just waiting for a new upstream release.
Thanks in advance :smile:
I can prepare a release next weekend.
On GitLab by @Antiz on Mar 14, 2023, 19:16
Sounds good to me. Thanks a lot!
On GitLab by @valoq on Mar 16, 2023, 11:48
mentioned in issue zathura#342
On GitLab by @valoq on Mar 16, 2023, 11:48
mentioned in issue zathura#343
mentioned in commit 6926cc1234853ccf3010a1e2625aafcf462ed60e
On GitLab by @kamsh on Mar 22, 2023, 16:40
mentioned in issue zathura#344
On GitLab by @jtojnar on Mar 12, 2023, 24:28
After updating to GLib 2.76.0, datastructures test crashes: