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 12:56:15 +0000 Message-ID: <87bm3lxgr4.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> 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="94647"; 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 13:57:13 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 1gsSBy-000OOX-Ab for geb-bug-gnu-emacs@m.gmane.org; Sat, 09 Feb 2019 13:57:10 +0100 Original-Received: from localhost ([127.0.0.1]:44914 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gsSBx-0001MO-Aj for geb-bug-gnu-emacs@m.gmane.org; Sat, 09 Feb 2019 07:57:09 -0500 Original-Received: from eggs.gnu.org ([209.51.188.92]:36798) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gsSBr-0001MJ-3F for bug-gnu-emacs@gnu.org; Sat, 09 Feb 2019 07:57:04 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1gsSBp-00078F-RL for bug-gnu-emacs@gnu.org; Sat, 09 Feb 2019 07:57:03 -0500 Original-Received: from debbugs.gnu.org ([209.51.188.43]:41267) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1gsSBp-000784-ND for bug-gnu-emacs@gnu.org; Sat, 09 Feb 2019 07:57:01 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1gsSBp-0000WL-KG for bug-gnu-emacs@gnu.org; Sat, 09 Feb 2019 07:57:01 -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 12:57:01 +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.15497169861960 (code B ref 34394); Sat, 09 Feb 2019 12:57:01 +0000 Original-Received: (at 34394) by debbugs.gnu.org; 9 Feb 2019 12:56:26 +0000 Original-Received: from localhost ([127.0.0.1]:40548 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1gsSBG-0000VX-A0 for submit@debbugs.gnu.org; Sat, 09 Feb 2019 07:56:26 -0500 Original-Received: from mail-wm1-f48.google.com ([209.85.128.48]:51505) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1gsSBE-0000VL-9U for 34394@debbugs.gnu.org; Sat, 09 Feb 2019 07:56:24 -0500 Original-Received: by mail-wm1-f48.google.com with SMTP id b11so8323080wmj.1 for <34394@debbugs.gnu.org>; Sat, 09 Feb 2019 04:56:24 -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=nmKJivTuacRe0+CfP8B2hrwqmr1inn9zVImEyxyuZPI=; b=uHepLOz71yqoaWeZE/uFOYM7eY7PfyDz1YKEQtAXKsk//OWOWEGbbx1JpFFw5g/Fc3 Cl3ahZXZIY4tMV1L9PxWIe/OADH/RtGDkhPha8zR4OLjKQatFnbcfAs2PsbW+afI+oIU qmVGGt340cZF8psyPd/dxzLLiFrEi9vuQjU2FzeUDepZxZga/6xyyGmnC8lhyP2+E/s7 bR0/utpM2+aJenkIWiq7/bTXgoAXWW6nfME6FREDBel1ZgPqsWc/XwoE1G29e2Oby+iw vCLxWxQv4wapgCCSvm2mWQIzOUwv3shsR5cs2ezIOUyh/GFIreIa0IeHLkpBsxvbK+QL Rh3Q== 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=nmKJivTuacRe0+CfP8B2hrwqmr1inn9zVImEyxyuZPI=; b=bygwe12PNGW6Tv0GQrzs0Yx3B+jAu240cFRdZ1n/vkntt6n4pZZ/FN1fwTrNyfzmed mBLmpOGjbctoHHB5iCHsElC2eNVXFHh39nUKt8XBrSDUxcfxicFMRprHDB+rn7GnwDhZ hbowWY+7dIteTayG3N0uVWZgkUJoZQPgAbWFzPMFmp9bG+dYmxREMEU8RHv68fWPDI/g LxpR4M1Bh43gMCQlGLyuDyHT0M/oMs85X3HrJi+wMvn9SP1636JtUUTt5xgmDqj4c2s6 +BC962AHPzkMZf+p6VxfatrPkT8ya2lMXDWChvYX5ipnmgINdQT9EjBYtkwN71DRnKRn AyrA== X-Gm-Message-State: AHQUAuaoIQ3yuZV14TBy2DiD7OKkaZp6FtPEIyZtxCxA5zQGf02sVqKs +OUNzL3/60a7anxcB2ST0q4= X-Google-Smtp-Source: AHgI3IYF6L8Vc47FItcenkVKqJj8GWxVtKIRMAtHAL3rpkaNRqOZ82wiobX++rYARhFIwf8Cz1NRmA== X-Received: by 2002:a1c:f916:: with SMTP id x22mr2909838wmh.87.1549716978152; Sat, 09 Feb 2019 04:56:18 -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 m21sm8759175wmi.43.2019.02.09.04.56.16 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Sat, 09 Feb 2019 04:56:17 -0800 (PST) In-Reply-To: <83ftsxnnug.fsf@gnu.org> (Eli Zaretskii's message of "Sat, 09 Feb 2019 14:33:11 +0200") 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:155302 Archived-At: Eli Zaretskii writes: >> Date: Sat, 09 Feb 2019 14:11:36 +0200 >> From: Eli Zaretskii >> Cc: 34394@debbugs.gnu.org, schwab@linux-m68k.org >>=20 >> Type "up" until you get into a call-stack frame in our sources, which >> should be this: >> Then just "p Vquit_flag" should do. Yes, it is a global. > > More accurately, it's a macro that expands to a global. If just > typing "p Vquit_flag" doesn't work, try "p globals.f_Vquit_flag". Oh right. That was needed ('up' isn't needed and I was already in frame 8 anyway). Anyway it's XIL(0xc750) (gdb) p globals.f_Vquit_flag=20 $1 =3D XIL(0xc750) Backtrace attached. Jo=C3=A3o gdb --args ./emacs -Q -L ~/Source/Emacs/sly -l sly-autoloads -L ~/Source/Em= acs/company-mode -l ~/Source/Emacs/company-mode/company.el -f global-compan= y-mode -f sly GNU gdb (Debian 8.2-1) 8.2 Copyright (C) 2018 Free Software Foundation, Inc. License GPLv3+: GNU GPL version 3 or later This is free software: you are free to change and redistribute it. There is NO WARRANTY, to the extent permitted by law. Type "show copying" and "show warranty" for details. This GDB was configured as "x86_64-linux-gnu". Type "show configuration" for configuration details. For bug reporting instructions, please see: . Find the GDB manual and other documentation resources online at: . For help, type "help". Type "apropos word" to search for commands related to "word"... Reading symbols from ./emacs...done. SIGINT is used by the debugger. Are you sure you want to change it? (y or n) [answered Y; input not from te= rminal] DISPLAY =3D :0 TERM =3D xterm Breakpoint 1 at 0x15015c: file emacs.c, line 370. Temporary breakpoint 2 at 0x172efd: file lisp.h, line 1056. (gdb) r Starting program: /home/capitaomorte/Source/Emacs/emacs-master/src/emacs -Q= -L /home/capitaomorte/Source/Emacs/sly -l sly-autoloads -L /home/capitaomo= rte/Source/Emacs/company-mode -l /home/capitaomorte/Source/Emacs/company-mo= de/company.el -f global-company-mode -f sly [Thread debugging using libthread_db enabled] Using host libthread_db library "/lib/x86_64-linux-gnu/libthread_db.so.1". [Detaching after vfork from child process 16838] [Detaching after vfork from child process 16846] [Detaching after vfork from child process 16847] *** longjmp causes uninitialized stack frame ***: /home/capitaomorte/Source= /Emacs/emacs-master/src/emacs terminated 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) where #0 __GI_raise (sig=3Dsig@entry=3D6) at ../sysdeps/unix/sysv/linux/raise.c:= 50 #1 0x00007ffff4f6d535 in __GI_abort () at abort.c:79 #2 0x00007ffff4fc4718 in __libc_message (action=3D, fmt=3Df= mt@entry=3D0x7ffff50cf088 "*** %s ***: %s terminated\n") at ../sysdeps/posi= x/libc_fatal.c:181 #3 0x00007ffff5055bbd in __GI___fortify_fail_abort (need_backtrace=3Dneed_= backtrace@entry=3Dtrue,=20 msg=3D0x7ffff50cf03d "longjmp causes uninitialized stack = frame") at fortify_fail.c:28 #4 0x00007ffff5055bf1 in __GI___fortify_fail (msg=3D) at fo= rtify_fail.c:44 #5 0x00007ffff5055aad in ____longjmp_chk () at ../sysdeps/unix/sysv/linux/= x86_64/____longjmp_chk.S:105 #6 0x00007ffff5055a0b in __longjmp_chk (env=3D0x555555d01238 , val=3Dval@entry=3D1) at ../setjmp/longjmp.c:39 #7 0x00005555556b22d4 in quit_throw_to_read_char (from_signal=3Dfrom_signa= l@entry=3Dfalse) at keyboard.c:10486 #8 0x00005555556ba3cd in set_waiting_for_input (time_to_clear=3Dtime_to_cl= ear@entry=3D0x7fffffffd130) at keyboard.c:10253 #9 0x000055555579007c 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,=20 wait_for_cell=3D..., wait_proc=3Dwait_proc@entry=3D0x0, just_wait_proc= =3D0) at process.c:5212 #10 0x00005555555983ac in sit_for (timeout=3D..., timeout@entry=3Dmake_numb= er(30), reading=3Dreading@entry=3Dtrue, display_option=3Ddisplay_option@ent= ry=3D1) at lisp.h:1056 #11 0x00005555556b6209 in read_char (commandflag=3D1, map=3D..., map@entry= =3DXIL(0x555556b12603), prev_event=3DXIL(0), used_mouse_menu=3Dused_mouse_m= enu@entry=3D0x7fffffffd5cb,=20 end_time=3Dend_time@entry=3D0x0) at lisp.h:751 #12 0x00005555556b74f5 in read_key_sequence (keybuf=3Dkeybuf@entry=3D0x7fff= ffffd690, prompt=3DXIL(0x555555d68c90), dont_downcase_last=3Ddont_downcase_= last@entry=3Dfalse,=20 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 #13 0x00005555556b8bc1 in command_loop_1 () at lisp.h:1056 #14 0x0000555555741a96 in internal_condition_case (bfun=3Dbfun@entry=3D0x55= 55556b8943 , handlers=3D..., handlers@entry=3DXIL(0x55b0),= =20 hfun=3Dhfun@entry=3D0x5555556acf6d ) at eval.c:1376 #15 0x00005555556a9494 in command_loop_2 (ignore=3D..., ignore@entry=3DXIL(= 0)) at lisp.h:1056 #16 0x00005555557419da in internal_catch (tag=3D..., func=3Dfunc@entry=3D0x= 5555556a9478 , arg=3D..., arg@entry=3DXIL(0)) at eval.c:1139 #17 0x00005555556a6786 in command_loop () at lisp.h:1056 #18 0x00005555556ac728 in recursive_edit_1 () at keyboard.c:714 #19 0x00005555556accf0 in Frecursive_edit () at keyboard.c:785 #20 0x00005555556a5154 in main (argc=3D14, argv=3D) at emacs= .c:1949 (gdb) frame 7 #7 0x00005555556b22d4 in quit_throw_to_read_char (from_signal=3Dfrom_signa= l@entry=3Dfalse) at keyboard.c:10486 10486 sys_longjmp (getcjmp, 1); (gdb) p Vquit_flag No symbol "Vquit_flag" in current context. (gdb) p glob glob glob64-lstat-compat.c glob@GLIBC_2.2.5 glob_p= attern_p globalNamespace globals globfree64.c glob-lstat-compat.c glob64.c glob@got.plt glob_p= attern_p.c global_code globals.h globfree@got= .plt glob.c glob64@@GLIBC_2.27 glob@plt glob_t= global_lock globfree globfree@plt glob.h glob64@GLIBC_2.2.5 glob_in_dir global= global_map globfree.c=20=20=20=20=20=20=20=20= =20=20=20=20=20 glob64 glob@@GLIBC_2.27 glob_internal.h global= -locale.c global_max_fast globfree64=20=20=20=20=20=20=20=20= =20=20=20=20=20 (gdb) p global global global-locale.c globalNamespace global_code global_= lock global_map global_max_fast globals globals.h (gdb) p globals.f_Vquit_flag=20 $1 =3D XIL(0xc750) (gdb) p *globals.f_Vquit_flag=20 Structure has no component named operator*. (gdb)=20