From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Ben Noordhuis Newsgroups: gmane.lisp.guile.bugs Subject: bug#13416: guile e0c211b segfaults when linked against libgc 7.1 Date: Sat, 12 Jan 2013 03:22:31 +0100 Message-ID: NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 X-Trace: ger.gmane.org 1357984227 3688 80.91.229.3 (12 Jan 2013 09:50:27 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sat, 12 Jan 2013 09:50:27 +0000 (UTC) To: 13416@debbugs.gnu.org Original-X-From: bug-guile-bounces+guile-bugs=m.gmane.org@gnu.org Sat Jan 12 10:50:44 2013 Return-path: Envelope-to: guile-bugs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1Ttxje-0001KR-L5 for guile-bugs@m.gmane.org; Sat, 12 Jan 2013 10:50:42 +0100 Original-Received: from localhost ([::1]:59653 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TtxjO-0003Xx-Oi for guile-bugs@m.gmane.org; Sat, 12 Jan 2013 04:50:26 -0500 Original-Received: from eggs.gnu.org ([208.118.235.92]:60532) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TtrGI-0002VG-7w for bug-guile@gnu.org; Fri, 11 Jan 2013 21:56:03 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1TtrGD-0006NA-Ro for bug-guile@gnu.org; Fri, 11 Jan 2013 21:55:58 -0500 Original-Received: from debbugs.gnu.org ([140.186.70.43]:50517) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TtrGD-0006N6-Nu for bug-guile@gnu.org; Fri, 11 Jan 2013 21:55:53 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.72) (envelope-from ) id 1TtrGM-0006EY-RC for bug-guile@gnu.org; Fri, 11 Jan 2013 21:56:02 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Ben Noordhuis Original-Sender: debbugs-submit-bounces@debbugs.gnu.org Resent-CC: bug-guile@gnu.org Resent-Date: Sat, 12 Jan 2013 02:56:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 13416 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.135795932723913 (code B ref -1); Sat, 12 Jan 2013 02:56:02 +0000 Original-Received: (at submit) by debbugs.gnu.org; 12 Jan 2013 02:55:27 +0000 Original-Received: from localhost ([127.0.0.1]:55981 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1TtrFi-0006DX-AE for submit@debbugs.gnu.org; Fri, 11 Jan 2013 21:55:27 -0500 Original-Received: from eggs.gnu.org ([208.118.235.92]:42971) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1Ttqkg-0005TQ-Et for submit@debbugs.gnu.org; Fri, 11 Jan 2013 21:23:21 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1TtqkK-0007k0-1e for submit@debbugs.gnu.org; Fri, 11 Jan 2013 21:23:03 -0500 Original-Received: from lists.gnu.org ([208.118.235.17]:43154) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TtqkJ-0007jw-Tp for submit@debbugs.gnu.org; Fri, 11 Jan 2013 21:22:55 -0500 Original-Received: from eggs.gnu.org ([208.118.235.92]:54178) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Ttqk8-0006mf-PK for bug-guile@gnu.org; Fri, 11 Jan 2013 21:22:55 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Ttqjw-0007ek-Rw for bug-guile@gnu.org; Fri, 11 Jan 2013 21:22:44 -0500 Original-Received: from mail-vb0-f42.google.com ([209.85.212.42]:52850) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Ttqjw-0007eb-M6 for bug-guile@gnu.org; Fri, 11 Jan 2013 21:22:32 -0500 Original-Received: by mail-vb0-f42.google.com with SMTP id fa15so2059418vbb.1 for ; Fri, 11 Jan 2013 18:22:31 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20120113; h=mime-version:x-originating-ip:date:message-id:subject:from:to :content-type:x-gm-message-state; bh=javOgMOq8Wgw2L9ieezkCNKFuuDnmgBCeJnyVc4j+gU=; b=SQxUle8zJaWDaTZa6KOlvSYmo5GuiIRWi4pl4etoRqnHUBaeUPUU/TLcgpPoCSf7ar ES89Ol/d/X15s8CtoGzrPmJuuOCFP7ryl5THdKT1oHQ2cLu5YwXNMmIicRocHqYWwP0Z Ts9w277V9wUmZNjs77oCJRElqu8YBXZEYVngnBqiFzH1Wficca4EjXobVNV2AB1+oVhT I9F/MLj17Dqw0vvgeo9AUJTp9aVWRXBvfH9s/jOGDGeHnG1vJTSdxzWgJxmez+tOC3wf ZuiOWc7XeCBS2zW3xKPE0eb2027KdGg4ZoiRZ52z52pGDH3p2VpPeHiE9JcVfevS2a96 i8Bw== Original-Received: by 10.52.27.174 with SMTP id u14mr17229096vdg.107.1357957351565; Fri, 11 Jan 2013 18:22:31 -0800 (PST) Original-Received: by 10.58.134.9 with HTTP; Fri, 11 Jan 2013 18:22:31 -0800 (PST) X-Originating-IP: [87.214.96.125] X-Gm-Message-State: ALoCoQl7q2U/LyIxuR8ltsqTs9VSTFX35lBUmJgv4rCGDyKZ2QW/fwQDkfJoyVOTW6smhTTPZOps X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.x [fuzzy] X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x X-Mailman-Approved-At: Fri, 11 Jan 2013 21:55:20 -0500 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.13 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x X-Received-From: 140.186.70.43 X-Mailman-Approved-At: Sat, 12 Jan 2013 04:50:24 -0500 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-bounces+guile-bugs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.lisp.guile.bugs:6692 Archived-At: $ uname -a Linux zoidberg 3.7.0-rc7 #17 SMP Mon Nov 26 04:46:11 CET 2012 x86_64 x86_64 x86_64 GNU/Linux $ apt-cache show libgc-dev | grep ^Version Version: 1:7.1-8ubuntu0.12.04.1 Version: 1:7.1-8build1 $ ./configure --prefix=$HOME/opt/guile --enable-silent-rules --disable-shared --disable-static $ make -j8 gc.c:212:1: warning: 'GC_get_free_space_divisor' defined but not used [-Wunused-function] weak-set.c: In function 'move_weak_entry': weak-set.c:180:11: warning: passing argument 1 of 'GC_base' makes pointer from integer without a cast [enabled by default] /usr/include/gc/gc.h:308:15: note: expected 'void *' but argument is of type 'scm_t_bits' weak-set.c:180:11: warning: passing argument 2 of 'GC_general_register_disappearing_link' makes pointer from integer without a cast [enabled by default] /usr/include/gc/gc.h:744:12: note: expected 'void *' but argument is of type 'scm_t_bits' make[3]: Entering directory `/home/bnoordhuis/src/guile2/libguile' GEN guile-procedures.texi /bin/bash: line 1: 27907 Broken pipe cat alist.doc arbiters.doc array-handle.doc array-map.doc arrays.doc async.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 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 root.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 threads.doc throw.doc trees.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 27908 Segmentation fault (core dumped) | GUILE_AUTO_COMPILE=0 ../meta/uninstalled-env guild snarf-check-and-output-texi > guile-procedures.texi $ gdb libguile/guile libguile/core Reading symbols from /home/bnoordhuis/src/guile2/libguile/guile...done. [New LWP 27776] [New LWP 27795] warning: Can't read pathname for load map: Input/output error. [Thread debugging using libthread_db enabled] Using host libthread_db library "/lib/x86_64-linux-gnu/libthread_db.so.1". Core was generated by `/home/bnoordhuis/src/guile2/libguile/guile -e (@@ (guild) main) -s /home/bnoord'. Program terminated with signal 11, Segmentation fault. #0 0x00002b8550ca7362 in GC_generic_malloc_inner () from /usr/lib/libgc.so.1 (gdb) bt full 10 #0 0x00002b8550ca7362 in GC_generic_malloc_inner () from /usr/lib/libgc.so.1 No symbol table info available. #1 0x00002b8550ca4bc9 in GC_general_register_disappearing_link () from /usr/lib/libgc.so.1 No symbol table info available. #2 0x00000000004767bb in register_disappearing_links (entry=0x2889970, k=, v=, kind=) at weak-table.c:133 No locals. #3 0x0000000000476c7c in weak_table_put_x (table=0x1cf7cc0, hash=, pred=0x476010 , closure=0x2c46350, key=0x2c46350, value=0x2c43950) at weak-table.c:707 k = 6074 distance = 0 size = 14051 entries = 0x2866000 #4 0x000000000047720b in scm_c_weak_table_put_x (table=, raw_hash=796165648183374467, pred=0x476010 , closure=0x2c46350, key=, value=) at weak-table.c:931 t = 0x1cf7cc0 #5 0x000000000043ecbc in scm_set_source_properties_x (obj=, alist=0x2c43950) at srcprop.c:209 No locals. #6 0x0000000000472d04 in vm_regular_engine (vm=0x1d589c0, program=0x70d128, argv=0x7fffcfb2c020, nargs=2) at vm-i-system.c:866 subr = 0x43eca0 vp = 0x1d59f50 objects = 0x1d59f50 stack_limit = 0x1dd9000 current_thread = 0x1cf5e00 registers = {{ __jmpbuf = {7393576, -835748929747507041, 30561392, 772, 2, 2, -835748932025014113, 835784069652457631}, __mask_was_saved = 0, __saved_mask = { __val = {17610995143953655967, 30778248, 30771648, 1, 1, 30777168, 30561392, 31297536, 30501248, 30498784, 30367232, 30778240, 33597536, 0, 47851586127694, 16} } }} jump_table_pointer = 0x1d25470 jump_table = 0x1d25470 #7 0x0000000000499c86 in eval (x=0x208c070, env=0x2c46330) at eval.c:340 argv = 0x7fffcfb2c020 i = mx = 0x304 proc = 0x70d128 args = argc = 2 #8 0x0000000000499176 in eval (x=0x208df70, env=0x2c46330) at eval.c:234 mx = 0x208df80 proc = args = argc = #9 0x0000000000499c50 in eval (x=0x20b0620, env=0x2c46630) at eval.c:338 argv = 0x7fffcfb2c340 i = mx = 0x20b0660 proc = 0x1de80a0 args = argc = 2 #10 0x0000000000499afe in prepare_boot_closure_env_for_eval (inout_env=0x7fffcfb2c520, out_body=0x7fffcfb2c528, exps=0x20b0610, argc=, proc=0x1f0a8a0) at eval.c:922 nreq = 2 new_env = 0x20f0a90 Upgrading libgc fixes the issue so it's presumably an API/ABI mismatch. I get some compiler warnings after upgrading. I'm appending them for posterity but feel free to ignore them. gc.c: In function 'scm_gc_stats': gc.c:313:3: warning: 'GC_gc_no' is deprecated (declared at /home/bnoordhuis/opt/libgc/include/gc/gc.h:76) [-Wdeprecated-declarations] gc.c: In function 'scm_storage_prehistory': gc.c:625:3: warning: 'GC_all_interior_pointers' is deprecated (declared at /home/bnoordhuis/opt/libgc/include/gc/gc.h:143) [-Wdeprecated-declarations] guardians.c: In function 'scm_init_guardians': guardians.c:358:3: warning: 'GC_java_finalization' is deprecated (declared at /home/bnoordhuis/opt/libgc/include/gc/gc.h:169) [-Wdeprecated-declarations] Hope that helps. Let me know if you want more details or want me try out something.