From owner-freebsd-amd64@FreeBSD.ORG Sat Jun 5 09:46:21 2004 Return-Path: Delivered-To: freebsd-amd64@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 67B9516A4CE; Sat, 5 Jun 2004 09:46:21 -0700 (PDT) Received: from mail.mcneil.com (rrcs-west-24-199-45-54.biz.rr.com [24.199.45.54]) by mx1.FreeBSD.org (Postfix) with ESMTP id 47F4143D5C; Sat, 5 Jun 2004 09:46:21 -0700 (PDT) (envelope-from sean@mcneil.com) Received: from localhost (localhost.mcneil.com [127.0.0.1]) by mail.mcneil.com (Postfix) with ESMTP id 77034FD1D6; Sat, 5 Jun 2004 09:46:20 -0700 (PDT) Received: from mail.mcneil.com ([127.0.0.1]) by localhost (server.mcneil.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 06189-07; Sat, 5 Jun 2004 09:46:20 -0700 (PDT) Received: from [24.199.45.54] (mcneil.com [24.199.45.54]) by mail.mcneil.com (Postfix) with ESMTP id D9B41FD020; Sat, 5 Jun 2004 09:46:19 -0700 (PDT) From: Sean McNeil To: Tim Robbins In-Reply-To: <1086453600.96822.16.camel@server.mcneil.com> References: <20040605151500.GA29569@cat.robbins.dropbear.id.au> <20040605163123.GA29935@cat.robbins.dropbear.id.au> <1086453600.96822.16.camel@server.mcneil.com> Content-Type: text/plain Message-Id: <1086453979.18813.0.camel@server.mcneil.com> Mime-Version: 1.0 X-Mailer: Ximian Evolution 1.4.6 Date: Sat, 05 Jun 2004 09:46:19 -0700 Content-Transfer-Encoding: 7bit X-Virus-Scanned: by amavisd-new at mcneil.com cc: freebsd-threads@freebsd.org cc: freebsd-amd64@freebsd.org cc: Daniel Eischen Subject: Re: All my amd64 problems appear to be KSE X-BeenThere: freebsd-amd64@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Porting FreeBSD to the AMD64 platform List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 05 Jun 2004 16:46:21 -0000 On Sat, 2004-06-05 at 09:40, Sean McNeil wrote: > On Sat, 2004-06-05 at 09:31, Tim Robbins wrote: > > > Everything seems to work fine if I build libpthread with SYSTEM_SCOPE_ONLY > > (at least it hasn't crashed so far.) My current guess is that there's a > > bug in context manipulation or signals. I initially thought we weren't > > saving enough FPU context in _amd64_save_context, but adding an fxsave > > in there didn't help. > > I see a problem with bash and signals too when libpthread is involved. > It would core dump when I resize a window. I use nss_ldap and it was > pulling in pthread through db41. I solved my issue by rebuilding db41 > to eliminate pthread from the libdb41.so.1. Perhaps tracing this down > would be useful? resize of bash causes error like this: #0 _thr_sig_handler (sig=28, info=0x100, ucp=0x201701904) at /usr/src/lib/libpthread/thread/thr_sig.c:373 #1 0x00000002006ae9b0 in _rl_savestring () from /lib/libreadline.so.4 #2 #3 0x0000000200a822ec in read () from /lib/libc.so.5 #4 0x00000002006ab113 in rl_getc () from /lib/libreadline.so.4 #5 0x00000002006ab0c9 in rl_read_key () from /lib/libreadline.so.4 #6 0x00000002006bdeb7 in readline_internal_char () from /lib/libreadline.so.4 #7 0x00000002006be045 in readline_internal_char () from /lib/libreadline.so.4 #8 0x00000002006be060 in readline_internal_char () from /lib/libreadline.so.4 #9 0x00000002006bdc1e in readline () from /lib/libreadline.so.4 #10 0x0000000000415072 in yy_readline_get () at /usr/homes/chet/src/bash/src/parse.y:1108 #11 0x0000000000414fde in yy_getc () at /usr/homes/chet/src/bash/src/parse.y:1042 #12 0x0000000000415885 in shell_getc (remove_quoted_newline=1) at /usr/homes/chet/src/bash/src/parse.y:1803 #13 0x000000000041633e in read_token (command=0) at /usr/homes/chet/src/bash/src/parse.y:2414 #14 0x0000000000415e22 in yylex () at /usr/homes/chet/src/bash/src/parse.y:2084 #15 0x0000000000413b1a in yyparse () at /usr/local/share/bison/bison.simple:573 #16 0x00000000004138ab in parse_command () at eval.c:217 #17 0x000000000041395b in read_command () at eval.c:261