Subject: Xhpc on Z50
To: None <port-hpcmips@netbsd.org>
From: Castor Fu <castor@geocast.com>
List: port-hpcmips
Date: 12/31/2000 09:48:03
Is there some special magic that's needed to get Xhpc running on the Z50i?

I'm using the a -current kernel as of yesterday, with the 1.5-release 
userland, and I get a null pointer error.  For some reason, the machine
seems to lock up, too.

Do I need to rebuild X with -current?

	-castor

Script started on Sun Dec 31 09:39:13 2000
# gdb Xhpc /Xhpc.core
GNU gdb 4.17
Copyright 1998 Free Software Foundation, Inc.
GDB is free software, covered by the GNU General Public License, and you are
welcome to change it and/or distribute copies of it under certain conditions.
Type "show copying" to see the conditions.
There is absolutely no warranty for GDB.  Type "show warranty" for details.
This GDB was configured as "mipsel--netbsd"...(no debugging symbols found)...
Core was generated by `Xhpc'.
Program terminated with signal 11, Segmentation fault.
Reading symbols from /usr/libexec/ld.elf_so...done.
Reading symbols from /usr/lib/libz.so.0...done.
Reading symbols from /usr/lib/libm.so.0...done.
Reading symbols from /usr/lib/libc.so.12...done.
#0  0x53ceb8 in miCreateScreenResources ()
(gdb) where
#0  0x53ceb8 in miCreateScreenResources ()
#1  0x64e0e4 in cfb16CreateScreenResources ()
#2  0x43d2a4 in main ()
#3  0x414630 in _ftext ()
(gdb) show reg
Undefined show command: "reg".  Try "help show".
(gdb) info reg
          zero       at       v0       v1       a0       a1       a2       a3
 R0   00000000 201c0d70 1004d1a4 1004d180 1004b600 00000000 1004e364 00000068 
            t0       t1       t2       t3       t4       t5       t6       t7
 R8   00000003 00000001 00000072 00000064 00000061 00000065 0000001f 10051000 
            s0       s1       s2       s3       s4       s5       s6       s7
 R16  00000000 1004b600 10044274 1004426c 10044270 7fffea1c 00000004 100442a4 
            t8       t9       k0       k1       gp       sp       s8       ra
 R24  0000001f 0053ce84 00000000 00000000 10041ab0 7fffe920 1004426c 0064e0e4 
            sr       lo       hi      bad    cause       pc
      00007f13 d70a51ef 0000176b 00000004 00000008 0053ceb8 
           fsr      fir       fp
      00000000 00000000 7fffe960 
(gdb) x /20i $pc
0x53ceb8 <miCreateScreenResources+52>:  lw      $v0,4($s0)
0x53cebc <miCreateScreenResources+56>:  nop
0x53cec0 <miCreateScreenResources+60>:  
    beqz        $v0,0x53cfb0 <miCreateScreenResources+300>
0x53cec4 <miCreateScreenResources+64>:  move    $a1,$zero
0x53cec8 <miCreateScreenResources+68>:  lbu     $a3,18($s1)
0x53cecc <miCreateScreenResources+72>:  lw      $v0,212($s1)
0x53ced0 <miCreateScreenResources+76>:  move    $a2,$zero
0x53ced4 <miCreateScreenResources+80>:  move    $t9,$v0
0x53ced8 <miCreateScreenResources+84>:  jalr    $t9
0x53cedc <miCreateScreenResources+88>:  nop
0x53cee0 <miCreateScreenResources+92>:  lw      $gp,32($sp)
0x53cee4 <miCreateScreenResources+96>:  move    $s2,$v0
0x53cee8 <miCreateScreenResources+100>: 
    beqz        $s2,0x53cfd4 <miCreateScreenResources+336>
0x53ceec <miCreateScreenResources+104>: move    $v0,$zero
0x53cef0 <miCreateScreenResources+108>: lbu     $a3,18($s1)
0x53cef4 <miCreateScreenResources+112>: lw      $t0,-31660($gp)
0x53cef8 <miCreateScreenResources+116>: nop
0x53cefc <miCreateScreenResources+120>: addiu   $t0,$t0,8
0x53cf00 <miCreateScreenResources+124>: move    $v1,$a3
0x53cf04 <miCreateScreenResources+128>: sll     $v0,$a3,0x2
(gdb) quit
# 
Script done on Sun Dec 31 09:41:28 2000