From unknown Sun Jun 22 07:59:56 2025 X-Loop: help-debbugs@gnu.org Subject: bug#25267: guile-2.2 crash in GC Resent-From: Linas Vepstas Original-Sender: "Debbugs-submit" Resent-CC: bug-guile@gnu.org Resent-Date: Sat, 24 Dec 2016 18:45:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 25267 X-GNU-PR-Package: guile X-GNU-PR-Keywords: To: 25267@debbugs.gnu.org X-Debbugs-Original-To: bug-guile@gnu.org Reply-To: linasvepstas@gmail.com Received: via spool by submit@debbugs.gnu.org id=B.148260506618390 (code B ref -1); Sat, 24 Dec 2016 18:45:01 +0000 Received: (at submit) by debbugs.gnu.org; 24 Dec 2016 18:44:26 +0000 Received: from localhost ([127.0.0.1]:54018 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1cKrIw-0004mY-74 for submit@debbugs.gnu.org; Sat, 24 Dec 2016 13:44:26 -0500 Received: from eggs.gnu.org ([208.118.235.92]:59256) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1cKrIu-0004mL-IY for submit@debbugs.gnu.org; Sat, 24 Dec 2016 13:44:25 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1cKrIn-0000mt-OT for submit@debbugs.gnu.org; Sat, 24 Dec 2016 13:44:19 -0500 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, T_DKIM_INVALID autolearn=disabled version=3.3.2 Received: from lists.gnu.org ([2001:4830:134:3::11]:53068) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1cKrIn-0000mo-Kl for submit@debbugs.gnu.org; Sat, 24 Dec 2016 13:44:17 -0500 Received: from eggs.gnu.org ([2001:4830:134:3::10]:50212) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1cKrIl-00067x-J4 for bug-guile@gnu.org; Sat, 24 Dec 2016 13:44:17 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1cKrIj-0000kI-Ns for bug-guile@gnu.org; Sat, 24 Dec 2016 13:44:15 -0500 Received: from mail-qk0-x22f.google.com ([2607:f8b0:400d:c09::22f]:33495) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1cKrIj-0000k2-Ix for bug-guile@gnu.org; Sat, 24 Dec 2016 13:44:13 -0500 Received: by mail-qk0-x22f.google.com with SMTP id t184so170106203qkd.0 for ; Sat, 24 Dec 2016 10:44:13 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:reply-to:from:date:message-id:subject:to; bh=wZ115lpU2oHExnREhgT6ITp0RFkXHK+hmKiYRazpTTI=; b=YQw677iqsZv1+u3U1jW8hzs1OzsgBsNjWHcjxPYfZIuuon0RztikHQmbpggn4hGTyS 2YqH9Vqv6vhe4af14tbbDrsDQchwwlYRse5BVE4XjByFxnDoIiR47FitxqyZrLSUc4ZZ DIVb9KUj+fIncjwPQS9qzZ+1ivtGOnJ8o3RiCyl9Jxjd9ElVHBMIvueIE3TAhGFenHaW Ap+/3jqdjC69STeu8xUFTuE+k/FSXFmzQi6Qnl7QewI49Gwcad45oAP9E7RnFLCkgTTZ jReDg3i7BFxWIfxkf5E/ftrSlRC8fzjvweexVQaE5mf9LaOU8fnF8FJnSSgYJN+3hTPh UJ/A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:reply-to:from:date:message-id :subject:to; bh=wZ115lpU2oHExnREhgT6ITp0RFkXHK+hmKiYRazpTTI=; b=uAP8zAxOKidFS9jKwFU/8cWQR0zQ/jBVjaMnwxE04zeBqq7N9qqS3ZTbcF9ZcGUYmO MYr8lChAJyIDUMz7R1WHBX+pptCfJ9OnJrPKusyYS3tnzGz1/0YKk7tKNbIXfrScgAk1 ADahYWOUq0iPdvfxcVeWuu4tlaB3ooufSRQRSmm1RCvObXGj577FscVAyATr9T0e28RQ YSt5CrEnRCaPGePOTJW2MfEwxLRwZISknRJ5TZJPcwNqndO2Klb07U8jxD8k+K8Jtz3S jjBiBKSi/k32ORKPyIQnOnIHDqH+oKJq4G53+HQPLUDtPI2Z4BgTJpA5tpTt40ofAPM5 nz5g== X-Gm-Message-State: AIkVDXIbyMtQdkeYaN1jixkoA5MX+Zk8QniLCvpVKgSeIcvvnJOxI/EBkCEJmC2pktZLy83lmdFvtdTWCqxjwQ== X-Received: by 10.55.119.2 with SMTP id s2mr20477790qkc.1.1482605052528; Sat, 24 Dec 2016 10:44:12 -0800 (PST) MIME-Version: 1.0 Received: by 10.12.148.215 with HTTP; Sat, 24 Dec 2016 10:43:52 -0800 (PST) From: Linas Vepstas Date: Sat, 24 Dec 2016 12:43:52 -0600 Message-ID: Content-Type: text/plain; charset=UTF-8 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: -4.0 (----) 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: -4.0 (----) Merry Christmas! Below is a crash observed in guile-2.2, the git version of 21 December 2016 (last commit 0ce8a9a5e01d3a12d83fea85968e1abb602c9298 Author: Andy Wingo Date: Sun Dec 18 23:00:07 2016 +0100) I do not have any simple test-case to reproduce this (yet?) so this is an FYI bug report. It was provoked by a stress test, with the goal of running some 60+ calls to scm_c_catch in 60+ distinct C++ threads. I have no idea if this will crash any other version of guile; I have never done this stress test before. Here's what GDB says: Thread 296 "cogserver" received signal SIGSEGV, Segmentation fault. [Switching to Thread 0x7fffc0ff9700 (LWP 3680)] thread_mark (addr=0x5555558f7700, mark_stack_ptr=, mark_stack_limit=0x7fffc0ff7c50, env=) at ../../libguile/threads.c:111 111 while ((chain = *(void **)chain)) (gdb) bt #0 thread_mark (addr=0x5555558f7700, mark_stack_ptr=, mark_stack_limit=0x7fffc0ff7c50, env=) at ../../libguile/threads.c:111 #1 0x00007ffff2a80ffb in GC_mark_from (mark_stack_top=0x7fffc0fe7c60, mark_stack_top@entry=0x7fffc0fe7ca0, mark_stack=mark_stack@entry=0x7fffc0fe7c50, mark_stack_limit=mark_stack_limit@entry=0x7fffc0ff7c50) at mark.c:737 #2 0x00007ffff2a8163e in GC_do_local_mark (local_mark_stack=0x7fffc0fe7c50, local_top=0x7fffc0fe7ca0) at mark.c:994 #3 0x00007ffff2a81864 in GC_mark_local ( local_mark_stack=local_mark_stack@entry=0x7fffc0fe7c50, id=id@entry=0) at mark.c:1129 #4 0x00007ffff2a819bf in GC_do_parallel_mark () at mark.c:1157 #5 0x00007ffff2a8282d in GC_mark_some ( cold_gc_frame=0x7fffc0ff7cb0 "\344\207\315\362\377\177") at mark.c:372 #6 0x00007ffff2a782dd in GC_stopped_mark ( stop_func=0x7ffff2a77d70 ) at alloc.c:698 #7 0x00007ffff2a78dca in GC_try_to_collect_inner ( stop_func=0x7ffff2a77d70 ) at alloc.c:486 #8 0x00007ffff2a79782 in GC_collect_or_expand ( needed_blocks=needed_blocks@entry=1, ignore_off_page=ignore_off_page@entry=0, retry=retry@entry=0) at alloc.c:1344 ---Type to continue, or q to quit--- #9 0x00007ffff2a79942 in GC_allocobj (gran=gran@entry=2, kind=1) at alloc.c:1434 #10 0x00007ffff2a7f0a6 in GC_generic_malloc_inner (lb=lb@entry=32, k=k@entry=1) at malloc.c:140 #11 0x00007ffff2a80114 in GC_generic_malloc_many (lb=32, k=1, result=0x5555563f7d88) at mallocx.c:439 #12 0x00007ffff7728c34 in scm_inline_gc_alloc (kind=, idx=, freelist=) at ../../libguile/gc-inline.h:94 #13 scm_inline_gc_malloc (thread=, bytes=) at ../../libguile/gc-inline.h:125 #14 scm_inline_gc_malloc_words (words=, thread=) at ../../libguile/gc-inline.h:132 #15 scm_inline_words (n_words=, car=, thread=) at ../../libguile/gc-inline.h:163 #16 vm_regular_engine (thread=0x0, vp=0x5555566fbd80, registers=0x7fffc0ff7c50, resume=1434328064) at ../../libguile/vm-engine.c:1622 #17 0x00007ffff772928e in scm_call_n (proc=0x7fffd971dd70, argv=argv@entry=0x7fffc0ff80b0, nargs=nargs@entry=4) at ../../libguile/vm.c:1250 #18 0x00007ffff76ac224 in scm_call_4 (proc=, arg1=arg1@entry=0x555556750fa0, arg2=arg2@entry=0x555556870fa0, ---Type to continue, or q to quit--- arg3=arg3@entry=0x55555607d890, arg4=arg4@entry=0x52) at ../../libguile/eval.c:502 #19 0x00007ffff769dd55 in display_backtrace_body (a=) at ../../libguile/backtrace.c:244 #20 0x00007ffff77251da in vm_regular_engine (thread=0x0, vp=0x5555566fbd80, registers=0x7fffc0ff7c50, resume=1434328064) at ../../libguile/vm-engine.c:760 #21 0x00007ffff772928e in scm_call_n (proc=proc@entry=0x555556870f80, argv=argv@entry=0x0, nargs=nargs@entry=0) at ../../libguile/vm.c:1250 #22 0x00007ffff76ac189 in scm_call_0 (proc=proc@entry=0x555556870f80) at ../../libguile/eval.c:475 #23 0x00007ffff7718280 in catch (tag=tag@entry=0x404, thunk=0x555556870f80, handler=0x555556870f60, pre_unwind_handler=0x4) at ../../libguile/throw.c:138 #24 0x00007ffff77185c5 in scm_catch_with_pre_unwind_handler ( key=key@entry=0x404, thunk=, handler=, pre_unwind_handler=) at ../../libguile/throw.c:252 #25 0x00007ffff771877f in scm_c_catch (tag=tag@entry=0x404, body=body@entry=0x7ffff769dc30 , body_data=body_data@entry=0x7fffc0ff8480, handler=handler@entry=0x7ffff769e050 , handler_data=handler_data@entry=0x555556870fa0, pre_unwind_handler=pre_unwind_handler@entry=0x0, ---Type to continue, or q to quit--- pre_unwind_handler_data=0x0) at ../../libguile/throw.c:375 #26 0x00007ffff771878e in scm_internal_catch (tag=tag@entry=0x404, body=body@entry=0x7ffff769dc30 , body_data=body_data@entry=0x7fffc0ff8480, handler=handler@entry=0x7ffff769e050 , handler_data=handler_data@entry=0x555556870fa0) at ../../libguile/throw.c:384 #27 0x00007ffff769dc25 in scm_display_backtrace_with_highlights ( stack=, port=port@entry=0x555556870fa0, first=first@entry=0x4, depth=depth@entry=0x4, highlights=highlights@entry=0x304) at ../../libguile/backtrace.c:282 #28 0x00007ffff4a6228e in opencog::SchemeEval::catch_handler ( this=0x7ffec00090c0, tag=, throw_args=) at /home/linas/src/novamente/src/atomspace-git/opencog/guile/SchemeEval.cc:403 #29 0x00007ffff77251da in vm_regular_engine (thread=0x0, vp=0x5555566fbd80, registers=0x7fffc0ff7c50, resume=1434328064) at ../../libguile/vm-engine.c:760 #30 0x00007ffff772928e in scm_call_n (proc=proc@entry=0x55555678e040, argv=, nargs=5) at ../../libguile/vm.c:1250 #31 0x00007ffff76ac51b in scm_apply_0 (proc=proc@entry=0x55555678e040, args=0x304) at ../../libguile/eval.c:588 #32 0x00007ffff77182ee in catch (tag=tag@entry=0x404, thunk=0x55555678e060, ---Type to continue, or q to quit--- handler=0x55555678e040, pre_unwind_handler=0x55555678e020) at ../../libguile/throw.c:135 #33 0x00007ffff77185c5 in scm_catch_with_pre_unwind_handler ( key=key@entry=0x404, thunk=, handler=, pre_unwind_handler=) at ../../libguile/throw.c:252 #34 0x00007ffff771877f in scm_c_catch (tag=tag@entry=0x404, body=, body_data=, handler=handler@entry=0x7ffff4a623e0 , handler_data=handler_data@entry=0x7ffec00090c0, pre_unwind_handler=pre_unwind_handler@entry=0x7ffff4a62110 , pre_unwind_handler_data=0x7ffec00090c0) at ../../libguile/throw.c:375 #35 0x00007ffff4a624b2 in opencog::SchemeEval::do_eval (this=0x7ffec00090c0, expr="(NumberNode ctr)\n") at /home/linas/src/novamente/src/atomspace-git/opencog/guile/SchemeEval.cc:552 #36 0x00007ffff4a625ba in opencog::SchemeEval::c_wrap_eval (p=0x7ffec00090c0) at /home/linas/src/novamente/src/atomspace-git/opencog/guile/SchemeEval.cc:484 #37 0x00007ffff76a67da in c_body (d=0x7fffc0ff8cf0) at ../../libguile/continuations.c:425 #38 0x00007ffff77251da in vm_regular_engine (thread=0x0, vp=0x5555566fbd80, ---Type to continue, or q to quit--- registers=0x7fffc0ff7c50, resume=1434328064) at ../../libguile/vm-engine.c:760 #39 0x00007ffff772928e in scm_call_n (proc=proc@entry=0x555555c77a00, argv=argv@entry=0x0, nargs=nargs@entry=0) at ../../libguile/vm.c:1250 #40 0x00007ffff76ac189 in scm_call_0 (proc=proc@entry=0x555555c77a00) at ../../libguile/eval.c:475 #41 0x00007ffff7718280 in catch (tag=tag@entry=0x404, thunk=0x555555c77a00, handler=0x555555c779e0, pre_unwind_handler=0x555555c779c0) at ../../libguile/throw.c:138 #42 0x00007ffff77185c5 in scm_catch_with_pre_unwind_handler ( key=key@entry=0x404, thunk=, handler=, pre_unwind_handler=) at ../../libguile/throw.c:252 #43 0x00007ffff771877f in scm_c_catch (tag=tag@entry=0x404, body=body@entry=0x7ffff76a67d0 , body_data=body_data@entry=0x7fffc0ff8cf0, handler=handler@entry=0x7ffff76a6a60 , handler_data=handler_data@entry=0x7fffc0ff8cf0, pre_unwind_handler=pre_unwind_handler@entry=0x7ffff76a68c0 , pre_unwind_handler_data=0x55555597f040) at ../../libguile/throw.c:375 #44 0x00007ffff76a6dd0 in scm_i_with_continuation_barrier ( body=body@entry=0x7ffff76a67d0 , body_data=body_data@entry=0x7fffc0ff8cf0, handler=handler@entry=0x7ffff76a6a60 , ---Type to continue, or q to quit--- handler_data=handler_data@entry=0x7fffc0ff8cf0, pre_unwind_handler=pre_unwind_handler@entry=0x7ffff76a68c0 , pre_unwind_handler_data=0x55555597f040) at ../../libguile/continuations.c:363 #45 0x00007ffff76a6e65 in scm_c_with_continuation_barrier ( func=, data=) at ../../libguile/continuations.c:459 #46 0x00007ffff2a8aa45 in GC_call_with_gc_active ( fn=fn@entry=0x7ffff7716580 , client_data=client_data@entry=0x7fffc0ff8dc0) at pthread_support.c:1303 #47 0x00007ffff7716ed1 in with_guile (base=base@entry=0x7fffc0ff8d90, data=data@entry=0x7fffc0ff8dc0) at ../../libguile/threads.c:673 #48 0x00007ffff2a84812 in GC_call_with_stack_base ( fn=fn@entry=0x7ffff7716e40 , arg=arg@entry=0x7fffc0ff8dc0) at misc.c:1925 #49 0x00007ffff77171f8 in scm_i_with_guile (dynamic_state=, data=data@entry=0x7ffec00090c0, func=func@entry=0x7ffff4a625a0 ) at ../../libguile/threads.c:688 #50 scm_with_guile ( func=func@entry=0x7ffff4a625a0 , data=data@entry=0x7ffec00090c0) at ../../libguile/threads.c:694 #51 0x00007ffff4a6257e in opencog::SchemeEval::eval_expr (this=0x7ffec00090c0, ---Type to continue, or q to quit--- expr=...) at /home/linas/src/novamente/src/atomspace-git/opencog/guile/SchemeEval.cc:456 #52 0x00007ffff3d91eff in ?? () from /usr/lib/x86_64-linux-gnu/libstdc++.so.6 #53 0x00007ffff337a464 in start_thread (arg=0x7fffc0ff9700) at pthread_create.c:333 #54 0x00007ffff30bd9df in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:105 (gdb) and info thr shows 373 threads -- Linas From unknown Sun Jun 22 07:59:56 2025 X-Loop: help-debbugs@gnu.org Subject: bug#25267: guile-2.2 crash in GC References: In-Reply-To: Resent-From: Linas Vepstas Original-Sender: "Debbugs-submit" Resent-CC: bug-guile@gnu.org Resent-Date: Sat, 24 Dec 2016 19:02:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 25267 X-GNU-PR-Package: guile X-GNU-PR-Keywords: To: 25267@debbugs.gnu.org Reply-To: linasvepstas@gmail.com Received: via spool by 25267-submit@debbugs.gnu.org id=B25267.148260606720170 (code B ref 25267); Sat, 24 Dec 2016 19:02:02 +0000 Received: (at 25267) by debbugs.gnu.org; 24 Dec 2016 19:01:07 +0000 Received: from localhost ([127.0.0.1]:54037 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1cKrZ5-0005FG-DT for submit@debbugs.gnu.org; Sat, 24 Dec 2016 14:01:07 -0500 Received: from mail-qk0-f181.google.com ([209.85.220.181]:32780) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1cKrZ3-0005Eb-Np for 25267@debbugs.gnu.org; Sat, 24 Dec 2016 14:01:06 -0500 Received: by mail-qk0-f181.google.com with SMTP id t184so170301328qkd.0 for <25267@debbugs.gnu.org>; Sat, 24 Dec 2016 11:01:05 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:reply-to:from:date:message-id:subject:to; bh=s9rWkUH4pNctTqKMz39dBE0Q2/Fss5TCJIxPXSyzJWA=; b=UHkKeMlIqFtRYdln85ARKpnmGUOf5IlbOPLmmUP/uKHU/DUDX22HVsQ+1ln7uGfbTJ 6a7sOUTxgTXJ/VCuSUUVSizjOMbcV3sGC2uOasXpfHzwLhOM9doGOCxMMsr89slk2pmd Qi1N3Avv1xrY8ev9IZAMhBf9ncTB1Skbdbf6+9YEH8dMSemxmsJtPq9xNpPSv6FTcspV OLxP3reBP5uTsEFfQbtAXZnF7DKcbz7pLUk4dZqjLFkk9a9qUv3jzozbrP9onQmlvuVa 0g5qZtjRjj74hvmDQcqgK7jttOy6UcCE+nTwQI0FmVFP+XsFg8QjQuvCy9TycmUOqnIN lejA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:reply-to:from:date:message-id :subject:to; bh=s9rWkUH4pNctTqKMz39dBE0Q2/Fss5TCJIxPXSyzJWA=; b=UqMxxieqRc8lPWzdN/xhW/9V1jPzZKNv0nUilBpCg90QmqUINp4NhgiU2zsoZ3MpYb cV6l6R5NtzWvSQ1007hQJ3wafzk7eitSSParkaISUa5FB4PrhE0Z82aI9kUtRdQtJnJk 4E19I5zYbkVo1Q/muV794XHA/AhHJQzp/0KXiAtLeZpBhWqC4SG/qmU00Z22tmi+myRn 3VDcU/jAPSWqV/AdgG2lARnO4woP6ksrDDccCM/55vzSvQVN836Lj3lzMWVNbtKDCkPN 0dhZBK9uAFQBuFAjIkXTSWERMWRtJP+zk3A4VzX7dSizl90R9d/ZYxUcGOPYG8En88Z1 aDfw== X-Gm-Message-State: AIkVDXIOdpkdodVLBceuAD/SP6gJAYm2gE9UWQp6u1gEMTDMDy9niKYtzyHvwAcOnuslDbd1Ecb5LWZnQ+FUbw== X-Received: by 10.55.119.2 with SMTP id s2mr20518903qkc.1.1482606060075; Sat, 24 Dec 2016 11:01:00 -0800 (PST) MIME-Version: 1.0 Received: by 10.12.148.215 with HTTP; Sat, 24 Dec 2016 11:00:39 -0800 (PST) From: Linas Vepstas Date: Sat, 24 Dec 2016 13:00:39 -0600 Message-ID: Content-Type: text/plain; charset=UTF-8 X-Spam-Score: 0.5 (/) 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.5 (/) FYI, this is quickly and easily reproducible, happens within seconds, and hits the same spot every time. Note-to-self (not for general consumption): my unit test to provoke this is to start the cogserver and run this shell script: #!/bin/bash i=0 while true ; do let i=$i+1 if [ "$(($i % 2000))" -eq "0" ] ; then echo loop $i fi # echo '(display ctr)' | nc localhost 17001 echo '(NumberNode ctr)' | nc localhost 17001 done other testing variants are described in https://github.com/opencog/opencog/issues/2550 From unknown Sun Jun 22 07:59:56 2025 X-Loop: help-debbugs@gnu.org Subject: bug#25267: crashes here only for invalid scheme References: In-Reply-To: Resent-From: Linas Vepstas Original-Sender: "Debbugs-submit" Resent-CC: bug-guile@gnu.org Resent-Date: Sat, 24 Dec 2016 19:55:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 25267 X-GNU-PR-Package: guile X-GNU-PR-Keywords: To: 25267@debbugs.gnu.org Reply-To: linasvepstas@gmail.com Received: via spool by 25267-submit@debbugs.gnu.org id=B25267.148260927225419 (code B ref 25267); Sat, 24 Dec 2016 19:55:02 +0000 Received: (at 25267) by debbugs.gnu.org; 24 Dec 2016 19:54:32 +0000 Received: from localhost ([127.0.0.1]:54054 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1cKsOm-0006bv-3M for submit@debbugs.gnu.org; Sat, 24 Dec 2016 14:54:32 -0500 Received: from mail-qt0-f177.google.com ([209.85.216.177]:35979) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1cKsOk-0006bT-Ns for 25267@debbugs.gnu.org; Sat, 24 Dec 2016 14:54:31 -0500 Received: by mail-qt0-f177.google.com with SMTP id k15so45425948qtg.3 for <25267@debbugs.gnu.org>; Sat, 24 Dec 2016 11:54:30 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:reply-to:from:date:message-id:subject:to; bh=jhd/0aKGTDAJq1SlSlVYuQ5T2DqPWTWm/dLcSrYEOqw=; b=SlD76VdXVMTj6JJ93/csG81WF1wNTSAAXeKokVYpnuR/YQvl6eD5+h/a7RWdMOngMZ aVuqAm8QmKqxGCRLAu5KHWV+cSz/3OiV8DPsNCX3jLEUs2pbOVkLwJzS+GXNZJ2pim5d 5w5GssTJRvbxn9biSRR5bwP+5ekSlrzh4/kwMfHBuQqmnY76F3jHMVbYfyoeEmuS5w5C 47/NWWnwEMKsZYJG7DN74QSMn90+jyHJGSyyslRrSSZiq3QkR8ZxoMY6bqTJlvMhPwF7 etC/eHkse92huUCGY7pCldFGiPsaQH3s6QJdpLfpQJFVIVHY0GCTIut4h/B/RoR2nFFr ZjLw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:reply-to:from:date:message-id :subject:to; bh=jhd/0aKGTDAJq1SlSlVYuQ5T2DqPWTWm/dLcSrYEOqw=; b=DerfHO5SJO1Plbr9AkMftmJdhK2SYh85LkWI9VMAqtDfAroAcXRcz0BxCxk5/AdEAD Jz6+elZcl5Roul7N4jaPuTIMmVVpdWpn2TeRZfKmdBqAo/4mGi2cFJ0Hpch6KQY3irXF NjFRiaRq9ZQgdOg70z3tSXCT1SIcxREujxbrOs06uYRxhF2/hALhID926trpE5iBclJk II0UQ59hS6KZVKIpEKkuhmge+WAwbIfKPUeIr7EaLsGhaUQv6w0a6psHAkgFLGxOFE0x 31Uj/masDaBckwg/Zj8SaM/jyZ7lPwKBSV38F0SOX6x4dtGOgucIZMdygxooPW3PZpQh mfxw== X-Gm-Message-State: AIkVDXLYlOAkkFABbE+i060vUtzYSd9HX3AJgIbDsjtsWXCeaNoc8RWL5rzdH6NMIABUUVtjaDQxt+ZuKqz2sA== X-Received: by 10.200.46.249 with SMTP id i54mr19760720qta.13.1482609264990; Sat, 24 Dec 2016 11:54:24 -0800 (PST) MIME-Version: 1.0 Received: by 10.12.148.215 with HTTP; Sat, 24 Dec 2016 11:54:04 -0800 (PST) From: Linas Vepstas Date: Sat, 24 Dec 2016 13:54:04 -0600 Message-ID: Content-Type: text/plain; charset=UTF-8 X-Spam-Score: -0.0 (/) 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.0 (/) FYI: important note: this crashes only because an exception path is taken. Due to a "bug" in the shell script above, `ctr` is undefined, so an unbound-variable exception is thrown. When the scheme is valid, then it does NOT crash here! --linas opencog> (NumberNode ctr) Entering scheme shell; use ^D or a single . on a line by itself to exit. guile> Backtrace: In ice-9/boot-9.scm: 157: 12 [catch #t # ...] In unknown file: ?: 11 [apply-smob/1 #] In ice-9/boot-9.scm: 157: 10 [catch #t # ...] In unknown file: ?: 9 [apply-smob/1 #] ?: 8 [call-with-input-string "(NumberNode ctr)\n" ...] In ice-9/boot-9.scm: 2320: 7 [save-module-excursion #] In ice-9/eval-string.scm: 44: 6 [read-and-eval # #:lang ...] 37: 5 [lp (NumberNode ctr)] In ice-9/eval.scm: 387: 4 [eval # ()] 393: 3 [eval # ()] In unknown file: ?: 2 [memoize-variable-access! # #] In ice-9/boot-9.scm: 102: 1 [# unbound-variable ...] In unknown file: ?: 0 [apply-smob/1 # unbound-variable ...] ERROR: In procedure apply-smob/1: ERROR: Unbound variable: ctr ABORT: unbound-variable From unknown Sun Jun 22 07:59:56 2025 X-Loop: help-debbugs@gnu.org Subject: bug#25267: guile-2.2 crash in GC Resent-From: Andy Wingo Original-Sender: "Debbugs-submit" Resent-CC: bug-guile@gnu.org Resent-Date: Mon, 09 Jan 2017 21:54:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 25267 X-GNU-PR-Package: guile X-GNU-PR-Keywords: To: Linas Vepstas Cc: 25267@debbugs.gnu.org Received: via spool by 25267-submit@debbugs.gnu.org id=B25267.148399883729201 (code B ref 25267); Mon, 09 Jan 2017 21:54:02 +0000 Received: (at 25267) by debbugs.gnu.org; 9 Jan 2017 21:53:57 +0000 Received: from localhost ([127.0.0.1]:48195 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1cQht6-0007av-Ti for submit@debbugs.gnu.org; Mon, 09 Jan 2017 16:53:57 -0500 Received: from pb-sasl2.pobox.com ([64.147.108.67]:61822 helo=sasl.smtp.pobox.com) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1cQht5-0007ao-Ub for 25267@debbugs.gnu.org; Mon, 09 Jan 2017 16:53:56 -0500 Received: from sasl.smtp.pobox.com (unknown [127.0.0.1]) by pb-sasl2.pobox.com (Postfix) with ESMTP id A9DC857C4F; Mon, 9 Jan 2017 16:53:54 -0500 (EST) DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=pobox.com; h=from:to:cc :subject:references:date:in-reply-to:message-id:mime-version :content-type; s=sasl; bh=sEWDrGOH6toEjYje5FeyXHQAAqw=; b=KATnr7 6effT4F/AvWbSCcZGRHRS5Jhc88uhfdkIx72O0Z+RxSE8NHjtukWywNCMdI01478 9z323PLFErHng4w5xFjTVYK2rDm38lPSj2iKTjwSs8XanwuSnmTB285Q+kvPQD3j k7HabuHt08Q+3ls4HW3Ilm5/egRrJAmrUvv2Q= DomainKey-Signature: a=rsa-sha1; c=nofws; d=pobox.com; h=from:to:cc :subject:references:date:in-reply-to:message-id:mime-version :content-type; q=dns; s=sasl; b=Nb9XmWDqVf/6p9BwR5UvEm2lFPXshsp7 SA/NAWlXROsZfO5RwuDnOmfqXdbgg+Jkpp1rRkPmWRZ6mDoKqS6TDn8FDqQLqShx xjUTKGXKDasz+fMMT3Sv8I/nrdX9555RIG8A4UzFNEjX1D/MoCGDGV5rDkEGROz+ crVIehz1/YM= Received: from pb-sasl2.nyi.icgroup.com (unknown [127.0.0.1]) by pb-sasl2.pobox.com (Postfix) with ESMTP id 92EB457C4E; Mon, 9 Jan 2017 16:53:54 -0500 (EST) Received: from clucks (unknown [88.160.190.192]) (using TLSv1 with cipher ECDHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by pb-sasl2.pobox.com (Postfix) with ESMTPSA id 72CC657C4D; Mon, 9 Jan 2017 16:53:53 -0500 (EST) From: Andy Wingo References: Date: Mon, 09 Jan 2017 22:53:45 +0100 In-Reply-To: (Linas Vepstas's message of "Sat, 24 Dec 2016 12:43:52 -0600") Message-ID: <87h957aoie.fsf@pobox.com> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/25.1 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-Pobox-Relay-ID: 1CEC6D64-D6B6-11E6-997C-6141F2301B6D-02397024!pb-sasl2.pobox.com X-Spam-Score: -3.2 (---) 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: -3.2 (---) On Sat 24 Dec 2016 19:43, Linas Vepstas writes: > Thread 296 "cogserver" received signal SIGSEGV, Segmentation fault. > [Switching to Thread 0x7fffc0ff9700 (LWP 3680)] > thread_mark (addr=0x5555558f7700, mark_stack_ptr=, > mark_stack_limit=0x7fffc0ff7c50, env=) > at ../../libguile/threads.c:111 > 111 while ((chain = *(void **)chain)) > (gdb) bt > #0 thread_mark (addr=0x5555558f7700, mark_stack_ptr=, > mark_stack_limit=0x7fffc0ff7c50, env=) > at ../../libguile/threads.c:111 > #1 0x00007ffff2a80ffb in GC_mark_from (mark_stack_top=0x7fffc0fe7c60, > mark_stack_top@entry=0x7fffc0fe7ca0, > mark_stack=mark_stack@entry=0x7fffc0fe7c50, > mark_stack_limit=mark_stack_limit@entry=0x7fffc0ff7c50) at mark.c:737 I ran into this one too! I think I fixed it; can you verify? Andy From unknown Sun Jun 22 07:59:56 2025 X-Loop: help-debbugs@gnu.org Subject: bug#25267: guile-2.2 crash in GC Resent-From: Linas Vepstas Original-Sender: "Debbugs-submit" Resent-CC: bug-guile@gnu.org Resent-Date: Tue, 10 Jan 2017 06:46:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 25267 X-GNU-PR-Package: guile X-GNU-PR-Keywords: To: Andy Wingo Cc: 25267@debbugs.gnu.org Reply-To: linasvepstas@gmail.com Received: via spool by 25267-submit@debbugs.gnu.org id=B25267.148403073224775 (code B ref 25267); Tue, 10 Jan 2017 06:46:02 +0000 Received: (at 25267) by debbugs.gnu.org; 10 Jan 2017 06:45:32 +0000 Received: from localhost ([127.0.0.1]:48350 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1cQqBY-0006RW-JW for submit@debbugs.gnu.org; Tue, 10 Jan 2017 01:45:32 -0500 Received: from mail-qk0-f181.google.com ([209.85.220.181]:35875) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1cQqBW-0006RG-NB for 25267@debbugs.gnu.org; Tue, 10 Jan 2017 01:45:31 -0500 Received: by mail-qk0-f181.google.com with SMTP id 11so66629118qkl.3 for <25267@debbugs.gnu.org>; Mon, 09 Jan 2017 22:45:30 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:reply-to:in-reply-to:references:from:date:message-id :subject:to:cc; bh=aBjxZKRDT8u2XE9UbxD5qBulLope579n6tmkSnZSfD0=; b=VpV6XVkMUkVA4UfPmPefzMAangAJlLQnfihw069UMwxhW+9BjnfA8dfp102yfSFTuc KDREQB+FhAqywtrunTOqorFEgR8Rg/1Ai8FzmEffO/PDA4ABPcLkN8elh1HwcE9pOivc GE6wHu8dble0LYxqWy+QHWaSsQ0nvbf6sO28l8xuSkCkUYSmivp+ebi0hNlNUXLGaPRp MIx2DzlL/aYdyzRKYhRAE+FNYrgZrwr6ynd+dsijaRG7xM2MITkncrEETo7k5NOdePzB 3Lj8voPiIwXGGNhRUtV69+poBanBYjyOtg4dqN7OO57agaQscGD5NbKRr46bG7hhSdCP NuKg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:reply-to:in-reply-to:references :from:date:message-id:subject:to:cc; bh=aBjxZKRDT8u2XE9UbxD5qBulLope579n6tmkSnZSfD0=; b=Jd1kEhmS8oRD9VIDEboEjyUZHCAtYPj0v/sW9FHWPn0F/in7jiHaeRZ+pcU/F/qmWw n5TuNnuD161C2YL/DhiDaZL8YCWM1MP8fe9rnpwbzXYNTftZb/7GMGoyySqkqvgVLCva +MUP3Bi+t6DkaN9RUOQwQJ2xC1Q6kskadyCFjIywAR/qLwFyWkZI9eylKRaR+++99XAJ eHtYUnb9I/zr+sUo05hxeMuReiQOyX2rYXxUUhzyHzP5MwvulPV8kQtFGObrQC1kP8FR kwqAYCQ7Bzf6FV5eMO0oVn7+VDz/P14bqEqV5bkBO38sUdHWJ334T1C6rYvYVil9G6fR oX6A== X-Gm-Message-State: AIkVDXL7mPoek8JzQh5NO6ILIEu+c2qjo/r/TaaS2vTt6lPvYB/v07yYM9ejrruPcdVrfcHz2xp7RqMPDGosLw== X-Received: by 10.55.162.65 with SMTP id l62mr1333224qke.17.1484030725166; Mon, 09 Jan 2017 22:45:25 -0800 (PST) MIME-Version: 1.0 Received: by 10.12.128.78 with HTTP; Mon, 9 Jan 2017 22:45:04 -0800 (PST) In-Reply-To: <87h957aoie.fsf@pobox.com> References: <87h957aoie.fsf@pobox.com> From: Linas Vepstas Date: Tue, 10 Jan 2017 00:45:04 -0600 Message-ID: Content-Type: text/plain; charset=UTF-8 X-Spam-Score: 0.5 (/) 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.5 (/) On Mon, Jan 9, 2017 at 3:53 PM, Andy Wingo wrote: > On Sat 24 Dec 2016 19:43, Linas Vepstas writes: > >> [Switching to Thread 0x7fffc0ff9700 (LWP 3680)] >> thread_mark (addr=0x5555558f7700, mark_stack_ptr=, >> mark_stack_limit=0x7fffc0ff7c50, env=) >> at ../../libguile/threads.c:111 >> 111 while ((chain = *(void **)chain)) > > I ran into this one too! I think I fixed it; can you verify? Yep, this is now fixed. You can close this. (20 minutes of cpu time racked up on it. git version as of today: 7e93950552cd9e85a1f3eb73faf16e8423b0fbbe ) --linas From unknown Sun Jun 22 07:59:56 2025 MIME-Version: 1.0 X-Mailer: MIME-tools 5.505 (Entity 5.505) X-Loop: help-debbugs@gnu.org From: help-debbugs@gnu.org (GNU bug Tracking System) To: linasvepstas@gmail.com Subject: bug#25267: closed (Re: bug#25267: guile-2.2 crash in GC) Message-ID: References: <87r32hf45u.fsf@pobox.com> X-Gnu-PR-Message: they-closed 25267 X-Gnu-PR-Package: guile Reply-To: 25267@debbugs.gnu.org Date: Wed, 01 Mar 2017 14:45:02 +0000 Content-Type: multipart/mixed; boundary="----------=_1488379502-3792-1" This is a multi-part message in MIME format... ------------=_1488379502-3792-1 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="utf-8" Your bug report #25267: guile-2.2 crash in GC which was filed against the guile package, has been closed. The explanation is attached below, along with your original report. If you require more details, please reply to 25267@debbugs.gnu.org. --=20 25267: http://debbugs.gnu.org/cgi/bugreport.cgi?bug=3D25267 GNU Bug Tracking System Contact help-debbugs@gnu.org with problems ------------=_1488379502-3792-1 Content-Type: message/rfc822 Content-Disposition: inline Content-Transfer-Encoding: 7bit Received: (at 25267-done) by debbugs.gnu.org; 1 Mar 2017 14:44:09 +0000 Received: from localhost ([127.0.0.1]:33044 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1cj5U9-0000xv-Lv for submit@debbugs.gnu.org; Wed, 01 Mar 2017 09:44:09 -0500 Received: from pb-sasl2.pobox.com ([64.147.108.67]:63213 helo=sasl.smtp.pobox.com) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1cj5U7-0000xn-8E for 25267-done@debbugs.gnu.org; Wed, 01 Mar 2017 09:44:07 -0500 Received: from sasl.smtp.pobox.com (unknown [127.0.0.1]) by pb-sasl2.pobox.com (Postfix) with ESMTP id E175C65B08; Wed, 1 Mar 2017 09:44:06 -0500 (EST) DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=pobox.com; h=from:to:cc :subject:references:date:in-reply-to:message-id:mime-version :content-type; s=sasl; bh=+5lOsAv7tg5d9cLzBbboy0c8Fk8=; b=uznA2o aK+0RhhXoTHOyZgebAEUrRGkBTaFLPrrUoSV7XGSYjIbW3bVNe9UH8YfZUK2JgFM eRIJfMrMC5wrh34yFJMeEbbT5yT0JDgX/oDeE6BIjoKl1yJe6RcKtujup9uAYN26 EcFQzqJccuoaCwmDRyknAiR+nkc0RoD5caPI8= DomainKey-Signature: a=rsa-sha1; c=nofws; d=pobox.com; h=from:to:cc :subject:references:date:in-reply-to:message-id:mime-version :content-type; q=dns; s=sasl; b=Kcx9ZKMP/iXkgLGhk1YgnEZezdcKJofL h4tv0qumBem5dxju35j2r3W/VcDQDvIB0Zy/IAsfKRYcP5W2jEJqDirxLVuAglj+ sglaR7WPS+1iHeQ05yiiG+lFTcXkrMiQb56ghyL2Wg0UipRohjG8TOkTNcLWjA30 mw9+x/I9Hd8= Received: from pb-sasl2.nyi.icgroup.com (unknown [127.0.0.1]) by pb-sasl2.pobox.com (Postfix) with ESMTP id DAA8865B07; Wed, 1 Mar 2017 09:44:06 -0500 (EST) Received: from clucks (unknown [109.190.228.233]) (using TLSv1 with cipher ECDHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by pb-sasl2.pobox.com (Postfix) with ESMTPSA id D493D65B06; Wed, 1 Mar 2017 09:44:05 -0500 (EST) From: Andy Wingo To: Linas Vepstas Subject: Re: bug#25267: guile-2.2 crash in GC References: <87h957aoie.fsf@pobox.com> Date: Wed, 01 Mar 2017 15:43:57 +0100 In-Reply-To: (Linas Vepstas's message of "Tue, 10 Jan 2017 00:45:04 -0600") Message-ID: <87r32hf45u.fsf@pobox.com> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/25.1 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-Pobox-Relay-ID: 854B2B30-FE8D-11E6-BD1B-85AB91A0D1B0-02397024!pb-sasl2.pobox.com X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: 25267-done Cc: 25267-done@debbugs.gnu.org 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.0 (/) On Tue 10 Jan 2017 07:45, Linas Vepstas writes: > On Mon, Jan 9, 2017 at 3:53 PM, Andy Wingo wrote: >> On Sat 24 Dec 2016 19:43, Linas Vepstas writes: >> >>> [Switching to Thread 0x7fffc0ff9700 (LWP 3680)] >>> thread_mark (addr=0x5555558f7700, mark_stack_ptr=, >>> mark_stack_limit=0x7fffc0ff7c50, env=) >>> at ../../libguile/threads.c:111 >>> 111 while ((chain = *(void **)chain)) >> >> I ran into this one too! I think I fixed it; can you verify? > > Yep, this is now fixed. You can close this. > > (20 minutes of cpu time racked up on it. git version as of today: > 7e93950552cd9e85a1f3eb73faf16e8423b0fbbe ) Yay. I am glad I ran into it myself without having to debug this report :) Andy ------------=_1488379502-3792-1 Content-Type: message/rfc822 Content-Disposition: inline Content-Transfer-Encoding: 7bit Received: (at submit) by debbugs.gnu.org; 24 Dec 2016 18:44:26 +0000 Received: from localhost ([127.0.0.1]:54018 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1cKrIw-0004mY-74 for submit@debbugs.gnu.org; Sat, 24 Dec 2016 13:44:26 -0500 Received: from eggs.gnu.org ([208.118.235.92]:59256) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1cKrIu-0004mL-IY for submit@debbugs.gnu.org; Sat, 24 Dec 2016 13:44:25 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1cKrIn-0000mt-OT for submit@debbugs.gnu.org; Sat, 24 Dec 2016 13:44:19 -0500 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, T_DKIM_INVALID autolearn=disabled version=3.3.2 Received: from lists.gnu.org ([2001:4830:134:3::11]:53068) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1cKrIn-0000mo-Kl for submit@debbugs.gnu.org; Sat, 24 Dec 2016 13:44:17 -0500 Received: from eggs.gnu.org ([2001:4830:134:3::10]:50212) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1cKrIl-00067x-J4 for bug-guile@gnu.org; Sat, 24 Dec 2016 13:44:17 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1cKrIj-0000kI-Ns for bug-guile@gnu.org; Sat, 24 Dec 2016 13:44:15 -0500 Received: from mail-qk0-x22f.google.com ([2607:f8b0:400d:c09::22f]:33495) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1cKrIj-0000k2-Ix for bug-guile@gnu.org; Sat, 24 Dec 2016 13:44:13 -0500 Received: by mail-qk0-x22f.google.com with SMTP id t184so170106203qkd.0 for ; Sat, 24 Dec 2016 10:44:13 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:reply-to:from:date:message-id:subject:to; bh=wZ115lpU2oHExnREhgT6ITp0RFkXHK+hmKiYRazpTTI=; b=YQw677iqsZv1+u3U1jW8hzs1OzsgBsNjWHcjxPYfZIuuon0RztikHQmbpggn4hGTyS 2YqH9Vqv6vhe4af14tbbDrsDQchwwlYRse5BVE4XjByFxnDoIiR47FitxqyZrLSUc4ZZ DIVb9KUj+fIncjwPQS9qzZ+1ivtGOnJ8o3RiCyl9Jxjd9ElVHBMIvueIE3TAhGFenHaW Ap+/3jqdjC69STeu8xUFTuE+k/FSXFmzQi6Qnl7QewI49Gwcad45oAP9E7RnFLCkgTTZ jReDg3i7BFxWIfxkf5E/ftrSlRC8fzjvweexVQaE5mf9LaOU8fnF8FJnSSgYJN+3hTPh UJ/A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:reply-to:from:date:message-id :subject:to; bh=wZ115lpU2oHExnREhgT6ITp0RFkXHK+hmKiYRazpTTI=; b=uAP8zAxOKidFS9jKwFU/8cWQR0zQ/jBVjaMnwxE04zeBqq7N9qqS3ZTbcF9ZcGUYmO MYr8lChAJyIDUMz7R1WHBX+pptCfJ9OnJrPKusyYS3tnzGz1/0YKk7tKNbIXfrScgAk1 ADahYWOUq0iPdvfxcVeWuu4tlaB3ooufSRQRSmm1RCvObXGj577FscVAyATr9T0e28RQ YSt5CrEnRCaPGePOTJW2MfEwxLRwZISknRJ5TZJPcwNqndO2Klb07U8jxD8k+K8Jtz3S jjBiBKSi/k32ORKPyIQnOnIHDqH+oKJq4G53+HQPLUDtPI2Z4BgTJpA5tpTt40ofAPM5 nz5g== X-Gm-Message-State: AIkVDXIbyMtQdkeYaN1jixkoA5MX+Zk8QniLCvpVKgSeIcvvnJOxI/EBkCEJmC2pktZLy83lmdFvtdTWCqxjwQ== X-Received: by 10.55.119.2 with SMTP id s2mr20477790qkc.1.1482605052528; Sat, 24 Dec 2016 10:44:12 -0800 (PST) MIME-Version: 1.0 Received: by 10.12.148.215 with HTTP; Sat, 24 Dec 2016 10:43:52 -0800 (PST) From: Linas Vepstas Date: Sat, 24 Dec 2016 12:43:52 -0600 Message-ID: Subject: guile-2.2 crash in GC To: bug-guile@gnu.org Content-Type: text/plain; charset=UTF-8 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: -4.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: , Reply-To: linasvepstas@gmail.com Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -4.0 (----) Merry Christmas! Below is a crash observed in guile-2.2, the git version of 21 December 2016 (last commit 0ce8a9a5e01d3a12d83fea85968e1abb602c9298 Author: Andy Wingo Date: Sun Dec 18 23:00:07 2016 +0100) I do not have any simple test-case to reproduce this (yet?) so this is an FYI bug report. It was provoked by a stress test, with the goal of running some 60+ calls to scm_c_catch in 60+ distinct C++ threads. I have no idea if this will crash any other version of guile; I have never done this stress test before. Here's what GDB says: Thread 296 "cogserver" received signal SIGSEGV, Segmentation fault. [Switching to Thread 0x7fffc0ff9700 (LWP 3680)] thread_mark (addr=0x5555558f7700, mark_stack_ptr=, mark_stack_limit=0x7fffc0ff7c50, env=) at ../../libguile/threads.c:111 111 while ((chain = *(void **)chain)) (gdb) bt #0 thread_mark (addr=0x5555558f7700, mark_stack_ptr=, mark_stack_limit=0x7fffc0ff7c50, env=) at ../../libguile/threads.c:111 #1 0x00007ffff2a80ffb in GC_mark_from (mark_stack_top=0x7fffc0fe7c60, mark_stack_top@entry=0x7fffc0fe7ca0, mark_stack=mark_stack@entry=0x7fffc0fe7c50, mark_stack_limit=mark_stack_limit@entry=0x7fffc0ff7c50) at mark.c:737 #2 0x00007ffff2a8163e in GC_do_local_mark (local_mark_stack=0x7fffc0fe7c50, local_top=0x7fffc0fe7ca0) at mark.c:994 #3 0x00007ffff2a81864 in GC_mark_local ( local_mark_stack=local_mark_stack@entry=0x7fffc0fe7c50, id=id@entry=0) at mark.c:1129 #4 0x00007ffff2a819bf in GC_do_parallel_mark () at mark.c:1157 #5 0x00007ffff2a8282d in GC_mark_some ( cold_gc_frame=0x7fffc0ff7cb0 "\344\207\315\362\377\177") at mark.c:372 #6 0x00007ffff2a782dd in GC_stopped_mark ( stop_func=0x7ffff2a77d70 ) at alloc.c:698 #7 0x00007ffff2a78dca in GC_try_to_collect_inner ( stop_func=0x7ffff2a77d70 ) at alloc.c:486 #8 0x00007ffff2a79782 in GC_collect_or_expand ( needed_blocks=needed_blocks@entry=1, ignore_off_page=ignore_off_page@entry=0, retry=retry@entry=0) at alloc.c:1344 ---Type to continue, or q to quit--- #9 0x00007ffff2a79942 in GC_allocobj (gran=gran@entry=2, kind=1) at alloc.c:1434 #10 0x00007ffff2a7f0a6 in GC_generic_malloc_inner (lb=lb@entry=32, k=k@entry=1) at malloc.c:140 #11 0x00007ffff2a80114 in GC_generic_malloc_many (lb=32, k=1, result=0x5555563f7d88) at mallocx.c:439 #12 0x00007ffff7728c34 in scm_inline_gc_alloc (kind=, idx=, freelist=) at ../../libguile/gc-inline.h:94 #13 scm_inline_gc_malloc (thread=, bytes=) at ../../libguile/gc-inline.h:125 #14 scm_inline_gc_malloc_words (words=, thread=) at ../../libguile/gc-inline.h:132 #15 scm_inline_words (n_words=, car=, thread=) at ../../libguile/gc-inline.h:163 #16 vm_regular_engine (thread=0x0, vp=0x5555566fbd80, registers=0x7fffc0ff7c50, resume=1434328064) at ../../libguile/vm-engine.c:1622 #17 0x00007ffff772928e in scm_call_n (proc=0x7fffd971dd70, argv=argv@entry=0x7fffc0ff80b0, nargs=nargs@entry=4) at ../../libguile/vm.c:1250 #18 0x00007ffff76ac224 in scm_call_4 (proc=, arg1=arg1@entry=0x555556750fa0, arg2=arg2@entry=0x555556870fa0, ---Type to continue, or q to quit--- arg3=arg3@entry=0x55555607d890, arg4=arg4@entry=0x52) at ../../libguile/eval.c:502 #19 0x00007ffff769dd55 in display_backtrace_body (a=) at ../../libguile/backtrace.c:244 #20 0x00007ffff77251da in vm_regular_engine (thread=0x0, vp=0x5555566fbd80, registers=0x7fffc0ff7c50, resume=1434328064) at ../../libguile/vm-engine.c:760 #21 0x00007ffff772928e in scm_call_n (proc=proc@entry=0x555556870f80, argv=argv@entry=0x0, nargs=nargs@entry=0) at ../../libguile/vm.c:1250 #22 0x00007ffff76ac189 in scm_call_0 (proc=proc@entry=0x555556870f80) at ../../libguile/eval.c:475 #23 0x00007ffff7718280 in catch (tag=tag@entry=0x404, thunk=0x555556870f80, handler=0x555556870f60, pre_unwind_handler=0x4) at ../../libguile/throw.c:138 #24 0x00007ffff77185c5 in scm_catch_with_pre_unwind_handler ( key=key@entry=0x404, thunk=, handler=, pre_unwind_handler=) at ../../libguile/throw.c:252 #25 0x00007ffff771877f in scm_c_catch (tag=tag@entry=0x404, body=body@entry=0x7ffff769dc30 , body_data=body_data@entry=0x7fffc0ff8480, handler=handler@entry=0x7ffff769e050 , handler_data=handler_data@entry=0x555556870fa0, pre_unwind_handler=pre_unwind_handler@entry=0x0, ---Type to continue, or q to quit--- pre_unwind_handler_data=0x0) at ../../libguile/throw.c:375 #26 0x00007ffff771878e in scm_internal_catch (tag=tag@entry=0x404, body=body@entry=0x7ffff769dc30 , body_data=body_data@entry=0x7fffc0ff8480, handler=handler@entry=0x7ffff769e050 , handler_data=handler_data@entry=0x555556870fa0) at ../../libguile/throw.c:384 #27 0x00007ffff769dc25 in scm_display_backtrace_with_highlights ( stack=, port=port@entry=0x555556870fa0, first=first@entry=0x4, depth=depth@entry=0x4, highlights=highlights@entry=0x304) at ../../libguile/backtrace.c:282 #28 0x00007ffff4a6228e in opencog::SchemeEval::catch_handler ( this=0x7ffec00090c0, tag=, throw_args=) at /home/linas/src/novamente/src/atomspace-git/opencog/guile/SchemeEval.cc:403 #29 0x00007ffff77251da in vm_regular_engine (thread=0x0, vp=0x5555566fbd80, registers=0x7fffc0ff7c50, resume=1434328064) at ../../libguile/vm-engine.c:760 #30 0x00007ffff772928e in scm_call_n (proc=proc@entry=0x55555678e040, argv=, nargs=5) at ../../libguile/vm.c:1250 #31 0x00007ffff76ac51b in scm_apply_0 (proc=proc@entry=0x55555678e040, args=0x304) at ../../libguile/eval.c:588 #32 0x00007ffff77182ee in catch (tag=tag@entry=0x404, thunk=0x55555678e060, ---Type to continue, or q to quit--- handler=0x55555678e040, pre_unwind_handler=0x55555678e020) at ../../libguile/throw.c:135 #33 0x00007ffff77185c5 in scm_catch_with_pre_unwind_handler ( key=key@entry=0x404, thunk=, handler=, pre_unwind_handler=) at ../../libguile/throw.c:252 #34 0x00007ffff771877f in scm_c_catch (tag=tag@entry=0x404, body=, body_data=, handler=handler@entry=0x7ffff4a623e0 , handler_data=handler_data@entry=0x7ffec00090c0, pre_unwind_handler=pre_unwind_handler@entry=0x7ffff4a62110 , pre_unwind_handler_data=0x7ffec00090c0) at ../../libguile/throw.c:375 #35 0x00007ffff4a624b2 in opencog::SchemeEval::do_eval (this=0x7ffec00090c0, expr="(NumberNode ctr)\n") at /home/linas/src/novamente/src/atomspace-git/opencog/guile/SchemeEval.cc:552 #36 0x00007ffff4a625ba in opencog::SchemeEval::c_wrap_eval (p=0x7ffec00090c0) at /home/linas/src/novamente/src/atomspace-git/opencog/guile/SchemeEval.cc:484 #37 0x00007ffff76a67da in c_body (d=0x7fffc0ff8cf0) at ../../libguile/continuations.c:425 #38 0x00007ffff77251da in vm_regular_engine (thread=0x0, vp=0x5555566fbd80, ---Type to continue, or q to quit--- registers=0x7fffc0ff7c50, resume=1434328064) at ../../libguile/vm-engine.c:760 #39 0x00007ffff772928e in scm_call_n (proc=proc@entry=0x555555c77a00, argv=argv@entry=0x0, nargs=nargs@entry=0) at ../../libguile/vm.c:1250 #40 0x00007ffff76ac189 in scm_call_0 (proc=proc@entry=0x555555c77a00) at ../../libguile/eval.c:475 #41 0x00007ffff7718280 in catch (tag=tag@entry=0x404, thunk=0x555555c77a00, handler=0x555555c779e0, pre_unwind_handler=0x555555c779c0) at ../../libguile/throw.c:138 #42 0x00007ffff77185c5 in scm_catch_with_pre_unwind_handler ( key=key@entry=0x404, thunk=, handler=, pre_unwind_handler=) at ../../libguile/throw.c:252 #43 0x00007ffff771877f in scm_c_catch (tag=tag@entry=0x404, body=body@entry=0x7ffff76a67d0 , body_data=body_data@entry=0x7fffc0ff8cf0, handler=handler@entry=0x7ffff76a6a60 , handler_data=handler_data@entry=0x7fffc0ff8cf0, pre_unwind_handler=pre_unwind_handler@entry=0x7ffff76a68c0 , pre_unwind_handler_data=0x55555597f040) at ../../libguile/throw.c:375 #44 0x00007ffff76a6dd0 in scm_i_with_continuation_barrier ( body=body@entry=0x7ffff76a67d0 , body_data=body_data@entry=0x7fffc0ff8cf0, handler=handler@entry=0x7ffff76a6a60 , ---Type to continue, or q to quit--- handler_data=handler_data@entry=0x7fffc0ff8cf0, pre_unwind_handler=pre_unwind_handler@entry=0x7ffff76a68c0 , pre_unwind_handler_data=0x55555597f040) at ../../libguile/continuations.c:363 #45 0x00007ffff76a6e65 in scm_c_with_continuation_barrier ( func=, data=) at ../../libguile/continuations.c:459 #46 0x00007ffff2a8aa45 in GC_call_with_gc_active ( fn=fn@entry=0x7ffff7716580 , client_data=client_data@entry=0x7fffc0ff8dc0) at pthread_support.c:1303 #47 0x00007ffff7716ed1 in with_guile (base=base@entry=0x7fffc0ff8d90, data=data@entry=0x7fffc0ff8dc0) at ../../libguile/threads.c:673 #48 0x00007ffff2a84812 in GC_call_with_stack_base ( fn=fn@entry=0x7ffff7716e40 , arg=arg@entry=0x7fffc0ff8dc0) at misc.c:1925 #49 0x00007ffff77171f8 in scm_i_with_guile (dynamic_state=, data=data@entry=0x7ffec00090c0, func=func@entry=0x7ffff4a625a0 ) at ../../libguile/threads.c:688 #50 scm_with_guile ( func=func@entry=0x7ffff4a625a0 , data=data@entry=0x7ffec00090c0) at ../../libguile/threads.c:694 #51 0x00007ffff4a6257e in opencog::SchemeEval::eval_expr (this=0x7ffec00090c0, ---Type to continue, or q to quit--- expr=...) at /home/linas/src/novamente/src/atomspace-git/opencog/guile/SchemeEval.cc:456 #52 0x00007ffff3d91eff in ?? () from /usr/lib/x86_64-linux-gnu/libstdc++.so.6 #53 0x00007ffff337a464 in start_thread (arg=0x7fffc0ff9700) at pthread_create.c:333 #54 0x00007ffff30bd9df in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:105 (gdb) and info thr shows 373 threads -- Linas ------------=_1488379502-3792-1--