NetBSD Problem Report #18178

Received: (qmail 2390 invoked by uid 605); 5 Sep 2002 12:51:18 -0000
Message-Id: <200209051251.g85CpB626421@meril.mangajian.net>
Date: Thu, 5 Sep 2002 21:51:11 +0900 (JST)
From: h-masuda@ootani.nagata.kobe.jp
Sender: gnats-bugs-owner@netbsd.org
Reply-To: h-masuda@ootani.nagata.kobe.jp
To: gnats-bugs@gnats.netbsd.org
Subject: XalphaNetBSD is core dumped
X-Send-Pr-Version: 3.95

>Number:         18178
>Category:       port-alpha
>Synopsis:       XalphaNetBSD dumps core by SEGV during startup
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    port-alpha-maintainer
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Thu Sep 05 12:52:00 +0000 2002
>Closed-Date:    
>Last-Modified:  Sat Apr 29 08:47:08 +0000 2006
>Originator:     MASUDA Hideo
>Release:        NetBSD 1.6G
>Organization:
	MASUDA-NET
>Environment:


System: NetBSD meril.mangajian.net 1.6G NetBSD 1.6G (MERIL-$Revision: 1.3 $-$NetBSD: 1.211 $) #10: Wed Sep 4 19:44:49 JST 2002 h-masuda@meril.mangajian.net:/usr/current/src/sys/arch/alpha/compile/MERIL alpha
Architecture: alpha
Machine: alpha

tga0 at pci0 dev 13 function 0: TGA2 pass 2, board type T8-02
tga0: 1280 x 1024, 8bpp, Bt485 RAMDAC
tga0: interrupting at dec 6600 irq 32
wsdisplay0 at tga0 (kbdmux ignored): console (std, vt100 emulation)
pckbc0 at isa0 port 0x60-0x64
pckbd0 at pckbc0 (kbd slot)
pckbc0: using irq 1 for kbd slot
wskbd0 at pckbd0 (mux ignored): console keyboard, using wsdisplay0
pms0 at pckbc0 (aux slot)
pckbc0: using irq 12 for aux slot
wsmouse0 at pms0 (mux ignored)
vga0 at isa0 port 0x3b0-0x3df iomem 0xa0000-0xbffff
wsdisplay1 at vga0 (kbdmux ignored)

>Description:
	XalphaNetBSD dumps core by SEGV after background is white
	and printed text on console is black.
	I try to re-make XalphaNetBSD with CDEBUGFLAGS="-g -O0".
	But it also dumps core. With gdb, I get the following.

(gdb) run
Starting program: /usr/current/xsrc/xc/programs/Xserver/./XalphaNetBSD 

Program received signal SIGSEGV, Segmentation fault.
0x1200f8a80 in cfbFillBoxTile32 (pDrawable=0x120440a00, nBox=0, 
    pBox=0x1fffff9e8, tile=0x1204bfc80) at cfbpntwin.c:700
700                                 ;,
(gdb) where
#0  0x1200f8a80 in cfbFillBoxTile32 (pDrawable=0x120440a00, nBox=0, 
    pBox=0x1fffff9e8, tile=0x1204bfc80) at cfbpntwin.c:700
#1  0x1200f7a04 in cfbPaintWindow (pWin=0x120440a00, pRegion=0x1fffff9e8, 
    what=0) at cfbpntwin.c:88
#2  0x1201d7f40 in miSpritePaintWindowBackground (pWin=0x120440a00, 
    pRegion=0x1fffff9e8, what=0) at misprite.c:726
#3  0x1201bae7c in miWindowExposures (pWin=0x120440a00, prgn=0x1fffff9e8, 
    other_exposed=0x0) at miexpose.c:495
#4  0x120067d74 in MapWindow (pWin=0x120440a00, client=0x120440000)
    at window.c:2811
#5  0x1200608fc in InitRootWindow (pWin=0x120440a00) at window.c:484
#6  0x1200424cc in main (argc=1, argv=0x1fffffab0) at main.c:394

>How-To-Repeat:
	install x*.tgz into alpha system and just type "startx".
>Fix:
	I don't know.
	But cfb/cfbpntwin.c:cfbGetLongWidthAndPointer() (this is a macro
	defined in cfb/cfb.h) is very suspicious (LP64 problem ?)
