From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Andreas Metzler Newsgroups: gmane.lisp.guile.bugs Subject: bug#22337: Breakage on amd64 when built with -O1 and higher Date: Sat, 9 Jan 2016 16:45:21 +0100 Message-ID: <20160109154521.GA5936@argenau.bebt.de> References: <20160109134721.GD1241@argenau.bebt.de> <877fjidcm5.fsf@gnu.org> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Trace: ger.gmane.org 1452354384 27665 80.91.229.3 (9 Jan 2016 15:46:24 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sat, 9 Jan 2016 15:46:24 +0000 (UTC) Cc: 22337@debbugs.gnu.org To: Ludovic =?UTF-8?Q?Court=C3=A8s?= Original-X-From: bug-guile-bounces+guile-bugs=m.gmane.org@gnu.org Sat Jan 09 16:46:14 2016 Return-path: Envelope-to: guile-bugs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1aHviU-0003id-4K for guile-bugs@m.gmane.org; Sat, 09 Jan 2016 16:46:10 +0100 Original-Received: from localhost ([::1]:40996 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aHviT-0005C3-MJ for guile-bugs@m.gmane.org; Sat, 09 Jan 2016 10:46:09 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:48389) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aHviP-0005By-Qj for bug-guile@gnu.org; Sat, 09 Jan 2016 10:46:06 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1aHviM-0002OZ-K2 for bug-guile@gnu.org; Sat, 09 Jan 2016 10:46:05 -0500 Original-Received: from debbugs.gnu.org ([208.118.235.43]:56335) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aHviM-0002OV-GL for bug-guile@gnu.org; Sat, 09 Jan 2016 10:46:02 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84) (envelope-from ) id 1aHviL-0002dS-Qu for bug-guile@gnu.org; Sat, 09 Jan 2016 10:46:01 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Andreas Metzler Original-Sender: "Debbugs-submit" Resent-CC: bug-guile@gnu.org Resent-Date: Sat, 09 Jan 2016 15:46:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 22337 X-GNU-PR-Package: guile X-GNU-PR-Keywords: Original-Received: via spool by 22337-submit@debbugs.gnu.org id=B22337.145235432710090 (code B ref 22337); Sat, 09 Jan 2016 15:46:01 +0000 Original-Received: (at 22337) by debbugs.gnu.org; 9 Jan 2016 15:45:27 +0000 Original-Received: from localhost ([127.0.0.1]:44555 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84) (envelope-from ) id 1aHvhn-0002cg-CT for submit@debbugs.gnu.org; Sat, 09 Jan 2016 10:45:27 -0500 Original-Received: from vsrv21575.customer.vlinux.de ([31.15.64.248]:55483) by debbugs.gnu.org with esmtp (Exim 4.84) (envelope-from ) id 1aHvhm-0002cW-3r for 22337@debbugs.gnu.org; Sat, 09 Jan 2016 10:45:26 -0500 Original-Received: from 93-82-124-183.adsl.highway.telekom.at ([93.82.124.183] helo=argenau.bebt.de) by vsrv21575.customer.vlinux.de with esmtpsa (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.86) (envelope-from ) id 1aHvhi-0000OG-Dj; Sat, 09 Jan 2016 15:45:24 +0000 Original-Received: from localhost ([127.0.0.1] helo=argenau.bebt.de) by argenau.bebt.de with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.87_RC2) (envelope-from ) id 1aHvhi-0007q6-Dz; Sat, 09 Jan 2016 16:45:22 +0100 Content-Disposition: inline In-Reply-To: <877fjidcm5.fsf@gnu.org> User-Agent: Mutt/1.5.24 (2015-08-30) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 208.118.235.43 X-BeenThere: bug-guile@gnu.org List-Id: "Bug reports for GUILE, GNU's Ubiquitous Extension Language" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-guile-bounces+guile-bugs=m.gmane.org@gnu.org Original-Sender: bug-guile-bounces+guile-bugs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.lisp.guile.bugs:7936 Archived-At: On 2016-01-09 Ludovic Courtès wrote: > Andreas Metzler skribis: > > Debian used to build guile-2.0 without optimization, after changing to > > -O2 random segfaults in guile-gnutls testsuite started to appear on > > amd64. > Are you sure the GnuTLS issue has anything to do with that? > Guile has always been built with ‘-O2 -g’ by default, and building with > ‘-O0’ has never really been supported (the VM engine could eat too much > stack space and do silly things.) Hello, Yes, I have now built guile more than a dozen times. And I have just doublechecked again, comparing builds of http://snapshot.debian.org/archive/debian/20141008T040958Z/pool/main/g/guile-2.0/guile-2.0_2.0.11%2B1-9.dsc and http://snapshot.debian.org/archive/debian/20150906T035304Z/pool/main/g/guile-2.0/guile-2.0_2.0.11%2B1-10.dsc : buildlog.guile-2.0_2.0.11+1-9_amd64: make[1]: Leaving directory '/tmp/GUILE/guile-2.0-2.0.11+1-9' dh_auto_build -O--parallel make -j5 make[1]: Entering directory '/tmp/GUILE/guile-2.0-2.0.11+1-9' make -C libguile scmconfig.h make[2]: Entering directory '/tmp/GUILE/guile-2.0-2.0.11+1-9/libguile' \ if [ "no" = "yes" ]; then \ gcc -DHAVE_CONFIG_H -I.. \ -c -o gen-scmconfig.o gen-scmconfig.c; \ else \ gcc -DHAVE_CONFIG_H -DBUILDING_LIBGUILE=1 -I.. -I.. -I../lib -I../lib -I/tmp/GUILE/guile-2.0-2.0.11+1-9 -Wdate-time -D_FORTIFY_SOURCE=2 -Wall -Wmissing-prototypes -Wdeclaration-after-statement -Wpointer-arith -Wswitch-enum -fno-strict-aliasing -fwrapv -fvisibility=hidden -DPACKAGE_PACKAGER='"Debian"' -DPACKAGE_PACKAGER_VERSION='"2.0.11-deb+1-9"' -DPACKAGE_PACKAGER_BUG_REPORTS='"http://www.debian.org/Bugs/Reporting"' -c -o gen-scmconfig.o gen-scmconfig.c; \ fi \ buildlog.guile-2.0_2.0.11+1-10_amd64 dh_auto_build -O--parallel make -j5 make[1]: Entering directory '/tmp/GUILE/guile-2.0-2.0.11+1-10' make -C libguile scmconfig.h make[2]: Entering directory '/tmp/GUILE/guile-2.0-2.0.11+1-10/libguile' \ if [ "no" = "yes" ]; then \ gcc -DHAVE_CONFIG_H -I.. \ -c -o gen-scmconfig.o gen-scmconfig.c; \ else \ gcc -DHAVE_CONFIG_H -DBUILDING_LIBGUILE=1 -I.. -I.. -I../lib -I../lib -I/tmp/GUILE/guile-2.0-2.0.11+1-10 -Wdate-time -D_FORTIFY_SOURCE=2 -Wall -Wmissing-prototypes -Wdeclaration-after-statement -Wpointer-arith -Wswitch-enum -fno-strict-aliasing -fwrapv -fvisibility=hidden -g -O2 -fstack-protector-strong -Wformat -Werror=format-security -DPACKAGE_PACKAGER='"Debian"' -DPACKAGE_PACKAGER_VERSION='"2.0.11-deb+1-10"' -DPACKAGE_PACKAGER_BUG_REPORTS='"http://www.debian.org/Bugs/Reporting"' -c -o gen-scmconfig.o gen-scmconfig.c; \ fi As you can see the former has no -Ox option, the latter has -O2. The old debian/rules was buggy. Downgrade guile to 2.0.11+1-9 from snapshots and the issue goes away. cu Andreas -- `What a good friend you are to him, Dr. Maturin. His other friends are so grateful to you.' `I sew his ears on from time to time, sure'