From owner-freebsd-hackers@freebsd.org Tue Mar 28 07:54:53 2017 Return-Path: Delivered-To: freebsd-hackers@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 55FBCD207DF for ; Tue, 28 Mar 2017 07:54:53 +0000 (UTC) (envelope-from kostikbel@gmail.com) Received: from kib.kiev.ua (kib.kiev.ua [IPv6:2001:470:d5e7:1::1]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id F1BDBB51; Tue, 28 Mar 2017 07:54:52 +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 v2S7skg9018417 (version=TLSv1.2 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=NO); Tue, 28 Mar 2017 10:54:47 +0300 (EEST) (envelope-from kostikbel@gmail.com) DKIM-Filter: OpenDKIM Filter v2.10.3 kib.kiev.ua v2S7skg9018417 Received: (from kostik@localhost) by tom.home (8.15.2/8.15.2/Submit) id v2S7skDf018416; Tue, 28 Mar 2017 10:54:46 +0300 (EEST) (envelope-from kostikbel@gmail.com) X-Authentication-Warning: tom.home: kostik set sender to kostikbel@gmail.com using -f Date: Tue, 28 Mar 2017 10:54:46 +0300 From: Konstantin Belousov To: Steven Hartland Cc: "K. Macy" , "freebsd-hackers@freebsd.org" Subject: Re: Help needed to identify golang fork / memory corruption issue on FreeBSD Message-ID: <20170328075446.GO43712@kib.kiev.ua> References: <18b40a69-4460-faf2-c0ce-7491eca92782@multiplay.co.uk> <20170317082333.GP16105@kib.kiev.ua> <180a601b-5481-bb41-f7fc-67976aabe451@multiplay.co.uk> <20170317124437.GR16105@kib.kiev.ua> <5ba92447-945e-6fea-ad4f-f58ac2a0012e@multiplay.co.uk> <20170327161833.GL43712@kib.kiev.ua> <3ec35a46-ae70-35cd-29f8-82e7cebb0eb6@multiplay.co.uk> <20170327164905.GN43712@kib.kiev.ua> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.8.0 (2017-02-23) 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-hackers@freebsd.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 28 Mar 2017 07:54:53 -0000 On Mon, Mar 27, 2017 at 07:17:20PM +0100, Steven Hartland wrote: > Here's the output after its logged the errors. > > procstat -v 36159 > PID START END PRT RES PRES REF SHD FLAG > TP PATH > 36159 0x400000 0x70d000 r-x 308 588 3 1 CN-- vn > /root/golang/src/test5/test5 > 36159 0x70d000 0x94e000 r-- 248 588 3 1 CN-- vn > /root/golang/src/test5/test5 > 36159 0x94e000 0x985000 rw- 31 0 1 0 C--- vn > /root/golang/src/test5/test5 > 36159 0x985000 0x9a8000 rw- 18 18 1 0 C--- df > 36159 0x80094e000 0x8009ee000 rw- 35 35 1 0 C--- df > 36159 0x8009ee000 0x800abe000 rw- 28 28 1 0 C--- df > 36159 0x800abe000 0x800ace000 rw- 16 16 1 0 C--- df > 36159 0x800ace000 0x800b0e000 rw- 2 2 1 0 CN-- df > 36159 0x800b0e000 0x800b4e000 rw- 2 2 1 0 C--- df > 36159 0x800b4e000 0x800b8e000 rw- 2 2 1 0 C--- df > 36159 0x800b8e000 0x800c0e000 rw- 3 3 1 0 C--- df > 36159 0x800c0e000 0x800c4e000 rw- 2 2 1 0 C--- df > 36159 0x800c4e000 0x800c8e000 rw- 1 1 1 0 CN-- df > 36159 0x800c8e000 0x800cce000 rw- 1 1 1 0 C--- df > 36159 0x800cce000 0x800d0e000 rw- 1 1 1 0 CN-- df > 36159 0xc000000000 0xc000001000 rw- 1 1 1 0 CN-- df > 36159 0xc41fff0000 0xc41fff8000 rw- 3 3 1 0 CN-- df > 36159 0xc41fff8000 0xc420200000 rw- 258 258 1 0 C--- df > 36159 0x7ffffffdf000 0x7ffffffff000 rwx 2 2 1 0 C--D df > 36159 0x7ffffffff000 0x800000000000 r-x 1 1 38 0 ---- ph > > I've left it running in case you want any more info. At which address the word is located where an invalid value was detected ?