From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 20871 invoked by alias); 5 Sep 2012 18:26:18 -0000 Received: (qmail 20819 invoked by uid 22791); 5 Sep 2012 18:26:17 -0000 X-SWARE-Spam-Status: No, hits=-3.8 required=5.0 tests=ALL_TRUSTED,AWL,BAYES_00,KHOP_THREADED X-Spam-Check-By: sourceware.org Received: from localhost (HELO sourceware.org) (127.0.0.1) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Wed, 05 Sep 2012 18:25:57 +0000 From: "hjl.tools at gmail dot com" To: glibc-bugs@sources.redhat.com Subject: [Bug libc/14545] Many tests fail when linking statically Date: Wed, 05 Sep 2012 18:26: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: hjl.tools at gmail 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-09/txt/msg00041.txt.bz2 http://sourceware.org/bugzilla/show_bug.cgi?id=14545 --- Comment #1 from H.J. Lu 2012-09-05 18:25:56 UTC --- It crashes at (gdb) bt #0 malloc_printerr (action=3, str=0x4a3079 "free(): invalid pointer", ptr=0x6da000 ) at malloc.c:4950 #1 0x0000000000444c01 in _dl_deallocate_tls (tcb=tcb@entry=0x6dd880, dealloc_tcb=dealloc_tcb@entry=false) at dl-tls.c:483 #2 0x0000000000403110 in __deallocate_stack (pd=pd@entry=0x6dd880) at allocatestack.c:749 #3 0x0000000000403ea9 in __free_tcb (pd=pd@entry=0x6dd880) at pthread_create.c:224 #4 0x0000000000405178 in pthread_join (threadid=threadid@entry=7198848, thread_return=thread_return@entry=0x7ffff7ffcd58) at pthread_join.c:113 #5 0x00000000004027cd in tf (arg=0x6dd880) at tst-cancel21.c:133 #6 0x0000000000403f8f in start_thread (arg=0x7ffff7ffd700) at pthread_create.c:308 #7 0x0000000000443c69 in clone () (gdb) p dtv $2 = (dtv_t *) 0x6da010 (gdb) Since dtv comes from, static dtv_t static_dtv[2 + TLS_SLOTINFO_SURPLUS]; in csu/libc-tls.c, /* The array starts with dtv[-1]. */ #ifdef SHARED if (dtv != GL(dl_initial_dtv)) #endif free (dtv - 1); is incorrect. -- 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.