From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.devel Subject: Re: Emacs segfaults when handling wrong_type_argument backtrace Date: Thu, 30 Mar 2023 08:14:52 +0300 Message-ID: <83zg7u6cs3.fsf@gnu.org> References: <2c65531c-2d9c-3c1d-bc2a-5666a7de0a38@sft.lol> Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="40123"; mail-complaints-to="usenet@ciao.gmane.io" Cc: emacs-devel@gnu.org To: Jonas Jelten , Andrea Corallo Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Thu Mar 30 07:15:31 2023 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 1phkdH-000AGI-83 for ged-emacs-devel@m.gmane-mx.org; Thu, 30 Mar 2023 07:15:31 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1phkcY-0003yG-B1; Thu, 30 Mar 2023 01:14:46 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1phkcV-0003xo-Gg for emacs-devel@gnu.org; Thu, 30 Mar 2023 01:14:43 -0400 Original-Received: from fencepost.gnu.org ([2001:470:142:3::e]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1phkcU-0004oL-FU; Thu, 30 Mar 2023 01:14:42 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=References:Subject:In-Reply-To:To:From:Date: mime-version; bh=hbQbkk7g1gqiEZz7yeyKqAAdozFG9ghQBHhMied2RRA=; b=dMP5X0X9jucs dQWb/+vIHJzqLdJoI5YMQFZD1bLahUQgryR3new6ryvdenahhrA76vpxREiH+V1KOhH3JIRtp4+BH p2uMASMFyPeJ824BGDQqZTfxyuUfjI6655y8PRSaLBMN/KT8jp+lJotWG3sZAm9p9HZ9TCZVHXreq jKmiWPU9Lz6ujX7DYfT4hXIfl5CjEzvrDfqh+9mSKrtnQ7zL/vIEo2n6zLioyBymTsOv5HkPdYFhI un15xfTNsd48ZL0Zk+ga6ttzTzjAHiR7v/HIPFpgsnsQj/G2JIaVxnHPhiajWBi/XSvegvfMrYirQ ZDElAGnjDvRbAf5iFT0qNQ==; Original-Received: from [87.69.77.57] (helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1phkcU-0000co-0M; Thu, 30 Mar 2023 01:14:42 -0400 In-Reply-To: <2c65531c-2d9c-3c1d-bc2a-5666a7de0a38@sft.lol> (message from Jonas Jelten on Wed, 29 Mar 2023 23:54:19 +0200) X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.29 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-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Xref: news.gmane.io gmane.emacs.devel:304835 Archived-At: > Date: Wed, 29 Mar 2023 23:54:19 +0200 > From: Jonas Jelten > > Hi! > > I'm using emacs-29 at ab4273056e0ab68a27fe807b16e2995bf84b72ec with Doom Emacs with on Gentoo. > > configured with: > ./configure --prefix=/usr --build=x86_64-pc-linux-gnu --host=x86_64-pc-linux-gnu --mandir=/usr/share/man --infodir=/usr/share/info --datadir=/usr/share --sysconfdir=/etc --localstatedir=/var/lib --datarootdir=/usr/share --disable-silent-rules --docdir=/usr/share/doc/emacs-29.0.9999-r1 --htmldir=/usr/share/doc/emacs-29.0.9999-r1/html --libdir=/usr/lib64 --program-suffix=-emacs-29-vcs > --includedir=/usr/include/emacs-29-vcs --infodir=/usr/share/info/emacs-29-vcs --localstatedir=/var --enable-locallisppath=/etc/emacs:/usr/share/emacs/site-lisp --without-compress-install --without-hesiod --without-pop --with-file-notification=inotify --with-pdumper --enable-acl --with-dbus --with-modules --with-gameuser=:gamestat --with-libgmp --with-gpm --with-native-compilation=aot --with-json > --with-kerberos --with-kerberos5 --with-lcms2 --with-xml2 --with-mailutils --without-selinux --with-sqlite3 --with-gnutls --with-libsystemd --with-threads --without-tree-sitter --without-wide-int --with-sound=alsa --with-zlib --with-x --without-pgtk --without-ns --without-gconf --with-gsettings --with-toolkit-scroll-bars --with-xpm --with-xft --with-cairo --with-harfbuzz --without-libotf > --without-m17n-flt --with-x-toolkit=gtk3 --without-xwidgets --with-gif --with-jpeg --with-png --with-rsvg --with-tiff --with-webp --with-imagemagick --with-dumping=pdumper > > Launch with GDB: > gdb --args emacs --debug-init > > = gdb>> source emacs/src/.gdbinit > > > When yasnippet triggers a backtrace, Emacs crashes: > > Thread 1 "emacs" received signal SIGSEGV, Segmentation fault. > 0x000055555579d2a4 in PSEUDOVECTORP (code=, a=) at data.c:495 > 495 DEFUN ("byte-code-function-p", Fbyte_code_function_p, Sbyte_code_function_p, > > = gdb>> disassemble > Dump of assembler code for function Fbyte_code_function_p: > 0x000055555579d290 <+0>: lea edx,[rdi-0x5] > 0x000055555579d293 <+3>: xor eax,eax > 0x000055555579d295 <+5>: and edx,0x7 > 0x000055555579d298 <+8>: jne 0x55555579d2be > 0x000055555579d29a <+10>: movabs rdx,0x400000003f000000 > => 0x000055555579d2a4 <+20>: and rdx,QWORD PTR [rdi-0x5] > 0x000055555579d2a8 <+24>: movabs rcx,0x400000001e000000 > 0x000055555579d2b2 <+34>: cmp rdx,rcx > 0x000055555579d2b5 <+37>: mov edx,0x30 > 0x000055555579d2ba <+42>: cmove rax,rdx > 0x000055555579d2be <+46>: ret > End of assembler dump. Please always report bugs, including crashes, using report-emacs-bug, so that they get a bug ID and get recorded by our bug tracker. CC'ing Andrea, who made a recent change in that area.