>Release-Note:
>Audit-Trail:

From: Roland Dowdeswell <elric@imrryr.org>
To: h-masuda@ootani.nagata.kobe.jp
Cc: gnats-bugs@gnats.netbsd.org
Subject: Re: xsrc/18178: XalphaNetBSD is core dumped 
Date: Thu, 05 Sep 2002 18:41:58 -0400

 I've seen this problem and it isn't in the X server.  The best
 guess that I have is that is an issue with bus_space_mmap(9) on
 certain alphas.

 I sent some of my ideas to port-alpha the message is archived:

 http://mail-index.netbsd.org/port-alpha/2002/08/20/0002.html

 It was evidenced to work on 1.6_<something>:

 http://mail-index.netbsd.org/port-alpha/2002/08/22/0002.html
 http://mail-index.netbsd.org/port-alpha/2002/08/23/0000.html

 So, given that please let me inquire as to the exact machine
 configuration that you are running.  I've had problems on an XP
 1000, but I did not have the same problems on a PWS433a some months
 ago and the the poster that I quoted indicated that things have
 worked [quite recently] on another PWS class machine.

 Thanks,

 --
     Roland Dowdeswell                      http://www.Imrryr.ORG/~elric/

From: Masuda Hideo <h-masuda@ootani.nagata.kobe.jp>
To: elric@imrryr.org
Cc: h-masuda@ootani.nagata.kobe.jp, gnats-bugs@gnats.netbsd.org
Subject: Re: xsrc/18178: XalphaNetBSD is core dumped 
Date: Fri, 06 Sep 2002 16:44:21 +0900

 Hi, elric.

  Thank you for your quick reply.

 > I've seen this problem and it isn't in the X server.  The best
 > guess that I have is that is an issue with bus_space_mmap(9) on
 > certain alphas.

  Oh, my send-pr should belong "port-alpha". I apologize this confusion.

 > I sent some of my ideas to port-alpha the message is archived:
 > http://mail-index.netbsd.org/port-alpha/2002/08/20/0002.html

  Please let me know how to hack the followings(in hw/netbsd/alpha/tga/* ?),
 I'll try on my XP1000.

 >> I then hacked up the X server to consider the screen to be 1023
 >> lines to avoid triggering the segfault, and with that the X server
 >> runs properly but does not appear to change the screen with any of
 >> its memory references (the ioctl(2)s to change the colour map still
 >> work, though.)

 > It was evidenced to work on 1.6_<something>:
 > http://mail-index.netbsd.org/port-alpha/2002/08/22/0002.html
 > http://mail-index.netbsd.org/port-alpha/2002/08/23/0000.html

 > So, given that please let me inquire as to the exact machine
 > configuration that you are running.  I've had problems on an XP
 > 1000, but I did not have the same problems on a PWS433a some months
 > ago and the the poster that I quoted indicated that things have
 > worked [quite recently] on another PWS class machine.

   On an XP1000 and an AlphaStation 500/333(21164).
   dmesg(1) outputs as following on an XP1000.
 # My AS500/333's CPU is now broken, so I can't show dmesg for it.

  Thank you in advance.
 --
 MASUDA Hideo	(h-masuda@ootani.nagata.kobe.jp)

 [ using 600224 bytes of netbsd ELF symbol table ]
 consinit: not using prom console
 Copyright (c) 1996, 1997, 1998, 1999, 2000, 2001, 2002
     The NetBSD Foundation, Inc.  All rights reserved.
 Copyright (c) 1982, 1986, 1989, 1991, 1993
     The Regents of the University of California.  All rights reserved.

 NetBSD 1.6G (MERIL-$Revision: 1.3 $-$NetBSD: 1.211 $) #10: Wed Sep  4 19:44:49 JST 2002
     h-masuda@meril.mangajian.net:/usr/current/src/sys/arch/alpha/compile/MERIL
 COMPAQ Professional Workstation XP1000, 500MHz, s/n 
 8192 byte page size, 1 processor.
 total memory = 256 MB
 (1728 KB reserved for PROM, 254 MB used by NetBSD)
 avail memory = 228 MB
 using 1640 buffers containing 13120 KB of memory
 mainbus0 (root)
 cpu0 at mainbus0: ID 0 (primary), 21264-3
 cpu0: Architecture extensions: 303<PAT,MVI,FIX,BWX>
 tsc0 at mainbus0: 21272 Core Logic Chipset, Cchip rev 0
 tsc0: 4 Dchips, 1 memory bus of 32 bytes
 tsc0: arrays present: 128MB (split), 128MB (split), 0MB, 0MB, Dchip 0 rev 1
 tsp0 at tsc0
 pci0 at tsp0 bus 0
 pci0: i/o space, memory space enabled, rd/line, rd/mult, wr/inv ok
 sio0 at pci0 dev 7 function 0: Contaq Microsystems 82C693 PCI-ISA Bridge (rev. 0x00)
 pciide0 at pci0 dev 7 function 1: Cypress 82C693 IDE Controller (rev. 0x00)
 pciide0: bus-master DMA support present
 pciide0: primary channel wired to compatibility mode
 atapibus0 at pciide0 channel 0: 2 targets
 cd0 at atapibus0 drive 0: <TOSHIBA CD-ROM XM-6302B, , 1017> type 5 cdrom removable
 cd0: 32-bit data port
 cd0: drive supports PIO mode 4, DMA mode 2
 pciide0: primary channel interrupting at isa irq 14
 cd0(pciide0:0:0): using PIO mode 4, DMA mode 2 (using DMA data transfers)
 pciide1 at pci0 dev 7 function 2: Cypress 82C693 IDE Controller (rev. 0x00)
 pciide1: hardware does not support DMA
 pciide1: primary channel wired to compatibility mode
 pciide1: disabling primary channel (no drives)
 ohci0 at pci0 dev 7 function 3: Contaq Microsystems 82C693 PCI-ISA Bridge (rev. 0x00)
 ohci0: interrupting at isa irq 10
 ohci0: OHCI version 1.0, legacy support
 usb0 at ohci0: USB revision 1.0
 uhub0 at usb0
 uhub0: Contaq Microsys OHCI root hub, class 9/0, rev 1.00/1.00, addr 1
 uhub0: 2 ports with 2 removable, self powered
 tga0 at pci0 dev 13 function 0: TGA2 pass 2, board type T8-02
 tga0: 1280 x 1024, 8bpp, Bt485 RAMDAC
 tga0: interrupting at dec 6600 irq 32
 wsdisplay0 at tga0 (kbdmux ignored): console (std, vt100 emulation)
 isa0 at sio0
 com0 at isa0 port 0x3f8-0x3ff irq 4: ns16550a, working fifo
 com1 at isa0 port 0x2f8-0x2ff irq 3: ns16550a, working fifo
 pckbc0 at isa0 port 0x60-0x64
 pckbd0 at pckbc0 (kbd slot)
 pckbc0: using irq 1 for kbd slot
 wskbd0 at pckbd0 (mux ignored): console keyboard, using wsdisplay0
 pms0 at pckbc0 (aux slot)
 pckbc0: using irq 12 for aux slot
 wsmouse0 at pms0 (mux ignored)
 vga0 at isa0 port 0x3b0-0x3df iomem 0xa0000-0xbffff
 wsdisplay1 at vga0 (kbdmux ignored)
 lpt0 at isa0 port 0x3bc-0x3bf irq 7
 ess0 at isa0 port 0x220-0x22f irq 5 drq 1,5
 ess0: ESS Technology ES1887 [version 0x688b]
 ess0: audio1 interrupting at irq 5
 ess0: audio2 polled
 audio0 at ess0: full duplex, mmap, independent
 opl at ess0 not configured
 pcppi0 at isa0 port 0x61
 midi0 at pcppi0: PC speaker
 spkr0 at pcppi0
 isabeep0 at pcppi0
 fdc0 at isa0 port 0x3f0-0x3f7 irq 6 drq 2
 fd0 at fdc0 drive 0: 1.44MB, 80 cyl, 2 head, 18 sec
 mcclock0 at isa0 port 0x70-0x71: mc146818 or compatible
 tsp1 at tsc0
 pci1 at tsp1 bus 0
 pci1: i/o space, memory space enabled, rd/line, rd/mult, wr/inv ok
 tlp0 at pci1 dev 3 function 0: DECchip 21143 Ethernet, pass 4.1
 tlp0: interrupting at dec 6600 irq 45
 tlp0: DEC , Ethernet address 00:00:f8:71:bd:d6
 tlp0: 10baseT, 10base2, 10base5, 10baseT-FDX, 100baseTX, 100baseTX-FDX, auto
 isp0 at pci1 dev 6 function 0: QLogic 1020 Ultra Wide SCSI HBA
 isp0: interrupting at dec 6600 irq 47
 scsibus0 at isp0: 16 targets, 8 luns per target
 ppb0 at pci1 dev 8 function 0: Digital Equipment DECchip 21152 PCI-PCI Bridge (rev. 0x03)
 pci2 at ppb0 bus 2
 pci2: i/o space, memory space enabled, rd/line, wr/inv ok
 pciide2 at pci2 dev 9 function 0: Triones/Highpoint HPT366 IDE Controller
 pciide2: bus-master DMA support present
 pciide2: primary channel wired to native-PCI mode
 pciide2: using dec 6600 irq 28 for native-PCI interrupt
 wd0 at pciide2 channel 0 drive 0: <IBM-DPTA-372730>
 wd0: drive supports 16-sector PIO transfers, LBA addressing
 wd0: 26105 MB, 16383 cyl, 16 head, 63 sec, 512 bytes/sect x 53464320 sectors
 wd0: 32-bit data port
 wd0: drive supports PIO mode 4, DMA mode 2, Ultra-DMA mode 4 (Ultra/66)
 wd0(pciide2:0:0): using PIO mode 4, Ultra-DMA mode 2 (Ultra/33) (using DMA data transfers)
 pciide3 at pci2 dev 9 function 1: Triones/Highpoint HPT366 IDE Controller
 pciide3: bus-master DMA support present
 pciide3: primary channel wired to native-PCI mode
 pciide3: using dec 6600 irq 28 for native-PCI interrupt
 wd1 at pciide3 channel 0 drive 0: <Maxtor 92732U8>
 wd1: drive supports 16-sector PIO transfers, LBA addressing
 wd1: 26059 MB, 16383 cyl, 16 head, 63 sec, 512 bytes/sect x 53369568 sectors
 wd1: 32-bit data port
 wd1: drive supports PIO mode 4, DMA mode 2, Ultra-DMA mode 4 (Ultra/66)
 wd1(pciide3:0:0): using PIO mode 4, Ultra-DMA mode 2 (Ultra/33) (using DMA data transfers)
 fxp0 at pci2 dev 10 function 0: Intel i82557 Ethernet, rev 1
 fxp0: interrupting at dec 6600 irq 24
 fxp0: Ethernet address 00:a0:c9:2b:0c:60
 nsphy0 at fxp0 phy 1: DP83840 10/100 media interface, rev. 0
 nsphy0: 10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, auto
 scsibus0: waiting 2 seconds for devices to settle...
 sd0 at scsibus0 target 0 lun 0: <DEC, RZ2CD-KS (C) DEC, 0306> SCSI2 0/direct fixed
 sd0: 4091 MB, 3708 cyl, 20 head, 113 sec, 512 bytes/sect x 8380080 sectors
 sd0: sync (50.0ns offset 8), 16-bit (40.000MB/s) transfers, tagged queueing
 Kernelized RAIDframe activated
 IPsec: Initialized Security Association Processing.
 raid0: RAID Level 1
 raid0: Components: /dev/wd0e /dev/wd1e
 raid0: Total Sectors: 53369379 (26059 MB)
 root on sd0a dumps on sd0b
 root file system type: ffs
Responsible-Changed-From-To: xsrc-manager->port-alpha-maintainer 
Responsible-Changed-By: tron 
Responsible-Changed-When: Fri Sep 6 00:50:12 PDT 2002 
Responsible-Changed-Why:  
Submitter suggested that "port-alpha" is the appropriate category for this PR. 
>Unformatted:

NetBSD Home
NetBSD PR Database Search

(Contact us) $NetBSD: query-full-pr,v 1.39 2013/11/01 18:47:49 spz Exp $
$NetBSD: gnats_config.sh,v 1.8 2006/05/07 09:23:38 tsutsui Exp $
Copyright © 1994-2007 The NetBSD Foundation, Inc. ALL RIGHTS RESERVED.