unofficial mirror of bug-guix@gnu.org 
 help / color / mirror / code / Atom feed
* bug#30396: nscd segfaults on attempt to ssh to .local host
@ 2018-02-08 18:17 George myglc2 Clemmer
  2018-02-08 20:00 ` Ricardo Wurmus
  2018-02-08 22:30 ` Ludovic Courtès
  0 siblings, 2 replies; 12+ messages in thread
From: George myglc2 Clemmer @ 2018-02-08 18:17 UTC (permalink / raw)
  To: 30396

[-- Attachment #1: Type: text/plain, Size: 3164 bytes --]


nscd segfaults on attempt to ssh to .local host ...

g1@g1 /root/con/30$  ssh e3a.local ; date
ssh: Could not resolve hostname e3a.local: Name or service not known
Thu Feb  8 13:06:23 EST 2018

g1@g1 /root/con/30$ cat /var/log/messages | tail
Feb  8 13:06:00 localhost dhclient: DHCPDISCOVER on enp4s0 to 255.255.255.255 port 67 interval 5
Feb  8 13:06:05 localhost dhclient: No DHCPOFFERS received.
Feb  8 13:06:05 localhost dhclient: No working leases in persistent database - sleeping.
Feb  8 13:06:23 localhost vmunix: [52360.780268] nscd[23423]: segfault at 0 ip 00007fb14a3c1606 sp 00007fb1446d82d8 error 4 in libc-2.25.so[7fb14a341000+196000]
Feb  8 13:06:24 localhost nscd: 23430 monitoring file `/etc/hosts` (1)
Feb  8 13:06:24 localhost nscd: 23430 monitoring directory `/etc` (2)
Feb  8 13:06:24 localhost nscd: 23430 monitoring file `/etc/resolv.conf` (3)
Feb  8 13:06:24 localhost nscd: 23430 monitoring directory `/etc` (2)
Feb  8 13:06:24 localhost nscd: 23430 monitoring file `/etc/services` (4)
Feb  8 13:06:24 localhost nscd: 23430 monitoring directory `/etc` (2)

g1@g1 /root/con/30$ avahi-browse -p -a | grep e3a
+;enp3s0;IPv6;C5200n\032\064\032e3a;_printer._tcp;local
+;enp3s0;IPv4;C5200n\032\064\032e3a;_printer._tcp;local
+;enp3s0;IPv6;C5200n\032\064\032e3a;_ipps._tcp;local
+;enp3s0;IPv4;C5200n\032\064\032e3a;_ipps._tcp;local
+;enp3s0;IPv6;C5200n\032\064\032e3a;_ipp._tcp;local
+;enp3s0;IPv4;C5200n\032\064\032e3a;_ipp._tcp;local
+;enp3s0;IPv6;e3a\032\091d0\05850\05899\0585b\058d7\0587b\093;_workstation._tcp;local
+;enp3s0;IPv4;e3a\032\091d0\05850\05899\0585b\058d7\0587b\093;_workstation._tcp;local
  C-c C-cGot SIGINT, quitting.

... and when attempting to connect to self ...

g1@g1 /root/con/30$  ssh g1.local ; date
ssh: Could not resolve hostname g1.local: Name or service not known
Thu Feb  8 13:06:57 EST 2018

g1@g1 /root/con/30$ cat /var/log/messages | tail
Feb  8 13:06:24 localhost nscd: 23430 monitoring directory `/etc` (2)
Feb  8 13:06:24 localhost nscd: 23430 monitoring file `/etc/services` (4)
Feb  8 13:06:24 localhost nscd: 23430 monitoring directory `/etc` (2)
Feb  8 13:06:57 localhost vmunix: [52394.019906] nscd[23436]: segfault at 0 ip 00007fd7569b6606 sp 00007fd750ece2d8 error 4 in libc-2.25.so[7fd756936000+196000]
Feb  8 13:06:58 localhost nscd: 23445 monitoring file `/etc/hosts` (1)
Feb  8 13:06:58 localhost nscd: 23445 monitoring directory `/etc` (2)
Feb  8 13:06:58 localhost nscd: 23445 monitoring file `/etc/resolv.conf` (3)
Feb  8 13:06:58 localhost nscd: 23445 monitoring directory `/etc` (2)
Feb  8 13:06:58 localhost nscd: 23445 monitoring file `/etc/services` (4)
Feb  8 13:06:58 localhost nscd: 23445 monitoring directory `/etc` (2)

g1@g1 /root/con/30$ avahi-browse -p -a | grep g1
+;enp3s0;IPv6;g1\032\091d0\05850\05899\0585b\058d7\05855\093;_workstation._tcp;local
+;enp3s0;IPv4;g1\032\091d0\05850\05899\0585b\058d7\05855\093;_workstation._tcp;local
+;enp3s0;IPv6;g1;_sftp-ssh._tcp;local
+;enp3s0;IPv4;g1;_sftp-ssh._tcp;local
+;enp3s0;IPv6;g1;_ssh._tcp;local
+;enp3s0;IPv4;g1;_ssh._tcp;local

g1@g1 ~/src/guix$ guix --version
guix (GNU Guix) 0.14.0.1427-26ecb

TIA - George

system config:


[-- Attachment #2: sys.scm --]
[-- Type: application/octet-stream, Size: 2412 bytes --]

;;; GuixSD headless server
(use-modules (gnu) (gnu system nss))
(use-service-modules
 networking ssh
 avahi ; avahi-service avahi (avahi-browse) nss-mdns
 dbus  ; dbus
 virtualization  ;libvirt-service-type
 )
(use-package-modules
 admin
 base                 ; glibc-utf8-locales
 certs
 cups
 disk
 emacs
 freeipmi
 linux                 ; mdadm
 virtualization        ; qemu virt-manager
 rsync
 screen
 ssh
 version-control
 wget
 xorg                  ; xauth
 )
(operating-system
  (host-name "g1")
  (timezone "America/New_York")
  (locale "en_US.utf8")
  (kernel-arguments '("console=ttyS1,115200"))
  ;; RAID1 root using 1 NVMe SSD + 2 HDs
  (bootloader (grub-configuration (target "/dev/nvme0n1")
				  (terminal-outputs '(console))
				  (terminal-inputs '(serial console))
				  (serial-speed 115200)
				  ))
  (initrd (lambda (file-systems . rest) (apply base-initrd file-systems
					       #:extra-modules '("raid1")
					       rest)))
  (mapped-devices (list (mapped-device
			 (source '("/dev/nvme0n1p1" "/dev/sda1" "/dev/sdb1"))
			 (target "/dev/md3")
			 (type raid-device-mapping))))
  (file-systems (cons (file-system
			(title 'device)
			(device "/dev/md3")
			(mount-point "/")
			(type "ext4")
			(dependencies mapped-devices))
		      %base-file-systems))
  (swap-devices '("/dev/nvme0n1p2" ))
  (users (cons* (user-account (name "g1")
			      (group "users")
			      (supplementary-groups '("wheel" "kvm" "libvirt"))
			      (home-directory (string-append "/home/" name)))
		%base-user-accounts))
  (packages (cons*
	     nss-certs
	     cups
	     emacs-no-x-toolkit
	     emacs-guix
	     emacs-zenburn-theme
	     freeipmi
	     git
	     glibc-utf8-locales
	     gnu-make
	     mdadm
	     magit
	     openssh
	     parted
	     qemu
	     rsync
	     screen
	     smartmontools
	     tree
	     virt-manager
	     wget
	     xauth
	     %base-packages))
  (name-service-switch %mdns-host-lookup-nss)
  (services (cons* (avahi-service)
		   (dbus-service)
		   (dhcp-client-service)       ;needed for multicast
		   (ntp-service)
		   (service openssh-service-type (openssh-configuration
						  (x11-forwarding? #t)))
		   (agetty-service (agetty-configuration (tty "ttyS1")
							 (baud-rate "115200")))
		   (service libvirt-service-type ; virt-manager
			    (libvirt-configuration
			     (unix-sock-group "libvirt")
			     (tls-port "16555")))
		   %base-services)))

^ permalink raw reply	[flat|nested] 12+ messages in thread

* bug#30396: nscd segfaults on attempt to ssh to .local host
  2018-02-08 18:17 bug#30396: nscd segfaults on attempt to ssh to .local host George myglc2 Clemmer
@ 2018-02-08 20:00 ` Ricardo Wurmus
  2018-02-08 22:30 ` Ludovic Courtès
  1 sibling, 0 replies; 12+ messages in thread
From: Ricardo Wurmus @ 2018-02-08 20:00 UTC (permalink / raw)
  To: George myglc2 Clemmer; +Cc: 30396


Hi George,

> nscd segfaults on attempt to ssh to .local host ...

is this on GuixSD or on a foreign distro?

-- 
Ricardo

GPG: BCA6 89B6 3655 3801 C3C6  2150 197A 5888 235F ACAC
https://elephly.net

^ permalink raw reply	[flat|nested] 12+ messages in thread

* bug#30396: nscd segfaults on attempt to ssh to .local host
  2018-02-08 18:17 bug#30396: nscd segfaults on attempt to ssh to .local host George myglc2 Clemmer
  2018-02-08 20:00 ` Ricardo Wurmus
@ 2018-02-08 22:30 ` Ludovic Courtès
  2018-02-08 22:59   ` Ludovic Courtès
  2018-02-08 23:22   ` George myglc2 Clemmer
  1 sibling, 2 replies; 12+ messages in thread
From: Ludovic Courtès @ 2018-02-08 22:30 UTC (permalink / raw)
  To: George myglc2 Clemmer; +Cc: 30396

Hi,

George myglc2 Clemmer <myglc2@gmail.com> skribis:

> g1@g1 /root/con/30$  ssh e3a.local ; date
> ssh: Could not resolve hostname e3a.local: Name or service not known
> Thu Feb  8 13:06:23 EST 2018
>
> g1@g1 /root/con/30$ cat /var/log/messages | tail
> Feb  8 13:06:00 localhost dhclient: DHCPDISCOVER on enp4s0 to 255.255.255.255 port 67 interval 5
> Feb  8 13:06:05 localhost dhclient: No DHCPOFFERS received.
> Feb  8 13:06:05 localhost dhclient: No working leases in persistent database - sleeping.
> Feb  8 13:06:23 localhost vmunix: [52360.780268] nscd[23423]: segfault at 0 ip 00007fb14a3c1606 sp 00007fb1446d82d8 error 4 in libc-2.25.so[7fb14a341000+196000]

‘nss-mdns’ was upgraded two weeks ago from 0.10 to 0.11.  I can
reproduce the crash with 0.11 on x86_64.

What does this print:

  guix gc -R $(readlink -f /run/current-system) | grep nss-mdns

?

Thanks,
Ludo’.

^ permalink raw reply	[flat|nested] 12+ messages in thread

* bug#30396: nscd segfaults on attempt to ssh to .local host
  2018-02-08 22:30 ` Ludovic Courtès
@ 2018-02-08 22:59   ` Ludovic Courtès
  2018-02-09 10:36     ` Ludovic Courtès
  2018-02-09 14:18     ` Ludovic Courtès
  2018-02-08 23:22   ` George myglc2 Clemmer
  1 sibling, 2 replies; 12+ messages in thread
From: Ludovic Courtès @ 2018-02-08 22:59 UTC (permalink / raw)
  To: George myglc2 Clemmer; +Cc: 30396

ludo@gnu.org (Ludovic Courtès) skribis:

> George myglc2 Clemmer <myglc2@gmail.com> skribis:
>
>> g1@g1 /root/con/30$  ssh e3a.local ; date
>> ssh: Could not resolve hostname e3a.local: Name or service not known

Perhaps “ssh -6 e3a.local” works?

>> g1@g1 /root/con/30$ cat /var/log/messages | tail
>> Feb  8 13:06:00 localhost dhclient: DHCPDISCOVER on enp4s0 to 255.255.255.255 port 67 interval 5
>> Feb  8 13:06:05 localhost dhclient: No DHCPOFFERS received.
>> Feb  8 13:06:05 localhost dhclient: No working leases in persistent database - sleeping.
>> Feb  8 13:06:23 localhost vmunix: [52360.780268] nscd[23423]: segfault at 0 ip 00007fb14a3c1606 sp 00007fb1446d82d8 error 4 in libc-2.25.so[7fb14a341000+196000]
>
> ‘nss-mdns’ was upgraded two weeks ago from 0.10 to 0.11.  I can
> reproduce the crash with 0.11 on x86_64.

Stack trace below.

It may be that “gethostbyname4_r” in nss-mdns returns an entry with a
NULL name.  “getent hosts something.local” works, so the getaddrinfo
part of nss-mdns works correctly, I think.

Ludo’.

--8<---------------cut here---------------start------------->8---
Core was generated by `/gnu/store/3h31zsqxjjg52da5gp3qmhkh4x8klhah-glibc-2.25/sbin/nscd -f /gnu/store/'.
Program terminated with signal SIGSEGV, Segmentation fault.
#0  strlen () at ../sysdeps/x86_64/strlen.S:106
106	../sysdeps/x86_64/strlen.S: Dosiero aŭ dosierujo ne ekzistas.
[Current thread is 1 (Thread 0x7fee65a4b700 (LWP 32659))]
(gdb) bt
#0  strlen () at ../sysdeps/x86_64/strlen.S:106
#1  0x000055a0e3263883 in addhstaiX (db=db@entry=0x55a0e3472340 <dbs+704>, 
    fd=fd@entry=13, req=req@entry=0x7fee65a4a8c0, key=key@entry=0x7fee65a4ab10, 
    uid=uid@entry=4294967295, he=he@entry=0x0, dh=0x0) at aicache.c:174
#2  0x000055a0e326432e in addhstai (db=db@entry=0x55a0e3472340 <dbs+704>, 
    fd=fd@entry=13, req=req@entry=0x7fee65a4a8c0, key=key@entry=0x7fee65a4ab10, 
    uid=uid@entry=4294967295) at aicache.c:571
#3  0x000055a0e325857a in handle_request (uid=4294967295, pid=<optimized out>, 
    key=0x7fee65a4ab10, req=0x7fee65a4a8c0, fd=13) at connections.c:1275
#4  nscd_run_worker (p=<optimized out>) at connections.c:1762
#5  0x00007fee6b66e454 in start_thread (arg=0x7fee65a4b700) at pthread_create.c:456
#6  0x00007fee6b1987cf in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:97
(gdb) bt full
#0  strlen () at ../sysdeps/x86_64/strlen.S:106
No locals.
#1  0x000055a0e3263883 in addhstaiX (db=db@entry=0x55a0e3472340 <dbs+704>, fd=fd@entry=13, req=req@entry=0x7fee65a4a8c0, key=key@entry=0x7fee65a4ab10, uid=uid@entry=4294967295, 
    he=he@entry=0x0, dh=0x0) at aicache.c:174
        atmem = {next = 0x55a0e3472800 <readylist_lock>, name = 0x0, family = 1801920929, addr = {32750, 0, 2, 1801929696}, scopeid = 32750}
        at = 0x7fee65a4a7e0
        addrs = <optimized out>
        family = <optimized out>
        status = {-1, -1}
        naddrs = 2
        canon = 0x0
        canonlen = <optimized out>
        cp = <optimized out>
        addrslen = 0
        fct4 = <optimized out>
        dataset = 0x0
        hosts_database = 0x55a0e42025d0
        nip = 0x55a0e4202610
        no_more = 0
        rc6 = 0
        rc4 = 0
        herrno = 0
        old_res_options = 705
        tmpbuf6len = 1024
        tmpbuf6 = 0x7fee65a4a2e0 "pluto.local"
        tmpbuf4len = <optimized out>
        tmpbuf4 = <optimized out>
        ttl = 2147483647
        total = 0
        key_copy = 0x0
        alloca_used = false
        timeout = 9223372036854775807
        __PRETTY_FUNCTION__ = "addhstaiX"
#2  0x000055a0e326432e in addhstai (db=db@entry=0x55a0e3472340 <dbs+704>, fd=fd@entry=13, req=req@entry=0x7fee65a4a8c0, key=key@entry=0x7fee65a4ab10, uid=uid@entry=4294967295)
    at aicache.c:571
No locals.
#3  0x000055a0e325857a in handle_request (uid=4294967295, pid=<optimized out>, key=0x7fee65a4ab10, req=0x7fee65a4a8c0, fd=13) at connections.c:1275
        db = 0x55a0e3472340 <dbs+704>
#4  nscd_run_worker (p=<optimized out>) at connections.c:1762
        keybuf = "pluto.local", '\000' <repeats 1013 times>
        fd = 13
        pid = <optimized out>
        it = <optimized out>
        req = {version = 2, type = GETAI, key_len = 12}
        uid = 4294967295
        buf = '\000' <repeats 255 times>
#5  0x00007fee6b66e454 in start_thread (arg=0x7fee65a4b700) at pthread_create.c:456
        __res = <optimized out>
        pd = 0x7fee65a4b700
        now = <optimized out>
        unwind_buf = {cancel_jmp_buf = {{jmp_buf = {140661884237568, -461186331514265124, 140724270282382, 140724270282383, 0, 140661884237568, 451840114903196124, 
                451872565911724508}, mask_was_saved = 0}}, priv = {pad = {0x0, 0x0, 0x0, 0x0}, data = {prev = 0x0, cleanup = 0x0, canceltype = 0}}}
        not_first_call = <optimized out>
        pagesize_m1 = <optimized out>
        sp = <optimized out>
        freesize = <optimized out>
        __PRETTY_FUNCTION__ = "start_thread"
#6  0x00007fee6b1987cf in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:97
No locals.
--8<---------------cut here---------------end--------------->8---

Valgrind output:

--8<---------------cut here---------------start------------->8---
==532== Thread 4:
==532== Conditional jump or move depends on uninitialised value(s)
==532==    at 0x11B865: addhstaiX (in /gnu/store/3h31zsqxjjg52da5gp3qmhkh4x8klhah-glibc-2.25/sbin/nscd)
==532==    by 0x11C32D: addhstai (in /gnu/store/3h31zsqxjjg52da5gp3qmhkh4x8klhah-glibc-2.25/sbin/nscd)
==532==    by 0x110579: nscd_run_worker (in /gnu/store/3h31zsqxjjg52da5gp3qmhkh4x8klhah-glibc-2.25/sbin/nscd)
==532==    by 0x4E3D453: start_thread (in /gnu/store/3h31zsqxjjg52da5gp3qmhkh4x8klhah-glibc-2.25/lib/libpthread-2.25.so)
==532== 
==532== Conditional jump or move depends on uninitialised value(s)
==532==    at 0x11B859: addhstaiX (in /gnu/store/3h31zsqxjjg52da5gp3qmhkh4x8klhah-glibc-2.25/sbin/nscd)
==532==    by 0x11C32D: addhstai (in /gnu/store/3h31zsqxjjg52da5gp3qmhkh4x8klhah-glibc-2.25/sbin/nscd)
==532==    by 0x110579: nscd_run_worker (in /gnu/store/3h31zsqxjjg52da5gp3qmhkh4x8klhah-glibc-2.25/sbin/nscd)
==532==    by 0x4E3D453: start_thread (in /gnu/store/3h31zsqxjjg52da5gp3qmhkh4x8klhah-glibc-2.25/lib/libpthread-2.25.so)
==532== 
==532== Use of uninitialised value of size 8
==532==    at 0x11B85B: addhstaiX (in /gnu/store/3h31zsqxjjg52da5gp3qmhkh4x8klhah-glibc-2.25/sbin/nscd)
==532==    by 0x11C32D: addhstai (in /gnu/store/3h31zsqxjjg52da5gp3qmhkh4x8klhah-glibc-2.25/sbin/nscd)
==532==    by 0x110579: nscd_run_worker (in /gnu/store/3h31zsqxjjg52da5gp3qmhkh4x8klhah-glibc-2.25/sbin/nscd)
==532==    by 0x4E3D453: start_thread (in /gnu/store/3h31zsqxjjg52da5gp3qmhkh4x8klhah-glibc-2.25/lib/libpthread-2.25.so)
==532== 
==532== Use of uninitialised value of size 8
==532==    at 0x11B848: addhstaiX (in /gnu/store/3h31zsqxjjg52da5gp3qmhkh4x8klhah-glibc-2.25/sbin/nscd)
==532==    by 0x11C32D: addhstai (in /gnu/store/3h31zsqxjjg52da5gp3qmhkh4x8klhah-glibc-2.25/sbin/nscd)
==532==    by 0x110579: nscd_run_worker (in /gnu/store/3h31zsqxjjg52da5gp3qmhkh4x8klhah-glibc-2.25/sbin/nscd)
==532==    by 0x4E3D453: start_thread (in /gnu/store/3h31zsqxjjg52da5gp3qmhkh4x8klhah-glibc-2.25/lib/libpthread-2.25.so)
==532== 
==532== Use of uninitialised value of size 8
==532==    at 0x4C2D932: strlen (in /gnu/store/4zm43sqyiffcmpkyv7j9lmxxsby6c9mk-valgrind-3.13.0/lib/valgrind/vgpreload_memcheck-amd64-linux.so)
==532==    by 0x11B882: addhstaiX (in /gnu/store/3h31zsqxjjg52da5gp3qmhkh4x8klhah-glibc-2.25/sbin/nscd)
==532==    by 0x11C32D: addhstai (in /gnu/store/3h31zsqxjjg52da5gp3qmhkh4x8klhah-glibc-2.25/sbin/nscd)
==532==    by 0x110579: nscd_run_worker (in /gnu/store/3h31zsqxjjg52da5gp3qmhkh4x8klhah-glibc-2.25/sbin/nscd)
==532==    by 0x4E3D453: start_thread (in /gnu/store/3h31zsqxjjg52da5gp3qmhkh4x8klhah-glibc-2.25/lib/libpthread-2.25.so)
==532== 
==532== Invalid read of size 1
==532==    at 0x4C2D932: strlen (in /gnu/store/4zm43sqyiffcmpkyv7j9lmxxsby6c9mk-valgrind-3.13.0/lib/valgrind/vgpreload_memcheck-amd64-linux.so)
==532==    by 0x11B882: addhstaiX (in /gnu/store/3h31zsqxjjg52da5gp3qmhkh4x8klhah-glibc-2.25/sbin/nscd)
==532==    by 0x11C32D: addhstai (in /gnu/store/3h31zsqxjjg52da5gp3qmhkh4x8klhah-glibc-2.25/sbin/nscd)
==532==    by 0x110579: nscd_run_worker (in /gnu/store/3h31zsqxjjg52da5gp3qmhkh4x8klhah-glibc-2.25/sbin/nscd)
==532==    by 0x4E3D453: start_thread (in /gnu/store/3h31zsqxjjg52da5gp3qmhkh4x8klhah-glibc-2.25/lib/libpthread-2.25.so)
==532==  Address 0x0 is not stack'd, malloc'd or (recently) free'd
==532== 
==532== 
==532== Process terminating with default action of signal 11 (SIGSEGV): dumping core
==532==  Access not within mapped region at address 0x0
==532==    at 0x4C2D932: strlen (in /gnu/store/4zm43sqyiffcmpkyv7j9lmxxsby6c9mk-valgrind-3.13.0/lib/valgrind/vgpreload_memcheck-amd64-linux.so)
==532==    by 0x11B882: addhstaiX (in /gnu/store/3h31zsqxjjg52da5gp3qmhkh4x8klhah-glibc-2.25/sbin/nscd)
==532==    by 0x11C32D: addhstai (in /gnu/store/3h31zsqxjjg52da5gp3qmhkh4x8klhah-glibc-2.25/sbin/nscd)
==532==    by 0x110579: nscd_run_worker (in /gnu/store/3h31zsqxjjg52da5gp3qmhkh4x8klhah-glibc-2.25/sbin/nscd)
==532==    by 0x4E3D453: start_thread (in /gnu/store/3h31zsqxjjg52da5gp3qmhkh4x8klhah-glibc-2.25/lib/libpthread-2.25.so)
--8<---------------cut here---------------end--------------->8---

^ permalink raw reply	[flat|nested] 12+ messages in thread

* bug#30396: nscd segfaults on attempt to ssh to .local host
  2018-02-08 22:30 ` Ludovic Courtès
  2018-02-08 22:59   ` Ludovic Courtès
@ 2018-02-08 23:22   ` George myglc2 Clemmer
  1 sibling, 0 replies; 12+ messages in thread
From: George myglc2 Clemmer @ 2018-02-08 23:22 UTC (permalink / raw)
  To: Ludovic Courtès; +Cc: 30396

Hello, 

On 02/08/2018 at 22:30 Ludovic Courtès writes:

> Hi,
>
> George myglc2 Clemmer <myglc2@gmail.com> skribis:
>
>> g1@g1 /root/con/30$  ssh e3a.local ; date
>> ssh: Could not resolve hostname e3a.local: Name or service not known
>> Thu Feb  8 13:06:23 EST 2018
>>
>> g1@g1 /root/con/30$ cat /var/log/messages | tail
>> Feb  8 13:06:00 localhost dhclient: DHCPDISCOVER on enp4s0 to 255.255.255.255 port 67 interval 5
>> Feb  8 13:06:05 localhost dhclient: No DHCPOFFERS received.
>> Feb  8 13:06:05 localhost dhclient: No working leases in persistent database - sleeping.
>> Feb  8 13:06:23 localhost vmunix: [52360.780268] nscd[23423]: segfault at 0 ip 00007fb14a3c1606 sp 00007fb1446d82d8 error 4 in libc-2.25.so[7fb14a341000+196000]
>
> ‘nss-mdns’ was upgraded two weeks ago from 0.10 to 0.11.  I can
> reproduce the crash with 0.11 on x86_64.
>
> What does this print:
>
>   guix gc -R $(readlink -f /run/current-system) | grep nss-mdns

g1@g1 ~$   guix gc -R $(readlink -f /run/current-system) | grep nss-mdns
/gnu/store/ms17fp783xqngzad0b38q97q73f9kaii-nss-mdns-0.11

> Perhaps “ssh -6 e3a.local” works?

Nope ...

g1@g1 ~$ ssh -6 e3a.local ; date
ssh: Could not resolve hostname e3a.local: Name or service not known
Thu Feb  8 18:18:31 EST 2018
g1@g1 ~$ cat /var/log/messages | tail
Feb  8 18:18:19 localhost nscd: 580 monitoring directory `/etc` (2)
Feb  8 18:18:19 localhost nscd: 580 monitoring file `/etc/services` (4)
Feb  8 18:18:19 localhost nscd: 580 monitoring directory `/etc` (2)
Feb  8 18:18:31 localhost vmunix: [71087.823297] nscd[587]: segfault at 0 ip 00007f71cfc43606 sp 00007f71c9f5a2d8 error 4 in libc-2.25.so[7f71cfbc3000+196000]
Feb  8 18:18:32 localhost nscd: 591 monitoring file `/etc/hosts` (1)
Feb  8 18:18:32 localhost nscd: 591 monitoring directory `/etc` (2)
Feb  8 18:18:32 localhost nscd: 591 monitoring file `/etc/resolv.conf` (3)
Feb  8 18:18:32 localhost nscd: 591 monitoring directory `/etc` (2)
Feb  8 18:18:32 localhost nscd: 591 monitoring file `/etc/services` (4)
Feb  8 18:18:32 localhost nscd: 591 monitoring directory `/etc` (2)

Thanks - George

^ permalink raw reply	[flat|nested] 12+ messages in thread

* bug#30396: nscd segfaults on attempt to ssh to .local host
  2018-02-08 22:59   ` Ludovic Courtès
@ 2018-02-09 10:36     ` Ludovic Courtès
  2018-02-09 14:18     ` Ludovic Courtès
  1 sibling, 0 replies; 12+ messages in thread
From: Ludovic Courtès @ 2018-02-09 10:36 UTC (permalink / raw)
  To: George myglc2 Clemmer; +Cc: 30396

I’ve forwarded it upstream:

  https://github.com/lathiat/nss-mdns/issues/26

Ludo’.

^ permalink raw reply	[flat|nested] 12+ messages in thread

* bug#30396: nscd segfaults on attempt to ssh to .local host
  2018-02-08 22:59   ` Ludovic Courtès
  2018-02-09 10:36     ` Ludovic Courtès
@ 2018-02-09 14:18     ` Ludovic Courtès
  2018-02-09 17:29       ` George myglc2 Clemmer
  2018-02-09 19:53       ` George myglc2 Clemmer
  1 sibling, 2 replies; 12+ messages in thread
From: Ludovic Courtès @ 2018-02-09 14:18 UTC (permalink / raw)
  To: George myglc2 Clemmer; +Cc: 30396

Hi,

For now I’ve pushed a workaround in
a68fdfea96370c8a4b95af1fcd6e2fd7eb72da29, which basically downgrades to
0.10 until upstream comes up with a fix.

Ludo’.

^ permalink raw reply	[flat|nested] 12+ messages in thread

* bug#30396: nscd segfaults on attempt to ssh to .local host
  2018-02-09 14:18     ` Ludovic Courtès
@ 2018-02-09 17:29       ` George myglc2 Clemmer
  2018-02-09 19:53       ` George myglc2 Clemmer
  1 sibling, 0 replies; 12+ messages in thread
From: George myglc2 Clemmer @ 2018-02-09 17:29 UTC (permalink / raw)
  To: Ludovic Courtès; +Cc: 30396


On 02/09/2018 at 14:18 Ludovic Courtès writes:
> For now I’ve pushed a workaround in
> a68fdfea96370c8a4b95af1fcd6e2fd7eb72da29, which basically downgrades to
> 0.10 until upstream comes up with a fix.

OK, I knew it needed to go upstream but I also thought it must have
worked at some point. Thank you for the workaround ;-) - George

^ permalink raw reply	[flat|nested] 12+ messages in thread

* bug#30396: nscd segfaults on attempt to ssh to .local host
  2018-02-09 14:18     ` Ludovic Courtès
  2018-02-09 17:29       ` George myglc2 Clemmer
@ 2018-02-09 19:53       ` George myglc2 Clemmer
  2018-02-09 21:56         ` Ludovic Courtès
  1 sibling, 1 reply; 12+ messages in thread
From: George myglc2 Clemmer @ 2018-02-09 19:53 UTC (permalink / raw)
  To: Ludovic Courtès; +Cc: 30396

On 02/09/2018 at 14:18 Ludovic Courtès writes:

> For now I’ve pushed a workaround in
> a68fdfea96370c8a4b95af1fcd6e2fd7eb72da29, which basically downgrades to
> 0.10 until upstream comes up with a fix.

FWIW, nss-mdns-0.10 segfaults also ...

g1@g1 ~$ ssh g1.local ; date
ssh: Could not resolve hostname g1.local: Name or service not known

Fri Feb  9 14:52:20 EST 2018
g1@g1 ~$ tail /var/log/messages 
Feb  9 14:51:51 localhost nscd: 17817 monitoring directory `/etc` (2)
Feb  9 14:52:20 localhost vmunix: [ 5922.252421] nscd[17823]: segfault at 0 ip 00007f85c0287606 sp 00007f85ba79f2d8 error 4 in libc-2.25.so[7f85c0207000+196000]
Feb  9 14:52:21 localhost nscd: 17829 monitoring file `/etc/hosts` (1)

g1@g1 ~$ avahi-browse -p -a | grep g1
+;enp3s0;IPv6;g1;_ssh._tcp;local
+;enp3s0;IPv4;g1;_ssh._tcp;local

^ permalink raw reply	[flat|nested] 12+ messages in thread

* bug#30396: nscd segfaults on attempt to ssh to .local host
  2018-02-09 19:53       ` George myglc2 Clemmer
@ 2018-02-09 21:56         ` Ludovic Courtès
  2018-02-10 15:36           ` myglc2
  0 siblings, 1 reply; 12+ messages in thread
From: Ludovic Courtès @ 2018-02-09 21:56 UTC (permalink / raw)
  To: George myglc2 Clemmer; +Cc: 30396

George myglc2 Clemmer <myglc2@gmail.com> skribis:

> On 02/09/2018 at 14:18 Ludovic Courtès writes:
>
>> For now I’ve pushed a workaround in
>> a68fdfea96370c8a4b95af1fcd6e2fd7eb72da29, which basically downgrades to
>> 0.10 until upstream comes up with a fix.
>
> FWIW, nss-mdns-0.10 segfaults also ...

Are you sure you reconfigured to after this commit and rebooted or
otherwise had the nscd service upgraded?  You can double- or
triple-check, it’s never too much.  :-)

If after that you’re sure it’s still crashing, can you try (as root):

  herd stop nscd
  mv /var/cache/nscd/hosts{,.bak}
  herd start nscd

Does it make a difference?

Thanks,
Ludo’.

^ permalink raw reply	[flat|nested] 12+ messages in thread

* bug#30396: nscd segfaults on attempt to ssh to .local host
  2018-02-09 21:56         ` Ludovic Courtès
@ 2018-02-10 15:36           ` myglc2
  2018-02-15  9:38             ` Ludovic Courtès
  0 siblings, 1 reply; 12+ messages in thread
From: myglc2 @ 2018-02-10 15:36 UTC (permalink / raw)
  To: Ludovic Courtès; +Cc: 30396

On 02/09/2018 at 22:56 Ludovic Courtès writes:

> George myglc2 Clemmer <myglc2@gmail.com> skribis:
>
>> On 02/09/2018 at 14:18 Ludovic Courtès writes:
>>
>>> For now I’ve pushed a workaround in
>>> a68fdfea96370c8a4b95af1fcd6e2fd7eb72da29, which basically downgrades to
>>> 0.10 until upstream comes up with a fix.
>>
>> FWIW, nss-mdns-0.10 segfaults also ...

ARGH!... my mistake, I was looking at ...

g1@g1 ~$   guix gc -R $(readlink -f /run/current-system) | grep nss-mdns
/gnu/store/mvjz94idlcralc0bmqvrbrxx89w0narf-nss-mdns-0.10

... bug I had not rebooted/restarted herd.  Many thanks - George

^ permalink raw reply	[flat|nested] 12+ messages in thread

* bug#30396: nscd segfaults on attempt to ssh to .local host
  2018-02-10 15:36           ` myglc2
@ 2018-02-15  9:38             ` Ludovic Courtès
  0 siblings, 0 replies; 12+ messages in thread
From: Ludovic Courtès @ 2018-02-15  9:38 UTC (permalink / raw)
  To: myglc2; +Cc: 30396-done

Hi,

It’s definitely fixed with the upgrade to nss-mdns 0.12:

  https://git.savannah.gnu.org/cgit/guix.git/commit/?id=9859b5c190b43a2d53f03f1ac71bad20c74b632b

Ludo’.

^ permalink raw reply	[flat|nested] 12+ messages in thread

end of thread, other threads:[~2018-02-15  9:39 UTC | newest]

Thread overview: 12+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2018-02-08 18:17 bug#30396: nscd segfaults on attempt to ssh to .local host George myglc2 Clemmer
2018-02-08 20:00 ` Ricardo Wurmus
2018-02-08 22:30 ` Ludovic Courtès
2018-02-08 22:59   ` Ludovic Courtès
2018-02-09 10:36     ` Ludovic Courtès
2018-02-09 14:18     ` Ludovic Courtès
2018-02-09 17:29       ` George myglc2 Clemmer
2018-02-09 19:53       ` George myglc2 Clemmer
2018-02-09 21:56         ` Ludovic Courtès
2018-02-10 15:36           ` myglc2
2018-02-15  9:38             ` Ludovic Courtès
2018-02-08 23:22   ` George myglc2 Clemmer

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).