Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S964871AbVLISto (ORCPT ); Fri, 9 Dec 2005 13:49:44 -0500 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S932515AbVLISto (ORCPT ); Fri, 9 Dec 2005 13:49:44 -0500 Received: from mail3.aventail.com ([64.94.142.143]:43793 "HELO mail3.aventail.com") by vger.kernel.org with SMTP id S932513AbVLIStn (ORCPT ); Fri, 9 Dec 2005 13:49:43 -0500 Message-ID: <4399D1B0.8030906@aventail.com> Date: Fri, 09 Dec 2005 10:49:20 -0800 From: Steve Work User-Agent: Mozilla Thunderbird 1.0.6 (Windows/20050716) X-Accept-Language: en-us, en MIME-Version: 1.0 To: linux-kernel@vger.kernel.org Subject: [REPOST] Multi-thread corefiles broken since April Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 2581 Lines: 70 Q: When did *all* multi-thread userspace coredumps break? A: 2.6.12-rc3, specifically April 16; and they're still broken (really!) Config does not appear to matter. Not a race: highly reproduceable, see below. -------- Original Message -------- Subject: Multi-thread corefiles broken since April Date: Wed, 07 Dec 2005 22:52:52 -0800 From: Steve Work To: linux-kernel@vger.kernel.org Coredumps from programs with more than one thread show garbage information for all threads except the primary. The problem was introduced with: http://kernel.org/git/?p=linux/kernel/git/torvalds/linux-2.6.git;a=commit;h=5df240826c90afdc7956f55a004ea6b702df9203 on Apr 16 ("fix crash in entry.S restore_all") and is still present in current builds. "kill -SEGV" this program and "info threads" the resulting corefile to see the problem: #include static void* thread_sleep(void* x) { while (1) sleep(30); } int main(int c, char** v) { const static int tcount = 5; pthread_t thr[tcount]; int i; for (i=0; i