help-guix
[Top][All Lists]
Advanced

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

Re: Guix on Android, getaddrinfo, failure in name resolution


From: 白い熊@相撲道
Subject: Re: Guix on Android, getaddrinfo, failure in name resolution
Date: Sun, 20 Jan 2019 14:21:04 +0000


On January 19, 2019 10:34:50 PM UTC, "Ludovic Courtès" <address@hidden> wrote:

>Similarly, does /etc/nsswitch.conf exist and what does it contain?  (I
>think glibc has sane defaults if it doesn’t exists.)

I have copied in /etc/nsswitch.conf in a prior attempt at fixing the inability 
to connect, as it was missing. Now I have one there from a desktop GuixSD, but 
doesn't make a difference. It contains: 

group:  files
hosts:  files mdns_minimal [NOTFOUND=return] dns mdns
networks:       files dns [!UNAVAIL=return]
passwd: files
shadow: files

>Assuming you have ‘strace’ on the machine, could you run:
>
>strace -o /tmp/log -c /gnu/store/…/bin/guile -c '(getaddrinfo
>"www.gnu.org")'
>
>and post the relevant part of the log?

This is what I get: 

% time     seconds  usecs/call     calls    errors syscall
------ ----------- ----------- --------- --------- ----------------
 40.22    0.000290           1       239       183 openat
 35.64    0.000257           1       329       284 stat64
 13.18    0.000095           2        52           mprotect
  5.83    0.000042           0       485           read
  5.13    0.000037           1        73           mmap2
  0.00    0.000000           0        61           close
  0.00    0.000000           0         1           execve
  0.00    0.000000           0         1         1 access
  0.00    0.000000           0        11           brk
  0.00    0.000000           0         6         1 ioctl
  0.00    0.000000           0         5           gettimeofday
  0.00    0.000000           0         2           uname
  0.00    0.000000           0        23         3 _llseek
  0.00    0.000000           0         3           poll
  0.00    0.000000           0         4           rt_sigaction
  0.00    0.000000           0         1           rt_sigprocmask
  0.00    0.000000           0         2           ugetrlimit
  0.00    0.000000           0        35           fstat64
  0.00    0.000000           0         3           fcntl64
  0.00    0.000000           0         5           futex
  0.00    0.000000           0         2           sched_getaffinity
  0.00    0.000000           0         1           set_tid_address
  0.00    0.000000           0         4           clock_gettime
  0.00    0.000000           0         5           socket
  0.00    0.000000           0         1           bind
  0.00    0.000000           0         6         2 connect
  0.00    0.000000           0         3           getsockname
  0.00    0.000000           0         1           sendto
  0.00    0.000000           0         2           recvfrom
  0.00    0.000000           0         3           recvmsg
  0.00    0.000000           0         1           set_robust_list
  0.00    0.000000           0         2           pipe2
  0.00    0.000000           0         1           prlimit64
  0.00    0.000000           0         1           sendmmsg
  0.00    0.000000           0         1           set_tls
------ ----------- ----------- --------- --------- ----------------
100.00    0.000721                  1375       474 total

--
白い熊@相撲道



reply via email to

[Prev in Thread] Current Thread [Next in Thread]