bug#30396: nscd segfaults on attempt to ssh to .local host
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’.
bug#30396: nscd segfaults on attempt to ssh to .local host
On 02/09/2018 at 22:56 Ludovic Courtès writes: > George myglc2 Clemmer 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
bug#30396: nscd segfaults on attempt to ssh to .local host
George myglc2 Clemmer 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’.
bug#30396: nscd segfaults on attempt to ssh to .local host
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 7f85c0287606 sp 7f85ba79f2d8 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
bug#30396: nscd segfaults on attempt to ssh to .local host
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
bug#30396: nscd segfaults on attempt to ssh to .local host
Hi, For now I’ve pushed a workaround in a68fdfea96370c8a4b95af1fcd6e2fd7eb72da29, which basically downgrades to 0.10 until upstream comes up with a fix. Ludo’.
bug#30396: nscd segfaults on attempt to ssh to .local host
I’ve forwarded it upstream: https://github.com/lathiat/nss-mdns/issues/26 Ludo’.
bug#30396: nscd segfaults on attempt to ssh to .local host
Hello, On 02/08/2018 at 22:30 Ludovic Courtès writes: > Hi, > > George myglc2 Clemmer 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 7fb14a3c1606 sp 7fb1446d82d8 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 7f71cfc43606 sp 7f71c9f5a2d8 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
bug#30396: nscd segfaults on attempt to ssh to .local host
l...@gnu.org (Ludovic Courtès) skribis: > George myglc2 Clemmer 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 7fb14a3c1606 sp 7fb1446d82d8 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 0x55a0e3263883 in addhstaiX (db=db@entry=0x55a0e3472340 , 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 0x55a0e326432e in addhstai (db=db@entry=0x55a0e3472340 , fd=fd@entry=13, req=req@entry=0x7fee65a4a8c0, key=key@entry=0x7fee65a4ab10, uid=uid@entry=4294967295) at aicache.c:571 #3 0x55a0e325857a in handle_request (uid=4294967295, pid=, key=0x7fee65a4ab10, req=0x7fee65a4a8c0, fd=13) at connections.c:1275 #4 nscd_run_worker (p=) at connections.c:1762 #5 0x7fee6b66e454 in start_thread (arg=0x7fee65a4b700) at pthread_create.c:456 #6 0x7fee6b1987cf 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 0x55a0e3263883 in addhstaiX (db=db@entry=0x55a0e3472340 , 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 , name = 0x0, family = 1801920929, addr = {32750, 0, 2, 1801929696}, scopeid = 32750} at = 0x7fee65a4a7e0 addrs = family = status = {-1, -1} naddrs = 2 canon = 0x0 canonlen = cp = addrslen = 0 fct4 = 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 = tmpbuf4 = ttl = 2147483647 total = 0 key_copy = 0x0 alloca_used = false timeout = 9223372036854775807 __PRETTY_FUNCTION__ = "addhstaiX" #2 0x55a0e326432e in addhstai (db=db@entry=0x55a0e3472340 , fd=fd@entry=13, req=req@entry=0x7fee65a4a8c0, key=key@entry=0x7fee65a4ab10, uid=uid@entry=4294967295) at aicache.c:571 No locals. #3 0x55a0e325857a in handle_request (uid=4294967295, pid=, key=0x7fee65a4ab10, req=0x7fee65a4a8c0, fd=13) at connections.c:1275 db = 0x55a0e3472340 #4 nscd_run_worker (p=) at connections.c:1762 keybuf = "pluto.local", '\000' fd = 13 pid = it = req = {version = 2, type = GETAI, key_len = 12} uid = 4294967295 buf = '\000' #5 0x7fee6b66e454 in start_thread (arg=0x7fee65a4b700) at pthread_create.c:456 __res = pd = 0x7fee65a4b700 now = 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 = pagesize_m1 = sp = freesize = __PRETTY_FUNCTION__ = "start_thread" #6 0x7fee6b1987cf 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=
bug#30396: nscd segfaults on attempt to ssh to .local host
Hi, George myglc2 Clemmer 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 7fb14a3c1606 sp 7fb1446d82d8 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’.
bug#30396: nscd segfaults on attempt to ssh to .local host
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
bug#30396: nscd segfaults on attempt to ssh to .local host
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 7fb14a3c1606 sp 7fb1446d82d8 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 7fd7569b6606 sp 7fd750ece2d8 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: sys.scm Description: Binary data