From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED.blaine.gmane.org!not-for-mail From: Dan Kegel Newsgroups: gmane.lisp.guile.bugs Subject: bug#37827: Segfault in guile build on mac os 10.15 / xcode 11? Date: Sat, 19 Oct 2019 16:17:58 -0700 Message-ID: Mime-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Injection-Info: blaine.gmane.org; posting-host="blaine.gmane.org:195.159.176.226"; logging-data="6866"; mail-complaints-to="usenet@blaine.gmane.org" To: 37827@debbugs.gnu.org Original-X-From: bug-guile-bounces+guile-bugs=m.gmane.org@gnu.org Sun Oct 20 01:19:12 2019 Return-path: Envelope-to: guile-bugs@m.gmane.org Original-Received: from lists.gnu.org ([209.51.188.17]) by blaine.gmane.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.89) (envelope-from ) id 1iLy07-0001eK-Ux for guile-bugs@m.gmane.org; Sun, 20 Oct 2019 01:19:12 +0200 Original-Received: from localhost ([::1]:41232 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1iLy05-0003Hr-Vg for guile-bugs@m.gmane.org; Sat, 19 Oct 2019 19:19:09 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:32831) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1iLy00-0003Hb-9A for bug-guile@gnu.org; Sat, 19 Oct 2019 19:19:05 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1iLxzy-0006eX-Uj for bug-guile@gnu.org; Sat, 19 Oct 2019 19:19:04 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:44820) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1iLxzy-0006eT-Rg for bug-guile@gnu.org; Sat, 19 Oct 2019 19:19:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1iLxzy-0006eI-LM for bug-guile@gnu.org; Sat, 19 Oct 2019 19:19:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Dan Kegel Original-Sender: "Debbugs-submit" Resent-CC: bug-guile@gnu.org Resent-Date: Sat, 19 Oct 2019 23:19:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 37827 X-GNU-PR-Package: guile X-Debbugs-Original-To: bug-guile@gnu.org Original-Received: via spool by submit@debbugs.gnu.org id=B.157152709725495 (code B ref -1); Sat, 19 Oct 2019 23:19:01 +0000 Original-Received: (at submit) by debbugs.gnu.org; 19 Oct 2019 23:18:17 +0000 Original-Received: from localhost ([127.0.0.1]:53641 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1iLxzF-0006d8-0C for submit@debbugs.gnu.org; Sat, 19 Oct 2019 19:18:17 -0400 Original-Received: from lists.gnu.org ([209.51.188.17]:33555) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1iLxzD-0006d1-3M for submit@debbugs.gnu.org; Sat, 19 Oct 2019 19:18:15 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:32795) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1iLxzB-0003C2-K0 for bug-guile@gnu.org; Sat, 19 Oct 2019 19:18:14 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1iLxzA-0006GC-8x for bug-guile@gnu.org; Sat, 19 Oct 2019 19:18:13 -0400 Original-Received: from mail-pg1-f174.google.com ([209.85.215.174]:37038) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1iLxzA-0006Fu-3X for bug-guile@gnu.org; Sat, 19 Oct 2019 19:18:12 -0400 Original-Received: by mail-pg1-f174.google.com with SMTP id p1so5392492pgi.4 for ; Sat, 19 Oct 2019 16:18:11 -0700 (PDT) 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 :content-transfer-encoding; bh=CklL50LVBOWzFJqOIdsRKC9WAZ3GyZ/vyATVOBr634Q=; b=oREjjg7j00lQY6w5mkxRvmRkl7JDYPK7zMsaoLOuybWOHOrmESNtOeZrrUYcL5FMQ1 mOWJqRZljXx5nXLf+lyO7lgGsXEwlWevHH9N/MauSL4ULqCm0v+E3Ch2DRPWBVZWgMjO wjiPL/h008211+PL7emO/JPtHm4U+zZ1vAU2+JC6eF9jykdHR/gQXndgsEydNacsXk4S S78ATUD1h80m/eSWYpW5DQJSRP4BBkG9nYkZhQrdlNOhn+LE/3gKVIebQS8WMnSI1dlE oerCTG9E//8S1n6hMdIi/B+Jn9Yzn5ohgeYG8a9LiXwoGpX3ZAyipeSd7QyXYwiI1J5q 8NTQ== X-Gm-Message-State: APjAAAXKTQ5XaZ43QdtTVI4gekF3UDL4qxHY40qvyRgIheG0XDG72zPz gildMPr447n3WGL9tgU3JgE8xF7W4F1Fdgs8IFcpQ1dY1q8= X-Google-Smtp-Source: APXvYqwGKsXf5FbDLCx0oTbdcNXQH1/BBCmU5wqpbvTWjXTds2oN/qDMfWkHriLsi6EfZ93hre9XHLpPBTolo/nhRN4= X-Received: by 2002:a63:3fce:: with SMTP id m197mr15611305pga.328.1571527089901; Sat, 19 Oct 2019 16:18:09 -0700 (PDT) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] [fuzzy] 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: 209.51.188.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:9437 Archived-At: I build guile and a few other things (including libgc, libffi, libintl, libunistring, libgmp, and libltdl) locally using a reproducible script. I've been using it on linux and mac since the days of ubuntu 12.04 and osx 10.8, and have kept it updated to work up through ubuntu 18.04 and os 10.15 beta (as of 3 months ago). Today I tried running it on final mac os 10.15 and more up to date xcode 11= . It explodes repeatably while building guile; the log shows 4880 Segmentation fault: 11 | GUILE_AUTO_COMPILE=3D0 ../meta/build-env guild snarf-check-and-output-texi > guile-procedures.texi make[3]: *** [guile-procedures.texi] Error 1 make[2]: *** [all] Error 2 make[1]: *** [all-recursive] Error 1 make: *** [all] Error 2 This is with either guile-2.2.3 or 2.2.6. ~/Library/Logs/DiagnosticReports/guile_2019-10-19-154334_rbb-osx1015-2.cras= h shows a backtrace: Thread 0 Crashed:: Dispatch queue: com.apple.main-thread 0 libguile-2.2.1.dylib 0x0000000101e23e14 scm_i_symbol_chars + 4 (strings.c:818) 1 libguile-2.2.1.dylib 0x0000000101e2a1da scm_i_struct_inherit_vtable_magic + 42 (struct.c:204) 2 libguile-2.2.1.dylib 0x0000000101e2a7f9 scm_c_make_structv + 329 (struct.c:507) 3 libguile-2.2.1.dylib 0x0000000101e2ab7c scm_c_make_struct + 236 4 libguile-2.2.1.dylib 0x0000000101e2bc9b scm_init_struct + 219 (struct.c:1088) 5 libguile-2.2.1.dylib 0x0000000101dc3a71 scm_i_init_guile + 129 (init.c:413) 6 libguile-2.2.1.dylib 0x0000000101e2cf08 scm_i_init_thread_for_guile + 120 (threads.c:590) 7 libguile-2.2.1.dylib 0x0000000101e2f1b9 with_guile + 25 (threads.c:654) 8 libgc.1.dylib 0x0000000101f441bb GC_call_with_stack_base + 27 9 libguile-2.2.1.dylib 0x0000000101e2cf6b scm_with_guile + 43 (threads.c:710) 10 libguile-2.2.1.dylib 0x0000000101dc3995 scm_boot_guile + 69 (init.c:329) 11 guile 0x0000000101d88e9f main + 191 (guile.c:102) 12 libdyld.dylib 0x00007fff64dd6405 start + 1 ... 812 const char * 813 scm_i_symbol_chars (SCM sym) 814 { 815 SCM buf; 816 817 buf =3D SYMBOL_STRINGBUF (sym); 818 if (!STRINGBUF_WIDE (buf)) 819 return (const char *) STRINGBUF_CHARS (buf); I tried to get the OS to generate a full core dump, but apple's instructions to make sure /cores is writable fail on os 10.15. Maybe if I turn off SIP, but I can't do that until Monday. I can reproduce the problem by running just GUILE_AUTO_COMPILE=3D0 meta/build-env guild in the top level of the source tree, but I haven't figured out how to reproduce it in lldb yet. I tried unwinding all the wrappers, e.g. tail +5 meta/guild > guild.txt # do what meta-env would do: export GUILE=3D/Users/buildbot/src/yobuild/recipes/guile/btmp/guile-2.2.6/l= ibguile/guile export GUILE_LOAD_COMPILED_PATH=3D/Users/buildbot/src/yobuild/recipes/guile= /btmp/guile-2.2.6/module:/Users/buildbot/src/yobuild/recipes/guile/btmp/gui= le-2.2.6/bootstrap:/Users/buildbot/src/yobuild/recipes/guile/btmp/guile-2.2= .6/prebuilt/64-bit-little-endian:/Users/buildbot/src/yobuild/recipes/guile/= btmp/guile-2.2.6/guile-readline export GUILE_LOAD_PATH=3D/Users/buildbot/src/yobuild/recipes/guile/btmp/gui= le-2.2.6/module:/Users/buildbot/src/yobuild/recipes/guile/btmp/guile-2.2.6/= guile-readline export GUILE_SYSTEM_COMPILED_PATH=3D export GUILE_SYSTEM_EXTENSIONS_PATH=3D export GUILE_SYSTEM_PATH=3D export LTDL_LIBRARY_PATH=3D/Users/buildbot/src/yobuild/recipes/guile/btmp/g= uile-2.2.6/libguile:/Users/buildbot/src/yobuild/recipes/guile/btmp/guile-2.= 2.6/guile-readline export PATH=3D/Users/buildbot/src/yobuild/recipes/guile/btmp/guile-2.2.6/me= ta:/Users/buildbot/src/yobuild/recipes/guile/btmp/guile-2.2.6/libguile:/usr= /local/bin:/usr/bin:/bin:/usr/sbin:/sbin:/Library/Apple/usr/bin:/Library/Ap= ple/bin:/opt/X11/bin:/Users/buildbot/Library/Python/3.7/bin export PKG_CONFIG_PATH=3D/Users/buildbot/src/yobuild/recipes/guile/btmp/gui= le-2.2.6/meta export XDG_CACHE_HOME=3D/Users/buildbot/src/yobuild/recipes/guile/btmp/guil= e-2.2.6/cache export GUILE_AUTO_COMPILE=3D0 $GUILE -e '(@@ (guild) main)' guild.txt That still crashes, and so does replacing the last line with /Users/buildbot/src/yobuild/recipes/guile/btmp/guile-2.2.6/libguile/.libs/g= uile -e '(@@ (guild) main)' guild.txt but alas replacing the last line with lldb /Users/buildbot/src/yobuild/recipes/guile/btmp/guile-2.2.6/libguile/.l= ibs/guile -- -e '(@@ (guild) main)' guild.txt and running it just exits with status -1.