On Sat, Oct 31, 2015 at 10:40:36PM +0200, Juha Erkkilä wrote:
> Hi,
>
> I have the following configuration line in /etc/inetd.conf
>
> /tftpboot/tftpdhook stream unix nowait _tftpdhook
> /usr/local/sbin/tftpdhook
>
> Apparently because of this inetd crashes at startup
> (in a very recent snapshot):
>
> inetd(1843): syscall 10 "cpath"
Here is some more info. I tested with latest changes (that is,
usr.sbin/inetd/inetd.c is 1.148, sys/kern/uipc_usrreq.c is 1.91),
it still breaks.
Here's gdb tracktrace:
(gdb) bt
#0 0x00001c198942affa in unlink () at <stdin>:2
#1 0x00001c169da03fce in config (sig=0, event=0, arg=0x0)
at /usr/src/usr.sbin/inetd/inetd.c:617
#2 0x00001c169da03425 in main (argc=0, argv=0x7f7fffff2d48)
at /usr/src/usr.sbin/inetd/inetd.c:374
Here's kdump (tail) as well:
---
28563 inetd GIO fd 8 read 65 bytes
"ppleTalk Echo Protocol
zip 6/ddp # Zone Information Pro\
tocol
"
28563 inetd RET read 12353/0x3041
28563 inetd CALL close(8)
28563 inetd RET close 0
28563 inetd CALL socket(AF_INET6,0x1<SOCK_STREAM>,0)
28563 inetd RET socket 8
28563 inetd CALL setsockopt(8,SOL_SOCKET,SO_DEBUG,0x7f7fffff371c,4)
28563 inetd RET setsockopt 0
28563 inetd CALL setsockopt(8,SOL_SOCKET,SO_REUSEADDR,0x7f7fffff371c,4)
28563 inetd RET setsockopt 0
28563 inetd CALL bind(8,0x886d1b02108,28)
28563 inetd STRU struct sockaddr { AF_INET6, [::]:13 }
28563 inetd RET bind 0
28563 inetd CALL listen(8,10)
28563 inetd RET listen 0
28563 inetd CALL kbind(0x7f7fffff35a8,0x18,0x2b4f9c5caaec5dc5)
28563 inetd RET kbind 0
28563 inetd CALL read(4,0x886e1435000,0x4000)
28563 inetd RET read 0
28563 inetd CALL write(2,0x7f7fffff3130,0xd)
28563 inetd GIO fd 2 wrote 13 bytes
"ADD: daytime "
28563 inetd RET write 13/0xd
28563 inetd CALL write(2,0x7f7fffff3130,0xb)
28563 inetd GIO fd 2 wrote 11 bytes
"proto=tcp6,"
28563 inetd RET write 11/0xb
28563 inetd CALL write(2,0x7f7fffff3130,0x4a)
28563 inetd GIO fd 2 wrote 74 bytes
" wait.max=0.256 user:group=root:wheel builtin=883fdf08650 server=inter\
nal
"
28563 inetd RET write 74/0x4a
28563 inetd CALL kbind(0x7f7fffff3688,0x18,0x2b4f9c5caaec5dc5)
28563 inetd RET kbind 0
28563 inetd CALL kbind(0x7f7fffff3688,0x18,0x2b4f9c5caaec5dc5)
28563 inetd RET kbind 0
28563 inetd CALL unlink(0x88669602d20)
28563 inetd PLDG unlink, "cpath", errno 1 Operation not permitted
28563 inetd PSIG SIGABRT SIG_DFL code <-559070960>
---
Juha