From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED.blaine.gmane.org!not-for-mail From: Alex =?utf-8?Q?Benn=C3=A9e?= Newsgroups: gmane.emacs.devel Subject: Re: Terminal locked when spawning a new tty frame Date: Wed, 23 Oct 2019 17:43:44 +0100 Message-ID: <87wocvmmyn.fsf@linaro.org> References: <87a7a1580d.fsf@linaro.org> 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="148142"; mail-complaints-to="usenet@blaine.gmane.org" User-Agent: mu4e 1.3.5; emacs 27.0.50 Cc: Emacs Developers To: Andreas Schwab Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Wed Oct 23 18:48:22 2019 Return-path: Envelope-to: ged-emacs-devel@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 1iNJo5-000cOQ-NW for ged-emacs-devel@m.gmane.org; Wed, 23 Oct 2019 18:48:21 +0200 Original-Received: from localhost ([::1]:41554 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1iNJo3-0007mB-Gt for ged-emacs-devel@m.gmane.org; Wed, 23 Oct 2019 12:48:19 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:51498) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1iNJjj-0005T1-B9 for emacs-devel@gnu.org; Wed, 23 Oct 2019 12:43:53 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1iNJjh-0007Fz-5x for emacs-devel@gnu.org; Wed, 23 Oct 2019 12:43:50 -0400 Original-Received: from mail-wr1-x441.google.com ([2a00:1450:4864:20::441]:40881) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1iNJjg-0007Ed-U8 for emacs-devel@gnu.org; Wed, 23 Oct 2019 12:43:49 -0400 Original-Received: by mail-wr1-x441.google.com with SMTP id o28so22851268wro.7 for ; Wed, 23 Oct 2019 09:43:48 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=references:user-agent:from:to:cc:subject:in-reply-to:date :message-id:mime-version:content-transfer-encoding; bh=mh6QxgcwKY5T5L6qHypu+JF2R7UHCK/QOBOmOU9cB08=; b=b7ZN9iy/GDEV1R7ZbXw3mTe4/kVfXu0KDyE0uYUBT6Z1B5xFW+GWZRT0C9ifH30u+i 48aQGFRzxcbFdbu+jA3Z6qrCloc780pxvQAz7iscY2TkVuxyZEug/8w16f1ygoaD3Kzb IXhWKC7g7Ue27Tf53Gtu3UTGTekNl4qtcTBwINwLgf2VCXR2aUeTeFCZ6ySzAw0cK5JR GE+pINhui/LDjiVTYoMk/1mkJvzUTbIIHIoR8pv1eZfWoQxV4MtpbMMVMRK2Wix+DR09 I9wTF/yQ5mw+zG4Njgc4yP2UR29TZdpGopsHWeSJuzn/b5hVhlUql4/CUd/YirM4XzUZ kxsw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:references:user-agent:from:to:cc:subject :in-reply-to:date:message-id:mime-version:content-transfer-encoding; bh=mh6QxgcwKY5T5L6qHypu+JF2R7UHCK/QOBOmOU9cB08=; b=sRtqNK4+Ub3Kxq3G/1hkCl+vuO3RdnUWrVv0W1hPDljVyKqFjrO5yyqAlnkjt7hG0m EdVHhGeAGIFqNAB61R7I7x4XketaCne+Pj+pVai1PpZG7CbMWRkwXF2LAx7YYBHxcmQ+ 3qJrn47zmUG/SZTgSZEOwcyeDqsHof9RABPsgzVlqz979uV0aZpn35VCG9FVuu4NsV/S aKwrxm33qXLVm93o/IKuQZnAcAPOZBifgpzzDmOZhEffR6c0Z8o55f/KEU0yW7iphI7L g/nv8lkqBB+9ZHokfhODsvw2G7TrsV/zDNsKVsbayxVDPlISeFopADt0QrA14dtZZ7RX goTw== X-Gm-Message-State: APjAAAU6SJeCIvuOYp7VNi1Dh0NPWhFmqIaKBqeyqKDzkN9Se2Zig3Um fhXaS7aECD7M5NPvt7oaTUBJ5+dfnOg= X-Google-Smtp-Source: APXvYqwP9I4NCkcxypGJ5c8MEDMTIEDiIJaM+pArJFb6d7Yd8LyLv2xne+LMzvUZ2z2AudXaS2gClw== X-Received: by 2002:adf:8088:: with SMTP id 8mr9121426wrl.230.1571849025998; Wed, 23 Oct 2019 09:43:45 -0700 (PDT) Original-Received: from zen.linaroharston ([51.148.130.216]) by smtp.gmail.com with ESMTPSA id p12sm23417863wrm.62.2019.10.23.09.43.45 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 23 Oct 2019 09:43:45 -0700 (PDT) Original-Received: from zen (localhost [127.0.0.1]) by zen.linaroharston (Postfix) with ESMTP id 9CEFF1FF87; Wed, 23 Oct 2019 17:43:44 +0100 (BST) In-reply-to: X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 2a00:1450:4864:20::441 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Original-Sender: "Emacs-devel" Xref: news.gmane.org gmane.emacs.devel:241365 Archived-At: Andreas Schwab writes: > On Okt 23 2019, Alex Benn=C3=A9e wrote: > >> It's reproduced for me but so far nothing obvious sticks out: >> >> (gdb) p kboard_stack >> $1 =3D (struct kboard_stack *) 0x0 >> (gdb) p single_kboard >> $2 =3D true > > What do you get as backtrace? (gdb) bt #0 0x00007f26b2234151 in __pselect (nfds=3D36, readfds=3D0x7ffd0aca0820, w= ritefds=3D0x7ffd0aca08a0, exceptfds=3D0x0, timeout=3D, sigma= sk=3D) at ../sysdeps/unix/sysv/linux/pselect.c:69 #1 0x000055ed55deb2c6 in really_call_select (arg=3D0x7ffd0aca0750) at thre= ad.c:586 #2 0x000055ed55debda9 in thread_select (func=3D, max_fds=3D= max_fds@entry=3D36, rfds=3Drfds@entry=3D0x7ffd0aca0820, wfds=3Dwfds@entry= =3D0x7ffd0aca08a0, efds=3Defds@entry=3D0x0, timeout=3Dtimeout@entry=3D0x7ff= d0aca0e50, sigmask=3D0x0) at thread.c:616 #3 0x000055ed55e0a46b in xg_select (fds_lim=3D36, rfds=3Drfds@entry=3D0x7f= fd0aca0f80, wfds=3Dwfds@entry=3D0x7ffd0aca1000, efds=3Defds@entry=3D0x0, ti= meout=3Dtimeout@entry=3D0x7ffd0aca0e50, sigmask=3Dsigmask@entry=3D0x0) at x= gselect.c:117 #4 0x000055ed55dcb974 in wait_reading_process_output (time_limit=3Dtime_li= mit@entry=3D30, nsecs=3Dnsecs@entry=3D0, read_kbd=3Dread_kbd@entry=3D-1, do= _display=3Ddo_display@entry=3Dtrue, wait_for_cell=3Dwait_for_cell@entry=3D0= x0, wait_proc=3Dwait_proc@entry=3D0x0, just_wait_proc=3D0) at process.c:5519 #5 0x000055ed55c522ee in sit_for (timeout=3Dtimeout@entry=3D0x7a, reading= =3Dreading@entry=3Dtrue, display_option=3Ddisplay_option@entry=3D1) at lisp= .h:1032 #6 0x000055ed55d26bf7 in read_char (commandflag=3D1, map=3D0x55ed60446f23,= prev_event=3D0x0, used_mouse_menu=3D0x7ffd0aca185b, end_time=3D0x0) at lis= p.h:1147 #7 0x000055ed55d2723e in read_key_sequence (keybuf=3D0x7ffd0aca1970, promp= t=3D0x0, dont_downcase_last=3D, can_return_switch_frame=3Dtr= ue, fix_current_buffer=3Dtrue, prevent_redisplay=3D) at keyb= oard.c:9543 #8 0x000055ed55d2886c in command_loop_1 () at lisp.h:1032 #9 0x000055ed55d8d5a2 in internal_condition_case (bfun=3Dbfun@entry=3D0x55= ed55d28690 , handlers=3Dhandlers@entry=3D0x90, hfun=3Dhfun@= entry=3D0x55ed55d1f9f0 ) at eval.c:1355 #10 0x000055ed55d1a8a4 in command_loop_2 (ignore=3Dignore@entry=3D0x0) at l= isp.h:1032 #11 0x000055ed55d8d521 in internal_catch (tag=3Dtag@entry=3D0x5b50, func=3D= func@entry=3D0x55ed55d1a880 , arg=3Darg@entry=3D0x0) at eva= l.c:1116 #12 0x000055ed55d1a805 in command_loop () at lisp.h:1032 #13 0x000055ed55d1f5f6 in recursive_edit_1 () at keyboard.c:714 #14 0x000055ed55d1f915 in Frecursive_edit () at keyboard.c:786 #15 0x000055ed55d8e2a3 in Ffuncall (nargs=3D1, args=3Dargs@entry=3D0x7ffd0a= ca1ca8) at lisp.h:2109 #16 0x000055ed55dc1d51 in exec_byte_code (bytestr=3D, vector= =3D, maxdepth=3D, args_template=3D, nargs=3D, args=3D) at bytecode.c:633 #17 0x000055ed55d8e1ff in Ffuncall (nargs=3D3, args=3D0x7ffd0aca2060) at ev= al.c:2808 #18 0x000055ed55d8e532 in Fapply (nargs=3Dnargs@entry=3D2, args=3Dargs@entr= y=3D0x7ffd0aca20f0) at eval.c:2424 #19 0x000055ed55d8e66c in apply1 (fn=3D, arg=3Darg@entry=3D0= x55ed5d981de3) at lisp.h:1399 #20 0x000055ed55d8e858 in call_debugger (arg=3D0x55ed5d981de3) at eval.c:339 #21 0x000055ed55d8ef01 in maybe_call_debugger (data=3D0x55ed5d1a9ec3, sig= =3D0xe520, conditions=3D0x7f26ae4ed72b) at lisp.h:1032 #22 0x000055ed55d8ef01 in signal_or_quit (error_symbol=3D0xe520, data=3D0x5= 5ed5d1a9ec3, keyboard_quit=3D) at eval.c:1666 #23 0x000055ed55c44214 in Fsignal (error_symbol=3D, error_sy= mbol@entry=3D0xe520, data=3D) at eval.c:1568 #24 0x000055ed55c4423e in xsignal (data=3D, error_symbol=3D0= xe520) at lisp.h:4138 #25 0x000055ed55c4423e in xsignal1 (error_symbol=3Derror_symbol@entry=3D0xe= 520, arg=3Darg@entry=3D0x38e2370) at eval.c:1707 #26 0x000055ed55c43b43 in Fsymbol_value (symbol=3D0x38e2370) at lisp.h:1032 #27 0x000055ed55dc1cad in exec_byte_code (bytestr=3D, vector= =3D, maxdepth=3D, args_template=3D, nargs=3D, args=3D) at bytecode.c:498 #28 0x000055ed55d8e1ff in Ffuncall (nargs=3D1, args=3Dargs@entry=3D0x7ffd0a= ca2738) at eval.c:2808 #29 0x000055ed55dc1d51 in exec_byte_code (bytestr=3D, vector= =3D, maxdepth=3D, args_template=3D, nargs=3D, args=3D) at bytecode.c:633 #30 0x000055ed55d90317 in eval_sub (form=3D) at lisp.h:2109 #31 0x000055ed55db30f8 in readevalloop (readcharfun=3D0x7020, infile0=3D0x7= ffd0aca2b50, sourcename=3D0x55ed5d5b0054, printflag=3Dfalse, unibyte=3D, readfun=3D0x0, start=3D0x0, end=3D0x0) at lread.c:2112 #32 0x000055ed55db3a31 in Fload (file=3D0x55ed5773b044, noerror=3D, nomessage=3D0x30, nosuffix=3D, must_suffix=3D) at lisp.h:1032 #33 0x000055ed55db3d1a in save_match_data_load (file=3D0x55ed5773b044, noer= ror=3Dnoerror@entry=3D0x0, nomessage=3Dnomessage@entry=3D0x30, nosuffix=3Dn= osuffix@entry=3D0x0, must_suffix=3Dmust_suffix@entry=3D0x30) at lread.c:1529 #34 0x000055ed55d8df90 in Fautoload_do_load (fundef=3D0x55ed5865d9b3, funna= me=3D0x26e0650, macro_only=3D0x0) at lisp.h:1032 #35 0x000055ed55d8e1b6 in Ffuncall (nargs=3D1, args=3Dargs@entry=3D0x7ffd0a= ca2d08) at lisp.h:1032 #36 0x000055ed55dc1d51 in exec_byte_code (bytestr=3D, vector= =3D, maxdepth=3D, args_template=3Dargs_templa= te@entry=3D0x0, nargs=3Dnargs@entry=3D0, args=3D, args@entry= =3D0x0) at bytecode.c:633 #37 0x000055ed55d9085a in funcall_lambda (fun=3D0x55ed597ce625, nargs=3D0, = arg_vector=3D0x7ffd0aca2f30) at lisp.h:1852 #38 0x000055ed55d8e1ff in Ffuncall (nargs=3D1, args=3Dargs@entry=3D0x7ffd0a= ca2f28) at eval.c:2808 #39 0x000055ed55dc1d51 in exec_byte_code (bytestr=3D, vector= =3D, maxdepth=3D, args_template=3Dargs_templa= te@entry=3D0x0, nargs=3Dnargs@entry=3D0, args=3D, args@entry= =3D0x0) at bytecode.c:633 #40 0x000055ed55d9085a in funcall_lambda (fun=3D0x55ed59866cb5, nargs=3D2, = arg_vector=3D0x7ffd0aca31c0) at lisp.h:1852 #41 0x000055ed55d8e1ff in Ffuncall (nargs=3D3, args=3Dargs@entry=3D0x7ffd0a= ca31b8) at eval.c:2808 #42 0x000055ed55dc1d51 in exec_byte_code (bytestr=3D, vector= =3D, maxdepth=3D, args_template=3Dargs_templa= te@entry=3D0x0, nargs=3Dnargs@entry=3D0, args=3D, args@entry= =3D0x0) at bytecode.c:633 #43 0x000055ed55d9085a in funcall_lambda (fun=3D0x55ed597f3495, nargs=3D2, = arg_vector=3D0x7ffd0aca34d8) at lisp.h:1852 #44 0x000055ed55d8e1ff in Ffuncall (nargs=3D3, args=3D0x7ffd0aca34d0) at ev= al.c:2808 #45 0x000055ed55d8e532 in Fapply (nargs=3Dnargs@entry=3D2, args=3Dargs@entr= y=3D0x7ffd0aca3560) at eval.c:2424 #46 0x000055ed55d8e66c in apply1 (fn=3D, arg=3D) at lisp.h:1399 #47 0x000055ed55d8d63a in internal_condition_case_1 (bfun=3Dbfun@entry=3D0x= 55ed55dc4400 , arg=3D0x55ed5c8383b3, handlers=3Dh= andlers@entry=3D0x0, hfun=3Dhfun@entry=3D0x55ed55dc4360 ) at eval.c:1379 #48 0x000055ed55dc46a9 in read_and_dispose_of_process_output (coding=3D, nbytes=3D2233, chars=3D0x7ffd0aca35f0 "POST /edit HTTP/1.1\r\n= Host: 127.0.0.1:9292\r\nUser-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:69.0= ) Gecko/20100101 Firefox/69.0\r\nAccept: */*\r\nAccept-Language: en-GB,en;q= =3D0.5\r\nAccept-Encoding: gzip, deflat"..., p=3D0xfffffffffffffffb) at lis= p.h:1286 #49 0x000055ed55dc46a9 in read_process_output (proc=3Dproc@entry=3D0x55ed5c= 7063d5, channel=3Dchannel@entry=3D10) at process.c:6062 #50 0x000055ed55dcbd28 in wait_reading_process_output (time_limit=3Dtime_li= mit@entry=3D30, nsecs=3Dnsecs@entry=3D0, read_kbd=3Dread_kbd@entry=3D-1, do= _display=3Ddo_display@entry=3Dtrue, wait_for_cell=3Dwait_for_cell@entry=3D0= x0, wait_proc=3Dwait_proc@entry=3D0x0, just_wait_proc=3D0) at process.c:5755 #51 0x000055ed55c522ee in sit_for (timeout=3Dtimeout@entry=3D0x7a, reading= =3Dreading@entry=3Dtrue, display_option=3Ddisplay_option@entry=3D1) at lisp= .h:1032 #52 0x000055ed55d26bf7 in read_char (commandflag=3D1, map=3D0x55ed5bcd8e23,= prev_event=3D0x0, used_mouse_menu=3D0x7ffd0aca516b, end_time=3D0x0) at lis= p.h:1147 #53 0x000055ed55d2723e in read_key_sequence (keybuf=3D0x7ffd0aca5280, promp= t=3D0x0, dont_downcase_last=3D, can_return_switch_frame=3Dtr= ue, fix_current_buffer=3Dtrue, prevent_redisplay=3D) at keyb= oard.c:9543 #54 0x000055ed55d2886c in command_loop_1 () at lisp.h:1032 #55 0x000055ed55d8d5a2 in internal_condition_case (bfun=3Dbfun@entry=3D0x55= ed55d28690 , handlers=3Dhandlers@entry=3D0x90, hfun=3Dhfun@= entry=3D0x55ed55d1f9f0 ) at eval.c:1355 #56 0x000055ed55d1a8a4 in command_loop_2 (ignore=3Dignore@entry=3D0x0) at l= isp.h:1032 #57 0x000055ed55d8d521 in internal_catch (tag=3Dtag@entry=3D0xd4d0, func=3D= func@entry=3D0x55ed55d1a880 , arg=3Darg@entry=3D0x0) at eva= l.c:1116 #58 0x000055ed55d1a84b in command_loop () at lisp.h:1032 #59 0x000055ed55d1f5f6 in recursive_edit_1 () at keyboard.c:714 #60 0x000055ed55d1f915 in Frecursive_edit () at keyboard.c:786 #61 0x000055ed55c483ba in main (argc=3D2, argv=3D) at emacs.= c:2055 (gdb) p kboard_stack $1 =3D (struct kboard_stack *) 0x0 (gdb) p single_kboard $2 =3D true (gdb) c Hmm is that a nested command_loop? -- Alex Benn=C3=A9e