From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Frank Schaefer Newsgroups: gmane.lisp.guile.bugs Subject: bug#33121: Crash during build with guile 2.2.4 on SPARC32 Date: Mon, 22 Oct 2018 16:35:53 -0500 Message-ID: NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="UTF-8" X-Trace: blaine.gmane.org 1540244106 26856 195.159.176.226 (22 Oct 2018 21:35:06 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Mon, 22 Oct 2018 21:35:06 +0000 (UTC) To: 33121@debbugs.gnu.org Original-X-From: bug-guile-bounces+guile-bugs=m.gmane.org@gnu.org Mon Oct 22 23:35:02 2018 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 1gEhqn-0006pG-Fm for guile-bugs@m.gmane.org; Mon, 22 Oct 2018 23:35:01 +0200 Original-Received: from localhost ([::1]:37175 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gEhst-0006V2-Nl for guile-bugs@m.gmane.org; Mon, 22 Oct 2018 17:37:11 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:55465) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gEhsn-0006Uw-Bw for bug-guile@gnu.org; Mon, 22 Oct 2018 17:37:06 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1gEhsl-0007Sz-QV for bug-guile@gnu.org; Mon, 22 Oct 2018 17:37:05 -0400 Original-Received: from debbugs.gnu.org ([208.118.235.43]:60477) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1gEhsk-0007SV-Kg for bug-guile@gnu.org; Mon, 22 Oct 2018 17:37:03 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1gEhsk-0004Ol-HZ for bug-guile@gnu.org; Mon, 22 Oct 2018 17:37:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Frank Schaefer Original-Sender: "Debbugs-submit" Resent-CC: bug-guile@gnu.org Resent-Date: Mon, 22 Oct 2018 21:37:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 33121 X-GNU-PR-Package: guile X-GNU-PR-Keywords: X-Debbugs-Original-To: bug-guile@gnu.org Original-Received: via spool by submit@debbugs.gnu.org id=B.154024417216848 (code B ref -1); Mon, 22 Oct 2018 21:37:02 +0000 Original-Received: (at submit) by debbugs.gnu.org; 22 Oct 2018 21:36:12 +0000 Original-Received: from localhost ([127.0.0.1]:36502 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1gEhrv-0004Nf-D5 for submit@debbugs.gnu.org; Mon, 22 Oct 2018 17:36:11 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:45695) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1gEhru-0004NS-1A for submit@debbugs.gnu.org; Mon, 22 Oct 2018 17:36:10 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1gEhrn-0006ki-Do for submit@debbugs.gnu.org; Mon, 22 Oct 2018 17:36:04 -0400 Original-Received: from lists.gnu.org ([2001:4830:134:3::11]:50782) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1gEhrn-0006k5-7F for submit@debbugs.gnu.org; Mon, 22 Oct 2018 17:36:03 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:55300) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gEhrl-0006ST-Ll for bug-guile@gnu.org; Mon, 22 Oct 2018 17:36:02 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1gEhrk-0006gu-6V for bug-guile@gnu.org; Mon, 22 Oct 2018 17:36:01 -0400 Original-Received: from mail-it1-x12c.google.com ([2607:f8b0:4864:20::12c]:39620) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1gEhrj-0006gB-W4 for bug-guile@gnu.org; Mon, 22 Oct 2018 17:36:00 -0400 Original-Received: by mail-it1-x12c.google.com with SMTP id m15so14495439itl.4 for ; Mon, 22 Oct 2018 14:35:59 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:from:date:message-id:subject:to; bh=aS6V1ck1mC9LFN83URhfBuJCrsvfFzET7+mTLOJW8BU=; b=iXqYc0Feer71l1BdfH0K6StaHpOYiAGaKOqfGnqADY/O6ag1TZ5C4nVxWb5D5ECYrw ovuXX2yCENqCfQhwixhlfIq8DgfT4V/e6KYkuRptn4CyLvGGvvB5Xve6MpVTHcMD6ggE OfSck60UFSDwQRo2rk0sGeJ1EBDdMTD0mukYEXXz3syGsmmDeDiLuO/Y6z/Lmwy+FHF4 ZW059/r0hnm09ZycV7Z9bH9ZX/6P4+/qK9TxBCIMCY7eAKps0o/GwrzPbytcux9Skngb dEDjhhXzHYX/jdY9Jrdaq3wD1k8pn0gsgMgQwgQu+brsBT0txOq31IrLEI0yRctMhSFm YWrA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:from:date:message-id:subject:to; bh=aS6V1ck1mC9LFN83URhfBuJCrsvfFzET7+mTLOJW8BU=; b=UQ1bGVjoWJW/ens6ciau5O4cvJdyPOthzJnWHF/MSM3Qb4ORnoqrSvCSCjXVmuZDue WTHmXZK8v27ajW9zMRDWCBGlN9nbhYq0eXzfCONmdpfixNw3Qup3j9DKbJi6hCsEVSeG es7vy5WiDMEU6BMNd9U3v+aba6qUI7ohtyieu+5+UfWGMiLY/00mZ9suatigBNtmVtJk geGuapIVluU1YXjEopk1TPCHdXsXyxphWrtliDwRRWfWtwuqt5oKPqYzt2QAc/qpPRDP OXCq+5JtLUEUMwfz+hNFuWafNrrnkwXnPqofIa8JQv6/oAX4xUttH0L+9I4z/VlR5uno aYuQ== X-Gm-Message-State: ABuFfojydP3Tff2e+VU8L2LRPVjan7wTywCxqxzMBF0lxhteVLDgUKOp TRVwyNs8r+z7ZnYAqLeJ0nzRheCe19kf9NeO/meRovkJ X-Google-Smtp-Source: ACcGV60XM9UbJSB3gtFeJhJHVd3KjsCBujTDiOkaC3B+RMTxT53697WnDNDGgrEJdzvQsn3cRPlrYpIB0Kyz+CEi8As= X-Received: by 2002:a24:f584:: with SMTP id k126-v6mr10124299ith.166.1540244158586; Mon, 22 Oct 2018 14:35:58 -0700 (PDT) X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x 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:9242 Archived-At: With guile 2.2.4 (and guile 2.2.3 as well), I get a nasty segfault during build: /bin/sh: line 1: 4193 Broken pipe cat alist.doc array-handle.doc array-map.doc arrays.doc async.doc atomic.doc backtrace.doc boolean.doc bitvectors.doc bytevectors.doc chars.doc control.doc continuations.doc debug.doc deprecated.doc deprecation.doc dynl.doc dynwind.doc eq.doc error.doc eval.doc evalext.doc expand.doc extensions.doc fdes-finalizers.doc feature.doc filesys.doc fluids.doc foreign.doc fports.doc gc-malloc.doc gc.doc gettext.doc generalized-arrays.doc generalized-vectors.doc goops.doc gsubr.doc guardians.doc hash.doc hashtab.doc hooks.doc i18n.doc init.doc ioext.doc keywords.doc list.doc load.doc macros.doc mallocs.doc memoize.doc modules.doc numbers.doc objprop.doc options.doc pairs.doc ports.doc print.doc procprop.doc procs.doc promises.doc r6rs-ports.doc random.doc rdelim.doc read.doc rw.doc scmsigs.doc script.doc simpos.doc smob.doc sort.doc srcprop.doc srfi-1.doc srfi-4.doc srfi-13.doc srfi-14.doc srfi-60.doc stackchk.doc stacks.doc stime.doc strings.doc strorder.doc strports.doc struct.doc symbols.doc syntax.doc threads.doc throw.doc trees.doc unicode.doc uniform.doc values.doc variable.doc vectors.doc version.doc vports.doc weak-set.doc weak-table.doc weak-vector.doc dynl.doc posix.doc net_db.doc socket.doc regex-posix.doc 4194 Segmentation fault (core dumped) | GUILE_AUTO_COMPILE=0 ../meta/build-env guild snarf-check-and-output-texi > guile-procedures.texi make[3]: *** [Makefile:4281: guile-procedures.texi] Error 1 Running a bare "./meta/build-env guile" with no other options gives me a similar segfault. Loading up the resulting core files in gdb reveal that both crashes happen at the same point in libguile/vm-engine.c: #0 0xf7c11cc8 in vm_regular_engine (thread=0x77e40, vp=0xe9f78, registers=0xffe8cda0, resume=-138034004) at vm-engine.c:567 proc = nlocals = 4157185728 old_fp = new_fp = 0xf7c99ed0 ip = sp = op = 6 jump_table_ = {0xf7c11bac , 0xf7c11c20 , 0xf7c11cf8 , 0xf7c11d6c , 0xf7c11dd0 , 0xf7c11e18 , 0xf7c11ee4 , 0xf7c11f64 , 0xf7c17f74 , 0xf7c11f9c , 0xf7c12004 , 0xf7c1214c , 0xf7c17efc , 0xf7c121e8 , 0xf7c1224c , 0xf7c12368 , 0xf7c17d9c , 0xf7c1241c , 0xf7c12450 , 0xf7c12494 , 0xf7c124d8 , 0xf7c1251c , 0xf7c12554 , 0xf7c1258c , 0xf7c125c4 , 0xf7c12650 , 0xf7c12690 , 0xf7c126e8 , 0xf7c12720 , 0xf7c1274c , 0xf7c127e0 , 0xf7c1281c , 0xf7c128c0 , 0xf7c13368 , 0xf7c132b0 , 0xf7c1330c , 0xf7c13144 , 0xf7c131a0 , 0xf7c131f8 , 0xf7c13254 , 0xf7c12df0 , 0xf7c12e48 , 0xf7c12eb0 , 0xf7c193ec , 0xf7c12f14 , 0xf7c12f98 , 0xf7c13014 , 0xf7c1308c , 0xf7c13104 , 0xf7c12960 , 0xf7c129a0 , 0xf7c129e4 , 0xf7c12a48 , 0xf7c12aa8 , 0xf7c12afc , 0xf7c12bb4 , 0xf7c12c00 , 0xf7c12c4c , 0xf7c12c78 , 0xf7c12ca4 , 0xf7c12cd0 , 0xf7c12d0c , 0xf7c12d48 , 0xf7c12d84 , 0xf7c12dc0 , 0xf7c1338c , 0xf7c133f8 , 0xf7c13440 , 0xf7c134ec , 0xf7c135c0 , 0xf7c1363c , 0xf7c13680 , 0xf7c136a4 , 0xf7c136ec , 0xf7c13718 , 0xf7c137b4 , 0xf7c13844 , 0xf7c138a8 , 0xf7c13958 , 0xf7c1399c , 0xf7c139dc , 0xf7c13a1c , 0xf7c13a84 , 0xf7c13ad4 , 0xf7c13b28 , 0xf7c13b94 , 0xf7c13c00 , 0xf7c13ca0 , 0xf7c13d04 , 0xf7c13da4 , 0xf7c13e04 , 0xf7c13e50 , 0xf7c13e9c , 0xf7c13ee8 , 0xf7c13f34 , 0xf7c13f80 , 0xf7c14014 , 0xf7c14070 , 0xf7c140cc , 0xf7c1412c , 0xf7c14190 , 0xf7c14cc4 , 0xf7c14d20 , 0xf7c14da4 , 0xf7c150c8 , 0xf7c14c58 , 0xf7c15074 , 0xf7c14fa0 , 0xf7c14ff8 , 0xf7c14e10 , 0xf7c14e8c , 0xf7c14ed4 , 0xf7c14f3c , 0xf7c1423c , 0xf7c14298 , 0xf7c142f8 , 0xf7c14358 , 0xf7c143f0 , 0xf7c14494 , 0xf7c14544 , 0xf7c14600 , 0xf7c146bc , 0xf7c14780 , 0xf7c14828 , 0xf7c148d0 , 0xf7c1498c , 0xf7c14a30 , 0xf7c14ae0 , 0xf7c14b94 , 0xf7c15148 , 0xf7c15d5c , 0xf7c15be4 , 0xf7c15cb8 , 0xf7c159ac , 0xf7c15a4c , 0xf7c15b04 , 0xf7c15ba4 , 0xf7c157ac , 0xf7c157f0 , 0xf7c15834 , 0xf7c15878 , 0xf7c158bc , 0xf7c15900 , 0xf7c15924 , 0xf7c15968 , 0xf7c1527c , 0xf7c152d8 , 0xf7c15354 , 0xf7c153d4 , 0xf7c15458 , 0xf7c154ac , 0xf7c15500 , 0xf7c1556c , 0xf7c155b4 , 0xf7c155fc , 0xf7c15650 , 0xf7c15688 , 0xf7c156c0 , 0xf7c15704 , 0xf7c15748 , 0xf7c15780 , 0xf7c15214 , 0xf7c16a9c , 0xf7c169dc , 0xf7c16a3c , 0xf7c167f0 , 0xf7c1687c , 0xf7c16908 , 0xf7c16958 , 0xf7c16424 , 0xf7c164a4 , 0xf7c1651c , 0xf7c165a8 , 0xf7c16634 , 0xf7c166c0 , 0xf7c16744 , 0xf7c167a0 , 0xf7c15e24 , 0xf7c15e84 , 0xf7c15ef0 , 0xf7c15f4c , 0xf7c15fa8 , 0xf7c16010 , 0xf7c1608c , 0xf7c160d0 , 0xf7c16108 , 0xf7c16140 , 0xf7c1616c , 0xf7c161d0 , 0xf7c16238 , 0xf7c162a0 , 0xf7c16308 , 0xf7c16370 , 0xf7c17cfc , 0xf7c17e4c , 0xf7c17e44 , 0xf7c17e6c , 0xf7c17e64 , 0xf7c17e5c , 0xf7c17e54 ...} jump_table = #1 0xf7c19878 in scm_call_n (proc=0xfe558, argv=, nargs=0) at vm.c:1257 registers = {{__jmpbuf = {1321029988, 1321030260, 1184105584}, __mask_was_saved = 0, __saved_mask = {__val = {4155873416, 4157174424, 4293447156, 4293447152, 1, 0, 0, 14, 4157118508, 268435455, 4293447156, 4293447152, 4157169664, 1, 18, 78391725, 0, 0, 978032, 0, 0, 712496, 4157186032, 1191, 4149848496, 4157117344, 4293447252, 4293447248, 0, 0, 0, 14}}}} resume = prev_cookie = 0xffe8d160 ret = thread = 0x77e40 vp = 0xe9f78 return_fp = 0xf7c99f20 call_fp = 0xf7c99f08 call_nlocals = 1 stack_reserve_words = 6 i = #2 0xf7ba9e34 in scm_primitive_load_path (args=) at load.c:1248 I dropped an fprintf(stderr,...) debug in that codepath to see what address that code is attempting to unpack. guile and guild both consistently hit that codepath twice and crash on the second one; both pointer values appear to point to reasonably sane addresses: root:/usr/src/dist/guile-2.2.4/debian/tmp.build# ./meta/build-env guile DEBUG FP_REF(0)==0xf7a83f38 DEBUG FP_REF(0)==0xf7a83ed0 Segmentation fault (core dumped) FYI this is building for 32-bit SPARC, Linux 4.16.18, gcc-8.2.0, glibc-2.28, gc-7.6.8, libatomic_ops-7.6.6 (gc and libatomic_ops both pass all tests). CFLAGS/CXXFLAGS is currently set to "-g -O2 -fdebug-prefix-map=/usr/src/dist/guile-2.2.4/debian/tmp.build=. -Wformat -Werror=format-security -m32 -mcpu=v9 -mtune=v9 -fno-stack-protector" (I have also tried with -O1, with similar results). Building 64-bit guile on the same SPARC system (Sun Enterprise T5240) exhibits no such crash. Google dug up a few similar reports for 32-bit PowerPC, but apparently nobody really took a close look at the time. Is this maybe a problem specific to 32-bit big-endian architectures? I can supply the corefiles and config.log on request. Be warned the corefiles are about 260K compressed (122MB uncompressed). -- Frank Schaefer "If a server crashes in a server farm and no one pings it, does it still cost four figures to fix?"