Subject: kern/37534: ktrace firefox -> kernel trap 30: data access expection
To: None <kern-bug-people@netbsd.org, gnats-admin@netbsd.org,>
From: None <sfandino@yahoo.com>
List: netbsd-bugs
Date: 12/13/2007 15:40:00
>Number:         37534
>Category:       kern
>Synopsis:       ktrace firefox -> kernel trap 30: data access expection
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    kern-bug-people
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Thu Dec 13 15:40:00 +0000 2007
>Originator:     Salvador Fandino
>Release:        4.0_RC5
>Organization:
>Environment:
NetBSD boletus.int.qindel.com 4.0_RC5 NetBSD 4.0_RC5 (SUNBLADE100) #3: Mon Dec 10 16:36:36 CET 2007  root@:/usr/src/sys/arch/sparc64/compile/SUNBLADE100 sparc64

>Description:
running

 $ ktrace /usr/pkg/lib/firefox/firefox-bin

causes a kernel trap:

  cpu0: data fault: pc=127a2ec addr=483fe000
  kernel trap 30: data access exception
  Stopped in pid 762.1 (firefox-bin) and netbsd:ktrsaupcall+0x8c: ldx [%i4 + %g0], %o0

I have tried both from an X session running locally and from a remote one tunneled over ssh with the same result.

My kernel is GENERIC with the following change (work around for bug 37485):

--- GENERIC     2007-09-25 02:32:53.000000000 +0200
+++ SUNBLADE100 2007-12-13 12:25:29.000000000 +0100
@@ -390,7 +390,9 @@
 
 ## Disable UDMA 4 which causes data corruption on the Acer Labs
 ## chipset on Sun Blade 100 and Netra X1 machines.
-wd*     at atabus? drive ? flags 0x0000
+# wd*     at atabus? drive ? flags 0x0fac
+# wd*     at atabus? drive ? flags 0x0000
+wd*     at atabus? drive ? flags 0x0aac
 
 cd*    at atapibus? drive ? flags 0x0000       # ATAPI CD-ROM drives
 sd*    at atapibus? drive ? flags 0x0000       # ATAPI disk drives

BTW, ddb is not usable on my system, it freezes after I type a single character.
>How-To-Repeat:

>Fix: