GNU bug report logs - #30396
nscd segfaults on attempt to ssh to .local host

Previous Next

Package: guix;

Reported by: George myglc2 Clemmer <myglc2 <at> gmail.com>

Date: Thu, 8 Feb 2018 18:18:02 UTC

Severity: normal

Done: ludo <at> gnu.org (Ludovic Courtès)

Bug is archived. No further changes may be made.

To add a comment to this bug, you must first unarchive it, by sending
a message to control AT debbugs.gnu.org, with unarchive 30396 in the body.
You can then email your comments to 30396 AT debbugs.gnu.org in the normal way.

Toggle the display of automated, internal messages from the tracker.

View this report as an mbox folder, status mbox, maintainer mbox


Report forwarded to bug-guix <at> gnu.org:
bug#30396; Package guix. (Thu, 08 Feb 2018 18:18:02 GMT) Full text and rfc822 format available.

Acknowledgement sent to George myglc2 Clemmer <myglc2 <at> gmail.com>:
New bug report received and forwarded. Copy sent to bug-guix <at> gnu.org. (Thu, 08 Feb 2018 18:18:02 GMT) Full text and rfc822 format available.

Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):

From: George myglc2 Clemmer <myglc2 <at> gmail.com>
To: bug-guix <at> gnu.org
Subject: nscd segfaults on attempt to ssh to .local host
Date: Thu, 08 Feb 2018 13:17:31 -0500
[Message part 1 (text/plain, inline)]
nscd segfaults on attempt to ssh to .local host ...

g1 <at> 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 <at> 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 <at> 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 <at> 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 <at> 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 <at> 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 <at> g1 ~/src/guix$ guix --version
guix (GNU Guix) 0.14.0.1427-26ecb

TIA - George

system config:

[sys.scm (application/octet-stream, attachment)]

Information forwarded to bug-guix <at> gnu.org:
bug#30396; Package guix. (Thu, 08 Feb 2018 20:01:01 GMT) Full text and rfc822 format available.

Message #8 received at 30396 <at> debbugs.gnu.org (full text, mbox):

From: Ricardo Wurmus <rekado <at> elephly.net>
To: George myglc2 Clemmer <myglc2 <at> gmail.com>
Cc: 30396 <at> debbugs.gnu.org
Subject: Re: bug#30396: nscd segfaults on attempt to ssh to .local host
Date: Thu, 08 Feb 2018 21:00:02 +0100
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





Information forwarded to bug-guix <at> gnu.org:
bug#30396; Package guix. (Thu, 08 Feb 2018 22:31:01 GMT) Full text and rfc822 format available.

Message #11 received at 30396 <at> debbugs.gnu.org (full text, mbox):

From: ludo <at> gnu.org (Ludovic Courtès)
To: George myglc2 Clemmer <myglc2 <at> gmail.com>
Cc: 30396 <at> debbugs.gnu.org
Subject: Re: bug#30396: nscd segfaults on attempt to ssh to .local host
Date: Thu, 08 Feb 2018 23:30:34 +0100
Hi,

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

> g1 <at> 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 <at> 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’.




Information forwarded to bug-guix <at> gnu.org:
bug#30396; Package guix. (Thu, 08 Feb 2018 23:00:02 GMT) Full text and rfc822 format available.

Message #14 received at 30396 <at> debbugs.gnu.org (full text, mbox):

From: ludo <at> gnu.org (Ludovic Courtès)
To: George myglc2 Clemmer <myglc2 <at> gmail.com>
Cc: 30396 <at> debbugs.gnu.org
Subject: Re: bug#30396: nscd segfaults on attempt to ssh to .local host
Date: Thu, 08 Feb 2018 23:59:10 +0100
ludo <at> gnu.org (Ludovic Courtès) skribis:

> George myglc2 Clemmer <myglc2 <at> gmail.com> skribis:
>
>> g1 <at> 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 <at> 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 <at> entry=0x55a0e3472340 <dbs+704>, 
    fd=fd <at> entry=13, req=req <at> entry=0x7fee65a4a8c0, key=key <at> entry=0x7fee65a4ab10, 
    uid=uid <at> entry=4294967295, he=he <at> entry=0x0, dh=0x0) at aicache.c:174
#2  0x000055a0e326432e in addhstai (db=db <at> entry=0x55a0e3472340 <dbs+704>, 
    fd=fd <at> entry=13, req=req <at> entry=0x7fee65a4a8c0, key=key <at> entry=0x7fee65a4ab10, 
    uid=uid <at> 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 <at> entry=0x55a0e3472340 <dbs+704>, fd=fd <at> entry=13, req=req <at> entry=0x7fee65a4a8c0, key=key <at> entry=0x7fee65a4ab10, uid=uid <at> entry=4294967295, 
    he=he <at> 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 <at> entry=0x55a0e3472340 <dbs+704>, fd=fd <at> entry=13, req=req <at> entry=0x7fee65a4a8c0, key=key <at> entry=0x7fee65a4ab10, uid=uid <at> 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---




Information forwarded to bug-guix <at> gnu.org:
bug#30396; Package guix. (Thu, 08 Feb 2018 23:23:01 GMT) Full text and rfc822 format available.

Message #17 received at 30396 <at> debbugs.gnu.org (full text, mbox):

From: George myglc2 Clemmer <myglc2 <at> gmail.com>
To: Ludovic Courtès <ludo <at> gnu.org>
Cc: 30396 <at> debbugs.gnu.org
Subject: Re: bug#30396: nscd segfaults on attempt to ssh to .local host
Date: Thu, 08 Feb 2018 18:22:09 -0500
Hello, 

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

