From owner-freebsd-current Mon May 4 03:29:54 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id DAA28347 for freebsd-current-outgoing; Mon, 4 May 1998 03:29:54 -0700 (PDT) (envelope-from owner-freebsd-current@FreeBSD.ORG) Received: from watermarkgroup.com (lor.watermarkgroup.com [207.202.73.33]) by hub.freebsd.org (8.8.8/8.8.8) with SMTP id DAA28342 for ; Mon, 4 May 1998 03:29:51 -0700 (PDT) (envelope-from luoqi@watermarkgroup.com) Received: by watermarkgroup.com (4.1/SMI-4.1) id AA13157; Mon, 4 May 98 06:29:22 EDT Date: Mon, 4 May 98 06:29:22 EDT From: luoqi@watermarkgroup.com (Luoqi Chen) Message-Id: <9805041029.AA13157@watermarkgroup.com> To: jb@cimlogic.com.au, luoqi@watermarkgroup.com Subject: Re: 'fatal trap 12' on boot (smp and up) Cc: current@FreeBSD.ORG Sender: owner-freebsd-current@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG > Luoqi Chen wrote: > > Just curious, what program were you running? AFAIK, only wine makes use of > > USER_LDT. > > A program linked with libpthread using an ldt to save the thread context. > I think I made a mistake in my patch that cause the core dump. Try to enclose the two lines in the patch that reset fs and gs inside if (pcb == curpcb) {}. Without this, the code might trash fs & gs in another process' context. -lq > -- > John Birrell - jb@cimlogic.com.au; jb@freebsd.org http://www.cimlogic.com.au/ > CIMlogic Pty Ltd, GPO Box 117A, Melbourne Vic 3001, Australia +61 418 353 137 > To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message