Re: Bug#1009712: sv: fails to control the service on Hurd
- To: 1009712@bugs.debian.org, debian-hurd@lists.debian.org
- Subject: Re: Bug#1009712: sv: fails to control the service on Hurd
- From: João <phlogiston@sapo.pt>
- Date: Wed, 21 Dec 2022 12:06:25 +0000
- Message-id: <[🔎] Y6L2wXOP06JFeHpN@pagode>
- In-reply-to: <20220705180500.7ekpa4zwiiqwdbyd@begin>
- References: <164997258802.21690.16881705663770732075.reportbug@lorenz.fritz.box> <YsCUQ7x8hztBfEDx@pagode> <20220703163746.phercu7q335ulhpc@begin> <164997258802.21690.16881705663770732075.reportbug@lorenz.fritz.box> <YsHw0TTiR81izhTZ@pagode> <20220703200904.qf3ioorei5kph5hr@begin> <YsIU0yIV/4OW1tEY@pagode> <20220703224543.trdz6cbsi2sct5fp@begin> <YsR2zB0mEPsseNcZ@pagode> <20220705180500.7ekpa4zwiiqwdbyd@begin>
Hello,
Coming back to this bug.
I noticed that supervise/ok that sv is trying to open is a named pipe not a
file. I don't know if this is telling in some way.
I attach a more detailed debug log. Problems seem to occur in __dir_lookup.
Best wishes,
João
Breakpoint 1 at 0x17a0: file ./runit-2.1.2/src/sv.c, line 253.
Starting program: /usr/bin/sv start ssh
[New Thread 1858.5]
Thread 4 hit Breakpoint 1, control (a=0x803fb00 "u") at ./runit-2.1.2/src/sv.c:253
253 ./runit-2.1.2/src/sv.c: No such file or directory.
svstatus_get () at ./runit-2.1.2/src/sv.c:94
94 in ./runit-2.1.2/src/sv.c
open_write (fn=0x803f9c0 "supervise/ok") at ./runit-2.1.2/src/open_write.c:8
8 ./runit-2.1.2/src/open_write.c: No such file or directory.
open64 (__oflag=10, __path=0x803f9c0 "supervise/ok") at /usr/include/i386-gnu/bits/fcntl2.h:53
warning: Source file is more recent than executable.
53 return __open_alias (__path, __oflag, __va_arg_pack ());
__GI___libc_open (file=0x803f9c0 "supervise/ok", oflag=10) at ../sysdeps/mach/hurd/open.c:35
35 ../sysdeps/mach/hurd/open.c: No such file or directory.
__x86.get_pc_thunk.bx () at ../sysdeps/i386/i686/multiarch/memset-sse2.S:97
97 ../sysdeps/i386/i686/multiarch/memset-sse2.S: No such file or directory.
Run till exit from #0 __x86.get_pc_thunk.bx ()
at ../sysdeps/i386/i686/multiarch/memset-sse2.S:97
0x01192699 in __GI___libc_open (file=0x803f9c0 "supervise/ok", oflag=10) at ../sysdeps/mach/hurd/open.c:35
35 ../sysdeps/mach/hurd/open.c: No such file or directory.
45 in ../sysdeps/mach/hurd/open.c
46 in ../sysdeps/mach/hurd/open.c
__file_name_lookup (file_name=0x803f9c0 "supervise/ok", flags=10, mode=0) at ./hurd/hurdlookup.c:222
222 ./hurd/hurdlookup.c: No such file or directory.
__x86.get_pc_thunk.bx () at ../sysdeps/i386/i686/multiarch/memset-sse2.S:97
97 ../sysdeps/i386/i686/multiarch/memset-sse2.S: No such file or directory.
Run till exit from #0 __x86.get_pc_thunk.bx ()
at ../sysdeps/i386/i686/multiarch/memset-sse2.S:97
0x010725a6 in __file_name_lookup (file_name=0x803f9c0 "supervise/ok", flags=10, mode=0) at ./hurd/hurdlookup.c:222
222 ./hurd/hurdlookup.c: No such file or directory.
226 in ./hurd/hurdlookup.c
0x010720e4 in __hurd_file_name_lookup (use_init_port=<optimized out>, get_dtable_port=<optimized out>, lookup=<optimized out>, file_name=<optimized out>, flags=<optimized out>, mode=<optimized out>, result=<optimized out>) at ./hurd/hurdlookup.c:50
50 in ./hurd/hurdlookup.c
62 in ./hurd/hurdlookup.c
63 in ./hurd/hurdlookup.c
65 in ./hurd/hurdlookup.c
68 in ./hurd/hurdlookup.c
69 in ./hurd/hurdlookup.c
72 in ./hurd/hurdlookup.c
75 in ./hurd/hurdlookup.c
93 in ./hurd/hurdlookup.c
_hurd_ports_use (which=0, operate=0x103cc58) at ./hurd/hurdinit.c:45
45 ./hurd/hurdinit.c: No such file or directory.
Run till exit from #0 _hurd_ports_use (which=0, operate=0x103cc58)
at ./hurd/hurdinit.c:45
__hurd_file_name_lookup (use_init_port=<optimized out>, get_dtable_port=<optimized out>, lookup=<optimized out>, file_name=<optimized out>, flags=<optimized out>, mode=<optimized out>, result=<optimized out>) at ./hurd/hurdlookup.c:94
94 ./hurd/hurdlookup.c: No such file or directory.
Value returned is $1 = ESUCCESS
95 in ./hurd/hurdlookup.c
__hurd_file_name_lookup_retry (use_init_port=0x106a520 <_hurd_ports_use>, get_dtable_port=0x1093d10 <__getdport>, lookup=0x1328410 <__dir_lookup>, doretry=FS_RETRY_MAGICAL, retryname=0x103c858 "/run/runit/supervise/ssh/ok", flags=10, mode=0, result=0x103ccb8) at ./hurd/lookup-retry.c:59
59 ./hurd/lookup-retry.c: No such file or directory.
98 in ./hurd/lookup-retry.c
105 in ./hurd/lookup-retry.c
108 in ./hurd/lookup-retry.c
203 in ./hurd/lookup-retry.c
207 in ./hurd/lookup-retry.c
209 in ./hurd/lookup-retry.c
214 in ./hurd/lookup-retry.c
215 in ./hurd/lookup-retry.c
373 in ./hurd/lookup-retry.c
383 in ./hurd/lookup-retry.c
390 in ./hurd/lookup-retry.c
_hurd_ports_use (which=1, operate=0x103c358) at ./hurd/hurdinit.c:45
45 ./hurd/hurdinit.c: No such file or directory.
Run till exit from #0 _hurd_ports_use (which=1, operate=0x103c358)
at ./hurd/hurdinit.c:45
0x01072cd6 in __hurd_file_name_lookup_retry (use_init_port=<optimized out>, get_dtable_port=<optimized out>, lookup=<optimized out>, doretry=<optimized out>, retryname=<optimized out>, flags=<optimized out>, mode=<optimized out>, result=<optimized out>) at ./hurd/lookup-retry.c:390
390 ./hurd/lookup-retry.c: No such file or directory.
Value returned is $2 = ESUCCESS
391 in ./hurd/lookup-retry.c
105 in ./hurd/lookup-retry.c
108 in ./hurd/lookup-retry.c
116 in ./hurd/lookup-retry.c
124 in ./hurd/lookup-retry.c
198 in ./hurd/lookup-retry.c
373 in ./hurd/lookup-retry.c
375 in ./hurd/lookup-retry.c
379 in ./hurd/lookup-retry.c
__mach_port_mod_refs (task=35, name=18, right=0, delta=1) at ./build-tree/hurd-i386-libc/mach/RPC_mach_port_mod_refs.c:53
53 ./build-tree/hurd-i386-libc/mach/RPC_mach_port_mod_refs.c: No such file or directory.
Run till exit from #0 __mach_port_mod_refs (task=35, name=18, right=0,
delta=1) at ./build-tree/hurd-i386-libc/mach/RPC_mach_port_mod_refs.c:53
0x01072cb3 in __hurd_file_name_lookup_retry (use_init_port=<optimized out>, get_dtable_port=<optimized out>, lookup=<optimized out>, doretry=<optimized out>, retryname=<optimized out>, flags=<optimized out>, mode=<optimized out>, result=<optimized out>) at ./hurd/lookup-retry.c:378
378 ./hurd/lookup-retry.c: No such file or directory.
Value returned is $3 = 0
383 in ./hurd/lookup-retry.c
385 in ./hurd/lookup-retry.c
lookup_op (startdir=18) at ./hurd/lookup-retry.c:67
67 in ./hurd/lookup-retry.c
77 in ./hurd/lookup-retry.c
__dir_lookup (start_dir=18, file_name=0x103c858 "runit/supervise/ssh/ok", flags=10, mode=0, do_retry=0x103c344, retry_name=0x103c858 "runit/supervise/ssh/ok", result=0x103ccb8) at ./build-tree/hurd-i386-libc/hurd/RPC_dir_lookup.c:66
66 ./build-tree/hurd-i386-libc/hurd/RPC_dir_lookup.c: No such file or directory.
__x86.get_pc_thunk.bx () at ../sysdeps/i386/crti.S:68
68 ../sysdeps/i386/crti.S: No such file or directory.
Run till exit from #0 __x86.get_pc_thunk.bx () at ../sysdeps/i386/crti.S:68
0x01328419 in __dir_lookup (start_dir=18, file_name=0x103c858 "runit/supervise/ssh/ok", flags=10, mode=0, do_retry=0x103c344, retry_name=0x103c858 "runit/supervise/ssh/ok", result=0x103ccb8) at ./build-tree/hurd-i386-libc/hurd/RPC_dir_lookup.c:66
66 ./build-tree/hurd-i386-libc/hurd/RPC_dir_lookup.c: No such file or directory.
182 in ./build-tree/hurd-i386-libc/hurd/RPC_dir_lookup.c
184 in ./build-tree/hurd-i386-libc/hurd/RPC_dir_lookup.c
__mig_strncpy (dst=0x103be74 "", src=0x103c858 "runit/supervise/ssh/ok", len=1024) at ./mach/mig_strncpy.c:9
9 ./mach/mig_strncpy.c: No such file or directory.
Run till exit from #0 __mig_strncpy (dst=0x103be74 "",
src=0x103c858 "runit/supervise/ssh/ok", len=1024) at ./mach/mig_strncpy.c:9
__dir_lookup (start_dir=18, file_name=0x103c858 "runit/supervise/ssh/ok", flags=10, mode=0, do_retry=0x103c344, retry_name=0x103c858 "runit/supervise/ssh/ok", result=0x103ccb8) at ./build-tree/hurd-i386-libc/hurd/RPC_dir_lookup.c:186
186 ./build-tree/hurd-i386-libc/hurd/RPC_dir_lookup.c: No such file or directory.
Value returned is $4 = 22
Run till exit from #0 __dir_lookup (start_dir=18,
file_name=0x103c858 "runit/supervise/ssh/ok", flags=10, mode=0,
do_retry=0x103c344, retry_name=0x103c858 "runit/supervise/ssh/ok",
result=0x103ccb8) at ./build-tree/hurd-i386-libc/hurd/RPC_dir_lookup.c:186
lookup_op (startdir=18) at ./hurd/lookup-retry.c:77
77 ./hurd/lookup-retry.c: No such file or directory.
Value returned is $5 = 1073741830
Run till exit from #0 lookup_op (startdir=18) at ./hurd/lookup-retry.c:77
0x01072e6d in __hurd_file_name_lookup_retry (use_init_port=<optimized out>, get_dtable_port=<optimized out>, lookup=<optimized out>, doretry=<optimized out>, retryname=<optimized out>, flags=<optimized out>, mode=<optimized out>, result=<optimized out>) at ./hurd/lookup-retry.c:386
386 in ./hurd/lookup-retry.c
Value returned is $6 = ENXIO
Run till exit from #0 0x01072e6d in __hurd_file_name_lookup_retry (
use_init_port=<optimized out>, get_dtable_port=<optimized out>,
lookup=<optimized out>, doretry=<optimized out>,
retryname=<optimized out>, flags=<optimized out>, mode=<optimized out>,
result=<optimized out>) at ./hurd/lookup-retry.c:386
0x010722db in __hurd_file_name_lookup (use_init_port=<optimized out>, get_dtable_port=<optimized out>, lookup=<optimized out>, file_name=<optimized out>, flags=<optimized out>, mode=<optimized out>, result=<optimized out>) at ./hurd/hurdlookup.c:95
95 ./hurd/hurdlookup.c: No such file or directory.
Value returned is $7 = ENXIO
Run till exit from #0 0x010722db in __hurd_file_name_lookup (
use_init_port=<optimized out>, get_dtable_port=<optimized out>,
lookup=<optimized out>, file_name=<optimized out>, flags=<optimized out>,
mode=<optimized out>, result=<optimized out>) at ./hurd/hurdlookup.c:95
__file_name_lookup (file_name=0x803f9c0 "supervise/ok", flags=10, mode=0) at ./hurd/hurdlookup.c:230
230 in ./hurd/hurdlookup.c
Value returned is $8 = ENXIO
Run till exit from #0 __file_name_lookup (file_name=0x803f9c0 "supervise/ok",
flags=10, mode=0) at ./hurd/hurdlookup.c:230
0x011926d5 in __GI___libc_open (file=0x803f9c0 "supervise/ok", oflag=10) at ../sysdeps/mach/hurd/open.c:47
47 ../sysdeps/mach/hurd/open.c: No such file or directory.
Value returned is $9 = 0
Run till exit from #0 0x011926d5 in __GI___libc_open (
file=0x803f9c0 "supervise/ok", oflag=10) at ../sysdeps/mach/hurd/open.c:47
0x0803ef5a in open_write (fn=0x803f9c0 "supervise/ok") at ./runit-2.1.2/src/open_write.c:8
8 ./runit-2.1.2/src/open_write.c: No such file or directory.
Value returned is $10 = -1
Run till exit from #0 0x0803ef5a in open_write (fn=0x803f9c0 "supervise/ok")
at ./runit-2.1.2/src/open_write.c:8
0x0803d62b in svstatus_get () at ./runit-2.1.2/src/sv.c:94
94 ./runit-2.1.2/src/sv.c: No such file or directory.
Value returned is $11 = -1
Run till exit from #0 0x0803d62b in svstatus_get ()
at ./runit-2.1.2/src/sv.c:94
0x0803d7b9 in control (a=0x803fb00 "u") at ./runit-2.1.2/src/sv.c:253
253 in ./runit-2.1.2/src/sv.c
Value returned is $12 = 0
Continuing.
[Inferior 1 (bogus thread id 0) exited with code 01]
The program is not being run.
The program is not being run.
Reply to: