From unknown Sat Jun 21 12:32:47 2025 X-Loop: help-debbugs@gnu.org Subject: bug#24909: Recent async changes in master cause segfault Resent-From: Original-Sender: "Debbugs-submit" Resent-CC: bug-guile@gnu.org Resent-Date: Wed, 09 Nov 2016 16:19:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 24909 X-GNU-PR-Package: guile X-GNU-PR-Keywords: To: 24909@debbugs.gnu.org X-Debbugs-Original-To: bug-guile@gnu.org Received: via spool by submit@debbugs.gnu.org id=B.147870832817470 (code B ref -1); Wed, 09 Nov 2016 16:19:01 +0000 Received: (at submit) by debbugs.gnu.org; 9 Nov 2016 16:18:48 +0000 Received: from localhost ([127.0.0.1]:51134 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1c4VaI-0004Xd-GO for submit@debbugs.gnu.org; Wed, 09 Nov 2016 11:18:47 -0500 Received: from eggs.gnu.org ([208.118.235.92]:47153) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1c4VaG-0004XP-B4 for submit@debbugs.gnu.org; Wed, 09 Nov 2016 11:18:44 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1c4Va8-0004am-Vw for submit@debbugs.gnu.org; Wed, 09 Nov 2016 11:18:38 -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 autolearn=disabled version=3.3.2 Received: from lists.gnu.org ([2001:4830:134:3::11]:44544) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1c4Va8-0004ag-Sp for submit@debbugs.gnu.org; Wed, 09 Nov 2016 11:18:36 -0500 Received: from eggs.gnu.org ([2001:4830:134:3::10]:38111) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1c4Va7-0004Dw-10 for bug-guile@gnu.org; Wed, 09 Nov 2016 11:18:36 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1c4Va2-0004Y8-0v for bug-guile@gnu.org; Wed, 09 Nov 2016 11:18:34 -0500 Received: from cdptpa-outbound-snat.email.rr.com ([107.14.166.229]:23906 helo=cdptpa-oedge-vip.email.rr.com) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1c4Va1-0004Wu-Rf for bug-guile@gnu.org; Wed, 09 Nov 2016 11:18:29 -0500 Authentication-Results: cdptpa-omsmta01 smtp.user=dsmich@roadrunner.com; auth=pass (LOGIN) Received: from [107.14.174.248] ([107.14.174.248:60709] helo=cdptpa-web24) by cdptpa-omsmta01 (envelope-from ) (ecelerity 3.6.9.48312 r(Core:3.6.9.0)) with ESMTPA id 75/C8-12962-35C43285; Wed, 09 Nov 2016 16:18:27 +0000 Message-ID: <20161109161827.W3WSO.35367.root@cdptpa-web24> Date: Wed, 9 Nov 2016 11:18:27 -0500 From: MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-Priority: 3 (Normal) Sensitivity: Normal X-Originating-IP: from 40.129.68.106 by webmail.roadrunner.com; Wed, 9 Nov 2016 16:18:27 +0000 X-RR-Connecting-IP: 107.14.168.6:2525 X-detected-operating-system: by eggs.gnu.org: BaiduSpider 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 (----) The test-suite/standalone/test-guild-compile test is segfaulting. Git bisecting between the 2.1.4 release and HEAD shows # first bad commit: [c957ec7ab0f0a028910dc737e12191f7bdc1ca93] Use atomics for async interrupts gcc --version gcc (Debian 4.9.2-10) 4.9.2 uname -mr 3.16.0-4-amd64 x86_64 A pretty much up-to-date Debian Jessie system. Collecting a core dump and displaying all backtraces is: (gdb) thr apply all bt Thread 3 (Thread 0x7fb574b2f740 (LWP 12971)): #0 0x00007fb573bff893 in select () at ../sysdeps/unix/syscall-template.S:81 #1 0x00007fb5746d1e6b in do_std_select (args=0x7fffcf4c8de0) at threads.c:1752 #2 0x00007fb5738d1ba3 in GC_do_blocking_inner (data=, context=) at pthread_support.c:1141 #3 0x00007fb5738d32be in GC_with_callee_saves_pushed (fn=, arg=) at mach_dep.c:273 #4 0x00007fb5738cb69c in GC_do_blocking (fn=, fn@entry=0x7fb5746d1e50 , client_data=, client_data@entry=0x7fffcf4c8de0) at misc.c:1657 #5 0x00007fb5746d292a in scm_without_guile (func=0x7fb5746d1e50 , data=0x7fffcf4c8de0) at threads.c:848 #6 0x00007fb5746d2ab5 in scm_std_select (nfds=4, nfds@entry=0, readfds=0x7fffcf4c8e10, readfds@entry=0x0, writefds=writefds@entry=0x0, exceptfds=exceptfds@entry=0x0, timeout=timeout@entry=0x7fffcf4c8ed0) at threads.c:1796 #7 0x00007fb5746d33e3 in scm_std_sleep (secs=) at threads.c:1912 #8 0x00007fb5746b3940 in scm_sleep (i=) at scmsigs.c:636 #9 0x00007fb5746e0a26 in vm_regular_engine (thread=0x4, vp=0xd78d80, registers=0x0, resume=260) at vm-engine.c:832 #10 0x00007fb5746e64f6 in scm_call_n (proc=0x7fb574b5a030, argv=argv@entry=0x7fffcf4c90f8, nargs=nargs@entry=1) at vm.c:1248 #11 0x00007fb574668ac7 in scm_primitive_eval (exp=exp@entry=0xe6c870) at eval.c:654 #12 0x00007fb574668b23 in scm_eval (exp=0xe6c870, module_or_state=module_or_state@entry=0xd8c750) at eval.c:688 #13 0x00007fb5746b448d in scm_shell (argc=9, argv=0x7fffcf4c9728) at script.c:454 #14 0x00007fb57467f85d in invoke_main_func (body_data=0x7fffcf4c95d0) at init.c:339 #15 0x00007fb5746627ea in c_body (d=0x7fffcf4c9510) at continuations.c:429 #16 0x00007fb5746e0a26 in vm_regular_engine (thread=0x4, vp=0xd78d80, registers=0x0, resume=2) at vm-engine.c:832 #17 0x00007fb5746e64f6 in scm_call_n (proc=0xdca4a0, proc@entry=0xd4ced0, argv=argv@entry=0x0, nargs=nargs@entry=0) at vm.c:1248 #18 0x00007fb5746679f9 in scm_call_0 (proc=proc@entry=0xd4ced0) at eval.c:473 #19 0x00007fb5746d3ea7 in catch (tag=tag@entry=0x404, thunk=0xdca4a0, handler=0x7fb574662ac0 , pre_unwind_handler=0xdca3e0) at throw.c:135 #20 0x00007fb5746d42d5 in scm_catch_with_pre_unwind_handler (key=key@entry=0x404, thunk=, handler=, pre_unwind_handler=) at throw.c:249 #21 0x00007fb5746d438f in scm_c_catch (tag=tag@entry=0x404, body=body@entry=0x7fb5746627e0 , body_data=body_data@entry=0x7fffcf4c9510, handler=handler@entry=0x7fb574662ac0 , handler_data=handler_data@entry=0x7fffcf4c9510, pre_unwind_handler=pre_unwind_handler@entry=0x7fb574662920 , pre_unwind_handler_data=0xdd3bc0) at throw.c:370 #22 0x00007fb574662e20 in scm_i_with_continuation_barrier (body=body@entry=0x7fb5746627e0 , body_data=body_data@entry=0x7fffcf4c9510, handler=handler@entry=0x7fb574662ac0 , handler_data=handler_data@entry=0x7fffcf4c9510, pre_unwind_handler=pre_unwind_handler@entry=0x7fb574662920 , pre_unwind_handler_data=0xdd3bc0) at continuations.c:367 #23 0x00007fb574662eb5 in scm_c_with_continuation_barrier (func=, data=) at continuations.c:463 #24 0x00007fb5746d248c in with_guile_and_parent (base=0x7fffcf4c9570, data=0x7fffcf4c95a0) at threads.c:786 #25 0x00007fb5738cb6ca in GC_call_with_stack_base (fn=0xfffffffffffffdfe, fn@entry=0x7fb5746d2440 , arg=0x7fffcf4c8e10, arg@entry=0x7fffcf4c95a0) at misc.c:1553 #26 0x00007fb5746d28b8 in scm_i_with_guile_and_parent (parent=, data=data@entry=0x7fffcf4c95a0, func=func@entry=0x7fb57467f840 ) at threads.c:829 #27 scm_with_guile (func=func@entry=0x7fb57467f840 , data=data@entry=0x7fffcf4c95d0) at threads.c:835 #28 0x00007fb57467f9f2 in scm_boot_guile (argc=argc@entry=9, argv=argv@entry=0x7fffcf4c9728, main_func=main_func@entry=0x400a50 , closure=closure@entry=0x0) at init.c:322 #29 0x00000000004008f0 in main (argc=9, argv=0x7fffcf4c9728) at guile.c:101 Thread 2 (Thread 0x7fb572588700 (LWP 12986)): #0 0x00007fb573ed7add in read () at ../sysdeps/unix/syscall-template.S:81 #1 0x00007fb574670ef7 in read_finalization_pipe_data (data=0x7fb572587a80) at finalizers.c:199 #2 0x00007fb5738d1ba3 in GC_do_blocking_inner (data=, context=) at pthread_support.c:1141 #3 0x00007fb5738d32be in GC_with_callee_saves_pushed (fn=, arg=) at mach_dep.c:273 #4 0x00007fb5738cb69c in GC_do_blocking (fn=, fn@entry=0x7fb574670ee0 , client_data=, client_data@entry=0x7fb572587a80) at misc.c:1657 #5 0x00007fb5746d292a in scm_without_guile (func=0x7fb574670ee0 , data=0x7fb572587a80) at threads.c:848 #6 0x00007fb574671307 in finalization_thread_proc (unused=) at finalizers.c:212 #7 0x00007fb5746627ea in c_body (d=0x7fb572587e60) at continuations.c:429 #8 0x00007fb5746e0a26 in vm_regular_engine (thread=0x5, vp=0xd78c80, registers=0x1, resume=2) at vm-engine.c:832 #9 0x00007fb5746e64f6 in scm_call_n (proc=0xd7d700, proc@entry=0xd4ccd0, argv=argv@entry=0x0, nargs=nargs@entry=0) at vm.c:1248 #10 0x00007fb5746679f9 in scm_call_0 (proc=proc@entry=0xd4ccd0) at eval.c:473 #11 0x00007fb5746d3ea7 in catch (tag=tag@entry=0x404, thunk=0xd7d700, handler=0x7fb574662ac0 , pre_unwind_handler=0xd7d660) at throw.c:135 #12 0x00007fb5746d42d5 in scm_catch_with_pre_unwind_handler (key=key@entry=0x404, thunk=, handler=, pre_unwind_handler=) ---Type to continue, or q to quit--- at throw.c:249 #13 0x00007fb5746d438f in scm_c_catch (tag=tag@entry=0x404, body=body@entry=0x7fb5746627e0 , body_data=body_data@entry=0x7fb572587e60, handler=handler@entry=0x7fb574662ac0 , handler_data=handler_data@entry=0x7fb572587e60, pre_unwind_handler=pre_unwind_handler@entry=0x7fb574662920 , pre_unwind_handler_data=0xdd3bc0) at throw.c:370 #14 0x00007fb574662e20 in scm_i_with_continuation_barrier (body=body@entry=0x7fb5746627e0 , body_data=body_data@entry=0x7fb572587e60, handler=handler@entry=0x7fb574662ac0 , handler_data=handler_data@entry=0x7fb572587e60, pre_unwind_handler=pre_unwind_handler@entry=0x7fb574662920 , pre_unwind_handler_data=0xdd3bc0) at continuations.c:367 #15 0x00007fb574662eb5 in scm_c_with_continuation_barrier (func=, data=) at continuations.c:463 #16 0x00007fb5746d248c in with_guile_and_parent (base=0x7fb572587ec0, data=0x7fb572587ef0) at threads.c:786 #17 0x00007fb5738cb6ca in GC_call_with_stack_base (fn=0xfffffffffffffe00, fn@entry=0x7fb5746d2440 , arg=0x7fb572587a80, arg@entry=0x7fb572587ef0) at misc.c:1553 #18 0x00007fb5746d28b8 in scm_i_with_guile_and_parent (parent=, data=, func=) at threads.c:829 #19 scm_with_guile (func=, data=) at threads.c:835 #20 0x00007fb573ed10a4 in start_thread (arg=0x7fb572588700) at pthread_create.c:309 #21 0x00007fb573c0662d in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:111 Thread 1 (Thread 0x7fb5719d0700 (LWP 12987)): #0 __GI___pthread_mutex_lock (mutex=0x0) at ../nptl/pthread_mutex_lock.c:66 #1 0x00007fb5746d2b55 in scm_pthread_mutex_lock (mutex=) at threads.c:1833 #2 0x00007fb5746593a3 in scm_system_async_mark_for_thread (proc=0x1065900, thread=) at async.c:147 #3 0x00007fb5746b32c3 in signal_delivery_thread (data=) at scmsigs.c:186 #4 0x00007fb5746e0a26 in vm_regular_engine (thread=0x0, vp=0xd78a80, registers=0x7fb5749413e0 , resume=2) at vm-engine.c:832 #5 0x00007fb5746e64f6 in scm_call_n (proc=0x106bf80, proc@entry=0xd4cad0, argv=argv@entry=0x0, nargs=nargs@entry=0) at vm.c:1248 #6 0x00007fb5746679f9 in scm_call_0 (proc=proc@entry=0xd4cad0) at eval.c:473 #7 0x00007fb5746d3ea7 in catch (tag=tag@entry=0x404, thunk=0x106bf80, handler=0x0, pre_unwind_handler=0x4) at throw.c:135 #8 0x00007fb5746d42d5 in scm_catch_with_pre_unwind_handler (key=key@entry=0x404, thunk=, handler=, pre_unwind_handler=) at throw.c:249 #9 0x00007fb5746d438f in scm_c_catch (tag=tag@entry=0x404, body=body@entry=0x7fb5746b3210 , body_data=body_data@entry=0x0, handler=handler@entry=0x7fb5746d4540 , handler_data=handler_data@entry=0x7fb5747026b5, pre_unwind_handler=pre_unwind_handler@entry=0x0, pre_unwind_handler_data=0x0) at throw.c:370 #10 0x00007fb5746d439e in scm_internal_catch (tag=tag@entry=0x404, body=body@entry=0x7fb5746b3210 , body_data=body_data@entry=0x0, handler=handler@entry=0x7fb5746d4540 , handler_data=handler_data@entry=0x7fb5747026b5) at throw.c:379 #11 0x00007fb5746d2d3c in really_spawn (d=0x7fffcf4c8c80) at threads.c:951 #12 0x00007fb5746627ea in c_body (d=0x7fb5719cfe60) at continuations.c:429 #13 0x00007fb5746e0a26 in vm_regular_engine (thread=0x0, vp=0xd78a80, registers=0x7fb5749413e0 , resume=2) at vm-engine.c:832 #14 0x00007fb5746e64f6 in scm_call_n (proc=0x106bfe0, proc@entry=0xd4cad0, argv=argv@entry=0x0, nargs=nargs@entry=0) at vm.c:1248 #15 0x00007fb5746679f9 in scm_call_0 (proc=proc@entry=0xd4cad0) at eval.c:473 #16 0x00007fb5746d3ea7 in catch (tag=tag@entry=0x404, thunk=0x106bfe0, handler=0x7fb574662ac0 , pre_unwind_handler=0x106bfa0) at throw.c:135 #17 0x00007fb5746d42d5 in scm_catch_with_pre_unwind_handler (key=key@entry=0x404, thunk=, handler=, pre_unwind_handler=) at throw.c:249 #18 0x00007fb5746d438f in scm_c_catch (tag=tag@entry=0x404, body=body@entry=0x7fb5746627e0 , body_data=body_data@entry=0x7fb5719cfe60, handler=handler@entry=0x7fb574662ac0 , handler_data=handler_data@entry=0x7fb5719cfe60, pre_unwind_handler=pre_unwind_handler@entry=0x7fb574662920 , pre_unwind_handler_data=0xdd3bc0) at throw.c:370 #19 0x00007fb574662e20 in scm_i_with_continuation_barrier (body=body@entry=0x7fb5746627e0 , body_data=body_data@entry=0x7fb5719cfe60, handler=handler@entry=0x7fb574662ac0 , handler_data=handler_data@entry=0x7fb5719cfe60, pre_unwind_handler=pre_unwind_handler@entry=0x7fb574662920 , pre_unwind_handler_data=0xdd3bc0) at continuations.c:367 #20 0x00007fb574662eb5 in scm_c_with_continuation_barrier (func=, data=) at continuations.c:463 #21 0x00007fb5746d248c in with_guile_and_parent (base=0x7fb5719cfec0, data=0x7fb5719cfef0) at threads.c:786 #22 0x00007fb5738cb6ca in GC_call_with_stack_base (fn=0x0, fn@entry=0x7fb5746d2440 , arg=0x0, arg@entry=0x7fb5719cfef0) at misc.c:1553 #23 0x00007fb5746d1c1c in scm_i_with_guile_and_parent (parent=, data=0x7fffcf4c8c80, func=0x7fb5746d2cc0 ) at threads.c:829 #24 spawn_thread (d=0x7fffcf4c8c80) at threads.c:963 #25 0x00007fb573ed10a4 in start_thread (arg=0x7fb5719d0700) at pthread_create.c:309 #26 0x00007fb573c0662d in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:111 (gdb) From unknown Sat Jun 21 12:32:47 2025 X-Loop: help-debbugs@gnu.org Subject: bug#24909: Recent async changes in master cause segfault References: <20161109161827.W3WSO.35367.root@cdptpa-web24> In-Reply-To: <20161109161827.W3WSO.35367.root@cdptpa-web24> Resent-From: Original-Sender: "Debbugs-submit" Resent-CC: bug-guile@gnu.org Resent-Date: Mon, 14 Nov 2016 15:30:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 24909 X-GNU-PR-Package: guile X-GNU-PR-Keywords: To: 24909@debbugs.gnu.org Received: via spool by 24909-submit@debbugs.gnu.org id=B24909.147913734916692 (code B ref 24909); Mon, 14 Nov 2016 15:30:02 +0000 Received: (at 24909) by debbugs.gnu.org; 14 Nov 2016 15:29:09 +0000 Received: from localhost ([127.0.0.1]:57230 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1c6JC1-0004LA-Ck for submit@debbugs.gnu.org; Mon, 14 Nov 2016 10:29:09 -0500 Received: from cdptpa-outbound-snat.email.rr.com ([107.14.166.228]:24027 helo=cdptpa-oedge-vip.email.rr.com) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1c6JBz-0004L1-UR for 24909@debbugs.gnu.org; Mon, 14 Nov 2016 10:29:08 -0500 Authentication-Results: cdptpa-omsmta01 smtp.user=dsmich@roadrunner.com; auth=pass (LOGIN) Received: from [107.14.174.248] ([107.14.174.248:18074] helo=cdptpa-web07) by cdptpa-omsmta01 (envelope-from ) (ecelerity 3.6.9.48312 r(Core:3.6.9.0)) with ESMTPA id D1/05-12962-348D9285; Mon, 14 Nov 2016 15:29:07 +0000 Message-ID: <20161114152907.V22TJ.97985.root@cdptpa-web07> Date: Mon, 14 Nov 2016 10:29:07 -0500 From: MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-Priority: 3 (Normal) Sensitivity: Normal X-Originating-IP: from 40.129.68.106 by webmail.roadrunner.com; Mon, 14 Nov 2016 15:29:07 +0000 X-RR-Connecting-IP: 107.14.168.6:2525 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 (/) Looks like 3f23688 fixes it. -Dale From unknown Sat Jun 21 12:32:47 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: Subject: bug#24909: closed (Re: bug#24909: Recent async changes in master cause segfault) Message-ID: References: <87y3yjap4x.fsf@pobox.com> <20161109161827.W3WSO.35367.root@cdptpa-web24> X-Gnu-PR-Message: they-closed 24909 X-Gnu-PR-Package: guile Reply-To: 24909@debbugs.gnu.org Date: Mon, 09 Jan 2017 21:41:02 +0000 Content-Type: multipart/mixed; boundary="----------=_1483998062-27887-1" This is a multi-part message in MIME format... ------------=_1483998062-27887-1 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="utf-8" Your bug report #24909: Recent async changes in master cause segfault 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 24909@debbugs.gnu.org. --=20 24909: http://debbugs.gnu.org/cgi/bugreport.cgi?bug=3D24909 GNU Bug Tracking System Contact help-debbugs@gnu.org with problems ------------=_1483998062-27887-1 Content-Type: message/rfc822 Content-Disposition: inline Content-Transfer-Encoding: 7bit Received: (at 24909-done) by debbugs.gnu.org; 9 Jan 2017 21:40:27 +0000 Received: from localhost ([127.0.0.1]:48160 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1cQhg2-0007Eq-Sp for submit@debbugs.gnu.org; Mon, 09 Jan 2017 16:40:27 -0500 Received: from pb-sasl2.pobox.com ([64.147.108.67]:54490 helo=sasl.smtp.pobox.com) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1cQhg0-0007Eh-En for 24909-done@debbugs.gnu.org; Mon, 09 Jan 2017 16:40:24 -0500 Received: from sasl.smtp.pobox.com (unknown [127.0.0.1]) by pb-sasl2.pobox.com (Postfix) with ESMTP id D6E4657B8D; Mon, 9 Jan 2017 16:40:23 -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=JzlQzDY+kqcHAGnO3ztm8hPFqqQ=; b=iCjAHF z8TsrUMROXm5jWoZmM4gO5Y/lp/eLpsb7hjQrXV4es4auWJs74tqUAy47pZKhIaD NQkrUBUr9YjB0vCDYrbx2sTwPTlJ7LEDpj2esoG8kqedyJSIVIgK5/YtPfhmSMD6 zNUKsy70tjxmr/6UNAhT84tuXEon9PUEnRHCU= 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=MQ6dam4yIvZs/bKSRt0aM9NCr1dQ6crP vAejrbla4Rv31FbJyWPgaCDtan9UNUAm172QgbfXT1g3fQoNGunZksh933mHf1HZ 0sXnno09RQ0+9ebvmvDWgLKg3R+EFhoRoLYdZCq0yd5JKHrGdfpPWNLCO0ZiPhjD FhQN8sSArNw= Received: from pb-sasl2.nyi.icgroup.com (unknown [127.0.0.1]) by pb-sasl2.pobox.com (Postfix) with ESMTP id CDBF157B8C; Mon, 9 Jan 2017 16:40:23 -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 9A99257B8B; Mon, 9 Jan 2017 16:40:22 -0500 (EST) From: Andy Wingo To: Subject: Re: bug#24909: Recent async changes in master cause segfault References: <20161109161827.W3WSO.35367.root@cdptpa-web24> <20161114152907.V22TJ.97985.root@cdptpa-web07> Date: Mon, 09 Jan 2017 22:40:14 +0100 In-Reply-To: <20161114152907.V22TJ.97985.root@cdptpa-web07> (dsmich@roadrunner.com's message of "Mon, 14 Nov 2016 10:29:07 -0500") Message-ID: <87y3yjap4x.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: 39A13194-D6B4-11E6-980D-6141F2301B6D-02397024!pb-sasl2.pobox.com X-Spam-Score: -3.2 (---) X-Debbugs-Envelope-To: 24909-done Cc: 24909-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: -3.2 (---) On Mon 14 Nov 2016 16:29, writes: > Looks like 3f23688 fixes it. Great :) ------------=_1483998062-27887-1 Content-Type: message/rfc822 Content-Disposition: inline Content-Transfer-Encoding: 7bit Received: (at submit) by debbugs.gnu.org; 9 Nov 2016 16:18:48 +0000 Received: from localhost ([127.0.0.1]:51134 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1c4VaI-0004Xd-GO for submit@debbugs.gnu.org; Wed, 09 Nov 2016 11:18:47 -0500 Received: from eggs.gnu.org ([208.118.235.92]:47153) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1c4VaG-0004XP-B4 for submit@debbugs.gnu.org; Wed, 09 Nov 2016 11:18:44 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1c4Va8-0004am-Vw for submit@debbugs.gnu.org; Wed, 09 Nov 2016 11:18:38 -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 autolearn=disabled version=3.3.2 Received: from lists.gnu.org ([2001:4830:134:3::11]:44544) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1c4Va8-0004ag-Sp for submit@debbugs.gnu.org; Wed, 09 Nov 2016 11:18:36 -0500 Received: from eggs.gnu.org ([2001:4830:134:3::10]:38111) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1c4Va7-0004Dw-10 for bug-guile@gnu.org; Wed, 09 Nov 2016 11:18:36 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1c4Va2-0004Y8-0v for bug-guile@gnu.org; Wed, 09 Nov 2016 11:18:34 -0500 Received: from cdptpa-outbound-snat.email.rr.com ([107.14.166.229]:23906 helo=cdptpa-oedge-vip.email.rr.com) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1c4Va1-0004Wu-Rf for bug-guile@gnu.org; Wed, 09 Nov 2016 11:18:29 -0500 Authentication-Results: cdptpa-omsmta01 smtp.user=dsmich@roadrunner.com; auth=pass (LOGIN) Received: from [107.14.174.248] ([107.14.174.248:60709] helo=cdptpa-web24) by cdptpa-omsmta01 (envelope-from ) (ecelerity 3.6.9.48312 r(Core:3.6.9.0)) with ESMTPA id 75/C8-12962-35C43285; Wed, 09 Nov 2016 16:18:27 +0000 Message-ID: <20161109161827.W3WSO.35367.root@cdptpa-web24> Date: Wed, 9 Nov 2016 11:18:27 -0500 From: To: bug-guile@gnu.org Subject: Recent async changes in master cause segfault MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-Priority: 3 (Normal) Sensitivity: Normal X-Originating-IP: from 40.129.68.106 by webmail.roadrunner.com; Wed, 9 Nov 2016 16:18:27 +0000 X-RR-Connecting-IP: 107.14.168.6:2525 X-detected-operating-system: by eggs.gnu.org: BaiduSpider 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: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -4.0 (----) The test-suite/standalone/test-guild-compile test is segfaulting. Git bisecting between the 2.1.4 release and HEAD shows # first bad commit: [c957ec7ab0f0a028910dc737e12191f7bdc1ca93] Use atomics for async interrupts gcc --version gcc (Debian 4.9.2-10) 4.9.2 uname -mr 3.16.0-4-amd64 x86_64 A pretty much up-to-date Debian Jessie system. Collecting a core dump and displaying all backtraces is: (gdb) thr apply all bt Thread 3 (Thread 0x7fb574b2f740 (LWP 12971)): #0 0x00007fb573bff893 in select () at ../sysdeps/unix/syscall-template.S:81 #1 0x00007fb5746d1e6b in do_std_select (args=0x7fffcf4c8de0) at threads.c:1752 #2 0x00007fb5738d1ba3 in GC_do_blocking_inner (data=, context=) at pthread_support.c:1141 #3 0x00007fb5738d32be in GC_with_callee_saves_pushed (fn=, arg=) at mach_dep.c:273 #4 0x00007fb5738cb69c in GC_do_blocking (fn=, fn@entry=0x7fb5746d1e50 , client_data=, client_data@entry=0x7fffcf4c8de0) at misc.c:1657 #5 0x00007fb5746d292a in scm_without_guile (func=0x7fb5746d1e50 , data=0x7fffcf4c8de0) at threads.c:848 #6 0x00007fb5746d2ab5 in scm_std_select (nfds=4, nfds@entry=0, readfds=0x7fffcf4c8e10, readfds@entry=0x0, writefds=writefds@entry=0x0, exceptfds=exceptfds@entry=0x0, timeout=timeout@entry=0x7fffcf4c8ed0) at threads.c:1796 #7 0x00007fb5746d33e3 in scm_std_sleep (secs=) at threads.c:1912 #8 0x00007fb5746b3940 in scm_sleep (i=) at scmsigs.c:636 #9 0x00007fb5746e0a26 in vm_regular_engine (thread=0x4, vp=0xd78d80, registers=0x0, resume=260) at vm-engine.c:832 #10 0x00007fb5746e64f6 in scm_call_n (proc=0x7fb574b5a030, argv=argv@entry=0x7fffcf4c90f8, nargs=nargs@entry=1) at vm.c:1248 #11 0x00007fb574668ac7 in scm_primitive_eval (exp=exp@entry=0xe6c870) at eval.c:654 #12 0x00007fb574668b23 in scm_eval (exp=0xe6c870, module_or_state=module_or_state@entry=0xd8c750) at eval.c:688 #13 0x00007fb5746b448d in scm_shell (argc=9, argv=0x7fffcf4c9728) at script.c:454 #14 0x00007fb57467f85d in invoke_main_func (body_data=0x7fffcf4c95d0) at init.c:339 #15 0x00007fb5746627ea in c_body (d=0x7fffcf4c9510) at continuations.c:429 #16 0x00007fb5746e0a26 in vm_regular_engine (thread=0x4, vp=0xd78d80, registers=0x0, resume=2) at vm-engine.c:832 #17 0x00007fb5746e64f6 in scm_call_n (proc=0xdca4a0, proc@entry=0xd4ced0, argv=argv@entry=0x0, nargs=nargs@entry=0) at vm.c:1248 #18 0x00007fb5746679f9 in scm_call_0 (proc=proc@entry=0xd4ced0) at eval.c:473 #19 0x00007fb5746d3ea7 in catch (tag=tag@entry=0x404, thunk=0xdca4a0, handler=0x7fb574662ac0 , pre_unwind_handler=0xdca3e0) at throw.c:135 #20 0x00007fb5746d42d5 in scm_catch_with_pre_unwind_handler (key=key@entry=0x404, thunk=, handler=, pre_unwind_handler=) at throw.c:249 #21 0x00007fb5746d438f in scm_c_catch (tag=tag@entry=0x404, body=body@entry=0x7fb5746627e0 , body_data=body_data@entry=0x7fffcf4c9510, handler=handler@entry=0x7fb574662ac0 , handler_data=handler_data@entry=0x7fffcf4c9510, pre_unwind_handler=pre_unwind_handler@entry=0x7fb574662920 , pre_unwind_handler_data=0xdd3bc0) at throw.c:370 #22 0x00007fb574662e20 in scm_i_with_continuation_barrier (body=body@entry=0x7fb5746627e0 , body_data=body_data@entry=0x7fffcf4c9510, handler=handler@entry=0x7fb574662ac0 , handler_data=handler_data@entry=0x7fffcf4c9510, pre_unwind_handler=pre_unwind_handler@entry=0x7fb574662920 , pre_unwind_handler_data=0xdd3bc0) at continuations.c:367 #23 0x00007fb574662eb5 in scm_c_with_continuation_barrier (func=, data=) at continuations.c:463 #24 0x00007fb5746d248c in with_guile_and_parent (base=0x7fffcf4c9570, data=0x7fffcf4c95a0) at threads.c:786 #25 0x00007fb5738cb6ca in GC_call_with_stack_base (fn=0xfffffffffffffdfe, fn@entry=0x7fb5746d2440 , arg=0x7fffcf4c8e10, arg@entry=0x7fffcf4c95a0) at misc.c:1553 #26 0x00007fb5746d28b8 in scm_i_with_guile_and_parent (parent=, data=data@entry=0x7fffcf4c95a0, func=func@entry=0x7fb57467f840 ) at threads.c:829 #27 scm_with_guile (func=func@entry=0x7fb57467f840 , data=data@entry=0x7fffcf4c95d0) at threads.c:835 #28 0x00007fb57467f9f2 in scm_boot_guile (argc=argc@entry=9, argv=argv@entry=0x7fffcf4c9728, main_func=main_func@entry=0x400a50 , closure=closure@entry=0x0) at init.c:322 #29 0x00000000004008f0 in main (argc=9, argv=0x7fffcf4c9728) at guile.c:101 Thread 2 (Thread 0x7fb572588700 (LWP 12986)): #0 0x00007fb573ed7add in read () at ../sysdeps/unix/syscall-template.S:81 #1 0x00007fb574670ef7 in read_finalization_pipe_data (data=0x7fb572587a80) at finalizers.c:199 #2 0x00007fb5738d1ba3 in GC_do_blocking_inner (data=, context=) at pthread_support.c:1141 #3 0x00007fb5738d32be in GC_with_callee_saves_pushed (fn=, arg=) at mach_dep.c:273 #4 0x00007fb5738cb69c in GC_do_blocking (fn=, fn@entry=0x7fb574670ee0 , client_data=, client_data@entry=0x7fb572587a80) at misc.c:1657 #5 0x00007fb5746d292a in scm_without_guile (func=0x7fb574670ee0 , data=0x7fb572587a80) at threads.c:848 #6 0x00007fb574671307 in finalization_thread_proc (unused=) at finalizers.c:212 #7 0x00007fb5746627ea in c_body (d=0x7fb572587e60) at continuations.c:429 #8 0x00007fb5746e0a26 in vm_regular_engine (thread=0x5, vp=0xd78c80, registers=0x1, resume=2) at vm-engine.c:832 #9 0x00007fb5746e64f6 in scm_call_n (proc=0xd7d700, proc@entry=0xd4ccd0, argv=argv@entry=0x0, nargs=nargs@entry=0) at vm.c:1248 #10 0x00007fb5746679f9 in scm_call_0 (proc=proc@entry=0xd4ccd0) at eval.c:473 #11 0x00007fb5746d3ea7 in catch (tag=tag@entry=0x404, thunk=0xd7d700, handler=0x7fb574662ac0 , pre_unwind_handler=0xd7d660) at throw.c:135 #12 0x00007fb5746d42d5 in scm_catch_with_pre_unwind_handler (key=key@entry=0x404, thunk=, handler=, pre_unwind_handler=) ---Type to continue, or q to quit--- at throw.c:249 #13 0x00007fb5746d438f in scm_c_catch (tag=tag@entry=0x404, body=body@entry=0x7fb5746627e0 , body_data=body_data@entry=0x7fb572587e60, handler=handler@entry=0x7fb574662ac0 , handler_data=handler_data@entry=0x7fb572587e60, pre_unwind_handler=pre_unwind_handler@entry=0x7fb574662920 , pre_unwind_handler_data=0xdd3bc0) at throw.c:370 #14 0x00007fb574662e20 in scm_i_with_continuation_barrier (body=body@entry=0x7fb5746627e0 , body_data=body_data@entry=0x7fb572587e60, handler=handler@entry=0x7fb574662ac0 , handler_data=handler_data@entry=0x7fb572587e60, pre_unwind_handler=pre_unwind_handler@entry=0x7fb574662920 , pre_unwind_handler_data=0xdd3bc0) at continuations.c:367 #15 0x00007fb574662eb5 in scm_c_with_continuation_barrier (func=, data=) at continuations.c:463 #16 0x00007fb5746d248c in with_guile_and_parent (base=0x7fb572587ec0, data=0x7fb572587ef0) at threads.c:786 #17 0x00007fb5738cb6ca in GC_call_with_stack_base (fn=0xfffffffffffffe00, fn@entry=0x7fb5746d2440 , arg=0x7fb572587a80, arg@entry=0x7fb572587ef0) at misc.c:1553 #18 0x00007fb5746d28b8 in scm_i_with_guile_and_parent (parent=, data=, func=) at threads.c:829 #19 scm_with_guile (func=, data=) at threads.c:835 #20 0x00007fb573ed10a4 in start_thread (arg=0x7fb572588700) at pthread_create.c:309 #21 0x00007fb573c0662d in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:111 Thread 1 (Thread 0x7fb5719d0700 (LWP 12987)): #0 __GI___pthread_mutex_lock (mutex=0x0) at ../nptl/pthread_mutex_lock.c:66 #1 0x00007fb5746d2b55 in scm_pthread_mutex_lock (mutex=) at threads.c:1833 #2 0x00007fb5746593a3 in scm_system_async_mark_for_thread (proc=0x1065900, thread=) at async.c:147 #3 0x00007fb5746b32c3 in signal_delivery_thread (data=) at scmsigs.c:186 #4 0x00007fb5746e0a26 in vm_regular_engine (thread=0x0, vp=0xd78a80, registers=0x7fb5749413e0 , resume=2) at vm-engine.c:832 #5 0x00007fb5746e64f6 in scm_call_n (proc=0x106bf80, proc@entry=0xd4cad0, argv=argv@entry=0x0, nargs=nargs@entry=0) at vm.c:1248 #6 0x00007fb5746679f9 in scm_call_0 (proc=proc@entry=0xd4cad0) at eval.c:473 #7 0x00007fb5746d3ea7 in catch (tag=tag@entry=0x404, thunk=0x106bf80, handler=0x0, pre_unwind_handler=0x4) at throw.c:135 #8 0x00007fb5746d42d5 in scm_catch_with_pre_unwind_handler (key=key@entry=0x404, thunk=, handler=, pre_unwind_handler=) at throw.c:249 #9 0x00007fb5746d438f in scm_c_catch (tag=tag@entry=0x404, body=body@entry=0x7fb5746b3210 , body_data=body_data@entry=0x0, handler=handler@entry=0x7fb5746d4540 , handler_data=handler_data@entry=0x7fb5747026b5, pre_unwind_handler=pre_unwind_handler@entry=0x0, pre_unwind_handler_data=0x0) at throw.c:370 #10 0x00007fb5746d439e in scm_internal_catch (tag=tag@entry=0x404, body=body@entry=0x7fb5746b3210 , body_data=body_data@entry=0x0, handler=handler@entry=0x7fb5746d4540 , handler_data=handler_data@entry=0x7fb5747026b5) at throw.c:379 #11 0x00007fb5746d2d3c in really_spawn (d=0x7fffcf4c8c80) at threads.c:951 #12 0x00007fb5746627ea in c_body (d=0x7fb5719cfe60) at continuations.c:429 #13 0x00007fb5746e0a26 in vm_regular_engine (thread=0x0, vp=0xd78a80, registers=0x7fb5749413e0 , resume=2) at vm-engine.c:832 #14 0x00007fb5746e64f6 in scm_call_n (proc=0x106bfe0, proc@entry=0xd4cad0, argv=argv@entry=0x0, nargs=nargs@entry=0) at vm.c:1248 #15 0x00007fb5746679f9 in scm_call_0 (proc=proc@entry=0xd4cad0) at eval.c:473 #16 0x00007fb5746d3ea7 in catch (tag=tag@entry=0x404, thunk=0x106bfe0, handler=0x7fb574662ac0 , pre_unwind_handler=0x106bfa0) at throw.c:135 #17 0x00007fb5746d42d5 in scm_catch_with_pre_unwind_handler (key=key@entry=0x404, thunk=, handler=, pre_unwind_handler=) at throw.c:249 #18 0x00007fb5746d438f in scm_c_catch (tag=tag@entry=0x404, body=body@entry=0x7fb5746627e0 , body_data=body_data@entry=0x7fb5719cfe60, handler=handler@entry=0x7fb574662ac0 , handler_data=handler_data@entry=0x7fb5719cfe60, pre_unwind_handler=pre_unwind_handler@entry=0x7fb574662920 , pre_unwind_handler_data=0xdd3bc0) at throw.c:370 #19 0x00007fb574662e20 in scm_i_with_continuation_barrier (body=body@entry=0x7fb5746627e0 , body_data=body_data@entry=0x7fb5719cfe60, handler=handler@entry=0x7fb574662ac0 , handler_data=handler_data@entry=0x7fb5719cfe60, pre_unwind_handler=pre_unwind_handler@entry=0x7fb574662920 , pre_unwind_handler_data=0xdd3bc0) at continuations.c:367 #20 0x00007fb574662eb5 in scm_c_with_continuation_barrier (func=, data=) at continuations.c:463 #21 0x00007fb5746d248c in with_guile_and_parent (base=0x7fb5719cfec0, data=0x7fb5719cfef0) at threads.c:786 #22 0x00007fb5738cb6ca in GC_call_with_stack_base (fn=0x0, fn@entry=0x7fb5746d2440 , arg=0x0, arg@entry=0x7fb5719cfef0) at misc.c:1553 #23 0x00007fb5746d1c1c in scm_i_with_guile_and_parent (parent=, data=0x7fffcf4c8c80, func=0x7fb5746d2cc0 ) at threads.c:829 #24 spawn_thread (d=0x7fffcf4c8c80) at threads.c:963 #25 0x00007fb573ed10a4 in start_thread (arg=0x7fb5719d0700) at pthread_create.c:309 #26 0x00007fb573c0662d in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:111 (gdb) ------------=_1483998062-27887-1--