From owner-freebsd-current@freebsd.org Tue Jul 28 23:05:35 2015 Return-Path: Delivered-To: freebsd-current@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 2A6CC9AD7C9 for ; Tue, 28 Jul 2015 23:05:35 +0000 (UTC) (envelope-from adrian.chadd@gmail.com) Received: from mailman.ysv.freebsd.org (mailman.ysv.freebsd.org [IPv6:2001:1900:2254:206a::50:5]) by mx1.freebsd.org (Postfix) with ESMTP id 0C43DB83 for ; Tue, 28 Jul 2015 23:05:35 +0000 (UTC) (envelope-from adrian.chadd@gmail.com) Received: by mailman.ysv.freebsd.org (Postfix) id 0B4979AD7C6; Tue, 28 Jul 2015 23:05:35 +0000 (UTC) Delivered-To: current@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 0AC9F9AD7C5 for ; Tue, 28 Jul 2015 23:05:35 +0000 (UTC) (envelope-from adrian.chadd@gmail.com) Received: from mail-io0-x233.google.com (mail-io0-x233.google.com [IPv6:2607:f8b0:4001:c06::233]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id CD4E2B82; Tue, 28 Jul 2015 23:05:34 +0000 (UTC) (envelope-from adrian.chadd@gmail.com) Received: by ioea135 with SMTP id a135so3506224ioe.1; Tue, 28 Jul 2015 16:05:33 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type; bh=8H1IX4XHy0cul1QR9b80p5XUc0m1JOVPsT44DlP0yW4=; b=Xc0L/jAfoHeC55WRVdIzH9WAEubqEPa7E84cuuLtC4WVAlPDwLCPOU6sykk2oCriEu pZMyNhuAtwUvgyyqNwkzM9cela5e7mfkYQvtIHWkswqUMogD7RBf4P6iSdgb3Cz/J0mu ukydgFREV4arLMtxDovDQHquscr8IvcbYb7Cgk+McOixEcy2ahP/VAB/RzrDKR8Fh7tL OqFfh/SpSlxwbGDJBxJug/9Reyq0woagOS++lRux5LgfrD7taA6a2nG4p8gj85LNzd9E 7W7fG8f8R/QTRAPHR1MOFBHLuJd7b+thIk62xDq8uf2QYEPPxgpU1wkoGxrySUZd2obq dASA== MIME-Version: 1.0 X-Received: by 10.107.35.144 with SMTP id j138mr65542441ioj.105.1438124733468; Tue, 28 Jul 2015 16:05:33 -0700 (PDT) Received: by 10.36.38.133 with HTTP; Tue, 28 Jul 2015 16:05:33 -0700 (PDT) In-Reply-To: <20150724130317.GS27865@albert.catwhisker.org> References: <20150719183600.GF1217@albert.catwhisker.org> <20150724130317.GS27865@albert.catwhisker.org> Date: Tue, 28 Jul 2015 16:05:33 -0700 Message-ID: Subject: Re: Segmentation fault running ntpd From: Adrian Chadd To: David Wolfskill , Ian Lepore , "current@freebsd.org" Content-Type: text/plain; charset=UTF-8 X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 28 Jul 2015 23:05:35 -0000 Is this still happening for you? -a On 24 July 2015 at 06:03, David Wolfskill wrote: > On Sun, Jul 19, 2015 at 11:36:00AM -0700, David Wolfskill wrote: >> On Sun, Jul 19, 2015 at 10:24:11AM -0600, Ian Lepore wrote: >> > ... >> > Was there anything (at all) in /var/log/messages about ntpd? Even the >> > routine messages (such as what interfaces it binds to) might give a bit >> > of a clue about how far it got in its init before it died. >> > .... >> >> Sorry; there might have been something yesterday... >> If I do get another recurrence, I'll try to gather a bit more >> information. >> .... > > OK; got another one. > > This time, I have the complete /var/log/messages for a verbose boot, > from that boot to just a bit after the ntpd crash; it's in > ; as of the moment, that > contains: > > [PARENTDIR] Parent Directory - > [ ] CANARY 2015-03-22 10:03 15K > [ ] CANARY.gz 2015-03-22 10:03 6.3K > [ ] ntpd.core 2015-07-24 05:31 13M > [ ] ntpd.core.gz 2015-07-24 05:31 124K > [TXT] ntpd_crash_msgs.txt 2015-07-24 05:40 138K > [ ] ntpd_crash_msgs.txt.gz 2015-07-24 05:40 19K > > This was running: > > FreeBSD g1-245.catwhisker.org 11.0-CURRENT FreeBSD 11.0-CURRENT #133 r285836M/285836:1100077: Fri Jul 24 05:24:41 PDT 2015 root@g1-245.catwhisker.org:/common/S4/obj/usr/src/sys/CANARY amd64 > > > Trying "gdb /usr/obj/usr/src/usr.sbin/ntp/ntpd/ntpd ntpd.core" still > doesn't help much: > > This GDB was configured as "amd64-marcel-freebsd"...(no debugging symbols found)... > Core was generated by `ntpd'. > Program terminated with signal 11, Segmentation fault. > Reading symbols from /lib/libm.so.5...(no debugging symbols found)...done. > ... > Loaded symbols for /libexec/ld-elf.so.1 > #0 0x00000008011cd6a0 in sbrk () from /lib/libc.so.7 > [New Thread 801c07400 (LWP 100133/)] > [New Thread 801c06400 (LWP 100132/)] > (gdb) bt > #0 0x00000008011cd6a0 in sbrk () from /lib/libc.so.7 > #1 0x00000008ccbd4f34 in ?? () > #2 0x0000000000000005 in ?? () > #3 0x0000000801800448 in ?? () > #4 0x00000008011ca888 in sbrk () from /lib/libc.so.7 > #5 0x00000008018000c8 in ?? () > #6 0x00000008018000c0 in ?? () > #7 0x0000000000000208 in ?? () > #8 0x0000000801c32fb0 in ?? () > #9 0x0000000000000001 in ?? () > #10 0x0000000801cc20c8 in ?? () > #11 0x0000000000000030 in ?? () > #12 0x0000000801cc20c8 in ?? () > #13 0x00007fffffffe480 in ?? () > #14 0x00000008011cd240 in sbrk () from /lib/libc.so.7 > #15 0x0000000000000280 in ?? () > #16 0x00000008014bbc70 in malloc_message () from /lib/libc.so.7 > #17 0x00000008018000c0 in ?? () > #18 0x0000000801800448 in ?? () > #19 0x0000000000000032 in ?? () > #20 0x0000000801800458 in ?? () > #21 0x00000008014bbc68 in malloc_message () from /lib/libc.so.7 > #22 0x0000000801cc2000 in ?? () > #23 0x00000008014bba60 in malloc_message () from /lib/libc.so.7 > #24 0x0000000801cc20d8 in ?? () > #25 0x00000000000000a0 in ?? () > #26 0x0000000000000208 in ?? () > #27 0x00007fffffffe4d0 in ?? () > #28 0x00000008011bdd7a in _malloc_thread_cleanup () from /lib/libc.so.7 > Previous frame inner to this frame (corrupt stack?) > (gdb) > > > I am presently suspecting that it's a bit dependent on ... well, "timing". > > I have my ~/.xsession set up so that once I've entered the passphrase(s) > for my SSH private key(s), scripts start running to establish > connections to other machines -- e.g., open an xterm locally, ssh > over to my mailhub and (re-)establish a tmux session on that machine > where I run mutt to read & write email (such as this message). > > While that almost always Just Works in stable/10, it's rather ... > spottier ... in head -- I'd say it's about a 50% probability that it will > work, vs. the ssh connection attempt hanging, and eventually timing out. > But if I've waited (say) 30 seconds or so, I can establish such a > connection easily. > > Granted, I am using wireless (802.11), but I get a sense that "things" > are claimed to be "ready to go" a bit prematurely -- at least sometimes. > > Peace, > david > -- > David H. Wolfskill david@catwhisker.org > Those who murder in the name of God or prophet are blasphemous cowards. > > See http://www.catwhisker.org/~david/publickey.gpg for my public key.