> Hi,
>
> George myglc2 Clemmer <myglc2 <at> gmail.com> skribis:
>
>> g1 <at> 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 <at> 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 <at> 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 <at> 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 <at> 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




Information forwarded to bug-guix <at> gnu.org:
bug#30396; Package guix. (Fri, 09 Feb 2018 10:37:01 GMT) Full text and rfc822 format available.

Message #20 received at 30396 <at> debbugs.gnu.org (full text, mbox):

From: ludo <at> gnu.org (Ludovic Courtès)
To: George myglc2 Clemmer <myglc2 <at> gmail.com>
Cc: 30396 <at> debbugs.gnu.org
Subject: Re: bug#30396: nscd segfaults on attempt to ssh to .local host
Date: Fri, 09 Feb 2018 11:36:08 +0100
I’ve forwarded it upstream:

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

Ludo’.




Information forwarded to bug-guix <at> gnu.org:
bug#30396; Package guix. (Fri, 09 Feb 2018 14:20:02 GMT) Full text and rfc822 format available.

Message #23 received at 30396 <at> debbugs.gnu.org (full text, mbox):

From: ludo <at> gnu.org (Ludovic Courtès)
To: George myglc2 Clemmer <myglc2 <at> gmail.com>
Cc: 30396 <at> debbugs.gnu.org
Subject: Re: bug#30396: nscd segfaults on attempt to ssh to .local host
Date: Fri, 09 Feb 2018 15:18:58 +0100
Hi,

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

Ludo’.




Information forwarded to bug-guix <at> gnu.org:
bug#30396; Package guix. (Fri, 09 Feb 2018 17:30:02 GMT) Full text and rfc822 format available.

Message #26 received at 30396 <at> debbugs.gnu.org (full text, mbox):

From: George myglc2 Clemmer <myglc2 <at> gmail.com>
To: Ludovic Courtès <ludo <at> gnu.org>
Cc: 30396 <at> debbugs.gnu.org
Subject: Re: bug#30396: nscd segfaults on attempt to ssh to .local host
Date: Fri, 09 Feb 2018 12:29:45 -0500
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




Information forwarded to bug-guix <at> gnu.org:
bug#30396; Package guix. (Fri, 09 Feb 2018 19:54:02 GMT) Full text and rfc822 format available.

Message #29 received at 30396 <at> debbugs.gnu.org (full text, mbox):

From: George myglc2 Clemmer <myglc2 <at> gmail.com>
To: Ludovic Courtès <ludo <at> gnu.org>
Cc: 30396 <at> debbugs.gnu.org
Subject: Re: bug#30396: nscd segfaults on attempt to ssh to .local host
Date: Fri, 09 Feb 2018 14:53:28 -0500
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 <at> 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 <at> 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 <at> g1 ~$ avahi-browse -p -a | grep g1
+;enp3s0;IPv6;g1;_ssh._tcp;local
+;enp3s0;IPv4;g1;_ssh._tcp;local




Information forwarded to bug-guix <at> gnu.org:
bug#30396; Package guix. (Fri, 09 Feb 2018 21:57:01 GMT) Full text and rfc822 format available.

Message #32 received at 30396 <at> debbugs.gnu.org (full text, mbox):

From: ludo <at> gnu.org (Ludovic Courtès)
To: George myglc2 Clemmer <myglc2 <at> gmail.com>
Cc: 30396 <at> debbugs.gnu.org
Subject: Re: bug#30396: nscd segfaults on attempt to ssh to .local host
Date: Fri, 09 Feb 2018 22:56:32 +0100
George myglc2 Clemmer <myglc2 <at> 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’.




Information forwarded to bug-guix <at> gnu.org:
bug#30396; Package guix. (Sat, 10 Feb 2018 15:37:01 GMT) Full text and rfc822 format available.

Message #35 received at 30396 <at> debbugs.gnu.org (full text, mbox):

From: myglc2 <at> gmail.com
To: ludo <at> gnu.org (Ludovic Courtès)
Cc: 30396 <at> debbugs.gnu.org
Subject: Re: bug#30396: nscd segfaults on attempt to ssh to .local host
Date: Sat, 10 Feb 2018 10:36:21 -0500
On 02/09/2018 at 22:56 Ludovic Courtès writes:

> George myglc2 Clemmer <myglc2 <at> 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 <at> 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




Reply sent to ludo <at> gnu.org (Ludovic Courtès):
You have taken responsibility. (Thu, 15 Feb 2018 09:39:01 GMT) Full text and rfc822 format available.

Notification sent to George myglc2 Clemmer <myglc2 <at> gmail.com>:
bug acknowledged by developer. (Thu, 15 Feb 2018 09:39:01 GMT) Full text and rfc822 format available.

Message #40 received at 30396-done <at> debbugs.gnu.org (full text, mbox):

From: ludo <at> gnu.org (Ludovic Courtès)
To: myglc2 <at> gmail.com
Cc: 30396-done <at> debbugs.gnu.org
Subject: Re: bug#30396: nscd segfaults on attempt to ssh to .local host
Date: Thu, 15 Feb 2018 10:38:21 +0100
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 archived. Request was from Debbugs Internal Request <help-debbugs <at> gnu.org> to internal_control <at> debbugs.gnu.org. (Thu, 15 Mar 2018 11:24:08 GMT) Full text and rfc822 format available.

This bug report was last modified 6 years and 44 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.