Thomas Schwinge | 25 May 11:34
Gravatar

»No more PTYs« message

Hi!

We've been seeing this on darnassus several times: try to allocate a PTY
(log in via SSH, or start screen, etc.), and get a »No more PTYs«
message.  Now the same happend on flubber: I could log in via SSH, but
starting screen failed.  I did a »ls -l /dev/tty* /dev/pty*« (which will
start all translators due to »stat«ing the nodes) -- and then I was able
to start screen.  Strange?

Grüße,
 Thomas
Pino Toscano | 20 May 22:58
X-Face
Picon
Favicon

[PATCH,HURD] sendto: do not crash when addr is NULL

Hi,

currently, sendto() crashes when the specified addr is NULL; the 
attached patch fixes it making sendto() with NULL addr behave as it 
would be a plain send().

Thanks,
-- 
Pino Toscano
Hurd: sendto: do not crash when addr is NULL

Work also when the specified addr is NULL; simplify also the usage of err.

2012-05-20  Pino Toscano  <toscano.pino <at> tiscali.it>

	* sysdeps/mach/hurd/sendto.c: Consider also when addr is NULL.
--- a/sysdeps/mach/hurd/sendto.c
+++ b/sysdeps/mach/hurd/sendto.c
@@ -33,11 +33,11 @@ __sendto (int fd,
 	  const struct sockaddr_un *addr,
 	  socklen_t addr_len)
 {
-  addr_port_t aport;
-  error_t err;
+  addr_port_t aport = MACH_PORT_NULL;
+  error_t err = 0;
   size_t wrote;

(Continue reading)

Riccardo Mottola | 19 May 16:15
Picon
Favicon

grub-pc makes hurd crash

Hi,

while configuring/installing grub-pc from debian, the kernel panics in 
the way attached in the screenshot.

Riccardo
Riccardo Mottola | 19 May 16:13
Picon
Favicon

grub-pc makes hurd crash

Hi,

while configuring/installing grub-pc from debian, the kernel panics in 
the way attached in the screenshot.

Riccardo
Samuel Thibault | 19 May 14:45
Picon

restartable netdde

Hello,

One nifty feature of userland drivers is that you can easily restart
them by just making the translator away. However, that makes pfinet
away, as well as all current network connexions and listening servers.

But pfinet doesn't really need to exit: it could just reopen the network
device after e.g. 1s delay, reconfigure it, and continue as if nothing
happened.

Could somebody have a look?

Samuel

Riccardo Mottola | 16 May 00:35
Picon
Favicon

kernel panic on network activity

Hi,

I attach a screenshot on how my kernel panics when I just "ping" 
localhost. I provide a "screenshot" since I had to uninstall any ssh, 
telnet or login daemon to be able to boot.
This happens after the last debian update I was doing.

dpkg -l | grep hurd
reports: 20120408-3

Any hints?

Riccardo
Thomas Thomas | 16 May 00:53
Picon
Favicon

cthreads to pthreads conversion

So, I have gotten this patch back to where Barry had it in 2008:
It needs testing. Specific changes that I have made are to remove the need for
condition_implies from console-client, pfinet, term, and trans. I, mostly,
followed the pattern set by Vicente in libpipe. (Which was in a strange state
in Barry's patch.) I also audited uses of trylock due to the return values
changing from cthreads to pthreads. The only questionable piece of code is
marked "BDD - Is this sane?" in ufs/sizes.c. I think Barry's replacement is
correct.

Compiling notes:
The patch should apply cleanly to HEAD as of May 14, 2012.

You need an implementation of hurd_condition_wait in libpthread: I will attach
Vicente's, which he put in sysdeps/hurd.

I had to comment out the declaration of hurd_condition_wait in
/usr/include/cthreads.h for the new one to compile.

I had to give the absolute path to libpthread2.a in libpthread.a to get the
linker to link to it. Without doing so, the linker would use the
libpthread2.a somewhere in /lib/, and I would get undefined references to
hurd_condition_wait.

Finally, I had to apply the have_kernel_resources branch to libpthreads. A
broken patch is better than no patch. It is personally frustrating to me to be
changing the source from a working threading library to one which does not
work. At all. Given the code, programs should always fail at the first
pthread_create.

Anyway... this is for testing. Most of the code changes were done by Barry
(Continue reading)

Samuel Thibault | 12 May 20:01
Picon

[PATCH,HURD] Add SysV SHM support

2005-07-11  Marcus Brinkmann  <marcus <at> gnu.org>

        * hurd/Makefile (routines): Add sysvshm.
        (distribute): Add sysvshm.h.
        * hurd/sysvshm.h: New file.
        * hurd/sysvshm.c: New file.
        * sysdeps/mach/hurd/bits/stat.h (S_IMMAP0): New macro.
        (S_ISPARE): Unset the S_IMMAP0 flag.
        * sysdeps/mach/hurd/ftok.c: New file.
        * sysdeps/mach/hurd/shmat.c: New file.
        * sysdeps/mach/hurd/shmctl.c: New file.
        * sysdeps/mach/hurd/shmdt.c: New file.
        * sysdeps/mach/hurd/bits/posix_opt.h: Define _XOPEN_SHM to 1.

---
 hurd/Makefile                      |    3 +-
 hurd/sysvshm.c                     |   96 ++++++++++++++
 hurd/sysvshm.h                     |   47 +++++++
 sysdeps/mach/hurd/bits/posix_opt.h |    2 +
 sysdeps/mach/hurd/ftok.c           |   43 +++++++
 sysdeps/mach/hurd/shmat.c          |   78 ++++++++++++
 sysdeps/mach/hurd/shmctl.c         |  132 ++++++++++++++++++++
 sysdeps/mach/hurd/shmdt.c          |   51 ++++++++
 sysdeps/mach/hurd/shmget.c         |  242 ++++++++++++++++++++++++++++++++++++
 9 files changed, 693 insertions(+), 1 deletion(-)

diff --git a/hurd/Makefile b/hurd/Makefile
index bdad4ff..4f74ccc 100644
--- a/hurd/Makefile
+++ b/hurd/Makefile
(Continue reading)

Samuel Thibault | 12 May 19:27
Picon

[PATCH,HURD] Add TLS support

This adds TLS support to GNU/HURD. Using it to replace threadvar will be
part of another patch.  I had to separate the thread state with segments
from the thread state without segments: each thread has its own gs
segment, which needs to be inherited across fork, etc.  I also had to
fix some initialization order.

2009-07-30  Samuel Thibault  <samuel.thibault <at> gnu.org>

	* sysdeps/mach/hurd/bits/libc-lock.h [_LIBC - 0]: Include <tls.h>
	* sysdeps/mach/hurd/tls.h: Include <stdint.h> and <sysdep.h>
	* include/errno.h (__GNU__): Do not define TLS errno for now.

	* sysdeps/generic/thread_state.h (MACHINE_NEW_THREAD_STATE_FLAVOR): New
	macro.
	* sysdeps/mach/thread_state.h (MACHINE_THREAD_STATE_FIX_NEW): New macro.
	* sysdeps/mach/i386/thread_state.h (MACHINE_NEW_THREAD_STATE_FLAVOR):
	New macro, defined to i386_THREAD_STATE.
	(MACHINE_THREAD_STATE_FLAVOR): Define to i386_REGS_SEGS_STATE instead
	of i386_THREAD_STATE.
	(MACHINE_THREAD_STATE_FIX_NEW): New macro, reads segments.
	* sysdeps/mach/powerpc/thread_state.h (MACHINE_NEW_THREAD_STATE_FLAVOR):
	New macro, defined to PPC_THREAD_STATE.

	* sysdeps/mach/hurd/i386/trampoline.c (_hurd_setup_sighandler): Use
	i386_REGS_SEGS_STATE instead of i386_THREAD_STATE.

	* sysdeps/mach/hurd/i386/tls.h (_hurd_tls_init): Use kern_return_t
	error type. Use first GDT slot, 0x48.
	(_hurd_tls_fork): Use kern_return_t error type.  Duplicate existing LDT
	descriptor instead of creating a new one.
(Continue reading)

Favicon

[Bug hurd/766] ioctl() incorrectly decodes argument

http://sourceware.org/bugzilla/show_bug.cgi?id=766

--- Comment #9 from Roland McGrath <roland at gnu dot org> 2012-05-11 17:00:26 UTC ---
Having regression cases in the libc test suite is always a good idea.

--

-- 
Configure bugmail: http://sourceware.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.

Favicon

[Bug libc/3748] Usage of `__libc_once' interface in `sysdeps/posix/getaddrinfo.c'

http://sourceware.org/bugzilla/show_bug.cgi?id=3748

Thomas Schwinge <tschwinge at sourceware dot org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |tschwinge at sourceware dot
                   |                            |org
         Resolution|INVALID                     |FIXED
         AssignedTo|drepper.fsp at gmail dot    |roland at gnu dot org
                   |com                         |

--- Comment #3 from Thomas Schwinge <tschwinge at sourceware dot org> 2012-05-11 03:09:25 UTC ---
be971a2b1c7828d94c41edd5cd22c1d9dcef1b6e

--

-- 
Configure bugmail: http://sourceware.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.


Gmane