From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 16780 invoked by alias); 24 Mar 2012 20:46:21 -0000 Received: (qmail 16772 invoked by uid 22791); 24 Mar 2012 20:46:20 -0000 X-SWARE-Spam-Status: No, hits=-2.8 required=5.0 tests=ALL_TRUSTED,AWL,BAYES_00,TW_VF X-Spam-Check-By: sourceware.org Received: from localhost (HELO sourceware.org) (127.0.0.1) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Sat, 24 Mar 2012 20:46:09 +0000 From: "ppluzhnikov at google dot com" To: glibc-bugs@sources.redhat.com Subject: [Bug libc/11787] Program with large TLS segment fails aio_write Date: Sat, 24 Mar 2012 20:57:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: glibc X-Bugzilla-Component: libc X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: ppluzhnikov at google dot com X-Bugzilla-Status: NEW X-Bugzilla-Priority: P2 X-Bugzilla-Assigned-To: unassigned at sourceware dot org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: X-Bugzilla-URL: http://sourceware.org/bugzilla/ Auto-Submitted: auto-generated Content-Type: text/plain; charset="UTF-8" MIME-Version: 1.0 Mailing-List: contact glibc-bugs-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Post: List-Help: , Sender: glibc-bugs-owner@sourceware.org X-SW-Source: 2012-03/txt/msg00315.txt.bz2 http://sourceware.org/bugzilla/show_bug.cgi?id=11787 --- Comment #18 from Paul Pluzhnikov 2012-03-24 20:45:11 UTC --- On my desktop (based on Ubuntu Lucid), in /usr/bin, there are 430 executables that link to libpthread.so, but only 4 of them have TLS: lftp luatex mono Xvfb Of these, the largest TLS MemSize is in mono: readelf -l mono | grep -A1 TLS TLS 0x00000000002685b0 0x00000000008685b0 0x00000000008685b0 0x0000000000000000 0x0000000000000048 R 8 a whopping 72 bytes. The other three have 16-byte TLS. This isn't of course the whole story, as shared libraries to contribute to static tls size as well. In /lib, the following 4 libraries have TLS segment: libc-2.11.1.so libcom_err.so.2.1 libmemusage.so libselinux.so.1 libuuid.so.1.3.0 The largest one is in libselinux.so.1 at 160 bytes: TLS 0x000000000001bd50 0x000000000021bd50 0x000000000021bd50 0x0000000000000000 0x00000000000000a0 R 8 followed by glibc itself, at 104 bytes: TLS 0x0000000000179738 0x0000000000379738 0x0000000000379738 0x0000000000000010 0x0000000000000068 R 8 In /usr/lib, the following have TLS: libcap-ng.so.0.0.0 libdw-0.143.so libelf-0.143.so libexempi.so.3.2.1 libgomp.so.1.0.0 libpulsecore-0.9.21.so libstdc++.so.6.0.13 The largest one is libcap-ng.so.0.0.0 at 48 bytes: TLS 0x0000000000003db4 0x0000000000203db4 0x0000000000203db4 0x0000000000000030 0x0000000000000030 R 4 I rest my case ;-) -- Configure bugmail: http://sourceware.org/bugzilla/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.