From owner-freebsd-sparc64@FreeBSD.ORG Tue Sep 14 15:50:27 2004 Return-Path: Delivered-To: freebsd-sparc64@hub.freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id A508816A4D1 for ; Tue, 14 Sep 2004 15:50:27 +0000 (GMT) Received: from freefall.freebsd.org (freefall.freebsd.org [216.136.204.21]) by mx1.FreeBSD.org (Postfix) with ESMTP id EA14D43D55 for ; Tue, 14 Sep 2004 15:50:17 +0000 (GMT) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (gnats@localhost [127.0.0.1]) i8EFoHxd066970 for ; Tue, 14 Sep 2004 15:50:17 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.12.11/8.12.11/Submit) id i8EFoH2B066969; Tue, 14 Sep 2004 15:50:17 GMT (envelope-from gnats) Resent-Date: Tue, 14 Sep 2004 15:50:17 GMT Resent-Message-Id: <200409141550.i8EFoH2B066969@freefall.freebsd.org> Resent-From: FreeBSD-gnats-submit@FreeBSD.org (GNATS Filer) Resent-To: freebsd-sparc64@FreeBSD.org Resent-Reply-To: FreeBSD-gnats-submit@FreeBSD.org, Doug Haigh Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 0723D16A4CE for ; Tue, 14 Sep 2004 15:48:10 +0000 (GMT) Received: from www.freebsd.org (www.freebsd.org [216.136.204.117]) by mx1.FreeBSD.org (Postfix) with ESMTP id F19D743D49 for ; Tue, 14 Sep 2004 15:48:09 +0000 (GMT) (envelope-from nobody@FreeBSD.org) Received: from www.freebsd.org (localhost [127.0.0.1]) by www.freebsd.org (8.12.11/8.12.11) with ESMTP id i8EFm9M2087029 for ; Tue, 14 Sep 2004 15:48:09 GMT (envelope-from nobody@www.freebsd.org) Received: (from nobody@localhost) by www.freebsd.org (8.12.11/8.12.11/Submit) id i8EFm998087028; Tue, 14 Sep 2004 15:48:09 GMT (envelope-from nobody) Message-Id: <200409141548.i8EFm998087028@www.freebsd.org> Date: Tue, 14 Sep 2004 15:48:09 GMT From: Doug Haigh To: freebsd-gnats-submit@FreeBSD.org X-Send-Pr-Version: www-2.3 Subject: sparc64/71729: printf in kernel thread causes panic on SPARC X-BeenThere: freebsd-sparc64@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Porting FreeBSD to the Sparc List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 14 Sep 2004 15:50:27 -0000 >Number: 71729 >Category: sparc64 >Synopsis: printf in kernel thread causes panic on SPARC >Confidential: no >Severity: serious >Priority: medium >Responsible: freebsd-sparc64 >State: open >Quarter: >Keywords: >Date-Required: >Class: sw-bug >Submitter-Id: current-users >Arrival-Date: Tue Sep 14 15:50:17 GMT 2004 >Closed-Date: >Last-Modified: >Originator: Doug Haigh >Release: SPARC 5.2.1 >Organization: >Environment: FreeBSD stesthost 5.2.1-RELEASE FreeBSD 5.2.1-RELEASE #12: Mon Sep 13 10:35:08 EDT 2004 cd@stesthost:/usr/src/sys/sparc64/compile/DBGKERNEL sparc64 THis is an Ultra-60 dual proc machine >Description: I create a kernel thread in my driver using kthread_create. When the thread routine executes, it tries to print out a debug message using 'printf'. When this executes, I trap in a panic with the following trace: panic() at panic+0x174 trap() at trap+0x3b4 -- fast data access mmu miss tar=0 %o7=0xf000d784 _end() at 0xf0008fd0 openfirmware() at openfirmware+0x18 OF_write() at OF_write+0x14 ofw_cons_putc() at ofw_cons_putc+0x3c cnputc() at cnputc+0x7c putchar() at putchar+0x5c kvprintf() at kvprintf+0x648 printf() at printf+0x4C Same code works fine on i386 machines. >How-To-Repeat: Create a driver that creates a thread and do a printf in the thread routine. >Fix: >Release-Note: >Audit-Trail: >Unformatted: