From mboxrd@z Thu Jan 1 00:00:00 1970 From: Andreas Enge Subject: Re: Integration of the Nix daemon Date: Sun, 16 Dec 2012 17:56:24 +0100 Message-ID: <201212161756.24257.andreas@enge.fr> References: <87zk1u3htq.fsf@gnu.org> <201212161216.51858.andreas@enge.fr> <87r4mqkl8b.fsf@gnu.org> Mime-Version: 1.0 Content-Type: multipart/alternative; boundary="Boundary-01=_40fzQH1IRuf4I+e" Content-Transfer-Encoding: 7bit Return-path: Received: from eggs.gnu.org ([208.118.235.92]:56236) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TkHW5-0000dr-99 for bug-guix@gnu.org; Sun, 16 Dec 2012 11:56:44 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1TkHW1-0008PG-PF for bug-guix@gnu.org; Sun, 16 Dec 2012 11:56:41 -0500 In-Reply-To: <87r4mqkl8b.fsf@gnu.org> List-Id: Bug reports for GNU Guix List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-guix-bounces+gcggb-bug-guix=m.gmane.org@gnu.org Sender: bug-guix-bounces+gcggb-bug-guix=m.gmane.org@gnu.org To: Ludovic =?utf-8?q?Court=C3=A8s?= Cc: bug-guix@gnu.org --Boundary-01=_40fzQH1IRuf4I+e Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Am Sonntag, 16. Dezember 2012 schrieb Ludovic Court=C3=A8s: > No, could you run guix-daemon in strace? Sorry, I did not read the message carefully enough. None of the commands do appear. Before executing "./pre-inst-env guix-build hello", the last lines of output are set_tid_address(0x7fa0b97469f0) =3D 7696 set_robust_list(0x7fa0b9746a00, 0x18) =3D 0 futex(0x7fffc31e130c, FUTEX_WAIT_BITSET_PRIVATE|FUTEX_CLOCK_REALTIME, 1,=20 NULL, 7fa0b9746720) =3D -1 EAGAIN (Resource temporarily unavailable) rt_sigaction(SIGRTMIN, {0x7fa0b80d7ad0, [], SA_RESTORER|SA_SIGINFO,=20 0x7fa0b80e1030}, NULL, 8) =3D 0 rt_sigaction(SIGRT_1, {0x7fa0b80d7b60, [], SA_RESTORER|SA_RESTART| SA_SIGINFO, 0x7fa0b80e1030}, NULL, 8) =3D 0 rt_sigprocmask(SIG_UNBLOCK, [RTMIN RT_1], NULL, 8) =3D 0 getrlimit(RLIMIT_STACK, {rlim_cur=3D8192*1024, rlim_max=3DRLIM_INFINITY}) = =3D 0 brk(0) =3D 0x14bb000 brk(0x14dc000) =3D 0x14dc000 futex(0x7fa0b8e149e4, FUTEX_WAKE_PRIVATE, 2147483647) =3D 0 futex(0x7fa0b8e149f0, FUTEX_WAKE_PRIVATE, 2147483647) =3D 0 chdir("/") =3D 0 rt_sigaction(SIGCHLD, {0x406d70, ~[RTMIN RT_1], SA_RESTORER,=20 0x7fa0b83204f0}, {SIG_DFL, [], 0}, 8) =3D 0 socket(PF_FILE, SOCK_STREAM, 0) =3D 3 lstat("/usr/local/guix-git/var/nix/daemon-socket", {st_mode=3DS_IFDIR| S_ISGID|0755, st_size=3D4096, ...}) =3D 0 chdir("/usr/local/guix-git/var/nix/daemon-socket") =3D 0 unlink("/usr/local/guix-git/var/nix/daemon-socket/socket") =3D 0 umask(0111) =3D 022 bind(3, {sa_family=3DAF_FILE, path=3D"./socket"}, 110) =3D 0 umask(022) =3D 0111 chdir("/") =3D 0 listen(3, 5) =3D 0 fcntl(3, F_GETFD) =3D 0 fcntl(3, F_SETFD, FD_CLOEXEC) =3D 0 accept(3, When starting the execution, only the following lines are printed: {sa_family=3DAF_FILE, NULL}, [2]) =3D 4 fcntl(4, F_GETFD) =3D 0 fcntl(4, F_SETFD, FD_CLOEXEC) =3D 0 getsockopt(4, SOL_SOCKET, SO_PEERCRED, "\24\36\0\0\350\3\0\0\350\3\0\0",=20 [12]) =3D 0 write(2, "accepted connection from pid 770"..., 44accepted connection from= =20 pid 7700, uid 1000 ) =3D 44 clone(child_stack=3D0, flags=3DCLONE_CHILD_CLEARTID|CLONE_CHILD_SETTID|SIGC= HLD,=20 child_tidptr=3D0x7fa0b97469f0) =3D 7701 close(4) =3D 0 accept(3, spurious SIGPOLL spurious SIGPOLL spurious SIGPOLL spurious SIGPOLL spurious SIGPOLL 2187 operations 0x7fffc31dff10, [110]) =3D ? ERESTARTSYS (To be restarted) =2D-- SIGCHLD (Child exited) @ 0 (0) --- wait4(-1, NULL, WNOHANG, NULL) =3D 7701 wait4(-1, NULL, WNOHANG, NULL) =3D -1 ECHILD (No child processes) rt_sigreturn(0xffffffffffffffff) =3D -1 EINTR (Interrupted system=20 call) accept(3, Andreas --Boundary-01=_40fzQH1IRuf4I+e Content-Type: text/html; charset="utf-8" Content-Transfer-Encoding: quoted-printable

Am Sonntag,= 16. Dezember 2012 schrieb Ludovic Court=C3=A8s:

> No, co= uld you run guix-daemon in strace?

&nb= sp;

Sorry, I di= d not read the message carefully enough. None of the

commands do= appear.

&nb= sp;

Before exec= uting "./pre-inst-env guix-build hello", the last lines of

output are<= /p>

set_tid_add= ress(0x7fa0b97469f0) =3D 7696

set_robust_= list(0x7fa0b9746a00, 0x18) =3D 0

futex(0x7ff= fc31e130c, FUTEX_WAIT_BITSET_PRIVATE|FUTEX_CLOCK_REALTIME, 1, NULL, 7fa0b97= 46720) =3D -1 EAGAIN (Resource temporarily unavailable)

rt_sigactio= n(SIGRTMIN, {0x7fa0b80d7ad0, [], SA_RESTORER|SA_SIGINFO, 0x7fa0b80e1030}, N= ULL, 8) =3D 0

rt_sigactio= n(SIGRT_1, {0x7fa0b80d7b60, [], SA_RESTORER|SA_RESTART|SA_SIGINFO, 0x7fa0b8= 0e1030}, NULL, 8) =3D 0

rt_sigprocm= ask(SIG_UNBLOCK, [RTMIN RT_1], NULL, 8) =3D 0

getrlimit(R= LIMIT_STACK, {rlim_cur=3D8192*1024, rlim_max=3DRLIM_INFINITY}) =3D 0

brk(0) = =3D 0x14bb000

brk(0x14dc0= 00) =3D 0x14dc000

futex(0x7fa= 0b8e149e4, FUTEX_WAKE_PRIVATE, 2147483647) =3D 0

futex(0x7fa= 0b8e149f0, FUTEX_WAKE_PRIVATE, 2147483647) =3D 0

chdir("= ;/") =3D 0

rt_sigactio= n(SIGCHLD, {0x406d70, ~[RTMIN RT_1], SA_RESTORER, 0x7fa0b83204f0}, {SIG_DFL= , [], 0}, 8) =3D 0

socket(PF_F= ILE, SOCK_STREAM, 0) =3D 3

lstat("= ;/usr/local/guix-git/var/nix/daemon-socket", {st_mode=3DS_IFDIR|S_ISGI= D|0755, st_size=3D4096, ...}) =3D 0

chdir("= ;/usr/local/guix-git/var/nix/daemon-socket") =3D 0

unlink(&quo= t;/usr/local/guix-git/var/nix/daemon-socket/socket") =3D 0

umask(0111)= =3D 022

bind(3, {sa= _family=3DAF_FILE, path=3D"./socket"}, 110) =3D 0

umask(022) = =3D 0111

chdir("= ;/") =3D 0

listen(3, 5= ) =3D 0

fcntl(3, F_= GETFD) =3D 0

fcntl(3, F_= SETFD, FD_CLOEXEC) =3D 0

accept(3,

&nb= sp;

When starti= ng the execution, only the following lines are printed:

{= sa_family=3DAF_FILE, NULL}, [2]) =3D 4

fcntl(4, F_= GETFD) =3D 0

fcntl(4, F_= SETFD, FD_CLOEXEC) =3D 0

getsockopt(= 4, SOL_SOCKET, SO_PEERCRED, "\24\36\0\0\350\3\0\0\350\3\0\0", [12= ]) =3D 0

write(2, &q= uot;accepted connection from pid 770"..., 44accepted connection from p= id 7700, uid 1000

) =3D 44

clone(child= _stack=3D0, flags=3DCLONE_CHILD_CLEARTID|CLONE_CHILD_SETTID|SIGCHLD, child_= tidptr=3D0x7fa0b97469f0) =3D 7701

close(4) = =3D 0

accept(3, s= purious SIGPOLL

spurious SI= GPOLL

spurious SI= GPOLL

spurious SI= GPOLL

spurious SI= GPOLL

2187 operat= ions

0x7fffc31df= f10, [110]) =3D ? ERESTARTSYS (To be restarted)

--- SIGCHLD= (Child exited) @ 0 (0) ---

wait4(-1, N= ULL, WNOHANG, NULL) =3D 7701

wait4(-1, N= ULL, WNOHANG, NULL) =3D -1 ECHILD (No child processes)

rt_sigretur= n(0xffffffffffffffff) =3D -1 EINTR (Interrupted system call)

accept(3,

&nb= sp;

Andreas

&nb= sp;

--Boundary-01=_40fzQH1IRuf4I+e--