NetBSD-Bugs archive

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

Re: bin/56471: ntpd dies at startup on macppc/current, sshd randomly dies



This was probably caused by Christos’s change that unified __libc_sigaction14() with the added #define __LIBC12_SOURCE__.  Because “sigcontext” signal handlers have been broken for so long (since 2006), re-enabling them has turned up bugs (no one has been using the old __sigreturn14 system call for a long time).

> On Oct 29, 2021, at 2:10 AM, Martin Husemann <martin%duskware.de@localhost> wrote:
> 
> The following reply was made to PR bin/56471; it has been noted by GNATS.
> 
> From: Martin Husemann <martin%duskware.de@localhost>
> To: gnats-bugs%netbsd.org@localhost
> Cc: gnats-admin%netbsd.org@localhost, netbsd-bugs%netbsd.org@localhost
> Subject: Re: bin/56471: ntpd dies at startup on macppc/current, sshd randomly
> dies
> Date: Fri, 29 Oct 2021 11:05:24 +0200
> 
> Running ntpd with -D 255 shows:
> 
> [..]
> setting SO_REUSEADDR on gem0@fe80::203:93ff:fe71:ffcc%2 to off
> setting SO_REUSEADDR on gem0@192.168.111.68 to off
> setting SO_REUSEADDR on lo0@127.0.0.1 to off
> setting SO_REUSEADDR on lo0@::1 to off
> setting SO_REUSEADDR on lo0@fe80::1%3 to off
> create_sockets: Total interfaces = 7
> 29 Oct 10:57:56 ntpd[1447]: Listening on routing socket on fd #27 for interface updates
> io_open_sockets: maxactivefd 27
> forked worker child (pid 1214)
> parent closed request pipe, child 1214 terminating
> 
> 
> Running ktrace -i on it again (without the debug settings) shows this
> as last sequence of calls from the child:
> 
>   1213   1213 ntpd     CALL  compat_16___sigreturn14(0xffffe000)
>   1213   1213 ntpd     RET   compat_16___sigreturn14 -1 errno 22 Invalid argument
>   1213   1213 ntpd     CALL  exit(0x16)
> 
> ... and this kernel does not have COMPAT_16 enabled.
> 
> Just to make sure: this is from a clean build of today's -current. No old code
> involved.
> 
> Martin
> 

-- thorpej



Home | Main Index | Thread Index | Old Index