[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#647896: regression (?): libc6: Broken thread local storage (TLS) initialization



Package: libc6
Version: 2.11.2-10
Severity: serious
Justification: Policy 10.2


Regarding the bug on this page: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=637239

It clearly states: "There is a bug with TLS in libc6, beginning with 2.12."

However, I seem to be having similar problems on Debian stable with 2.11:

	# dpkg --list | grep libc6
	ii  libc6                              2.11.2-10                    Embedded GNU C Library: Shared libraries
	ii  libc6-dev                          2.11.2-10                    Embedded GNU C Library: Development Libraries and Header Files
	ii  libc6-i686                         2.11.2-10                    Embedded GNU C Library: Shared libraries [i686 optimized]
	ii  libc6-xen                          2.11.2-10                    Embedded GNU C Library: Shared libraries [Xen version]

Running my website:

	# thin -R config-test.ru -p 4000 start
	WARNING: Nokogiri was built against LibXML version 2.7.7, but has dynamically loaded 2.7.8
	I, [2011-11-07T23:59:37.933309 #31293]  INFO -- : ** Utopia::Middleware::Content: Running in /srv/www/www.oriontransfer.co.nz/pages
	I, [2011-11-07T23:59:37.934007 #31293]  INFO -- : ** Utopia::Middleware::Static: Running in /srv/www/www.oriontransfer.co.nz/pages with 65 filetypes
	I, [2011-11-07T23:59:37.934237 #31293]  INFO -- : ** Utopia::Middleware::Controller: Running in /srv/www/www.oriontransfer.co.nz/pages
	I, [2011-11-07T23:59:37.935003 #31293]  INFO -- : ** Utopia::Middleware::Redirector: Running with 31 rules
	I, [2011-11-07T23:59:37.935236 #31293]  INFO -- : Updating index in background...
	/usr/lib/ruby/gems/1.8/gems/xapian-rack-1.2.3.3/lib/xapian/rack/search.rb:139: [BUG] Segmentation fault
	ruby 1.8.7 (2010-08-16 patchlevel 302) [i486-linux]
	
	Aborted

In GDB:

	# gdb env	
	GNU gdb (GDB) 7.0.1-debian
	Copyright (C) 2009 Free Software Foundation, Inc.
	License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
	This is free software: you are free to change and redistribute it.
	There is NO WARRANTY, to the extent permitted by law.  Type "show copying"
	and "show warranty" for details.
	This GDB was configured as "i486-linux-gnu".
	For bug reporting instructions, please see:
	<http://www.gnu.org/software/gdb/bugs/>...
	Reading symbols from /usr/bin/env...(no debugging symbols found)...done.
	(gdb) run thin -R config-test.ru -p 4000 start
	Starting program: /usr/bin/env thin -R config-test.ru -p 4000 start
	Executing new program: /usr/bin/ruby1.8
	[Thread debugging using libthread_db enabled]
	WARNING: Nokogiri was built against LibXML version 2.7.7, but has dynamically loaded 2.7.8
	I, [2011-11-08T00:00:16.576598 #31311]  INFO -- : ** Utopia::Middleware::Content: Running in /srv/www/www.oriontransfer.co.nz/pages
	I, [2011-11-08T00:00:16.577361 #31311]  INFO -- : ** Utopia::Middleware::Static: Running in /srv/www/www.oriontransfer.co.nz/pages with 65 filetypes
	I, [2011-11-08T00:00:16.577603 #31311]  INFO -- : ** Utopia::Middleware::Controller: Running in /srv/www/www.oriontransfer.co.nz/pages
	I, [2011-11-08T00:00:16.582338 #31311]  INFO -- : ** Utopia::Middleware::Redirector: Running with 31 rules
	[New Thread 0xb648bb70 (LWP 31314)]
	I, [2011-11-08T00:00:16.583160 #31311]  INFO -- : Updating index in background...
	
	Program received signal SIGSEGV, Segmentation fault.
	0xb6ade301 in ?? () from /lib/libuuid.so.1
	(gdb) bt
	#0  0xb6ade301 in ?? () from /lib/libuuid.so.1
	#1  0xb6adf22f in uuid_generate () from /lib/libuuid.so.1
	#2  0xb6783cb2 in ChertVersion::create (this=0x83f35a4) at backends/chert/chert_version.cc:73
	... snip ...

After a bit of research, I found that this error is tied back to some issues in libc6, as per the above bug report. I also found on the Gentoo mailing list that the bug has existed since 2005: https://bugs.gentoo.org/show_bug.cgi?id=353224 - Starting from comment 14.

-- System Information:
Debian Release: 6.0.3
  APT prefers stable-updates
  APT policy: (500, 'stable-updates'), (500, 'stable')
Architecture: i386 (i686)

Kernel: Linux 2.6.26-2-xen-686 (SMP w/1 CPU core)
Locale: LANG=en_NZ.UTF-8, LC_CTYPE=en_NZ.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash

Versions of packages libc6 depends on:
ii  libc-bin                      2.11.2-10  Embedded GNU C Library: Binaries
ii  libgcc1                       1:4.4.5-8  GCC support library

Versions of packages libc6 recommends:
ii  libc6-i686                    2.11.2-10  Embedded GNU C Library: Shared lib

Versions of packages libc6 suggests:
ii  debconf [debconf-2.0]         1.5.36.1   Debian configuration management sy
pn  glibc-doc                     <none>     (no description available)
ii  locales                       2.11.2-10  Embedded GNU C Library: National L

-- debconf information:
  glibc/upgrade: true
* glibc/restart-services: ssh openbsd-inetd mysql exim4 cron
  glibc/disable-screensaver:
  glibc/restart-failed:



Reply to: