NetBSD-Bugs archive

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

port-i386/53260: No compat_16_sys___sigaction14 syscall in 8.0_RC1 GENERIC



>Number:         53260
>Category:       port-i386
>Synopsis:       No compat_16_sys___sigaction14 syscall in 8.0_RC1 GENERIC
>Confidential:   no
>Severity:       non-critical
>Priority:       medium
>Responsible:    port-i386-maintainer
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Fri May 04 04:00:00 +0000 2018
>Originator:     Izumi Tsutsui
>Release:        NetBSD 8.0_RC1
>Organization:
>Environment:
System: NetBSD mirage 8.0_RC1 NetBSD 8.0_RC1 (GENERIC.201804191727Z) i386
Architecture: i386
Machine: i386
>Description:
It looks there is no compat_16_sys___sigaction14() compat function
in NetBSD/i386 8.0_RC1 GENERIC kernel.

An old a.out in my /usr/local/bin binary dumps core:
---
% /usr/local/bin/fd

[...]

Bad system call (core dumped)
                             % 
---

ktrace(1)/kdump(1) says:
---
  2589      1 fd       RET   write 15/0xf
  2589      1 fd       CALL  ioctl(3,TIOCGWINSZ,0xbfbfeb6c)
  2589      1 fd       GIO   fd 3 read 8 bytes
       "\^^\0P\0\M^S\^B\M-d\^A"
  2589      1 fd       RET   ioctl 0
  2589      1 fd       CALL  compat_16___sigaction14(SIGALRM,0xbfbfeb64,0xbfbfeb4c)
  2589      1 fd       RET   compat_16___sigaction14 -1 errno 78 Function not implemented
  2589      1 fd       PSIG  SIGSYS SIG_DFL: code=SI_NOINFO
  2589      1 fd       NAMI  "fd.core"
---

The same binary worked on 7.1.2 GENERIC and it has the following function:
---
% strings /netbsd.712 | grep '7\.1\.2'
NetBSD 7.1.2 (GENERIC.201803151611Z)
@(#)NetBSD 7.1.2 (GENERIC.201803151611Z)
7.1.2
% nm /netbsd.712 | grep 'compat.*_sigaction'
c0a84529 T compat_13_sys_sigaction
c0a84340 T compat_16_sys___sigaction14
c0a87536 T compat_43_sigaction_to_sigvec
c0a87503 T compat_43_sigvec_to_sigaction
% 
---

8.0_RC1 GENERIC doesn't have the function:
---
% strings /netbsd | grep '8\.0_RC1'
NetBSD 8.0_RC1 (GENERIC.201804191727Z)
@(#)NetBSD 8.0_RC1 (GENERIC.201804191727Z)
8.0_RC1
% nm /netbsd | grep 'compat.*_sigaction'
c0c19a0f T compat_13_sys_sigaction
c0c1cd86 T compat_43_sigaction_to_sigvec
c0c1cd53 T compat_43_sigvec_to_sigaction
% 
---

Note strings(1) shows a bit different names about compat_16_*_sigaction14
in the 7.1.2 and 8.0_RC1 kernels:
---
% strings /netbsd.712 | grep 'compat_.*sigaction'|sort
compat_13_sys_sigaction
compat_16_sys___sigaction14
compat_43_sigaction_to_sigvec
compat_43_sigvec_to_sigaction
% strings /netbsd | grep 'compat_.*sigaction' | sort
compat_13_sigaction13
compat_13_sys_sigaction
compat_16___sigaction14
compat_43_sigaction_to_sigvec
compat_43_sigvec_to_sigaction
% 
---

>How-To-Repeat:
Exec an old a.out (around NetBSD 1.4) binaries
on NetBSD/i386 8.0_RC1 GENERIC?

>Fix:
Not investigated.



Home | Main Index | Thread Index | Old Index