From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED.blaine.gmane.org!not-for-mail From: =?UTF-8?Q?Jo=C3=A3o_?= =?UTF-8?Q?T=C3=A1vora?= Newsgroups: gmane.emacs.bugs Subject: bug#34394: 27.0.50; Emacs segfaults with SLY, company and C-g Date: Sat, 09 Feb 2019 14:13:52 +0000 Message-ID: <87r2chvylb.fsf@gmail.com> References: <87va1tye42.fsf@gmail.com> <83wom9o0hu.fsf@gnu.org> <87r2chxpli.fsf@gmail.com> <83k1i9nugh.fsf@gnu.org> <87mun5xko7.fsf@gmail.com> <83h8ddnouf.fsf@gnu.org> <83ftsxnnug.fsf@gnu.org> <87bm3lxgr4.fsf@gmail.com> <83ef8hnm38.fsf@gnu.org> <877ee9xfid.fsf@gmail.com> <83bm3lnkfh.fsf@gnu.org> <8736oxxdsg.fsf@gmail.com> <87va1tvz54.fsf@gmail.com> 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="211311"; mail-complaints-to="usenet@blaine.gmane.org" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.0.50 (gnu/linux) Cc: 34394@debbugs.gnu.org, schwab@linux-m68k.org To: Eli Zaretskii Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Sat Feb 09 15:15:19 2019 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([209.51.188.17]) by blaine.gmane.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1gsTPY-000skt-Jl for geb-bug-gnu-emacs@m.gmane.org; Sat, 09 Feb 2019 15:15:16 +0100 Original-Received: from localhost ([127.0.0.1]:46053 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gsTPX-0002cK-KX for geb-bug-gnu-emacs@m.gmane.org; Sat, 09 Feb 2019 09:15:15 -0500 Original-Received: from eggs.gnu.org ([209.51.188.92]:49107) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gsTPQ-0002be-56 for bug-gnu-emacs@gnu.org; Sat, 09 Feb 2019 09:15:09 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1gsTPO-0003Qs-9u for bug-gnu-emacs@gnu.org; Sat, 09 Feb 2019 09:15:08 -0500 Original-Received: from debbugs.gnu.org ([209.51.188.43]:41344) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1gsTPM-0003Pv-Mo for bug-gnu-emacs@gnu.org; Sat, 09 Feb 2019 09:15:06 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1gsTPK-0002PT-Jm for bug-gnu-emacs@gnu.org; Sat, 09 Feb 2019 09:15:04 -0500 X-Loop: help-debbugs@gnu.org Resent-From: =?UTF-8?Q?Jo=C3=A3o_?= =?UTF-8?Q?T=C3=A1vora?= Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sat, 09 Feb 2019 14:15:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 34394 X-GNU-PR-Package: emacs Original-Received: via spool by 34394-submit@debbugs.gnu.org id=B34394.15497216439186 (code B ref 34394); Sat, 09 Feb 2019 14:15:02 +0000 Original-Received: (at 34394) by debbugs.gnu.org; 9 Feb 2019 14:14:03 +0000 Original-Received: from localhost ([127.0.0.1]:40625 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1gsTON-0002O5-1q for submit@debbugs.gnu.org; Sat, 09 Feb 2019 09:14:03 -0500 Original-Received: from mail-wm1-f49.google.com ([209.85.128.49]:55293) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1gsTOK-0002NU-Ms for 34394@debbugs.gnu.org; Sat, 09 Feb 2019 09:14:01 -0500 Original-Received: by mail-wm1-f49.google.com with SMTP id a62so8575704wmh.4 for <34394@debbugs.gnu.org>; Sat, 09 Feb 2019 06:14:00 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:references:date:in-reply-to:message-id :user-agent:mime-version:content-transfer-encoding; bh=LHe/nDF0Bes3UPhC/yMtkG3WUd8Vy3UiDzc6YfKSy+A=; b=KpCok103UiL3IASAVigGEbH7LjudAVWjKk01H86sZbEWJyPDEj9kz3itMDVbE+RFgy N1L+0nJGQGp826hdOxdTqfwbbkMjyquxahIaQ0VkU0+rZY6x4OBusTdHpVnF0HQgkjnD KGtewlqOnLAE9V2qC/pdovOsjKccie7aY0MJU4vE1Xn6z7MLizmoNj5I+tXI1/lgird0 0JtE/i2oJsA7dwFhod+V9smQ2Nt9PTMNxKLxsMzIUmil3h0wKVebq8uhFc66Nt2DyQ5h lU2kgcjbnbnfmAzp6hn7o6b+gsz0ajfu/jSIgihqR0kMZtB37gUqt/NUVw2kBK/s8k14 2iGQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:references:date:in-reply-to :message-id:user-agent:mime-version:content-transfer-encoding; bh=LHe/nDF0Bes3UPhC/yMtkG3WUd8Vy3UiDzc6YfKSy+A=; b=Hkguk9UtuSfB6Kun30LmkviMhuEYO38Ml9AslmS/zFAsHRDIiIkrT+gRsnTs915bcO NrGmn/ARZTsSMF0WxyhOZ9uVOD03QqqjCuGlbbr85edXGQSYVnDeOwG72TDlrV6UKZvE jGAXOYN4v2wA/wIfXUppmSLya76mwaPG8FjsYqp/NoqYaDmbaCqNVYN3oa6tmIwcVTn2 YsVsWEezkOpILguy/NEwgs4YKv3rzjceXN3HclVh5XwWBhPtg9NyUXy1a/zxzbGz9g/w AB7R4AeK9p4luoixVPSjtt7pospkz/36Q43Tmgh7EJZ1M5b4hOl6Etcz1y1Kwh2MtKEb /ETw== X-Gm-Message-State: AHQUAuYQfYPVViOVocKxAjPX8eX0jFokHgcsN7Idna/0HzQlDCA4Ktbn A7+hP7W//XgMgQwkBsmvxzo= X-Google-Smtp-Source: AHgI3IYbQTVgja+pDHcDX9ZM6C2TydEHZfp9ubfbD91Op6dF00Ps4n4XxpZR52NMmk01i64C47Nk4w== X-Received: by 2002:adf:f3c5:: with SMTP id g5mr12052237wrp.247.1549721634765; Sat, 09 Feb 2019 06:13:54 -0800 (PST) Original-Received: from lolita.yourcompany.com (188.139.62.94.rev.vodafone.pt. [94.62.139.188]) by smtp.gmail.com with ESMTPSA id u25sm9263318wml.31.2019.02.09.06.13.53 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Sat, 09 Feb 2019 06:13:53 -0800 (PST) In-Reply-To: <87va1tvz54.fsf@gmail.com> ("=?UTF-8?Q?Jo=C3=A3o_?= =?UTF-8?Q?T=C3=A1vora?="'s message of "Sat, 09 Feb 2019 14:01:59 +0000") X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 209.51.188.43 X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Original-Sender: "bug-gnu-emacs" Xref: news.gmane.org gmane.emacs.bugs:155312 Archived-At: Jo=C3=A3o T=C3=A1vora writes: > Jo=C3=A3o T=C3=A1vora writes: > >> Eli Zaretskii writes: >> >>>> From: Jo=C3=A3o T=C3=A1vora >>>> Cc: 34394@debbugs.gnu.org, schwab@linux-m68k.org >>>> Date: Sat, 09 Feb 2019 13:23:06 +0000 >>>>=20 >>>> (gdb) p globals.f_Vquit_flag=20 >>>> $3 =3D XIL(0xc750) >>>> (gdb) xsymbol >>>> $4 =3D (struct Lisp_Symbol *) 0x555555ce94d0 >>>> "t" >>> >>> Thanks. So my theory eats dust. Hmm... I wonder if you could come >>> up with a simpler reproducer, perhaps in "emacs -nw" (which many times >>> tends to make such problems more prominent and simpler to reproduce)? >> >> OK with emacs -nw, and attaching a gdb to the PID I got a new, slightly >> different, backtrace, attached. It now breaks on a SIGINT. > > Never mind, when I do this I have an automatic breakpoint on C-g for > some reason, and that's what you are seeing. Will try to disable it to > reproduce the actual bug. So I disabled SIGINT for gdb and let it go to Emacs for keyboard-quit. I reproduced with -nw, here's the backtrace. Is it my impression or do I finally see sit_for in the bt? (I don't know, I've sent so many backtraces already) Jo=C3=A3o 69 ../sysdeps/unix/sysv/linux/pselect.c: No such file or directory. (gdb) c Continuing. Program received signal SIGABRT, Aborted. __GI_raise (sig=3Dsig@entry=3D6) at ../sysdeps/unix/sysv/linux/raise.c:50 50 ../sysdeps/unix/sysv/linux/raise.c: No such file or directory. (gdb) bt full #0 __GI_raise (sig=3Dsig@entry=3D6) at ../sysdeps/unix/sysv/linux/raise.c:= 50 set =3D {__val =3D {0, 0, 0, 7234246878190108672, 34864064603404501= 03, 8159871459836720384, 140723461185312, 612, 140723461185312, 94478308327= 698, 140723461185632, 1, 94478312982560, 140322191709231, 4222451713, 94478= 312982560}} pid =3D tid =3D ret =3D #1 0x00007f9f4e55b535 in __GI_abort () at abort.c:79 save_stage =3D 1 act =3D {__sigaction_handler =3D {sa_handler =3D 0x55ed738344b0, sa= _sigaction =3D 0x55ed738344b0}, sa_mask =3D {__val =3D {140322191709018, 20= 6158430256, 140723461185864, 140723461185664, 8159871459836720384, 3432, 14= 0322192429728, 94478313311616, 140322191129007, 1974, 94478333592752, 0, 94= 478338512400, 1, 140723461185792, 140723461186192}}, sa_flags =3D -11422676= 48, sa_restorer =3D 0x1000} sigs =3D {__val =3D {32, 0 }} #2 0x00007f9f4e5b2718 in __libc_message (action=3D, fmt=3Df= mt@entry=3D0x7f9f4e6bd088 "*** %s ***: %s terminated\n") at ../sysdeps/posi= x/libc_fatal.c:181 ap =3D {{gp_offset =3D 32, fp_offset =3D 32764, overflow_arg_area = =3D 0x7ffcbbea62a0, reg_save_area =3D 0x7ffcbbea6230}} fd =3D 10 list =3D nlist =3D cp =3D written =3D #3 0x00007f9f4e643bbd in __GI___fortify_fail_abort (need_backtrace=3Dneed_= backtrace@entry=3Dtrue, msg=3D0x7f9f4e6bd03d "longjmp causes = uninitialized stack frame") at fortify_fail.c:28 No locals. #4 0x00007f9f4e643bf1 in __GI___fortify_fail (msg=3D) at fo= rtify_fail.c:44 No locals. #5 0x00007f9f4e643aad in ____longjmp_chk () at ../sysdeps/unix/sysv/linux/= x86_64/____longjmp_chk.S:105 No locals. #6 0x00007f9f4e643a0b in __longjmp_chk (env=3D0x55ed72523238 , val=3Dval@entry=3D1) at ../setjmp/longjmp.c:39 No locals. #7 0x000055ed71ed42d4 in quit_throw_to_read_char (from_signal=3Dfrom_signa= l@entry=3Dtrue) at keyboard.c:10486 No locals. #8 0x000055ed71ed4950 in handle_interrupt (in_signal_handler=3Din_signal_h= andler@entry=3Dtrue) at keyboard.c:10461 c =3D #9 0x000055ed71ed6445 in handle_interrupt_signal (sig=3Dsig@entry=3D2) at = keyboard.c:10293 terminal =3D #10 0x000055ed71ee889b in deliver_process_signal (sig=3D2, handler=3Dhandle= r@entry=3D0x55ed71ed6417 ) at sysdep.c:1733 old_errno =3D 22 on_main_thread =3D true #11 0x000055ed71ec7f3a in deliver_interrupt_signal (sig=3D) = at keyboard.c:10300 No locals. #12 No locals. #13 0x00007f9f4e62a4a9 in __pselect (nfds=3D10, readfds=3D0x7ffcbbea6e10, w= ritefds=3D0x7ffcbbea6d90, exceptfds=3D0x0, timeout=3D, sigma= sk=3D0x0) at ../sysdeps/unix/sysv/linux/pselect.c:69 resultvar =3D 18446744073709551612 sc_ret =3D tval =3D {tv_sec =3D 0, tv_nsec =3D 330889851} data =3D {ss =3D 0, ss_len =3D 8} result =3D #14 0x000055ed71fdbc44 in really_call_select (arg=3Darg@entry=3D0x7ffcbbea6= b80) at thread.c:580 sa =3D 0x7ffcbbea6b80 self =3D 0x55ed72523160 oldset =3D {__val =3D {0, 0, 140723461188464, 94478341426928, 94478= 346665443, 94478307959952, 2000000000002, 4000000000002, 140723461188464, 9= 4478306951740, 1549721455, 94478346665475, 94478341426933, 94478306952458, = 140720308486147, 0}} #15 0x000055ed71f378b7 in flush_stack_call_func (func=3Dfunc@entry=3D0x55ed= 71fdbbf5 , arg=3Darg@entry=3D0x7ffcbbea6b80) at alloc.c= :5229 end =3D 0x7ffcbbea6b70 self =3D 0x55ed72523160 sentry =3D #16 0x000055ed71fdcfc8 in thread_select (func=3D, max_fds=3D= , rfds=3Drfds@entry=3D0x7ffcbbea6e10, wfds=3D= , efds=3Defds@entry=3D0x0, timeout=3Dtimeout@entry=3D0x7ffcbbea6d70, sigmas= k=3D0x0) at thread.c:610 sa =3D {func =3D 0x7f9f4e62a450 <__pselect>, max_fds =3D 10, rfds = =3D 0x7ffcbbea6e10, wfds =3D 0x7ffcbbea6d90, efds =3D 0x0, timeout =3D 0x7f= fcbbea6d70, sigmask =3D 0x0, result =3D 0} #17 0x000055ed71fb2392 in wait_reading_process_output (time_limit=3Dtime_li= mit@entry=3D30, nsecs=3Dnsecs@entry=3D0, read_kbd=3D-1, do_display=3Ddo_dis= play@entry=3Dtrue, wait_for_cell=3D..., wait_proc=3Dwait_proc@entry=3D0x0, = just_wait_proc=3D0) at process.c:5420 process_skipped =3D false channel =3D nfds =3D Available =3D {fds_bits =3D {952, 0 }} Writeok =3D {fds_bits =3D {0 }} check_write =3D true check_delay =3D 1 no_avail =3D false xerrno =3D 22 proc =3D {i =3D 0x55ed73cce1b5} timeout =3D {tv_sec =3D 0, tv_nsec =3D 377014395} end_time =3D timer_delay =3D got_output_end_time =3D wait =3D TIMEOUT got_some_output =3D -1 prev_wait_proc_nbytes_read =3D 0 retry_for_async =3D false count =3D 3 now =3D #18 0x000055ed71dba3ac in sit_for (timeout=3D..., timeout@entry=3D..., read= ing=3Dreading@entry=3Dtrue, display_option=3Ddisplay_option@entry=3D1) at l= isp.h:1056 sec =3D 30 nsec =3D 0 do_display =3D true #19 0x000055ed71ed8209 in read_char (commandflag=3D1, map=3D..., map@entry= =3D..., prev_event=3D..., used_mouse_menu=3Dused_mouse_menu@entry=3D0x7ffcb= bea720b, end_time=3Dend_time@entry=3D0x0) at lisp.h:751 tem0 =3D timeout =3D 30 delay_level =3D buffer_size =3D c =3D {i =3D 0x0} jmpcount =3D 3 local_getcjmp =3D {{__jmpbuf =3D {0, -8545801708543905756, 94478340= 994080, 94478333592752, 140723461190352, 0, -2502692692833570780, -85458064= 51447926748}, __mask_was_saved =3D 0, __saved_mask =3D {__val =3D {0, 94478= 346649555, 94478306900597, 3, 0, 4294967295, 3, 94478334248240, 94478307045= 825, 0, 0, 0, 25365120, 0, 94478306900597, 8194}}}} save_jump =3D {{__jmpbuf =3D {54144, 94478338512400, 1, 31056, 9447= 8313481936, 0, 2, 1}, __mask_was_saved =3D 1, __saved_mask =3D {__val =3D {= 94478306900597, 140723461186576, 94478340994085, 94478340994085, 9447830690= 2260, 140322119159976, 94478307488136, 15, 140322119159928, 140322119159976= , 94478306900597, 0, 0, 140322124526683, 94478306902260, 140322124526667}}}} tem =3D save =3D previous_echo_area_message =3D {i =3D 0x0} also_record =3D {i =3D 0x0} reread =3D false recorded =3D false polling_stopped_here =3D false orig_kboard =3D 0x55ed73850160 #20 0x000055ed71ed94f5 in read_key_sequence (keybuf=3Dkeybuf@entry=3D0x7ffc= bbea72d0, prompt=3D..., dont_downcase_last=3Ddont_downcase_last@entry=3Dfal= se, can_return_switch_frame=3Dcan_return_switch_frame@entry=3Dtrue, fix_cur= rent_buffer=3Dfix_current_buffer@entry=3Dtrue, prevent_redisplay=3Dprevent_= redisplay@entry=3Dfalse) at keyboard.c:9082 interrupted_kboard =3D 0x55ed73850160 interrupted_frame =3D 0x55ed738344b0 key =3D {i =3D 0x55ed73f43420} used_mouse_menu =3D false echo_local_start =3D 0 last_real_key_start =3D 0 keys_local_start =3D new_binding =3D count =3D 3 t =3D 0 echo_start =3D 0 keys_start =3D 0 current_binding =3D first_unbound =3D 31 mock_input =3D 0 used_mouse_menu_history =3D {false } fkey =3D {parent =3D {i =3D 0x55ed73830553}, map =3D {i =3D 0x55ed7= 3830553}, start =3D 0, end =3D 0} keytran =3D {parent =3D {i =3D 0x7f9f4a62b5cb}, map =3D {i =3D 0x7f= 9f4a62b5cb}, start =3D 0, end =3D 0} indec =3D {parent =3D {i =3D 0x55ed73830543}, map =3D {i =3D 0x55ed= 73830543}, start =3D 0, end =3D 0} shift_translated =3D false delayed_switch_frame =3D original_uppercase =3D original_uppercase_position =3D -1 dummyflag =3D false starting_buffer =3D 0x55ed73f43420 fake_prefixed_keys =3D first_event =3D second_event =3D #21 0x000055ed71edabc1 in command_loop_1 () at lisp.h:1056 cmd =3D keybuf =3D {{i =3D 0x50a0}, {i =3D 0x13e}, {i =3D 0x10a}, {i =3D 0x= 3}, {i =3D 0x3}, {i =3D 0x55ed71f64c17 }, {i =3D 0x0}, {i =3D= 0x55ed743321d3}, {i =3D 0x7ffcbbea7390}, {i =3D 0x29b1d8063918}, {i =3D 0x= 1}, {i =3D 0x0}, {i =3D 0x0}, {i =3D 0x55ed71f68fae }, {i =3D 0x2= 9b1d8063918}, {i =3D 0x55ed743321d3}, {i =3D 0x7f9f4a0c3f74}, {i =3D 0x0}, = {i =3D 0x7ffcbbea7390}, {i =3D 0x55ed71ecef45 }, {i= =3D 0x0}, {i =3D 0x55ed743321d3}, {i =3D 0x0}, {i =3D 0x55ed71ecf2bb }, {i =3D 0x0}, {i =3D 0x1}, {i =3D 0x3}, {i =3D 0x55ed71f6382b <= push_handler_nosignal+323>}, {i =3D 0x7f9f4a62e60b}, {i =3D 0x55ed7386ff30}} i =3D prev_modiff =3D 36 prev_buffer =3D 0x55ed73f43420 #22 0x000055ed71f63a96 in internal_condition_case (bfun=3Dbfun@entry=3D0x55= ed71eda943 , handlers=3D..., handlers@entry=3D..., hfun=3Dh= fun@entry=3D0x55ed71ecef6d ) at eval.c:1376 val =3D {i =3D 0xfffffffffffffffc} c =3D 0x55ed7386ff30 #23 0x000055ed71ecb494 in command_loop_2 (ignore=3D..., ignore@entry=3D...)= at lisp.h:1056 val =3D #24 0x000055ed71f639da in internal_catch (tag=3D..., func=3Dfunc@entry=3D0x= 55ed71ecb478 , arg=3D..., arg@entry=3D...) at eval.c:1139 val =3D {i =3D 0xfffffffffffffffc} c =3D 0x55ed73850230 #25 0x000055ed71ec8786 in command_loop () at lisp.h:1056 No locals. #26 0x000055ed71ece728 in recursive_edit_1 () at keyboard.c:714 count =3D 1 val =3D #27 0x000055ed71ececf0 in Frecursive_edit () at keyboard.c:785 count =3D 0 buffer =3D #28 0x000055ed71ec7154 in main (argc=3D15, argv=3D) at emacs= .c:1949 stack_bottom_variable =3D 0x55ed7201b155 <__libc_csu_init+69> do_initial_setlocale =3D no_loadup =3D false junk =3D 0x0 dname_arg =3D 0x0 ch_to_dir =3D 0x0 original_pwd =3D 0x0 dump_mode =3D skip_args =3D 1 temacs =3D 0x0 rlim =3D {rlim_cur =3D 10022912, rlim_max =3D 18446744073709551615} (gdb)=20