From owner-freebsd-threads@FreeBSD.ORG Thu Mar 22 11:04:51 2007 Return-Path: X-Original-To: freebsd-threads@freebsd.org Delivered-To: freebsd-threads@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id D7CE016A403 for ; Thu, 22 Mar 2007 11:04:51 +0000 (UTC) (envelope-from avg@icyb.net.ua) Received: from gateway.cybervisiontech.com.ua (gateway.cybervisiontech.com.ua [88.81.251.18]) by mx1.freebsd.org (Postfix) with ESMTP id 5644E13C483 for ; Thu, 22 Mar 2007 11:04:48 +0000 (UTC) (envelope-from avg@icyb.net.ua) Received: from localhost (hq.cybervisiontech.com [127.0.0.1]) by gateway.cybervisiontech.com.ua (Postfix) with ESMTP id 6B45FED4FD8; Thu, 22 Mar 2007 12:40:28 +0200 (EET) X-Virus-Scanned: amavisd-new at cybervisiontech.com Received: from gateway.cybervisiontech.com.ua ([127.0.0.1]) by localhost (hq.cybervisiontech.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id RnYOjfhcQpUf; Thu, 22 Mar 2007 12:40:23 +0200 (EET) Received: from [10.2.1.87] (rein.cybervisiontech.com.ua [10.2.1.87]) by gateway.cybervisiontech.com.ua (Postfix) with ESMTP id A6093ED4FD3; Thu, 22 Mar 2007 12:40:23 +0200 (EET) Message-ID: <46025D19.6020007@icyb.net.ua> Date: Thu, 22 Mar 2007 12:40:25 +0200 From: Andriy Gapon User-Agent: Thunderbird 1.5.0.10 (X11/20070315) MIME-Version: 1.0 To: bug-followup@FreeBSD.org Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Cc: freebsd-threads@freebsd.org Subject: Re: amd64/110655: 32 bit threaded applications crash on amd64 SMP kernel. X-BeenThere: freebsd-threads@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Threading on FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 22 Mar 2007 11:04:51 -0000 I can confirm this problem for 6.2-RELEASE-p2 amd64 UP system, for both libpthread and libthr. i386 simple test programs die with the following symptoms: [libpthread] program dies with sigsegv. What's interesting, when run under ktrace my very short program sometimes completes successfully and sometime crashes with the same symptoms. There is one strange line in ktrace: 66443 thr_test CALL kse_create(0x804b50c,0x1) 66443 thr_test RET kse_create 0 66443 thr_test CALL __sysctl(0xffffd7b8,0x2,0xffffd7c0,0xffffd7b4,0x2809c63c,0x18) 66443 thr_test RET __sysctl 0 66443 thr_test CALL __sysctl(0xffffd7c0,0x3,0xffffd86c,0xffffd870,0,0) 66443 thr_test RET __sysctl 0 66443 thr_test CALL break(0x805c000) 66443 thr_test RET break 0 66443 thr_test CALL mmap(0xffbfc000,0x101000,0x3,0x400,0xffffffff,0,0,0) 66443 thr_test RET mmap -4210688/0xffbfc000 66443 thr_test CALL mprotect(0xffbfc000,0x1000,0) 66443 thr_test RET mprotect 0 66443 thr_test CALL clock_gettime(0,0x8051f5c) 66443 thr_test RET clock_gettime 0 66443 thr_test CALL fstat(0x1,0xffcfc7c0) 66443 thr_test RET fstat 0 ================= 66443 thr_test RET fork 0 ================= 66443 thr_test PSIG SIGSEGV SIG_DFL 66443 thr_test NAMI "thr_test.core" [libthr] the problem here seems to be more obvious, but unexpected (at least for me): 69654 thr_test CALL sysarch(0xa,0xffffd700) 69654 thr_test RET sysarch 0 69654 thr_test CALL sigprocmask(0x3,0xffffd730,0xffffd720) 69654 thr_test RET sigprocmask 0 69654 thr_test CALL sigaction(0x20,0xffffd6d0,0) 69654 thr_test RET sigaction 0 69654 thr_test CALL sigprocmask(0x3,0xffffd720,0) 69654 thr_test RET sigprocmask 0 69654 thr_test CALL sigprocmask(0x1,0x28070a20,0xffffd760) 69654 thr_test RET sigprocmask 0 69654 thr_test CALL sigprocmask(0x3,0x28070a30,0) 69654 thr_test RET sigprocmask 0 69654 thr_test CALL _umtx_op 69654 thr_test RET _umtx_op -1 errno 78 Function not implemented 69654 thr_test PSIG SIGSYS SIG_DFL 69654 thr_test NAMI "thr_test.core" -- Andriy Gapon