Port-vax archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: Which NetBSD on a VS3176?



Martin Husemann wrote:

> On Tue, May 20, 2014 at 12:35:50PM +0200, Holm Tiffe wrote:
> > What todo?
> 
> info reg
> bt
> x/i $pc
> 
> as a start.
> 
> Martin

vs3176# newfs /dev/rsd1a
/dev/rsd1a: 200.0MB (409616 sectors) block size 8192, fragment size 1024
        using 5 cylinder groups of 40.01MB, 5121 blks, 9920 inodes.
[1]   Illegal instruction (core dumped) newfs /dev/rsd1a
vs3176# gdb /sbin/newfs /root/newfs.core
GNU gdb (GDB) 7.3.1
Copyright (C) 2011 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later
<http://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.  Type "show copying"
and "show warranty" for details.
This GDB was configured as "vax--netbsdelf".
For bug reporting instructions, please see:
<http://www.gnu.org/software/gdb/bugs/>...
Reading symbols from /sbin/newfs...(no debugging symbols found)...done.
[New process 1]

warning: Can't read pathname for load map: Input/output error.
Core was generated by `newfs'.
Program terminated with signal 4, Illegal instruction.
#0  0x000138e0 in rdfs (2, 0, 8192, 2147463028)
(gdb) info reg
r0             0x2000   8192
r1             0x0      0
r2             0x0      0
r3             0x0      0
r4             0x1f     31
r5             0x7fffaf74       2147463028
r6             0x2      2
r7             0x0      0
r8             0x2000   8192
r9             0x19dcc  105932
r10            0x32f08  208648
r11            0x332dc  209628
ap             0x7fffaf60       2147463008
fp             0x7fffaf40       2147462976
sp             0x7fffaf3c       2147462972
pc             0x138e0  80096
ps             0x3c00000        62914560
(gdb) bt
#0  0x000138e0 in rdfs (2, 0, 8192, 2147463028)
#1  0x00013b47 in zap_old_sblock ()
#2  0x00000000 in ?? ()
(gdb) x/i $pc
=> 0x138e0 <rdfs+150>:  halt
(gdb)


I've changed the offset from the root partition (sd1a) to 0, this time 
newfs coredumps with an illegal inst, the previous one was a  segmentation
fault.

2nd try with offset 16:

s3176# gdb /sbin/newfs /root/newfs.core
GNU gdb (GDB) 7.3.1
Copyright (C) 2011 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later
<http://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.  Type "show copying"
and "show warranty" for details.
This GDB was configured as "vax--netbsdelf".
For bug reporting instructions, please see:
<http://www.gnu.org/software/gdb/bugs/>...
Reading symbols from /sbin/newfs...(no debugging symbols found)...done.
[New process 1]

warning: Can't read pathname for load map: Input/output error.
Core was generated by `newfs'.
Program terminated with signal 4, Illegal instruction.
#0  0x00013013 in main (2, 2147479060, 2147479072)
(gdb) bt
#0  0x00013013 in main (2, 2147479060, 2147479072)
(gdb) info reg
r0             0x64000  409600
r1             0x0      0
r2             0x2ae88  175752
r3             0x0      0
r4             0x0      0
r5             0x0      0
r6             0x64000  409600
r7             0x0      0
r8             0x4      4
r9             0x2aa84  174724
r10            0x0      0
r11            0x0      0
ap             0x7fffedc8       2147478984
fp             0x7fffed9c       2147478940
sp             0x7fffd5a8       2147472808
pc             0x13013  77843
ps             0x3c00000        62914560
(gdb) x/i $pc
=> 0x13013 <main+3105>: halt
(gdb) 


objdump:

  12ff7:       11 1a           brb 13013 <main+0xc21>
   12ff9:       9e ff e5 72     movab *2a2e4
<_GLOBAL_OFFSET_TABLE_+0x17c>,r2
   12ffd:       01 00 52 
        ...

0001366e <fserr>:
        ...

00013686 <calc_memfree>:
        ...

000136f4 <copy_dir>:
        ...

0001378a <makedir>:
        ...

0001384a <rdfs>:
        ...

00013912 <setblock>:
        ...

000139a0 <wtfs>:
        ...

00013a5c <zap_old_sblock>:
        ...

00013bea <iput>:
        ...
   13d72:       00              halt
   13d73:       00              halt
   13d74:       c3 bc 00 50     subl3 *0x0(ap),r0,*0x5660(r0)
   13d78:       d0 60 56 
   13d7b:       78 8f e1 56     ashl $0xe1,r6,r7
   13d7f:       57 

Regards,

Holm

-- 
      Technik Service u. Handel Tiffe, www.tsht.de, Holm Tiffe, 
     Freiberger Straße 42, 09600 Oberschöna, USt-Id: DE253710583
  www.tsht.de, info%tsht.de@localhost, Fax +49 3731 74200, Mobil: 0172 8790 741



Home | Main Index | Thread Index | Old Index