NetBSD-Bugs archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
kern/54804: compat_30_socket not implemented on 9.0_RC1
>Number: 54804
>Category: kern
>Synopsis: compat_30_socket not implemented on 9.0_RC1
>Confidential: no
>Severity: non-critical
>Priority: medium
>Responsible: kern-bug-people
>State: open
>Class: sw-bug
>Submitter-Id: net
>Arrival-Date: Sat Dec 28 14:50:00 +0000 2019
>Originator: Izumi Tsutsui
>Release: NetBSD 9.0_RC1
>Organization:
>Environment:
System: NetBSD mirage 9.0_RC1 NetBSD 9.0_RC1 (GENERIC) #9: Tue Dec 24 20:50:30 JST 2019 tsutsui@mirage:/s/netbsd-9/src/sys/arch/i386/compile/GENERIC i386
Architecture: i386
Machine: i386
>Description:
An old binary "xbat" in my machine (maybe built on NetBSD/i386 1.2)
dumps core due to compat_30 issue:
---
% ls -Fla `which xbat`
-rwxr-xr-x 1 root wheel 81920 Mar 1 1997 /usr/local/bin/xbat*
% file `which xbat`
/usr/local/bin/xbat: a.out NetBSD/i386 demand paged dynamically linked executable
% /usr/local/bin/xbat
Bad system call (core dumped)
% ktrace /usr/local/bin/xbat
Bad system call (core dumped)
% kdump
:
10760 1 xbat CALL open(0xa0014a7f,0,0)
10760 1 xbat NAMI "/var/run/ld.so.hints"
10760 1 xbat RET open 4
10760 1 xbat CALL compat_30___fstat13(4,0xbfbfeb38)
10760 1 xbat RET compat_30___fstat13 0
10760 1 xbat CALL mmap(0,0x2000,PROT_READ,0x2<PRIVATE,FILE,ALIGN=NONE
>,4,0,0,0)
10760 1 xbat RET mmap -1610444800/0xa0029000
:
10760 1 xbat CALL geteuid
10760 1 xbat RET geteuid 100/0x64
10760 1 xbat CALL compat_30___stat13(0xa010370c,0xbfbfeabc)
10760 1 xbat NAMI "/etc/pwd.db"
10760 1 xbat RET compat_30___stat13 0
10760 1 xbat CALL open(0xa010370c,0,0)
10760 1 xbat NAMI "/etc/pwd.db"
10760 1 xbat RET open 3
:
10760 1 xbat CALL ioctl(3,TIOCGETA,0xbfbfea60)
10760 1 xbat RET ioctl -1 errno 25 Inappropriate ioctl for device
10760 1 xbat CALL compat_30___fstat13(3,0xbfbfe9dc)
10760 1 xbat RET compat_30___fstat13 0
10760 1 xbat CALL break(0x2f000)
10760 1 xbat RET break 0
:
10760 1 xbat RET pread 4096/0x1000
10760 1 xbat CALL close(3)
10760 1 xbat RET close 0
10760 1 xbat CALL __sysctl(0xbfbfe7ec,2,0xbfbfe838,0xbfbfe7e8,0,0)
10760 1 xbat RET __sysctl 0
10760 1 xbat CALL compat_30_socket(1,1,0)
10760 1 xbat RET compat_30_socket -1 errno 78 Function not implemented
10760 1 xbat PSIG SIGSYS SIG_DFL: code=SI_NOINFO
10760 1 xbat NAMI "xbat.core"
%
---
>How-To-Repeat:
Exec old binaries around NetBSD/i386 1.2?
>Fix:
No idea why only COMPAT_30 sys_socket() fails.
---
Izumi Tsutsui
Home |
Main Index |
Thread Index |
Old Index