Hurd shutdown problems

2016-08-05 Thread Brent W. Baccala
Aloha! Well, I think that I've resolved my boot hangs by removing the -no-kvm-irqchip flag, now I'm trying to resolve the occasional hang when the system shuts down. The filesystem always gets corrupted if the system can't cleanly halt, so it's a real problem. Here's some debugging info from the

Re: Bugs in Hurd's recvmsg (msg_name AF_LOCAL, MSG_DONTWAIT)

2016-08-05 Thread Christian Seiler
On 08/01/2016 12:08 PM, Christian Seiler wrote: > I've now isolated the problems and have a reproducer (attached) > and it has _nothing_ to do with SCM_CREDS, but with much more > basic functionality. > > Problem 1 (causing SIGLOST): > > When msg_name and msg_namelen are filled for a SOCK_STREAM

[PATCH] [glibc] sysdeps/mach/hurd/recvmsg.c: don't try to resolve invalid address

2016-08-05 Thread Christian Seiler
On 08/01/2016 12:08 PM, Christian Seiler wrote: > Problem 1 (causing SIGLOST): > > When msg_name and msg_namelen are filled for a SOCK_STREAM AF_LOCAL > socket (maybe also other AF_LOCAL, didn't check) upon calling > recvmsg, SIGLOST is generated. So this is actually a bug in glibc, in that recvm

[PATCH] [hurd] pflocal/socket.c: Support MSG_DONTWAIT in pflocal send/recv

2016-08-05 Thread Christian Seiler
On 08/01/2016 12:08 PM, Christian Seiler wrote: > Problem 2: > > MSG_DONTWAIT is ignored for recvmsg, it always blocks (at least > when using AF_LOCK sockets). I've even tried to pre-fill the > msg_flags member with it (which you shouldn't need to do > according to POSIX, the flags argument should

Re: [PATCH] drop the deprecated malloc/free hooks in hurd/mach-defpager

2016-08-05 Thread Thomas Schwinge
Hi! On Mon, 30 May 2016 23:59:33 +0200, Samuel Thibault wrote: > Justus Winter, on Wed 18 May 2016 13:27:13 +0200, wrote: > > As Richard said in #hurd, implement mlockall and MCL_FUTURE and just > > use the default allocator. > > Indeed. (Conceptually ACK.) > > or is the removal of that depr