Subject: Re: kern/32161: m68k a.out emulation broken
To: None <kern-bug-people@netbsd.org, gnats-admin@netbsd.org,>
From: Hauke Fath <hauke@Espresso.Rhein-Neckar.DE>
List: netbsd-bugs
Date: 05/06/2006 20:20:02
The following reply was made to PR kern/32161; it has been noted by GNATS.

From: Hauke Fath <hauke@Espresso.Rhein-Neckar.DE>
To: Izumi Tsutsui <tsutsui@ceres.dti.ne.jp>
Cc: hauke@Espresso.Rhein-Neckar.DE, christos@zoulas.com,
	gnats-bugs@NetBSD.org
Subject: Re: kern/32161: m68k a.out emulation broken
Date: Sat, 6 May 2006 21:57:25 +0200

 At 20:55 Uhr +0900 6.5.2006, Izumi Tsutsui wrote:
 >In article <l03102800c0822f6885d4@q650.causeuse.org>
 >hauke@Espresso.Rhein-Neckar.DE wrote:
 >
 >> There is something going amiss - it looks like the generated
 >> aoutm68k_syscalls.c file is incomplete (cvs HEAD from 2006-05-05):
 > :
 >> [hauke@fattie] /<2>usr.bin/kdump > cat
 >> ../../sys/compat/aoutm68k/aoutm68k_syscalls.c
 >> /* $NetBSD$ */
 >>
 >> /*
 >>  * System call names.
 >>  *
 >>  * DO NOT EDIT-- this file is automatically generated.
 >
 >How did you checkout it? Checked out files should have proper RCS Id:
 >http://cvsweb.netbsd.org/bsdweb.cgi/src/sys/compat/aoutm68k/aoutm68k_syscalls.c
 >?rev=1.16
 
 Yep. I build from an nfs-mounted source tree with a union-mounted /var/obj
 on top, and for whatever reason the latter had the above file hanging
 around. Removed it, and all went fine and dandy.
 
 [hauke@fattie] /var/tmp > kdump
   1194      1 ktrace   EMUL  "netbsd"
   1194      1 ktrace   CALL  execve(0xffffb87b,0xffffb75c,0xffffb764)
   1194      1 ktrace   NAMI  "./ls-1.5"
   1194      1 ls-1.5   EMUL  "aoutm68k"
   1194      1 ls-1.5   RET   execve JUSTRETURN
   1194      1 ls-1.5   CALL  issetugid
   1194      1 ls-1.5   RET   issetugid 0, -1/0xffffffff
   1194      1 ls-1.5   CALL  ioctl(1,TIOCGETA,0xffffb714)
   1194      1 ls-1.5   RET   ioctl -1 errno 25 Inappropriate ioctl for device
   1194      1 ls-1.5   CALL  getuid
   1194      1 ls-1.5   RET   getuid 100/0x64, 1
   1194      1 ls-1.5   CALL  __sysctl(0xffffb650,2,0xffffb648,0xffffb64c,0,0)
   1194      1 ls-1.5   RET   __sysctl 0, 2
   1194      1 ls-1.5   CALL  readlink(0x2f276,0xffffb68c,0x3f)
   1194      1 ls-1.5   NAMI  "/etc/malloc.conf"
   1194      1 ls-1.5   RET   readlink -1 errno 2 No such file or directory
   1194      1 ls-1.5   CALL  mmap(0,0x1000,3,0x1002,0xffffffff,0,0,0)
   1194      1 ls-1.5   RET   mmap 67366912/0x403f000, -255/0xffffff01
   1194      1 ls-1.5   CALL  break(0x4369c)
   1194      1 ls-1.5   RET   break 0, -255/0xffffff01
   1194      1 ls-1.5   CALL  break(0x4369c)
   1194      1 ls-1.5   RET   break 0, 2048/0x800
   1194      1 ls-1.5   CALL  break(0x45000)
   1194      1 ls-1.5   RET   break 0, -4096/0xfffff000
   1194      1 ls-1.5   CALL  break(0x45000)
   1194      1 ls-1.5   RET   break 0, 2048/0x800
   1194      1 ls-1.5   CALL  break(0x46000)
   1194      1 ls-1.5   RET   break 0, -4096/0xfffff000
   1194      1 ls-1.5   CALL  break(0x46000)
   1194      1 ls-1.5   RET   break 0, 2048/0x800
   1194      1 ls-1.5   CALL  break(0x47000)
   1194      1 ls-1.5   RET   break 0, -4096/0xfffff000
   1194      1 ls-1.5   CALL  break(0x47000)
   1194      1 ls-1.5   RET   break 0, 2048/0x800
   1194      1 ls-1.5   CALL  break(0x48000)
   1194      1 ls-1.5   RET   break 0, -4096/0xfffff000
   1194      1 ls-1.5   CALL  __stat13(0x470c0,0xffffb674)
   1194      1 ls-1.5   NAMI  "."
   1194      1 ls-1.5   RET   __stat13 0, -18828/0xffffb674
   1194      1 ls-1.5   CALL  open(0x8a10,0,0)
   1194      1 ls-1.5   NAMI  "."
   1194      1 ls-1.5   RET   open 3, 65535/0xffff
   1194      1 ls-1.5   CALL  fchdir(3)
   1194      1 ls-1.5   RET   fchdir 0, -65506/0xffff001e
   1194      1 ls-1.5   CALL  open(0x8a10,0,0)
   1194      1 ls-1.5   NAMI  "."
   1194      1 ls-1.5   RET   open 4, 1
   1194      1 ls-1.5   CALL  open(0x46000,4,4)
   1194      1 ls-1.5   NAMI  "."
   1194      1 ls-1.5   RET   open 5, 1
   1194      1 ls-1.5   CALL  __fstat13(5,0xffffb638)
   1194      1 ls-1.5   RET   __fstat13 0, 1
   1194      1 ls-1.5   CALL  fcntl(5,2,1)
   1194      1 ls-1.5   RET   fcntl 0, 1
   1194      1 ls-1.5   CALL  __sysctl(0xffffb4f8,2,0x4294c,0xffffb4f4,0,0)
   1194      1 ls-1.5   RET   __sysctl 0, 2
   1194      1 ls-1.5   CALL  #158 (excluded compat_20_sys_statfs)(5,0xffffb538)
   1194      1 ls-1.5   RET   #158 (excluded compat_20_sys_statfs) 0,
 -1/0xffffffff
   1194      1 ls-1.5   CALL  break(0x48000)
   1194      1 ls-1.5   RET   break 0, 2048/0x800
   1194      1 ls-1.5   CALL  break(0x49000)
   1194      1 ls-1.5   RET   break 0, -4096/0xfffff000
   1194      1 ls-1.5   CALL  lseek(5,0,0,0,1,0xffffb69c)
   1194      1 ls-1.5   RET   lseek 0
   1194      1 ls-1.5   CALL  #272 (excluded
 compat_30_sys_getdents)(5,0x48000,0x1000)
   1194      1 ls-1.5   RET   #272 (excluded compat_30_sys_getdents) 180/0xb4
   1194      1 ls-1.5   CALL  lseek(5,0,0,0,1,0xffffb69c)
   1194      1 ls-1.5   RET   lseek 0, 512/0x200
   1194      1 ls-1.5   CALL  #272 (excluded
 compat_30_sys_getdents)(5,0x48000,0x1000)
   1194      1 ls-1.5   RET   #272 (excluded compat_30_sys_getdents) 0,
 512/0x200
   1194      1 ls-1.5   CALL  lseek(5,0,0,0,0,0xffffb670)
   1194      1 ls-1.5   RET   lseek 0
   1194      1 ls-1.5   CALL  close(5)
   1194      1 ls-1.5   RET   close 0, -65473/0xffff003f
   1194      1 ls-1.5   CALL  fchdir(4)
   1194      1 ls-1.5   RET   fchdir 0, 292086/0x474f6
   1194      1 ls-1.5   CALL  close(4)
   1194      1 ls-1.5   RET   close 0, 292086/0x474f6
   1194      1 ls-1.5   CALL  __fstat13(1,0xffffaeb0)
   1194      1 ls-1.5   RET   __fstat13 0, 1
   1194      1 ls-1.5   CALL  break(0x49000)
   1194      1 ls-1.5   RET   break 0, 2048/0x800
   1194      1 ls-1.5   CALL  break(0x4b000)
   1194      1 ls-1.5   RET   break 0, -4096/0xfffff000
   1194      1 ls-1.5   CALL  write(1,0x49000,0x53)
   1194      1 ls-1.5   GIO   fd 1 wrote 83 bytes
        "base.tgz
 	bin
 	kernel.log
 	ktrace.out
 	ls-1.5
 	ls.aout.kdump
 	ls.aout.kdump.1
 	vi.recover
        "
   1194      1 ls-1.5   RET   write 83/0x53, 16/0x10
   1194      1 ls-1.5   CALL  exit(0)
 
 Thanks again!
 
 	hauke
 
 --
 "It's never straight up and down"     (DEVO)