From debbugs-submit-bounces@debbugs.gnu.org Tue May 09 11:13:37 2017 Received: (at submit) by debbugs.gnu.org; 9 May 2017 15:13:37 +0000 Received: from localhost ([127.0.0.1]:34313 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1d86pV-0004Ji-Jp for submit@debbugs.gnu.org; Tue, 09 May 2017 11:13:37 -0400 Received: from eggs.gnu.org ([208.118.235.92]:36751) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1d86pT-0004JV-RO for submit@debbugs.gnu.org; Tue, 09 May 2017 11:13:36 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1d86pN-0002ha-DU for submit@debbugs.gnu.org; Tue, 09 May 2017 11:13:30 -0400 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=0.8 required=5.0 tests=BAYES_50,FREEMAIL_FROM autolearn=disabled version=3.3.2 Received: from lists.gnu.org ([2001:4830:134:3::11]:39219) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1d86pN-0002hW-Aw for submit@debbugs.gnu.org; Tue, 09 May 2017 11:13:29 -0400 Received: from eggs.gnu.org ([2001:4830:134:3::10]:55944) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1d86pL-00026z-T1 for bug-guile@gnu.org; Tue, 09 May 2017 11:13:29 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1d86pI-0002gg-Kq for bug-guile@gnu.org; Tue, 09 May 2017 11:13:27 -0400 Received: from mout0.freenet.de ([2001:748:100:40::2:2]:55012) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1d86pI-0002fO-FE for bug-guile@gnu.org; Tue, 09 May 2017 11:13:24 -0400 Received: from [195.4.92.142] (helo=mjail2.freenet.de) by mout0.freenet.de with esmtpa (ID peter_dyballa@freenet.de) (port 25) (Exim 4.85 #1) id 1d86pF-0000qC-Iy for bug-guile@gnu.org; Tue, 09 May 2017 17:13:21 +0200 Received: from localhost ([::1]:53600 helo=mjail2.freenet.de) by mjail2.freenet.de with esmtpa (ID peter_dyballa@freenet.de) (Exim 4.85 #1) id 1d86pF-0002Ou-Fz for bug-guile@gnu.org; Tue, 09 May 2017 17:13:21 +0200 Received: from mx14.freenet.de ([195.4.92.24]:37288) by mjail2.freenet.de with esmtpa (ID peter_dyballa@freenet.de) (Exim 4.85 #1) id 1d86n4-0001NF-Ra for bug-guile@gnu.org; Tue, 09 May 2017 17:11:06 +0200 Received: from [2002:5476:5eac:0:20d:93ff:fe2a:32c4] (port=49730 helo=Leopard.fritz.box) by mx14.freenet.de with esmtpsa (ID peter_dyballa@freenet.de) (TLSv1:AES128-SHA:128) (port 587) (Exim 4.85 #1) id 1d86n4-0005dO-HH; Tue, 09 May 2017 17:11:06 +0200 Message-Id: <13D0994C-C5F3-4E9A-86A6-8B3CE07EC07E@Freenet.DE> From: Peter Dyballa To: bug-guile@gnu.org Content-Type: text/plain; charset=WINDOWS-1252; format=flowed; delsp=yes Content-Transfer-Encoding: quoted-printable Subject: guile-2.2.2/libguile/.libs/guile crashes during build on PowerPC Macintoshes Mime-Version: 1.0 (Apple Message framework v936) Date: Tue, 9 May 2017 17:11:03 +0200 X-Mailer: Apple Mail (2.936) X-Originated-At: 2002:5476:5eac:0:20d:93ff:fe2a:32c4!49730 X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x X-Received-From: 2001:4830:134:3::11 X-Spam-Score: -5.0 (-----) X-Debbugs-Envelope-To: submit X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -5.0 (-----) Hello! On Mac OS X versions 10.4.11 (Tiger) and 10.5.8 (Leopard) with PowerPC =20= hardware this failure happens *every time*, i.e. it can be reproduced: ./guile-snarf-docs -o regex-posix.doc regex-posix.c -- -=20 DHAVE_CONFIG_H -DBUILDING_LIBGUILE=3D1 -I.. -I.. -I../lib -I../lib -I/=20= opt/local/lib/libffi-3.2.1/include -I/opt/local/var/macports/build/=20 _opt_local_var_macports_sources_lil=20 .fr.rsync.macports.org_release_tarballs_ports_lang_guile/guile/work/=20 guile-2.2.2 -I/opt/local/include -pipe -Os -m32 cat alist.doc array-handle.doc array-map.doc arrays.doc = async.doc =20 atomic.doc backtrace.doc boolean.doc bitvectors.doc bytevectors.doc =20 chars.doc control.doc continuations.doc debug.doc deprecated.doc =20 deprecation.doc dynl.doc dynwind.doc eq.doc error.doc eval.doc =20 evalext.doc expand.doc extensions.doc fdes-finalizers.doc feature.doc =20= filesys.doc fluids.doc foreign.doc fports.doc gc-malloc.doc gc.doc =20 gettext.doc generalized-arrays.doc generalized-vectors.doc goops.doc =20 gsubr.doc guardians.doc hash.doc hashtab.doc hooks.doc i18n.doc =20 init.doc ioext.doc keywords.doc list.doc load.doc macros.doc =20 mallocs.doc memoize.doc modules.doc numbers.doc objprop.doc =20 options.doc pairs.doc ports.doc print.doc procprop.doc procs.doc =20 promises.doc r6rs-ports.doc random.doc rdelim.doc read.doc rw.doc =20 scmsigs.doc script.doc simpos.doc smob.doc sort.doc srcprop.doc =20 srfi-1.doc srfi-4.doc srfi-13.doc srfi-14.doc srfi-60.doc stackchk.doc =20= stacks.doc stime.doc strings.doc strorder.doc strports.doc struct.doc =20= symbols.doc syntax.doc threads.doc throw.doc trees.doc unicode.doc =20 uniform.doc values.doc variable.doc vectors.doc version.doc vports.doc =20= weak-set.doc weak-table.doc weak-vector.doc dynl.doc posix.doc =20 net_db.doc socket.doc regex-posix.doc | GUILE_AUTO_COMPILE=3D0 ../meta/=20= build-env guild snarf-check-and-output-texi > guile-=20 procedures.texi || { rm guile-procedures.texi; false; } cat: stdout: Broken pipe make[3]: *** [guile-procedures.texi] Error 1 make[3]: Leaving directory `/opt/local/var/macports/build/=20 _opt_local_var_macports_sources_lil=20 .fr.rsync.macports.org_release_tarballs_ports_lang_guile/guile/work/=20 guile-2.2.2/libguile' The pipe breaks because the bootstrapped guile crashes. This can be =20 shown manually, and this also tells gdb by reading the resulting core =20= file. https://trac.macports.org/ticket/54124 has a discussion on this bug =20 plus much more information than this eMail. There another bug is =20 described: configure only checks for Guile version 2.0 and 1.8. Is there anything more I can do to retrieve more details of the =20 failing guile? -- Mit friedvollen Gr=FC=DFen Pete There are very few jobs that actually require a penis or vagina. All =20 other jobs should be open to everybody. =96 Florynce Kennedy From debbugs-submit-bounces@debbugs.gnu.org Sat May 20 17:42:22 2017 Received: (at 26854) by debbugs.gnu.org; 20 May 2017 21:42:23 +0000 Received: from localhost ([127.0.0.1]:57380 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1dCC8k-0008KO-Oe for submit@debbugs.gnu.org; Sat, 20 May 2017 17:42:22 -0400 Received: from mout1.freenet.de ([195.4.92.91]:34867) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1dCC8i-0008KF-1w for 26854@debbugs.gnu.org; Sat, 20 May 2017 17:42:20 -0400 Received: from [195.4.92.140] (helo=mjail0.freenet.de) by mout1.freenet.de with esmtpa (ID peter_dyballa@freenet.de) (port 25) (Exim 4.85 #1) id 1dCC8f-0005xH-EJ for 26854@debbugs.gnu.org; Sat, 20 May 2017 23:42:17 +0200 Received: from localhost ([::1]:47464 helo=mjail0.freenet.de) by mjail0.freenet.de with esmtpa (ID peter_dyballa@freenet.de) (Exim 4.85 #1) id 1dCC8f-0006op-Aa for 26854@debbugs.gnu.org; Sat, 20 May 2017 23:42:17 +0200 Received: from mx13.freenet.de ([195.4.92.23]:47750) by mjail0.freenet.de with esmtpa (ID peter_dyballa@freenet.de) (Exim 4.85 #1) id 1dCC5y-0005EI-TK for 26854@debbugs.gnu.org; Sat, 20 May 2017 23:39:30 +0200 Received: from ip-84-118-94-172.unity-media.net ([84.118.94.172]:63023 helo=sumac.fritz.box) by mx13.freenet.de with esmtpsa (ID peter_dyballa@freenet.de) (TLSv1:AES128-SHA:128) (port 587) (Exim 4.85 #1) id 1dCC5y-00081u-OJ for 26854@debbugs.gnu.org; Sat, 20 May 2017 23:39:30 +0200 From: Peter Dyballa Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: quoted-printable Subject: Re: guile-2.2.2/libguile/.libs/guile crashes during build on PowerPC Macintoshes Date: Sat, 20 May 2017 23:39:26 +0200 Message-Id: To: 26854@debbugs.gnu.org Mime-Version: 1.0 (Apple Message framework v1085) X-Mailer: Apple Mail (2.1085) X-Originated-At: 84.118.94.172!63023 X-Spam-Score: -0.7 (/) X-Debbugs-Envelope-To: 26854 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -0.7 (/) On PPC Mac OS X 10.4.11 the failure happens with both GCC 5 and GCC 6. -- Greetings Pete Basic, n.: A programming language. Related to certain social diseases in = that those who have it will not admit it in polite company. From debbugs-submit-bounces@debbugs.gnu.org Wed Dec 11 20:40:13 2019 Received: (at 26854) by debbugs.gnu.org; 12 Dec 2019 01:40:13 +0000 Received: from localhost ([127.0.0.1]:58876 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ifDSe-000091-Kb for submit@debbugs.gnu.org; Wed, 11 Dec 2019 20:40:13 -0500 Received: from mail-qk1-f196.google.com ([209.85.222.196]:41141) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ifBUs-0004Ts-Uf for 26854@debbugs.gnu.org; Wed, 11 Dec 2019 18:34:23 -0500 Received: by mail-qk1-f196.google.com with SMTP id l124so82719qkf.8 for <26854@debbugs.gnu.org>; Wed, 11 Dec 2019 15:34:22 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=date:from:to:cc:subject:message-id:mime-version :content-transfer-encoding; bh=q51CpWDoh6gh4XBmgnL2Xh4RY2R/sr5k+Xmbmk2Or7w=; b=Ijl9AA5txVlY5sehZoSsSzHH03J6IWG+fR8llQide1aLWCXF581lRJwNGHVNg6zcH9 Gx8iVbS/KYm8F2bpnfBqXBS8HVzj8UWdlCRbdEhWPGRQAJt1qwoP6tAccPsHF8D4r0Pp o80LkcysT5mfQ3GiOkD2nC2gIIRLipNBj84PffouIAp5vDE5dJFwdtQo8aOJxvREStQJ o1z0n6Krgp/FOu+gNG9wO8pehKnyNR0EOiPwS6Y6R+XWaVo4cH6FtzRgV4Ga24whFzM2 ETop7EdujWBVjWG+kNoYQ8GFBx3oAo6FwGRilgjt2uUBgdg9rC/3LNd4Ib9G1Fi9Phwi 4sVg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:mime-version :content-transfer-encoding; bh=q51CpWDoh6gh4XBmgnL2Xh4RY2R/sr5k+Xmbmk2Or7w=; b=N/LN54NPKmzayr9S4xyHNJAw1Ay04thXeXQlfCh4P5h6YSxV9hh4UgFb0qSGxugp1p DS5xDemDBhwdlFoNfaxRtJ6kH4I4KJ/ff9UV+ZwsyX8oypyt0mzaX6BG4MHafdfpAKG3 g5qBwNtqsaFCRqR4uANAypZDejUgQPGzc1IUbFLRsOawZTsNwUDktVeT/D9IYywUrMyg WFVu8G3mNYyAWzCFBxNGARum4IbWcf1Gfws+Xg2MS2fp8iAfp8Eb4NY+QSZzB+sMZmfh FWAuEuK+2YQfU3B1C2dUWsxC7PasSO+SFmatyeYB7bEQ5yhiEDw/bHtuFSgdF59CESst UHkg== X-Gm-Message-State: APjAAAVW17rvh9ib4hlzss5XyNL5dHP5mQ5hv256GMRKcEigP8RUQ9TM 1VJMafeav0Hv/8EhJ+S8rTb6U3lw X-Google-Smtp-Source: APXvYqy8G76ylEEUHvjkISkU2QpBxZCk0+04TV6Y8KKEU8a6Jhf2lJibnsZIPFf32WY8ma44tD6Yew== X-Received: by 2002:ae9:e649:: with SMTP id x9mr5182301qkl.405.1576107257034; Wed, 11 Dec 2019 15:34:17 -0800 (PST) Received: from pehcehwahn.my.domain (c-76-111-100-0.hsd1.md.comcast.net. [76.111.100.0]) by smtp.gmail.com with ESMTPSA id q73sm1166390qka.56.2019.12.11.15.34.16 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Wed, 11 Dec 2019 15:34:16 -0800 (PST) Date: Wed, 11 Dec 2019 18:34:15 -0500 From: George Koehler To: 26854@debbugs.gnu.org Subject: guile 2.2.x has broken prebuilt/32-bit-big-endian Message-Id: <20191211183415.692057e3c3bdf731214961d4@gmail.com> X-Mailer: Sylpheed 3.7.0 (GTK+ 2.24.32; x86_64-unknown-openbsd6.6) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: 26854 X-Mailman-Approved-At: Wed, 11 Dec 2019 20:40:10 -0500 Cc: Matthew Hull X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) Hello, GNU Guile community. I believe that the files in guile-2.2.x/prebuilt/32-bit-big-endian are broken. This causes a reproducible crash when a 32-bit-big-endian system tries to build guile 2.2.x from source code. Because of this crash, OpenBSD powerpc has no guile2 package. Matthew Hull started a discussion on the OpenBSD ports list: https://marc.info/?l=openbsd-ports&m=157550856819188&w=2 We have PowerPC Macintosh hardware running OpenBSD. This seems to be the same bug as #26854, which had PowerPC hardware running Mac OS X. I worked around the problem in Guile 2.2.6 by moving away prebuilt/32-bit-big-endian so the build doesn't use the prebuilt files; but the "bootstrap" part of the build is slow. I suspect that a little-endian system wrote the prebuilt files, but modules/system/vm/assembler.scm is missing a byte-swap. The crash is in guile-2.2.6/libguile/vm-engine.c "call": =lines 566 to 573 if (SCM_LIKELY (SCM_PROGRAM_P (FP_REF (0)))) ip = SCM_PROGRAM_CODE (FP_REF (0)); else ip = (scm_t_uint32 *) vm_apply_non_program_code; APPLY_HOOK (); NEXT (0); =end `ip` gets a bad pointer to unmapped memory from SCM_PROGRAM_CODE, then "NEXT (0);" tries to read ip[0] and crashes with SIGSEGV. I found code that puts a bad pointer in the program object, in vm-engine.c "make-closure": =lines 1652 to 1654 closure = scm_inline_words (thread, scm_tc7_program | (nfree << 16), nfree + 2); SCM_SET_CELL_WORD_1 (closure, ip + offset); =end I had modified the code to read *(ip + offset), so it crashed. Then I loaded the core dump in GDB. `ip` was (scm_t_uint32 *) 0xcf1ea3b8 and `offset` was -1005191168. GDB can't access *0xcf1ea3b8 because it was in an mmap(2) file, and the core dump didn't include this mapping. In ktrace(1), the file was somewhere under prebuilt/32-bit-big-endian. `offset` -1005191168 is 0xc4160000. This looks like the wrong byte order. The correct value might be 0x000016c4 = 5828. This would make more sense, if ip + offset should be inside the file! modules/system/vm/assembler.scm can byte-swap values when it emits bytecode for a different-endian machine. If a little-endian machine wrote the prebuilt/32-bit-big-endian files, and assembler.scm forgot to swap `offset`, then it would cause this bug. I moved away the prebuilt/32-bit-big-endian files and started a new build without these prebuilt files. The build ran some slow "bootstrap" commands on my 666 MHz cpu. The first bootstrap command took more than 100 minutes. The second command took just over 4 hours. The next commands continued overnight, and the whole build might have taken almost 24 hours. The build passes most tests: SKIP: test-pthread-create-secondary FAIL: test-stack-overflow FAIL: test-out-of-memory ================================== 2 of 38 tests failed (1 test was not run) Because the bootstrap is so slow, I would like future versions of Guile to include correct prebuilt/32-bit-big-endian files, but I don't know how to make such files. -- George Koehler