distributions.lists.linux.dev archive mirror
 help / color / mirror / Atom feed
* Breakage with glib-2.76.0 (exposes bugs in buggy packages)
@ 2023-03-17 14:00 Sam James
  2023-03-17 14:29 ` Sam James
  0 siblings, 1 reply; 2+ messages in thread
From: Sam James @ 2023-03-17 14:00 UTC (permalink / raw)
  To: distributions

[-- Attachment #1: Type: text/plain, Size: 1098 bytes --]

Hi folks,

glib-2.76 switches from using its own 'slice' allocator to using
the system malloc instead.

This ends up exposing various memory safety bugs in consumers
of glib, including some XFCE software.

So far:
- openbox (https://bugzilla.icculus.org/show_bug.cgi?id=6669)
- xfce4-session (https://gitlab.xfce.org/xfce/xfce4-session/-/issues/166) 
- xfce4-screensaver (https://gitlab.xfce.org/apps/xfce4-screensaver/-/issues/119)
- thunar (https://gitlab.xfce.org/xfce/thunar/-/issues/1063)
- gegl (https://gitlab.gnome.org/GNOME/gegl/-/issues/320)
- girara (https://git.pwmt.org/pwmt/girara/-/issues/17)
- tint2 (not yet reported upstream, https://bugs.gentoo.org/901775)

See also:
-
https://bugs.gentoo.org/showdependencytree.cgi?id=901805&hide_resolved=0
- https://gitlab.gnome.org/GNOME/glib/-/issues/2937
- https://gitlab.gnome.org/GNOME/glib/-/issues/2941

You can try see these issues with older glib by using Valgrind (which
makes glib on older versions disable the slice allocator) or ASAN.

I anticipate there'll be quite a few more of these.

best,
sam

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 377 bytes --]

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: Breakage with glib-2.76.0 (exposes bugs in buggy packages)
  2023-03-17 14:00 Breakage with glib-2.76.0 (exposes bugs in buggy packages) Sam James
@ 2023-03-17 14:29 ` Sam James
  0 siblings, 0 replies; 2+ messages in thread
From: Sam James @ 2023-03-17 14:29 UTC (permalink / raw)
  To: distributions

[-- Attachment #1: Type: text/plain, Size: 1415 bytes --]


Sam James <sam@gentoo.org> writes:

> [[PGP Signed Part:Undecided]]
> Hi folks,
>
> glib-2.76 switches from using its own 'slice' allocator to using
> the system malloc instead.
>
> This ends up exposing various memory safety bugs in consumers
> of glib, including some XFCE software.
>
> So far:
> - openbox (https://bugzilla.icculus.org/show_bug.cgi?id=6669)
> - xfce4-session (https://gitlab.xfce.org/xfce/xfce4-session/-/issues/166) 
> - xfce4-screensaver (https://gitlab.xfce.org/apps/xfce4-screensaver/-/issues/119)
> - thunar (https://gitlab.xfce.org/xfce/thunar/-/issues/1063)
> - gegl (https://gitlab.gnome.org/GNOME/gegl/-/issues/320)
> - girara (https://git.pwmt.org/pwmt/girara/-/issues/17)
> - tint2 (not yet reported upstream, https://bugs.gentoo.org/901775)
>
> See also:
> -
> https://bugs.gentoo.org/showdependencytree.cgi?id=901805&hide_resolved=0
> - https://gitlab.gnome.org/GNOME/glib/-/issues/2937
> - https://gitlab.gnome.org/GNOME/glib/-/issues/2941
>
> You can try see these issues with older glib by using Valgrind (which
> makes glib on older versions disable the slice allocator) or ASAN.

To be explicit, you can do this with <glib-2.76:
```
$ export G_SLICE=always-malloc
$ some-application
```

Or just valgrind in the usual way, etc.

> I anticipate there'll be quite a few more of these.
>
> best,
> sam
>
> [[End of PGP Signed Part]]


[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 377 bytes --]

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2023-03-17 14:30 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-03-17 14:00 Breakage with glib-2.76.0 (exposes bugs in buggy packages) Sam James
2023-03-17 14:29 ` Sam James

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).