[Bug 1914044] Re: [SRU] gstreamer fails with "cannot allocate memory in static TLS block" error on aarch64

Michael Hudson-Doyle 1914044 at bugs.launchpad.net
Tue Oct 19 03:03:10 UTC 2021


So a side question here is, why are libraries built with the initial
exec tls model on arm64? Building with tlsdesc would have almost the
same performance in the usual case aiui.

Another question, how come the issues reported as regressions caused by
this did not occur as people upgraded from focal to groovy?

-- 
You received this bug notification because you are a member of Ubuntu
Foundations Bugs, which is subscribed to glibc in Ubuntu.
https://bugs.launchpad.net/bugs/1914044

Title:
  [SRU] gstreamer fails with "cannot allocate memory in static TLS
  block" error on aarch64

Status in glibc package in Ubuntu:
  Fix Released
Status in glibc source package in Focal:
  Fix Committed
Status in glibc package in Debian:
  Fix Released

Bug description:
  [Impact]

  gstreamer cannot load some plugins on 20.04, aarch64 due to TLS memory
  exhaustion, so these plugins cannot be used. See LP: #1846837 and LP:
  #1914030.

  This is solved apparently on glibc 2.32:
  https://sourceware.org/bugzilla/show_bug.cgi?id=25051
  by patch
  https://sourceware.org/git/gitweb.cgi?p=glibc.git;h=ffb17e7ba3a5ba9632cee97330b325072fbe41dd

  [Test Case]

  Running totem-video-thumbnailer shows TLS error in the version not
  fixed, generates thumbnail with the fixed version:

  $ sudo apt -y install totem gstreamer1.0-libav
  ...
  $ wget https://ia800201.us.archive.org/12/items/BigBuckBunny_328/BigBuckBunny_512kb.mp4
  ...
  $ totem-video-thumbnailer BigBuckBunny_512kb.mp4 thumbnail.png
  ...
  (totem-video-thumbnailer:3602): GStreamer-WARNING **: 18:36:10.466: Failed to load plugin '/usr/lib/aarch64-linux-gnu/gstreamer-1.0/libgstlibav.so': /lib/aarch64-linux-gnu/libgomp.so.1: cannot allocate memory in static TLS block
  ...

  [Where problems could occur]

  This is delicate code in glibc with quite regression potential. Said
  this, the code is in the next major release (2.32, while focal has
  2.31), which has been running groovy for a while.

  Also, apparently there is a 2.31 patch for groovy, before it moved to
  2.32: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=964141

  Regressions in 2.31-0ubuntu9.3 have been observed in LP: #1926379 and
  LP: #1926355.

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/glibc/+bug/1914044/+subscriptions




More information about the foundations-bugs mailing list