From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Rob Browning Newsgroups: gmane.lisp.guile.bugs Subject: bug#29464: gcc-7 breaks guile-2.2.2? Date: Thu, 28 Dec 2017 18:09:51 -0600 Message-ID: <87vagq8kds.fsf@trouble.defaultvalue.org> References: NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: blaine.gmane.org 1514506102 18985 195.159.176.226 (29 Dec 2017 00:08:22 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Fri, 29 Dec 2017 00:08:22 +0000 (UTC) To: Dan Kegel , 29464@debbugs.gnu.org Original-X-From: bug-guile-bounces+guile-bugs=m.gmane.org@gnu.org Fri Dec 29 01:08:17 2017 Return-path: Envelope-to: guile-bugs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by blaine.gmane.org with esmtp (Exim 4.84_2) (envelope-from ) id 1eUiDe-0004Is-J9 for guile-bugs@m.gmane.org; Fri, 29 Dec 2017 01:08:14 +0100 Original-Received: from localhost ([::1]:45206 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1eUiFa-0006yP-C1 for guile-bugs@m.gmane.org; Thu, 28 Dec 2017 19:10:14 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:40923) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1eUiFR-0006wE-RS for bug-guile@gnu.org; Thu, 28 Dec 2017 19:10:09 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1eUiFO-0006dG-Io for bug-guile@gnu.org; Thu, 28 Dec 2017 19:10:05 -0500 Original-Received: from debbugs.gnu.org ([208.118.235.43]:46922) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1eUiFO-0006cC-85 for bug-guile@gnu.org; Thu, 28 Dec 2017 19:10:02 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1eUiFN-0004tB-RY for bug-guile@gnu.org; Thu, 28 Dec 2017 19:10:01 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Rob Browning Original-Sender: "Debbugs-submit" Resent-CC: bug-guile@gnu.org Resent-Date: Fri, 29 Dec 2017 00:10:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 29464 X-GNU-PR-Package: guile X-GNU-PR-Keywords: Original-Received: via spool by 29464-submit@debbugs.gnu.org id=B29464.151450619518776 (code B ref 29464); Fri, 29 Dec 2017 00:10:01 +0000 Original-Received: (at 29464) by debbugs.gnu.org; 29 Dec 2017 00:09:55 +0000 Original-Received: from localhost ([127.0.0.1]:55603 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1eUiFH-0004sm-74 for submit@debbugs.gnu.org; Thu, 28 Dec 2017 19:09:55 -0500 Original-Received: from defaultvalue.org ([45.33.119.55]:47500 ident=postfix) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1eUiFF-0004se-Qo for 29464@debbugs.gnu.org; Thu, 28 Dec 2017 19:09:54 -0500 Original-Received: from trouble.defaultvalue.org (localhost [127.0.0.1]) (Authenticated sender: rlb@defaultvalue.org) by defaultvalue.org (Postfix) with ESMTPSA id 8E32F20266; Thu, 28 Dec 2017 18:09:51 -0600 (CST) Original-Received: by trouble.defaultvalue.org (Postfix, from userid 1000) id 3CD2514E569; Thu, 28 Dec 2017 18:09:51 -0600 (CST) In-Reply-To: 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" Xref: news.gmane.org gmane.lisp.guile.bugs:8934 Archived-At: Dan Kegel writes: > Building guile-2.2.2 seems fine on Ubuntu 17.04, but fails with > > Warning: Unwind-only `out-of-memory' exception; skipping pre-unwind handler. > FAIL: test-out-of-memory > ================================== > 1 of 39 tests failed > Please report to bug-guile@gnu.org I also see this with 2.2.3, and assuming it's the same issue, I think I've figured out one thing that reliably triggers it: CFLAGS=...-fstack-protector-strong By default in Debian we build using the dpkg-buildpackage flags with a (possibly vestigial) -O0 override on amd64, i.e. we have: $ DEB_CFLAGS_MAINT_APPEND=-O0 dpkg-buildflags CFLAGS=-g -O2 -fdebug-prefix-map=/home/rlb/src/guile=. -fstack-protector-strong -Wformat -Werror=format-security -O0 CPPFLAGS=-Wdate-time -D_FORTIFY_SOURCE=2 CXXFLAGS=-g -O2 -fdebug-prefix-map=/home/rlb/src/guile=. -fstack-protector-strong -Wformat -Werror=format-security FCFLAGS=-g -O2 -fdebug-prefix-map=/home/rlb/src/guile=. -fstack-protector-strong FFLAGS=-g -O2 -fdebug-prefix-map=/home/rlb/src/guile=. -fstack-protector-strong GCJFLAGS=-g -O2 -fdebug-prefix-map=/home/rlb/src/guile=. -fstack-protector-strong LDFLAGS=-Wl,-z,relro OBJCFLAGS=-g -O2 -fdebug-prefix-map=/home/rlb/src/guile=. -fstack-protector-strong -Wformat -Werror=format-security OBJCXXFLAGS=-g -O2 -fdebug-prefix-map=/home/rlb/src/guile=. -fstack-protector-strong -Wformat -Werror=format-security In current Debian unstable, this crashes in test-out-of-memory as above: PASS: test-smob-mark PASS: test-smob-mark-race wrote `/<>/guile-2.2-2.2.3+1/cache/guile/ccache/2.2-LE-8-3.A/<>/guile-2.2-2.2.3+1/test-suite/standalone/test-stack-overflow.go' allocate_stack failed: Cannot allocate memory allocate_stack failed: Cannot allocate memory allocate_stack failed: Cannot allocate memory allocate_stack failed: Cannot allocate memory allocate_stack failed: Cannot allocate memory PASS: test-stack-overflow wrote `/<>/guile-2.2-2.2.3+1/cache/guile/ccache/2.2-LE-8-3.A/<>/guile-2.2-2.2.3+1/test-suite/standalone/test-out-of-memory.go' GC Warning: Failed to expand heap by 134348800 bytes GC Warning: Failed to expand heap by 134217728 bytes GC Warning: Out of Memory! Heap size: 1 MiB. Returning NULL! error creating finalization thread: Cannot allocate memory GC Warning: Failed to expand heap by 1000132608 bytes GC Warning: Failed to expand heap by 1000001536 bytes GC Warning: Out of Memory! Heap size: 1 MiB. Returning NULL! GC Warning: Failed to expand heap by 499712 bytes GC Warning: Failed to expand heap by 65536 bytes GC Warning: Out of Memory! Heap size: 1 MiB. Returning NULL! GC Warning: Failed to expand heap by 499712 bytes GC Warning: Failed to expand heap by 65536 bytes GC Warning: Out of Memory! Heap size: 1 MiB. Returning NULL! Warning: Unwind-only `out-of-memory' exception; skipping pre-unwind handler. FAIL: test-out-of-memory ================================== 1 of 39 tests failed Please report to bug-guile@gnu.org ================================== After investigating for a while, I found that just this was enough to cause the crash when building from the 2.2.3 release archive: CFLAGS='-fstack-protector-strong' ./configure make check If that flag is the problem, I'm wondering whether for now I'd be better off quashing it, or temporarily disabling the test. i.e. is the test detecting that something's actually wrong, or does the flag just break one of the test's assumptions? Thanks -- Rob Browning rlb @defaultvalue.org and @debian.org GPG as of 2011-07-10 E6A9 DA3C C9FD 1FF8 C676 D2C4 C0F0 39E9 ED1B 597A GPG as of 2002-11-03 14DD 432F AE39 534D B592 F9A0 25C8 D377 8C7E 73A4