From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Alex =?utf-8?Q?Benn=C3=A9e?= Newsgroups: gmane.emacs.devel Subject: segfault with native-comp and rustic-mode Date: Wed, 18 Nov 2020 18:45:59 +0000 Message-ID: <87tutmld08.fsf@linaro.org> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="3065"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: mu4e 1.5.7; emacs 28.0.50 Cc: emacs-devel@gnu.org To: Andrea Corallo , Stefan Kangas Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Wed Nov 18 19:47:21 2020 Return-path: Envelope-to: ged-emacs-devel@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1kfSUD-0000et-7M for ged-emacs-devel@m.gmane-mx.org; Wed, 18 Nov 2020 19:47:21 +0100 Original-Received: from localhost ([::1]:50088 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1kfSUC-0003c6-62 for ged-emacs-devel@m.gmane-mx.org; Wed, 18 Nov 2020 13:47:20 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:33652) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kfST6-0001qV-RJ for emacs-devel@gnu.org; Wed, 18 Nov 2020 13:46:12 -0500 Original-Received: from mail-wm1-x32d.google.com ([2a00:1450:4864:20::32d]:54262) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1kfST1-0005Uq-9K for emacs-devel@gnu.org; Wed, 18 Nov 2020 13:46:12 -0500 Original-Received: by mail-wm1-x32d.google.com with SMTP id p22so4034793wmg.3 for ; Wed, 18 Nov 2020 10:46:03 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=user-agent:from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=1HiRzysqfdh3kCvTbDsneK0jvhDSpRsit0VaFu5Zv40=; b=MOUEUBKJGHbTJYqZGgI7uaQ4Vl0dAmmyqeiWqkdSnnjIRZwXYL8gTvCCt7Ms/HlxfZ fw6+eZYiJuETni6JAuPPfMa9+cdQgMZgvdlgU587q9M/JzBco5TbSsI3xFDC7HeXStvh /FpmQVgkyfetp9szHaNdUL6JoZweO7QtAx0ofuyG/hk6YGUOlhiuHxcoBnHw3/bdN3vk 2fQNIy4aW2VigHNAwrsBam/b1Zzv0H6BckUKcf/M0Egj9kTCCIttywlloXoYSCqO7qW2 D0tRoAfcq+GhrYivbhI+OKBhwBN3Fr6X/sXQP/Gn3EJOVwALBTRIjq53qtKE/GB7KQc5 7HVA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:user-agent:from:to:cc:subject:date:message-id :mime-version:content-transfer-encoding; bh=1HiRzysqfdh3kCvTbDsneK0jvhDSpRsit0VaFu5Zv40=; b=P1fijNDkQa6Cx9m7cw3r0Rs/uE7icwD35p0YqAFJzF+Tdnf0n+ideLdJx/7UqwrKz+ rhGIzsR4TZKLNKBcj/V8ypwxY2NIvqorXrjavMi35/HQm/rOluDxcDQcjLMbQ9+k/96w t5qk5qNlJagLxxHJcbWblNKha6++wtawxmTY4MJZYL1mXCO4GE8yowfLkkp5FWooCJ/Z 1tcw8uxo6W/+BTS2uhFBSJjQk6YGD6Tn9vaQfNvQi3YBxzgiWTbX4apoIsGlFSJ1fma2 VioB+1lkIGmeiyL3cmyuVOz94vtjNaGGb4ac9GLSkkJem80xG79qKcDfEAS2/yqygQXF h76g== X-Gm-Message-State: AOAM532SUULqVrC/o9luLrJANrf1YrlXWERx06Op4aj8kTrdNIZqQQNd YR3z83agO3uKp+cLGFEkOPG5CWHDxXB4pg== X-Google-Smtp-Source: ABdhPJyg11P5q4OqUrVSpBYtIEfqwuVvgnONyPxOdgCCK/3NTk/iirSUOCbDSCbeVRCVMty7QJDk0g== X-Received: by 2002:a1c:1fcc:: with SMTP id f195mr475872wmf.121.1605725161125; Wed, 18 Nov 2020 10:46:01 -0800 (PST) Original-Received: from zen.linaroharston ([51.148.130.216]) by smtp.gmail.com with ESMTPSA id 109sm35973680wra.29.2020.11.18.10.45.59 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 18 Nov 2020 10:45:59 -0800 (PST) Original-Received: from zen (localhost [127.0.0.1]) by zen.linaroharston (Postfix) with ESMTP id 4B2541FF7E; Wed, 18 Nov 2020 18:45:59 +0000 (GMT) Received-SPF: pass client-ip=2a00:1450:4864:20::32d; envelope-from=alex.bennee@linaro.org; helo=mail-wm1-x32d.google.com X-detected-operating-system: by eggs.gnu.org: No matching host in p0f cache. That's all we know. X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action 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-mx.org@gnu.org Original-Sender: "Emacs-devel" Xref: news.gmane.io gmane.emacs.devel:259376 Archived-At: Hi Andrea, I started writing some rust code today and it seems that rustic-mode (or more specifically the flycheck support from it) seems to do a good job of crashing Emacs. I'll re-build with more symbols if I can but: #0 0x00007fffd9227fcb in F7275737469632d666c79636865636b2d646972732d6c69= 7374_rustic_flycheck_dirs_list_0 () at /home/alex/.emacs.d/eln-cache/28.0.5= 0-x86_64-pc-linux-gnu-b23afb1178f44c0248e3e6e4adbf9f05/rustic-flycheck-bf9c= 74b8fb43709b580c91423f784fd1-7362c423c63e0a3f44a1739899d8d514.eln #1 0x00005555556f1dfb in Ffuncall (nargs=3D3, args=3D0x7fffffffbc50) at = lisp.h:2091 #2 0x00007fffd92289f6 in F7275737469632d666c79636865636b2d66696e642d6361= 72676f2d746172676574_rustic_flycheck_find_cargo_target_0 () at /home/alex/.= emacs.d/eln-cache/28.0.50-x86_64-pc-linux-gnu-b23afb1178f44c0248e3e6e4adbf9= f05/rustic-flycheck-bf9c74b8fb43709b580c91423f784fd1-7362c423c63e0a3f44a173= 9899d8d514.eln #3 0x00005555556f1dfb in Ffuncall (nargs=3D2, args=3D0x7fffffffbd88) at = lisp.h:2091 #4 0x00007fffd9228ef7 in F7275737469632d666c79636865636b2d7365747570_rus= tic_flycheck_setup_0 () at /home/alex/.emacs.d/eln-cache/28.0.50-x86_64-pc-= linux-gnu-b23afb1178f44c0248e3e6e4adbf9f05/rustic-flycheck-bf9c74b8fb43709b= 580c91423f784fd1-7362c423c63e0a3f44a1739899d8d514.eln #5 0x00005555556f1dfb in Ffuncall (nargs=3D1, args=3D0x7fffffffbe98) at = lisp.h:2091 #6 0x00005555556f1e29 in funcall_nil (nargs=3D, args=3D) at eval.c:2516 #7 0x00005555556f150d in run_hook_with_args (nargs=3D1, args=3D0x7ffffff= fbe98, funcall=3D0x5555556f1e20 ) at eval.c:2693 #8 0x00005555556f1674 in Frun_hook_with_args (args=3D0x7fffffffbe98, nar= gs=3D1) at eval.c:2706 #9 0x00005555556f1674 in run_hook (hook=3D) at eval.c:2706 #10 0x00005555556f1674 in Frun_hooks (nargs=3D, args=3D) at eval.c:2540 #11 0x00007fffdc1b394d in F666c79636865636b2d6d6f6465_flycheck_mode_0 () = at /home/alex/.emacs.d/eln-cache/28.0.50-x86_64-pc-linux-gnu-b23afb1178f44c= 0248e3e6e4adbf9f05/flycheck-6ebc7be56f6aa13b0f1c53191ec92f6d-51a85af8987955= 7367869f0b3840276d.eln #12 0x00005555556f1dfb in Ffuncall (nargs=3D1, args=3D0x7fffffffc0c8) at = lisp.h:2091 #13 0x00005555556f1e29 in funcall_nil (nargs=3D, args=3D) at eval.c:2516 #14 0x00005555556f150d in run_hook_with_args (nargs=3D1, args=3D0x7ffffff= fc0c8, funcall=3D0x5555556f1e20 ) at eval.c:2693 #15 0x00005555556f1674 in Frun_hook_with_args (args=3D0x7fffffffc0c8, nar= gs=3D1) at eval.c:2706 #16 0x00005555556f1674 in run_hook (hook=3D) at eval.c:2706 #17 0x00005555556f1674 in Frun_hooks (nargs=3D, args=3D) at eval.c:2540 #18 0x00005555556f1dfb in Ffuncall (nargs=3D4, args=3D0x7fffffffc160) at = lisp.h:2091 #19 0x00005555556f2088 in Fapply (nargs=3D2, args=3D0x7fffffffc260) at ev= al.c:2505 #20 0x00005555556f1dfb in Ffuncall (nargs=3D3, args=3D0x7fffffffc258) at = lisp.h:2091 #21 0x00007fffee9c542b in F72756e2d6d6f64652d686f6f6b73_run_mode_hooks_0 = () at /home/alex/src/emacs/emacs.git/src/../native-lisp/28.0.50-x86_64-pc-l= inux-gnu-b23afb1178f44c0248e3e6e4adbf9f05/subr-13adf6a6032ab09af5683e709aba= 3706-a9e966da869e434eb7d3dd4c793c8069.eln #22 0x00005555556f1dfb in Ffuncall (nargs=3D2, args=3D0x7fffffffc330) at = lisp.h:2091 #23 0x00007fffd92fda06 in F7275737469632d6d6f6465_rustic_mode_0 () at /ho= me/alex/.emacs.d/eln-cache/28.0.50-x86_64-pc-linux-gnu-b23afb1178f44c0248e3= e6e4adbf9f05/rustic-a4215d764f85b47856769ef6c555e1de-e6fc15c61c511751953a9d= fb878b4fcc.eln #24 0x00005555556f1dfb in Ffuncall (nargs=3D1, args=3Dargs@entry=3D0x7fff= ffffc498) at lisp.h:2091 #25 0x000055555572b200 in exec_byte_code (bytestr=3D, vect= or=3D, maxdepth=3D, args_template=3D, nargs=3D, args=3D) at bytecode.c:632 #26 0x00005555556f1ca9 in Ffuncall (nargs=3D3, args=3Dargs@entry=3D0x7fff= ffffc660) at eval.c:2891 #27 0x000055555572b200 in exec_byte_code (bytestr=3D, vect= or=3D, maxdepth=3D, args_template=3D, nargs=3D, args=3D) at bytecode.c:632 #28 0x00005555556f1ca9 in Ffuncall (nargs=3D1, args=3Dargs@entry=3D0x7fff= ffffc9d0) at eval.c:2891 #29 0x000055555572b200 in exec_byte_code (bytestr=3D, vect= or=3D, maxdepth=3D, args_template=3D, nargs=3D, args=3D) at bytecode.c:632 #30 0x00005555556f1ca9 in Ffuncall (nargs=3D2, args=3Dargs@entry=3D0x7fff= ffffcbc0) at eval.c:2891 #31 0x000055555572b200 in exec_byte_code (bytestr=3D, vect= or=3D, maxdepth=3D, args_template=3D, nargs=3D, args=3D) at bytecode.c:632 #32 0x00005555556f1ca9 in Ffuncall (nargs=3D3, args=3Dargs@entry=3D0x7fff= ffffceb0) at eval.c:2891 #33 0x000055555572b200 in exec_byte_code (bytestr=3D, vect= or=3D, maxdepth=3D, args_template=3D, nargs=3D, args=3D) at bytecode.c:632 #34 0x00005555556f1ca9 in Ffuncall (nargs=3D7, args=3Dargs@entry=3D0x7fff= ffffd150) at eval.c:2891 #35 0x000055555572b200 in exec_byte_code (bytestr=3D, vect= or=3D, maxdepth=3D, args_template=3D, nargs=3D, args=3D) at bytecode.c:632 #36 0x00005555556f1ca9 in Ffuncall (nargs=3D2, args=3D0x7fffffffd5a0) at = eval.c:2891 #37 0x00007fffd9320714 in F6c757374792d66696c652d6578706c6f726572_lusty_f= ile_explorer_0 () at /home/alex/.emacs.d/eln-cache/28.0.50-x86_64-pc-linux-= gnu-b23afb1178f44c0248e3e6e4adbf9f05/lusty-explorer-bd8cd4f0cf7eaeb82cda90f= e72ac4214-de3c93105e6e68d927867d7343a9057c.eln #38 0x00005555556f3f4d in eval_sub (form=3D) at lisp.h:2091 #39 0x00005555556f521d in Fprogn (body=3D0x0) at eval.c:471 #40 0x00005555556f521d in Flet (args=3D0x555559ed3083) at eval.c:999 #41 0x00005555556f3e14 in eval_sub (form=3D) at lisp.h:2091 #42 0x00005555556f42f5 in Fprogn (body=3D0x0) at eval.c:471 #43 0x00005555556f42f5 in funcall_lambda (fun=3D0x555559ed3153, nargs=3D0= , arg_vector=3D0x7fffffffda70) at eval.c:3152 #44 0x00005555556f1ca9 in Ffuncall (nargs=3Dnargs@entry=3D1, args=3Dargs@= entry=3D0x7fffffffda68) at eval.c:2891 #45 0x00005555556ee6c0 in Ffuncall_interactively (nargs=3D1, args=3D0x7ff= fffffda68) at callint.c:253 #46 0x00005555556f1dfb in Ffuncall (nargs=3D2, args=3D0x7fffffffda60) at = lisp.h:2091 #47 0x00005555556f2129 in Fapply (nargs=3Dnargs@entry=3D3, args=3Dargs@en= try=3D0x7fffffffda60) at eval.c:2458 #48 0x00005555556efcfe in Fcall_interactively (function=3D0x420bfb0, reco= rd_flag=3D0x0, keys=3D0x55555ae9d385) at lisp.h:1008 #49 0x00005555556f1dfb in Ffuncall (nargs=3D4, args=3Dargs@entry=3D0x7fff= ffffdb58) at lisp.h:2091 #50 0x000055555572b200 in exec_byte_code (bytestr=3D, vect= or=3D, maxdepth=3D, args_template=3D, nargs=3D, args=3D) at bytecode.c:632 #51 0x00005555556f1ca9 in Ffuncall (nargs=3D2, args=3D0x7fffffffdd70) at = eval.c:2891 #52 0x00005555556f1eba in call1 (fn=3Dfn@entry=3D0x44d0, arg1=3D) at eval.c:2735 #53 0x0000555555687c96 in command_loop_1 () at lisp.h:1008 #54 0x00005555556f0f62 in internal_condition_case (bfun=3Dbfun@entry=3D0x= 5555556878c0 , handlers=3Dhandlers@entry=3D0x90, hfun=3Dhfu= n@entry=3D0x55555567e720 ) at eval.c:1368 #55 0x0000555555679104 in command_loop_2 (ignore=3Dignore@entry=3D0x0) at= lisp.h:1008 #56 0x00005555556f0ee1 in internal_catch (tag=3Dtag@entry=3D0xe1c0, func= =3Dfunc@entry=3D0x5555556790e0 , arg=3Darg@entry=3D0x0) at = eval.c:1129 #57 0x00005555556790ab in command_loop () at lisp.h:1008 #58 0x000055555567e326 in recursive_edit_1 () at keyboard.c:718 #59 0x000055555567e645 in Frecursive_edit () at keyboard.c:790 #60 0x000055555559fc66 in main (argc=3D1, argv=3D) at emac= s.c:2080 Slightly fuller detail of the lower few frames: #0 0x00007fffd9227fcb in F7275737469632d666c79636865636b2d646972732d6c69= 7374_rustic_flycheck_dirs_list_0 () at /home/alex/.emacs.d/eln-cache/28.0.5= 0-x86_64-pc-linux-gnu-b23afb1178f44c0248e3e6e4adbf9f05/rustic-flycheck-bf9c= 74b8fb43709b580c91423f784fd1-7362c423c63e0a3f44a1739899d8d514.eln #1 0x00005555556f1dfb in Ffuncall (nargs=3D3, args=3D0x7fffffffbc50) at = lisp.h:2091 fun =3D original_fun =3D 0x4c6c390 funcar =3D numargs =3D 2 val =3D count =3D 31 #2 0x00007fffd92289f6 in F7275737469632d666c79636865636b2d66696e642d6361= 72676f2d746172676574_rustic_flycheck_find_cargo_target_0 () at /home/alex/.= emacs.d/eln-cache/28.0.50-x86_64-pc-linux-gnu-b23afb1178f44c0248e3e6e4adbf9= f05/rustic-flycheck-bf9c74b8fb43709b580c91423f784fd1-7362c423c63e0a3f44a173= 9899d8d514.eln #3 0x00005555556f1dfb in Ffuncall (nargs=3D2, args=3D0x7fffffffbd88) at = lisp.h:2091 fun =3D original_fun =3D 0x4c6c3c0 funcar =3D numargs =3D 1 val =3D count =3D 30 #4 0x00007fffd9228ef7 in F7275737469632d666c79636865636b2d7365747570_rus= tic_flycheck_setup_0 () at /home/alex/.emacs.d/eln-cache/28.0.50-x86_64-pc-= linux-gnu-b23afb1178f44c0248e3e6e4adbf9f05/rustic-flycheck-bf9c74b8fb43709b= 580c91423f784fd1-7362c423c63e0a3f44a1739899d8d514.eln Couldn't get much out of the assembly except of course %r12 was 0, hence the seg: #0 0x00007fffd9227fcb in F7275737469632d666c79636865636b2d646972732d6c69= 7374_rustic_flycheck_dirs_list_0 () from /home/alex/.emacs.d/eln-cache/28.0= .50-x86_64-pc-linux-gnu-b23afb1178f44c0248e3e6e4adbf9f05/rustic-flycheck-bf= 9c74b8fb43709b580c91423f784fd1-7362c423c63e0a3f44a1739899d8d514.eln =3D> 0x7fffd9227fcb : mov -0x3(%r12),%rsi 0x7fffd9227fd0 : mov %rbp,%rdi 0x7fffd9227fd3 : callq *0x2158(%rax) 0x7fffd9227fd9 : test %rax,%rax 0x7fffd9227fdc : jne 0x7fffd9228060 0x7fffd9227fe2 : mov 0xf8(%r13),%rax 0x7fffd9227fe9 : mov %rbp,0x8(%rsp) 0x7fffd9227fee : mov %r14,%rsi 0x7fffd9227ff1 : mov $0x3,%edi 0x7fffd9227ff6 : mov %r15,0x10(%rsp) $1 =3D 0x0 #1 0x00005555556f1dfb in Ffuncall (nargs=3D3, args=3D0x7fffffffbc50) at = lisp.h:2091 2091 return &XUNTAG (a, Lisp_Vectorlike, union Aligned_Lisp_Subr)->s; =3D> 0x5555556f1dfb : jmpq 0x5555556f1ca9 0x5555556f1e00 : lea 0xb8e61(%rip),%rdi # 0x55= 55557aac68 0x5555556f1e07 : xor %eax,%eax 0x5555556f1df3 : sub $0x5,%edi 0x5555556f1df6 : callq 0x5555556f3100 =3D> 0x5555556f1dfb : jmpq 0x5555556f1ca9 0x5555556f1e00 : lea 0xb8e61(%rip),%rdi # 0x55= 55557aac68 0x5555556f1e07 : xor %eax,%eax 0x5555556f1e09 : callq 0x55555559b8b3 0x5555556f1e0e : mov %r14,%rsi 0x5555556f1e11 : mov $0xf210,%edi 0x5555556f1e16 : callq 0x55555559b87c 0x5555556f1e1b: nopl 0x0(%rax,%rax,1) Anything I can do to give you better diagnostics? --=20 Alex Benn=C3=A9e