From owner-freebsd-questions@freebsd.org Sun Jun 11 11:22:16 2017 Return-Path: Delivered-To: freebsd-questions@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 CDF2DC79AA9 for ; Sun, 11 Jun 2017 11:22:16 +0000 (UTC) (envelope-from jim@mailman-hosting.com) Received: from maurice.jlkmail.com (maurice.jlkmail.com [IPv6:2606:c700:1:30::23:2a]) (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 B7D371F9C for ; Sun, 11 Jun 2017 11:22:16 +0000 (UTC) (envelope-from jim@mailman-hosting.com) Received: from maurice.jlkmail.com (localhost [127.0.0.1]) by maurice.jlkmail.com (Postfix) with ESMTP id 7B03A24C0FB0 for ; Sun, 11 Jun 2017 07:22:15 -0400 (EDT) X-Virus-Scanned: Debian amavisd-new at maurice.jlkmail.com Received: from maurice.jlkmail.com ([127.0.0.1]) by maurice.jlkmail.com (maurice.jlkmail.com [127.0.0.1]) (amavisd-new, port 10026) with ESMTP id FhGeLd0GKaGJ for ; Sun, 11 Jun 2017 07:22:14 -0400 (EDT) Received: from schrodinger.fios-router.home (static-70-104-198-156.nrflva.fios.verizon.net [70.104.198.156]) by maurice.jlkmail.com (Postfix) with ESMTPSA id 37EC724C0022; Sun, 11 Jun 2017 07:22:14 -0400 (EDT) Message-ID: <1497180132.3245.9.camel@mailman-hosting.com> Subject: Re: -O2 flag From: Jim Ohlstein To: "Russell L. Carter" , freebsd-questions@freebsd.org Date: Sun, 11 Jun 2017 07:22:12 -0400 In-Reply-To: <74d71bbd-a177-5fbc-8ed2-ca42e3f4915c@pinyon.org> References: <593C4679.5010104@gmail.com> <20170610223753.4e37600d2c32d0b689144e00@yahoo.es> <593C8DE1.4060803@gmail.com> <1497145677.3245.5.camel@mailman-hosting.com> <74d71bbd-a177-5fbc-8ed2-ca42e3f4915c@pinyon.org> Organization: Mailman Hosting Content-Type: text/plain; charset="UTF-8" X-Mailer: Evolution 3.18.5.2-0ubuntu3.2 Mime-Version: 1.0 Content-Transfer-Encoding: 8bit X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 11 Jun 2017 11:22:16 -0000 On Sat, 2017-06-10 at 19:24 -0700, Russell L. Carter wrote: > On 06/10/17 18:47, Jim Ohlstein wrote: > > > > On Sat, 2017-06-10 at 21:25 -0300, Friedrich Locke wrote: > > > > > > i switched to clan40, same error, i.e., it still persist. > > > > > > The problem is that open OpenBSD/amd64 6.1, "gcc -O2" works 100 > > > %. > > > > > > What could it be the problem ? > > As a practical suggestion, how about installing one of the versions > > of > > gcc in ports and using that to compile your app? > > > > > He's tried both gcc and clang and the result was the same.  The > problem > is most likely an assumption about the values on the stack, given > that > the application "works" on openbsd. One of us has misread, but I took his statement to read that it compiles with gcc -02 on OpenBSD. He's tried two versions of clang on FreeBSD (38 and 40). > > These stack details were pointed out previously and all the new > evidence > only increases the likelihood that it is a stack problem in the code. > > No guarantees, though. > -- Jim Ohlstein Professional Mailman Hosting https://mailman-hosting.com/