From owner-freebsd-stable@freebsd.org Thu Jun 30 12:52:15 2016 Return-Path: Delivered-To: freebsd-stable@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 891BAB87674 for ; Thu, 30 Jun 2016 12:52:15 +0000 (UTC) (envelope-from kostikbel@gmail.com) Received: from kib.kiev.ua (kib.kiev.ua [IPv6:2001:470:d5e7:1::1]) (using TLSv1 with cipher DHE-RSA-CAMELLIA256-SHA (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 23A1624B2 for ; Thu, 30 Jun 2016 12:52:14 +0000 (UTC) (envelope-from kostikbel@gmail.com) Received: from tom.home (kib@localhost [127.0.0.1]) by kib.kiev.ua (8.15.2/8.15.2) with ESMTPS id u5UCq4G4081582 (version=TLSv1 cipher=DHE-RSA-CAMELLIA256-SHA bits=256 verify=NO); Thu, 30 Jun 2016 15:52:05 +0300 (EEST) (envelope-from kostikbel@gmail.com) DKIM-Filter: OpenDKIM Filter v2.10.3 kib.kiev.ua u5UCq4G4081582 Received: (from kostik@localhost) by tom.home (8.15.2/8.15.2/Submit) id u5UCq4nL081581; Thu, 30 Jun 2016 15:52:04 +0300 (EEST) (envelope-from kostikbel@gmail.com) X-Authentication-Warning: tom.home: kostik set sender to kostikbel@gmail.com using -f Date: Thu, 30 Jun 2016 15:52:04 +0300 From: Konstantin Belousov To: Patrick Lamaiziere Cc: freebsd-stable@freebsd.org Subject: Re: 10.3-RELEASE amd64 segmentation faults in wc, sh... Message-ID: <20160630125204.GO38613@kib.kiev.ua> References: <20160630135732.76f27305@mr185083> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20160630135732.76f27305@mr185083> User-Agent: Mutt/1.6.1 (2016-04-27) X-Spam-Status: No, score=-2.0 required=5.0 tests=ALL_TRUSTED,BAYES_00, DKIM_ADSP_CUSTOM_MED,FREEMAIL_FROM,NML_ADSP_CUSTOM_MED autolearn=no autolearn_force=no version=3.4.1 X-Spam-Checker-Version: SpamAssassin 3.4.1 (2015-04-28) on tom.home X-BeenThere: freebsd-stable@freebsd.org X-Mailman-Version: 2.1.22 Precedence: list List-Id: Production branch of FreeBSD source code List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 30 Jun 2016 12:52:15 -0000 On Thu, Jun 30, 2016 at 01:57:32PM +0200, Patrick Lamaiziere wrote: > Hello, > > I'm building a pair of firewall with 10.3 and I see some rare > segmentation faults (5 in a week) in processes like wc, sh or ifstated. > > wc, sh are used by some scripts who check the state of the interfaces > and the state of bgp sessions. Ifstated called theses scripts too. > > I thought there was a bug in ifstated so I made a small program in > perl to do the same thing but the problem is not in ifstated. > > The machines are some Dell R730, I've checked the memory with > memtest86 for one week without error. The problem occurs on both > firewalls so i don't think this is a hardware problem. > > Any idea? > > Thanks, regards. > > ifstated > -------- > Core was generated by `ifstated'. > Program terminated with signal 11, Segmentation fault. > Reading symbols from /usr/local/lib/libevent-2.0.so.5...(no debugging symbols found)...done. > Loaded symbols for /usr/local/lib/libevent-2.0.so.5 > Reading symbols from /lib/libc.so.7...(no debugging symbols found)...done. > Loaded symbols for /lib/libc.so.7 > Reading symbols from /lib/libthr.so.3...(no debugging symbols found)...done. > Loaded symbols for /lib/libthr.so.3 > Reading symbols from /libexec/ld-elf.so.1...(no debugging symbols found)...done. > Loaded symbols for /libexec/ld-elf.so.1 > #0 0x0000000800e23a67 in pthread_getspecific () from /lib/libthr.so.3 > Cannot find new threads: generic error > > sh > -- > Core was generated by `sh'. > Program terminated with signal 11, Segmentation fault. > Reading symbols from /libexec/ld-elf.so.1...(no debugging symbols found)...done. > Loaded symbols for /libexec/ld-elf.so.1 > #0 0x000000080063351b in _rtld_atfork_post () from /libexec/ld-elf.so.1 > > wc > -- > Core was generated by `wc'. > Program terminated with signal 11, Segmentation fault. > Reading symbols from /libexec/ld-elf.so.1...(no debugging symbols found)...done. > Loaded symbols for /libexec/ld-elf.so.1 > #0 0x0000000800612524 in _rtld_atfork_post () from /libexec/ld-elf.so.1 This is most likely the problems, reported and fixed in r300758, PR 204764 r302063, and PR 204426 r302236. First and second commits are already in stable/10, the third one will be merged in several days.