From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Dan Kegel Newsgroups: gmane.lisp.guile.bugs Subject: bug#29464: gcc-7 breaks guile-2.2.2? Date: Thu, 28 Dec 2017 16:53:00 -0800 Message-ID: References: <87vagq8kds.fsf@trouble.defaultvalue.org> NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="UTF-8" X-Trace: blaine.gmane.org 1514508737 1336 195.159.176.226 (29 Dec 2017 00:52:17 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Fri, 29 Dec 2017 00:52:17 +0000 (UTC) Cc: 29464@debbugs.gnu.org To: Rob Browning Original-X-From: bug-guile-bounces+guile-bugs=m.gmane.org@gnu.org Fri Dec 29 01:52:13 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 1eUiuB-0008J5-PV for guile-bugs@m.gmane.org; Fri, 29 Dec 2017 01:52:12 +0100 Original-Received: from localhost ([::1]:46709 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1eUiwA-0000Vj-JN for guile-bugs@m.gmane.org; Thu, 28 Dec 2017 19:54:14 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:42694) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1eUiw4-0000VV-4C for bug-guile@gnu.org; Thu, 28 Dec 2017 19:54:09 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1eUivy-0002Nn-Ek for bug-guile@gnu.org; Thu, 28 Dec 2017 19:54:08 -0500 Original-Received: from debbugs.gnu.org ([208.118.235.43]:46961) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1eUivy-0002My-6c for bug-guile@gnu.org; Thu, 28 Dec 2017 19:54:02 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1eUivx-0005to-Nu for bug-guile@gnu.org; Thu, 28 Dec 2017 19:54:01 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Dan Kegel Original-Sender: "Debbugs-submit" Resent-CC: bug-guile@gnu.org Resent-Date: Fri, 29 Dec 2017 00:54: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.151450878922617 (code B ref 29464); Fri, 29 Dec 2017 00:54:01 +0000 Original-Received: (at 29464) by debbugs.gnu.org; 29 Dec 2017 00:53:09 +0000 Original-Received: from localhost ([127.0.0.1]:55642 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1eUiv7-0005sj-Dr for submit@debbugs.gnu.org; Thu, 28 Dec 2017 19:53:09 -0500 Original-Received: from mail-pf0-f177.google.com ([209.85.192.177]:39759) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1eUiv6-0005sW-8Y for 29464@debbugs.gnu.org; Thu, 28 Dec 2017 19:53:08 -0500 Original-Received: by mail-pf0-f177.google.com with SMTP id l24so21555262pfj.6 for <29464@debbugs.gnu.org>; Thu, 28 Dec 2017 16:53:08 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:sender:in-reply-to:references:from:date:message-id :subject:to:cc; bh=7JxKr0y4zepMKUikdwsiuYq82hZVZm+lrQb2hlx0ClM=; b=J+8mvXhCrj3i4ixcoqnqkr4DnHsrOVQe8c71AIYf79Tejm5IyFBpehj4LJ1XQbpnmK 7FMDiXyj6jLtHotBhWKByJZjasCqUm07abnntLR58se/QWhSbObXXveUB3AbsDRaHRMx I3ezttJp3Jm/wc3fZGbvJCAeDN9jMsIwmYbMoun05eYI6CfVu12LK0az8+1EuSpgeqdV CaQeFJyyR220RM6VeDg70Q651lqKI4Nyb8o9sXjak2408IhZTVKIO8az1lbPNzwcdd1c OhSQhRlH2CwI6MGH7xRcsJJsczfcq49l5PQ1GipTAT9slLcQlnY/nsE0tmzzEEk7yeZ7 5Z3Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:sender:in-reply-to:references:from :date:message-id:subject:to:cc; bh=7JxKr0y4zepMKUikdwsiuYq82hZVZm+lrQb2hlx0ClM=; b=OjU3F0x9HsGlg0o+SupTnV9UQ3+kFbXvBsYIAHZloebISiHcw1X3E3YYFrxrGyRB4C SgmF2+XH8pgdPMTh/baqK3qC7h3XprbwXty/Zu66RauAKyi+TaY39WCiS+iwTcsE/kAA 1H4YpYzaeqGbYDeGftuknj0P/ADMXErvPXd4HrQhLqY2SqNz8PZlSjItypRpLwNTvyUt xVqhjMi0O4KApkH6ccxjWs72sUMxCSfNKaxIjwyG0N86kOkPiFsCfnG+8Mc/BBFxx6FF WGZ/6DtHXXRO9ZzWk9fhJCjU5dsFsEkL5RjAKC4lmH5+UiZ9QHC1pYXVpOsO2KtFO7tr 9soQ== X-Gm-Message-State: AKGB3mJszFDwBmtDqgV8ZuQXRe0yeLzl6nI8j7ErPYwZYi/2NEQ0vcyW ioetyLkMI1rvGnN0tutd22YwWql0dQ+1iFADvlAGUA== X-Google-Smtp-Source: ACJfBotllWlPRyA6stloN3RH9q39+WQ8HylyBPRQf0PXgFIvgGAvJzWmWss62qVbWf5jQmHHxQtLSBcztwswYKUvqgM= X-Received: by 10.98.208.67 with SMTP id p64mr33335480pfg.111.1514508782070; Thu, 28 Dec 2017 16:53:02 -0800 (PST) Original-Received: by 10.100.170.79 with HTTP; Thu, 28 Dec 2017 16:53:00 -0800 (PST) In-Reply-To: <87vagq8kds.fsf@trouble.defaultvalue.org> X-Google-Sender-Auth: jTxWxA0Jw-hBQTn2sliFy4Qg5J4 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:8937 Archived-At: Does the bug even happen without the vestigal -O0 ? I removed that and things seem to be going better in 2.2.3, 0 failures out of 4 runs :-) See https://launchpad.net/~dank/+archive/ubuntu/guile-2.2/+packages On Thu, Dec 28, 2017 at 4:09 PM, Rob Browning wrote: > 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