<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "https://bugzilla.yoctoproject.org/page.cgi?id=bugzilla.dtd">

<bugzilla version="5.0.6"
          urlbase="https://bugzilla.yoctoproject.org/"
          
          maintainer="it-coreprojects-helpdesk@linuxfoundation.org"
>

    <bug>
          <bug_id>9066</bug_id>
          
          <creation_ts>2016-02-05 10:57:06 +0000</creation_ts>
          <short_desc>glibc: Increase nr of static TLS slots</short_desc>
          <delta_ts>2016-02-10 09:50:54 +0000</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>7</classification_id>
          <classification>Build System, Metadata &amp; Runtime</classification>
          <product>OE-Core</product>
          <component>core</component>
          <version>unspecified</version>
          <rep_platform>x86</rep_platform>
          <op_sys>Multiple</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>OBSOLETE</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>Undecided</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Alexander Larsson">alexl</reporter>
          <assigned_to name="Khem Raj">raj.khem</assigned_to>
          <cc>meta.mr.watcher</cc>
    
    <cc>meta.watcher</cc>
    
    <cc>ross.burton</cc>
          
          
          <cf_os>---</cf_os>
          <cf_regression_type>---</cf_regression_type>
          
          <cf_docchange>No (bug/feature does not impact docs)</cf_docchange>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>58632</commentid>
    <comment_count>0</comment_count>
    <who name="Alexander Larsson">alexl</who>
    <bug_when>2016-02-05 10:57:06 +0000</bug_when>
    <thetext>This patch bumps the nr of static TLS slot from 14 to 32:

http://cgit.freedesktop.org/xdg-app/freedesktop-sdk-base/tree/meta-freedesktop/recipes-core/glibc/glibc/glibc-static-tls.patch

This is taken from fedora, and was added by Carlos O&apos;Donell, who is an upstream glibc maintainer.

Without this you can run into issues where multiple libraries using static TLS slots end up being used in the same process, causing linker errors killing the app. In particular, both X, mesa and python use these, so that combination fail.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>58647</commentid>
    <comment_count>1</comment_count>
    <who name="Khem Raj">raj.khem</who>
    <bug_when>2016-02-05 14:42:46 +0000</bug_when>
    <thetext>This patch is ok for bringing in. What is a good way for reproducing the errror ?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>58648</commentid>
    <comment_count>2</comment_count>
    <who name="Ross Burton">ross.burton</who>
    <bug_when>2016-02-05 14:45:18 +0000</bug_when>
    <thetext>I was talking to Alex earlier, their environment was Python applications using GL with specific Mesa drivers.  Might be tricky to replicate, but xdg-app has been using it.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>58649</commentid>
    <comment_count>3</comment_count>
    <who name="Khem Raj">raj.khem</who>
    <bug_when>2016-02-05 15:00:15 +0000</bug_when>
    <thetext>I dont see this patch being applied in fedora</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>58657</commentid>
    <comment_count>4</comment_count>
    <who name="Alexander Larsson">alexl</who>
    <bug_when>2016-02-05 16:08:16 +0000</bug_when>
    <thetext>Here is the original fedora bug:
https://bugzilla.redhat.com/show_bug.cgi?id=1124987

But it seems to later have been removed:
http://pkgs.fedoraproject.org/cgit/rpms/glibc.git/commit/glibc-rh1124987.patch?id=1c7c72382356644ba3aff8ad161f67e77db10e75</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>58658</commentid>
    <comment_count>5</comment_count>
    <who name="Alexander Larsson">alexl</who>
    <bug_when>2016-02-05 16:08:50 +0000</bug_when>
    <thetext>Maybe this is not needed with later versions of glibc?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>58659</commentid>
    <comment_count>6</comment_count>
    <who name="Khem Raj">raj.khem</who>
    <bug_when>2016-02-05 16:11:12 +0000</bug_when>
    <thetext>I wonder why it wouldnt be needed. on the other hand, it has resource impact since now double the space will be reserved for every thread.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>58815</commentid>
    <comment_count>7</comment_count>
    <who name="Alexander Larsson">alexl</who>
    <bug_when>2016-02-10 09:50:54 +0000</bug_when>
    <thetext>Apparently this change drops the static TLS limit:

https://sourceware.org/git/?p=glibc.git;a=commitdiff;h=f8aeae347377f3dfa8cbadde057adf1827fb1d44;hp=b97eb2bdb1ed72982a7821c3078be591051cef59

This is in the glibc 2.22 release, so this patch should not be needed anymore.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>