* bug#59616: Texinfo 6.7 test hangs on i586-gnu (GNU/Hurd)
@ 2022-11-26 18:22 Ludovic Courtès
2022-11-27 22:34 ` Ludovic Courtès
0 siblings, 1 reply; 2+ messages in thread
From: Ludovic Courtès @ 2022-11-26 18:22 UTC (permalink / raw)
To: 59616
The ‘t/malformed-split.sh’ test of Texinfo 6.7 hangs on GNU/Hurd (in a
childhurd) as of commit 78f03567f44f704dfbc03cb64368aa42a01e78ad.
The test invokes its ‘pseudotty’ program, which creates a
pseudo-terminal using ‘posix openpt’. That call fails when not running
as root in a childhurd:
--8<---------------cut here---------------start------------->8---
task109(pid14826)-> 4205 (227424 0 0);
75<--117(pid14826)->io_write_request ("./pseudotty: " -1)./pseudotty: = 0 13
75<--117(pid14826)->io_write_request ("getting pty master fd" -1)getting pty master fd = 0 21
75<--117(pid14826)->io_write_request ("\n" -1)
= 0 1
task109(pid14826)-> 4205 (227424 0 0);
task109(pid14826)-> 4205 (227424 0 0);
86<--120(pid14826)->dir_lookup ("dev/ptyp0" 3 0) = 0x4000000d (Permission denied)
86<--120(pid14826)->dir_lookup ("dev/ptyp1" 3 0) = 0x40000010 (Device or resource busy)
86<--120(pid14826)->dir_lookup ("dev/ptyp2" 3 0) = 0x4000000d (Permission denied)
86<--120(pid14826)->dir_lookup ("dev/ptyp3" 3 0) = 0x40000002 (No such file or directory)
task109(pid14826)-> 4205 (227424 0 0);
task109(pid14826)-> 4205 (227424 0 0);
118<--122(pid14826)->proc_mark_exit_request (256 0) = 0
task109(pid14826)-> 4205 (227424 0 0);
task109(pid14826)-> 2008 () = 0
Child 14826 exited with 1
--8<---------------cut here---------------end--------------->8---
The childhurd only has this:
--8<---------------cut here---------------start------------->8---
ludo@childhurd /tmp/guix-build-texinfo-6.7.drv-0/texinfo-6.7/info$ ls -l /dev/ptyp*
crw--w---- 1 root tty 0, 0 Nov 26 16:05 /dev/ptyp0
crw--w---- 1 ludo tty 0, 0 Nov 26 16:05 /dev/ptyp1
crw------- 1 root root 0, 0 Nov 26 16:05 /dev/ptyp2
--8<---------------cut here---------------end--------------->8---
Ludo’.
^ permalink raw reply [flat|nested] 2+ messages in thread
* bug#59616: Texinfo 6.7 test hangs on i586-gnu (GNU/Hurd)
2022-11-26 18:22 bug#59616: Texinfo 6.7 test hangs on i586-gnu (GNU/Hurd) Ludovic Courtès
@ 2022-11-27 22:34 ` Ludovic Courtès
0 siblings, 0 replies; 2+ messages in thread
From: Ludovic Courtès @ 2022-11-27 22:34 UTC (permalink / raw)
To: 59616
Hi,
Ludovic Courtès <ludo@gnu.org> skribis:
> The childhurd only has this:
>
> ludo@childhurd /tmp/guix-build-texinfo-6.7.drv-0/texinfo-6.7/info$ ls -l /dev/ptyp*
> crw--w---- 1 root tty 0, 0 Nov 26 16:05 /dev/ptyp0
> crw--w---- 1 ludo tty 0, 0 Nov 26 16:05 /dev/ptyp1
> crw------- 1 root root 0, 0 Nov 26 16:05 /dev/ptyp2
Part of the solution is to create more of them in hurd-boot.scm.
But there’s a second problem: we need to build glibc’s ‘pt_chown’ setuid
program (with ‘--enable-pt_chown’) so that ‘grantpt’ can change the
owner of /dev/ttyp*.
At least that’s how it’s done on Debian GNU/Hurd, but I’m surprised
/hurd/term (for pty-slave) doesn’t just return the right UID on
‘io_stat’.
Ludo’.
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2022-11-27 22:35 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-11-26 18:22 bug#59616: Texinfo 6.7 test hangs on i586-gnu (GNU/Hurd) Ludovic Courtès
2022-11-27 22:34 ` Ludovic Courtès
Code repositories for project(s) associated with this public inbox
https://git.savannah.gnu.org/cgit/guix.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).