From owner-freebsd-hackers@FreeBSD.ORG Tue Jan 8 19:27:34 2008 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 0E6C016A469 for ; Tue, 8 Jan 2008 19:27:34 +0000 (UTC) (envelope-from aduane@juniper.net) Received: from exprod7og105.obsmtp.com (exprod7og105.obsmtp.com [64.18.2.163]) by mx1.freebsd.org (Postfix) with ESMTP id C736513C44B for ; Tue, 8 Jan 2008 19:27:33 +0000 (UTC) (envelope-from aduane@juniper.net) Received: from source ([66.129.224.36]) by exprod7ob105.postini.com ([64.18.6.12]) with SMTP; Tue, 08 Jan 2008 11:25:12 PST Received: from proton.jnpr.net ([10.10.2.37]) by emailsmtp56.jnpr.net with Microsoft SMTPSVC(6.0.3790.3959); Fri, 28 Dec 2007 06:08:58 -0800 Received: from antipi.jnpr.net ([10.10.2.34]) by proton.jnpr.net with Microsoft SMTPSVC(6.0.3790.1830); Fri, 28 Dec 2007 09:09:07 -0500 X-MimeOLE: Produced By Microsoft Exchange V6.5 Content-class: urn:content-classes:message MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable Date: Fri, 28 Dec 2007 09:09:08 -0500 Message-ID: <0FCFCF6165E968449991746EB91D614DD48EF6@antipi.jnpr.net> In-Reply-To: <200712281127.53084.sharadc@in.niksun.com> X-MS-Has-Attach: X-MS-TNEF-Correlator: Thread-Topic: trap 12 with interrupts disabled, need help Thread-Index: AchJGwl547VCBQkcR9aMIFx29WD3GwAP/16g References: <200712281127.53084.sharadc@in.niksun.com> From: "Andrew Duane" To: "Sharad Chandra" , X-OriginalArrivalTime: 28 Dec 2007 14:09:07.0217 (UTC) FILETIME=[35B82010:01C8495B] Cc: chandrabhagat@gmail.com Subject: RE: trap 12 with interrupts disabled, need help X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 08 Jan 2008 19:27:34 -0000 Obvious question: is your stack set up properly, and is it big enough? It could be that you haven't set up a bigger kernel stack yet, and have overrun the small boot stack that the processor was running on. Do you know what the stack pointer is? If it is a few bytes below a page boundary, then overrunning the stack is a good guess. /Andrew =20 > -----Original Message----- > From: owner-freebsd-hackers@freebsd.org [mailto:owner-freebsd- > hackers@freebsd.org] On Behalf Of Sharad Chandra > Sent: Friday, December 28, 2007 12:58 AM > To: freebsd-hackers@freebsd.org > Cc: chandrabhagat@gmail.com > Subject: trap 12 with interrupts disabled, need help >=20 > Hi, >=20 > I got a message on first boot "pid (): trap 12 with > interrupts > disabled", then it hanged and hard boot is required. > It does not appears all the time. >=20 > I tried to figure out the problem, trap 12 is stack exception, find at the > last > http://www.acm.uiuc.edu/sigops/roll_your_own/i386/idt.html > and is coming from kernel, > The location of this message is /usr/src/ > sys/amd64/amd64/trap.c: "pid %ld (%s): trap %d with > interrupts disabled\n", >=20 > What does this exception mean, and what could be possible reason that my > program is doing wrong? How to handle it >=20 > Platform: freebsd 6.1 on amd64 >=20 > -- >=20 > Thanks > Sharad Chandra > _______________________________________________ > freebsd-hackers@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-hackers > To unsubscribe, send any mail to "freebsd-hackers-unsubscribe@freebsd.org"