[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Bug#1009712: sv: fails to control the service on Hurd



Hello Samuel,

As you suggested the open64() function being used seems to be that defined in
sysdeps/mach/hurd/open.c

However errnno is already 1073741902 before the function call, so does not
really change after the function call. On the other hand the variable fd that
stores the value returned from open() flips from 0 to -1. I attach a brief gdb
log.

So I don't know what to look for at the moment.

Best regards,
João
Breakpoint 1 at 0x17b0: control. (2 locations)
Starting program: /usr/bin/sv start cron
[New Thread 829.5]

Thread 4 hit Breakpoint 1, control (a=0x803cbe0 "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=0x803caa0 "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.
$1 = 0
$2 = 1073741902
open64 (__oflag=10, __path=0x803caa0 "supervise/ok")
    at /usr/include/i386-gnu/bits/fcntl2.h:53
53	      return __open_alias (__path, __oflag, __va_arg_pack ());
__GI___libc_open (file=0x803caa0 "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
47	in ../sysdeps/mach/hurd/open.c
49	in ../sysdeps/mach/hurd/open.c
svstatus_get () at ./runit-2.1.2/src/sv.c:95
95	./runit-2.1.2/src/sv.c: No such file or directory.
$3 = -1
$4 = 1073741902
Continuing.
[Inferior 1 (bogus thread id 0) exited with code 01]

Reply to: