Comment 19 for bug 259219

Revision history for this message
Aaron Broehl (abroehl) wrote : Re: [Bug 259219] Re: Broken TLS support in libGL.so

i'm not sure what you need me to do. i'm just testing this out and learn something new.

thanks
  _____

From: Mauricio Pretto [mailto:<email address hidden>]
To: <email address hidden>
Sent: Fri, 11 Mar 2011 18:00:02 -0600
Subject: [Bug 259219] Re: Broken TLS support in libGL.so

running with the workaround command but I always get this output not
  sure if this is of any help.

  ----

  mauricio@koontz:~$ LD_PRELOAD=/usr/lib/libstdc++.so.6 software-center
  2011-03-11 20:58:32,897 - softwarecenter.fixme - WARNING - logs to the root logger: '('/usr/lib/pymodules/python2.7/dbus/proxies.py', 400, '_introspect_error_handler')'
  2011-03-11 20:58:32,897 - dbus.proxies - ERROR - Introspect error on :1.186:/com/ubuntu/Softwarecenter: dbus.exceptions.DBusException: org.freedesktop.DBus.Error.NoReply: Did not receive a reply. Possible causes include: the remote application did not send a reply, the message bus security policy blocked the reply, the reply timeout expired, or the network connection was broken.

  2011-03-11 20:58:57,933 - softwarecenter.fixme - WARNING - logs to the root logger: '('/usr/share/software-center/softwarecenter/db/database.py', 154, 'open')'
  2011-03-11 20:58:57,932 - root - WARNING - failed to add sca db Couldn't stat '/home/mauricio/.cache/software-center/software-center-agent.db' (No such file or directory)
  /usr/share/software-center/softwarecenter/app.py:1114: Warning: g_object_set_qdata: assertion `G_IS_OBJECT (object)' failed
    self.window_main.show_all()
  /usr/share/software-center/softwarecenter/SimpleGtkbuilderApp.py:50: Warning: g_object_set_qdata: assertion `G_IS_OBJECT (object)' failed
    gtk.main()
  2011-03-11 20:59:13,261 - softwarecenter.fixme - WARNING - logs to the root logger: '('/usr/share/software-center/softwarecenter/db/database.py', 154, 'open')'
  2011-03-11 20:59:13,261 - root - WARNING - failed to add sca db Couldn't stat '/home/mauricio/.cache/software-center/software-center-agent.db' (No such file or directory)
  2011-03-11 20:59:16,638 - softwarecenter.app - INFO - software-center-agent finished with status 1
  ----

  --
  You received this bug notification because you are a direct subscriber
  of a duplicate bug (733468).
  https://bugs.launchpad.net/bugs/259219

  Title:
    Broken TLS support in libGL.so

  Status in “mesa” package in Ubuntu:
    In Progress
  Status in “software-center” package in Ubuntu:
    Triaged
  Status in “mesa” source package in Natty:
    In Progress
  Status in “software-center” source package in Natty:
    Triaged

  Bug description:
    Binary package hint: libgl1-mesa-dri

    ---
    Software Center error description from apport is: software-center crashed with SIGSEGV in __cxa_allocate_exception()
    WORKAROUND for the software-center crash:

      Launch Software Center from the command line as:

         LD_PRELOAD=/usr/lib/libstdc++.so.6 software-center

    For more details about the software-center crash, please see bug 731724.
    ---

    The package libgl1-mesa-dri in Intrepid seems to have been compiled with the option --enable-glx-tls. This triggers a bug in src/glx/x11/glxcurrent.c :
    The TLS variable __glX_tls_Context is compiled with the TLS model initial-exec, which is only ment for executables. Used in shared libraries, it can break TLS usage in other shared libraries.
    One example is when libGL is linked beforce libstdc++ in another library, which is then loaded via dlopen(). In this case, the TLS variables in libstdc++ aren't properly initialized, and it will segfault when trying to allocate an exception.
    I think there are 2 possible solutions:
    1. Do not compile with --enabgle-glx-tls
    2. Patch mesa to remove the tls-model attribute. I assume this will eat up the performance gain of TLS, since initial-exec is meant as an optimisation for apps not using the GL over dlopen directly or indirectly.

    Policy information about my libGL package:
    libgl1-mesa-dri:
      Installiert: 7.1~rc3-1ubuntu4
      Kandidat: 7.1~rc3-1ubuntu4
      Versions-Tabelle:
     *** 7.1~rc3-1ubuntu4 0
            500 http://de.archive.ubuntu.com intrepid/main Packages
            100 /var/lib/dpkg/status

  To unsubscribe from this bug, go to:
  https://bugs.launchpad.net/ubuntu/+source/mesa/+bug/259219/+subscribe