Subject: Re: Solaris emulation on NetBSD 1.3.2?
To: Matt Ragan <mragan@dev.tivoli.com>
From: Simon Walton <simonw@CS.UCLA.EDU>
List: port-sparc
Date: 08/21/1998 21:10:52
> 
> I've had this exact same problem as of the last time that I attempted Solaris
> emulation.  All of the configuration files are present (netconfig,
> nsswitch.conf, etc.), all of the libraries are present, and all of the device
    s
> are present, but nothing gets to the network.
> 

   I have been unable to get netscape Solaris running under
1.3; it ran ok under 1.2 and 1.2.1. I ran a ktrace on
netscape. The output was pretty voluminous, as you can
imagine, but the problem seemed to be in the DNS shared
library. It appears to be performing an ioctl() on the udp
device that isn't recognized. I haven't chased the problem any
further than that. Below is the relevant postion of the
ktrace.

Simon

--------

 13522 netscape NAMI  "/emul/svr4/usr/lib/nss_dns.so.1"
 13522 netscape RET   open 7
 13522 netscape CALL  fstat(0x7,0xefffce80)
 13522 netscape RET   fstat 0
 13522 netscape CALL  mmap(0,0x1000,0x1,0x80000001,0x7,0)
 13522 netscape RET   mmap 272629760/0x10400000
 13522 netscape CALL  mmap(0,0x12000,0x5,0x80000001,0x7,0)
 13522 netscape RET   mmap 277364736/0x10884000
 13522 netscape CALL  munmap(0x10884000,0x12000)
 13522 netscape RET   munmap 0
 13522 netscape CALL  mmap(0,0x22000,0x5,0x80000001,0x7,0)
 13522 netscape RET   mmap 277364736/0x10884000
 13522 netscape CALL  munmap(0x10884000,0xc000)
 13522 netscape RET   munmap 0
 13522 netscape CALL  mmap(0x10890000,0x1a29,0x5,0x80000012,0x7,0)
 13522 netscape RET   mmap 277413888/0x10890000
 13522 netscape CALL  munmap(0x10892000,0xf000)
 13522 netscape RET   munmap 0
 13522 netscape CALL  mmap(0x108a1000,0xc80,0x7,0x80000012,0x7,0x1000)
 13522 netscape RET   mmap 277483520/0x108a1000
 13522 netscape CALL  munmap(0x108a2000,0x4000)
 13522 netscape RET   munmap 0
 13522 netscape CALL  close(0x7)
 13522 netscape RET   close 0
 13522 netscape CALL  munmap(0x10400000,0x1000)
 13522 netscape RET   munmap 0
 13522 netscape CALL  open(0x4bbee8,0x2,0)
 13522 netscape NAMI  "/emul/svr4/dev/udp"
 13522 netscape NAMI  "/emul/svr4"
 13522 netscape NAMI  "/emul/svr4/dev/udp"
 13522 netscape RET   open 7
 13522 netscape CALL  ioctl(0x7,_IO('S',0x2,0),0x106dd158)
 13522 netscape RET   ioctl 0
 13522 netscape CALL  ioctl(0x7,_IO('S',0x8,0),0xefffc678)
 13522 netscape RET   ioctl 0
 13522 netscape CALL  ioctl(0x7,_IO('S',0x20,0),0xefffc72c)
 13522 netscape RET   ioctl 0
 13522 netscape CALL  ioctl(0x7,_IO('S',0x13,0),0x2)
 13522 netscape RET   ioctl 0
 13522 netscape CALL  sigprocmask(0x3,0xefffc71c,0xefffc70c)
 13522 netscape RET   sigprocmask 0
 13522 netscape CALL  ioctl(0x7,_IO('S',0x8,0),0xefffc590)
 13522 netscape RET   ioctl 0
 13522 netscape CALL  sigprocmask(0x3,0xefffc70c,0xefffc6e8)
 13522 netscape RET   sigprocmask 0
 13522 netscape CALL  ioctl(0x7,_IOR('i',0x57,0x4),0xefffcc1c)
 13522 netscape RET   ioctl 0
 13522 netscape CALL  close(0x7)
 13522 netscape RET   close 0
 13522 netscape CALL  systeminfo(0x9,0xefffc81c,0x400)
 13522 netscape RET   systeminfo 0
 13522 netscape CALL  open(0x1077565c,0,0x1b6)
 13522 netscape NAMI  "/emul/svr4/etc/resolv.conf"
 13522 netscape NAMI  "/emul/svr4"
 13522 netscape NAMI  "/emul/svr4/etc/resolv.conf"
 13522 netscape RET   open 7
 13522 netscape CALL  fstat(0x7,0xefffc6b8)
 13522 netscape RET   fstat 0
 13522 netscape CALL  ioctl(0x7,_IO('T',0x1,0),0xefffc644)
 13522 netscape RET   ioctl -1 errno 25 Inappropriate ioctl for device
 13522 netscape CALL  read(0x7,0x5119a4,0x2000)
 13522 netscape GIO   fd 7 read 134 bytes
       "domain cs.ucla.edu
	nameserver 131.179.128.13       ; Lanai
	nameserver 131.179.132.22	; Cheetah
	nameserver 131.179.128.12       ; Oahu
       "
 13522 netscape RET   read 134/0x86
 13522 netscape CALL  read(0x7,0x5119a4,0x2000)
 13522 netscape GIO   fd 7 read 0 bytes
       ""
 13522 netscape RET   read 0
 13522 netscape CALL  lseek(0x7,0,0x1)
 13522 netscape RET   lseek 134/0x86
 13522 netscape CALL  close(0x7)
 13522 netscape RET   close 0
 13522 netscape CALL  open(0x4bbee8,0x2,0)
 13522 netscape NAMI  "/emul/svr4/dev/udp"
 13522 netscape NAMI  "/emul/svr4"
 13522 netscape NAMI  "/emul/svr4/dev/udp"
 13522 netscape RET   open 7
 13522 netscape CALL  ioctl(0x7,_IO('S',0x2,0),0x106dd158)
 13522 netscape RET   ioctl 0
 13522 netscape CALL  ioctl(0x7,_IO('S',0x8,0),0xefffc0e8)
 13522 netscape RET   ioctl 0
 13522 netscape CALL  ioctl(0x7,_IO('S',0x20,0),0xefffc19c)
 13522 netscape RET   ioctl 0
 13522 netscape CALL  ioctl(0x7,_IO('S',0x13,0),0x2)
 13522 netscape RET   ioctl 0
 13522 netscape CALL  sigprocmask(0x3,0xefffc18c,0xefffc17c)
 13522 netscape RET   sigprocmask 0
 13522 netscape CALL  ioctl(0x7,_IO('S',0x8,0),0xefffc000)
 13522 netscape RET   ioctl 0
 13522 netscape CALL  sigprocmask(0x3,0xefffc17c,0xefffc158)
 13522 netscape RET   sigprocmask 0
 13522 netscape CALL  ioctl(0x7,_IO('S',0x8,0),0xefffbf48)
 13522 netscape RET   ioctl 0
 13522 netscape CALL  sigprocmask(0x1,0xefffbf48,0xefffbfc0)
 13522 netscape RET   sigprocmask 0
 13522 netscape CALL  sigprocmask(0x3,0xefffbfc0,0)
 13522 netscape RET   sigprocmask 0
 13522 netscape CALL  ioctl(0x7,_IO('S',0xa,0),0xefffbfbc)
 13522 netscape RET   ioctl -1 errno 22 Invalid argument
 13522 netscape CALL  ioctl(0x7,_IO('S',0x8,0),0xefffbf48)
 13522 netscape RET   ioctl 0
 13522 netscape CALL  sigprocmask(0x1,0xefffbf48,0xefffbfc0)
 13522 netscape RET   sigprocmask 0
 13522 netscape CALL  sigprocmask(0x3,0xefffbfc0,0)
 13522 netscape RET   sigprocmask 0
 13522 netscape CALL  ioctl(0x7,_IO('S',0xa,0),0xefffbfbc)
 13522 netscape RET   ioctl -1 errno 22 Invalid argument
 13522 netscape CALL  ioctl(0x7,_IO('S',0x8,0),0xefffbf48)
 13522 netscape RET   ioctl 0
 13522 netscape CALL  sigprocmask(0x1,0xefffbf48,0xefffbfc0)
 13522 netscape RET   sigprocmask 0
 13522 netscape CALL  sigprocmask(0x3,0xefffbfc0,0)
 13522 netscape RET   sigprocmask 0
 13522 netscape CALL  ioctl(0x7,_IO('S',0xa,0),0xefffbfbc)
 13522 netscape RET   ioctl -1 errno 22 Invalid argument
 13522 netscape CALL  ioctl(0x7,_IO('S',0x8,0),0xefffbf48)
 13522 netscape RET   ioctl 0
 13522 netscape CALL  sigprocmask(0x1,0xefffbf48,0xefffbfc0)
 13522 netscape RET   sigprocmask 0
 13522 netscape CALL  sigprocmask(0x3,0xefffbfc0,0)
 13522 netscape RET   sigprocmask 0
 13522 netscape CALL  ioctl(0x7,_IO('S',0xa,0),0xefffbfbc)
 13522 netscape RET   ioctl -1 errno 22 Invalid argument
 13522 netscape CALL  ioctl(0x7,_IO('S',0x8,0),0xefffbf48)
 13522 netscape RET   ioctl 0
 13522 netscape CALL  sigprocmask(0x1,0xefffbf48,0xefffbfc0)
 13522 netscape RET   sigprocmask 0
 13522 netscape CALL  sigprocmask(0x3,0xefffbfc0,0)
 13522 netscape RET   sigprocmask 0
 13522 netscape CALL  ioctl(0x7,_IO('S',0xa,0),0xefffbfbc)
 13522 netscape RET   ioctl -1 errno 22 Invalid argument
 13522 netscape CALL  ioctl(0x7,_IO('S',0x8,0),0xefffbf48)
 13522 netscape RET   ioctl 0
 13522 netscape CALL  sigprocmask(0x1,0xefffbf48,0xefffbfc0)
 13522 netscape RET   sigprocmask 0
 13522 netscape CALL  sigprocmask(0x3,0xefffbfc0,0)
 13522 netscape RET   sigprocmask 0
 13522 netscape CALL  ioctl(0x7,_IO('S',0xa,0),0xefffbfbc)
 13522 netscape RET   ioctl -1 errno 22 Invalid argument
 13522 netscape CALL  ioctl(0x7,_IO('S',0x8,0),0xefffbf48)
 13522 netscape RET   ioctl 0
 13522 netscape CALL  sigprocmask(0x1,0xefffbf48,0xefffbfc0)
 13522 netscape RET   sigprocmask 0
 13522 netscape CALL  sigprocmask(0x3,0xefffbfc0,0)
 13522 netscape RET   sigprocmask 0
 13522 netscape CALL  ioctl(0x7,_IO('S',0xa,0),0xefffbfbc)
 13522 netscape RET   ioctl -1 errno 22 Invalid argument
 13522 netscape CALL  ioctl(0x7,_IO('S',0x8,0),0xefffbf48)
 13522 netscape RET   ioctl 0
 13522 netscape CALL  sigprocmask(0x1,0xefffbf48,0xefffbfc0)
 13522 netscape RET   sigprocmask 0
 13522 netscape CALL  sigprocmask(0x3,0xefffbfc0,0)
 13522 netscape RET   sigprocmask 0
 13522 netscape CALL  ioctl(0x7,_IO('S',0xa,0),0xefffbfbc)
 13522 netscape RET   ioctl -1 errno 22 Invalid argument
 13522 netscape CALL  ioctl(0x7,_IO('S',0x8,0),0xefffbf48)
 13522 netscape RET   ioctl 0
 13522 netscape CALL  sigprocmask(0x1,0xefffbf48,0xefffbfc0)
 13522 netscape RET   sigprocmask 0
 13522 netscape CALL  sigprocmask(0x3,0xefffbfc0,0)
 13522 netscape RET   sigprocmask 0
 13522 netscape CALL  ioctl(0x7,_IO('S',0xa,0),0xefffbfbc)
 13522 netscape RET   ioctl -1 errno 22 Invalid argument
 13522 netscape CALL  ioctl(0x7,_IO('S',0x8,0),0xefffbf48)
 13522 netscape RET   ioctl 0
 13522 netscape CALL  sigprocmask(0x1,0xefffbf48,0xefffbfc0)
 13522 netscape RET   sigprocmask 0
 13522 netscape CALL  sigprocmask(0x3,0xefffbfc0,0)
 13522 netscape RET   sigprocmask 0
 13522 netscape CALL  ioctl(0x7,_IO('S',0xa,0),0xefffbfbc)
 13522 netscape RET   ioctl -1 errno 22 Invalid argument
 13522 netscape CALL  ioctl(0x7,_IO('S',0x8,0),0xefffbf48)
 13522 netscape RET   ioctl 0
 13522 netscape CALL  sigprocmask(0x1,0xefffbf48,0xefffbfc0)
 13522 netscape RET   sigprocmask 0
 13522 netscape CALL  sigprocmask(0x3,0xefffbfc0,0)
 13522 netscape RET   sigprocmask 0
 13522 netscape CALL  ioctl(0x7,_IO('S',0xa,0),0xefffbfbc)
 13522 netscape RET   ioctl -1 errno 22 Invalid argument
 13522 netscape CALL  ioctl(0x7,_IO('S',0x8,0),0xefffbf48)
 13522 netscape RET   ioctl 0
 13522 netscape CALL  sigprocmask(0x1,0xefffbf48,0xefffbfc0)
 13522 netscape RET   sigprocmask 0
 13522 netscape CALL  sigprocmask(0x3,0xefffbfc0,0)
 13522 netscape CALL  ioctl(0x7,_IO('S',0xa,0),0xefffbfbc)
 13522 netscape RET   ioctl -1 errno 22 Invalid argument
 13522 netscape CALL  close(0x7)
 13522 netscape RET   close 0