NetBSD Problem Report #8420

Received: (qmail 23881 invoked from network); 16 Sep 1999 12:42:17 -0000
Message-Id: <199909161242.VAA00423@mirage.ceres.dti.ne.jp>
Date: Thu, 16 Sep 1999 21:42:09 +0900 (JST)
From: Izumi Tsutsui <tsutsui@ceres.dti.ne.jp>
Reply-To: tsutsui@ceres.dti.ne.jp
To: gnats-bugs@gnats.netbsd.org
Cc: tsutsui@ceres.dti.ne.jp
Subject: old COMPAT_43 lseek() does not work on COMPAT_AOUT environment
X-Send-Pr-Version: 3.95

>Number:         8420
>Category:       kern
>Synopsis:       old COMPAT_43 lseek() does not work on COMPAT_AOUT environment
>Confidential:   no
>Severity:       serious
>Priority:       high
>Responsible:    kern-bug-people
>State:          closed
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Thu Sep 16 05:50:00 +0000 1999
>Closed-Date:    Thu Sep 16 18:19:53 +0000 1999
>Last-Modified:  Thu Sep 16 18:20:30 +0000 1999
>Originator:     Izumi Tsutsui
>Release:        NetBSD-current 19990914
>Organization:
Izumi Tsutsui	Himeji City, Japan
>Environment:
System: NetBSD mirage 1.4K NetBSD 1.4K (MIRAGE) #82: \
Thu Sep 16 21:01:51 JST 1999

>Description:
The old COMPAT_43 lseek() in a.out binary does not work
on COMPAT_AOUT environment.

>How-To-Repeat:
Run Netscape Navigator 3.04 for BSD x86 version on NetBSD/i386 current
with a.out emulation. It can not read "history.db" properly and
links would not be updated. ktrace(1) output says:

   911 netscape CALL  compat_43_olseek(0x7,0,0,0x59d800,0xefbfbd24)
   911 netscape RET   compat_43_olseek -1 errno 22 Invalid argument
   911 netscape CALL  compat_43_olseek(0x7,0,0,0x59d800,0xefbfbd0c)
   911 netscape RET   compat_43_olseek -1 errno 22 Invalid argument

>Fix:
Fix /sys/compat/aout/syscalls.master and regen related files.

--- sys/compat/aout/syscalls.master.orig	Thu Sep 16 21:13:35 1999
+++ sys/compat/aout/syscalls.master	Thu Sep 16 21:00:55 1999
@@ -83,7 +83,7 @@
 17	NOARGS		{ int sys_obreak(char *nsize); } break
 18	NOARGS		{ int sys_getfsstat(struct statfs *buf, long bufsize, \
 			    int flags); }
-19	NOARGS		{ long sys_lseek(int fd, long offset, int whence); } \
+19	NOARGS		{ long compat_43_sys_lseek(int fd, long offset, int whence); } \
 			    olseek
 20	NOARGS		{ pid_t sys_getpid(void); }
 21	STD		{ int aout_sys_mount(const char *type, \

---
>Release-Note:
>Audit-Trail:
State-Changed-From-To: open->closed 
State-Changed-By: christos 
State-Changed-When: Thu Sep 16 14:19:53 EDT 1999 
State-Changed-Why:  
Thanks, we found this at the same time. I fixed it last night and I committed the changes 
>Unformatted:

NetBSD Home
NetBSD PR Database Search

(Contact us) $NetBSD: query-full-pr,v 1.51 2026/08/10 02:28:17 riastradh Exp $
$NetBSD: gnats_config.sh,v 1.10 2026/05/13 22:00:09 riastradh Exp $
Copyright © 1994-2026 The NetBSD Foundation, Inc. ALL RIGHTS RESERVED.