From debbugs-submit-bounces@debbugs.gnu.org Mon Apr 01 06:54:41 2024 Received: (at submit) by debbugs.gnu.org; 1 Apr 2024 10:54:41 +0000 Received: from localhost ([127.0.0.1]:49699 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1rrFJH-0006Li-KP for submit@debbugs.gnu.org; Mon, 01 Apr 2024 06:54:41 -0400 Received: from lists.gnu.org ([2001:470:142::17]:53680) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1rrFJE-0006LU-K8 for submit@debbugs.gnu.org; Mon, 01 Apr 2024 06:54:38 -0400 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 1rrFJ6-0000mp-1z for bug-gnu-emacs@gnu.org; Mon, 01 Apr 2024 06:54:28 -0400 Received: from mail-lj1-x22b.google.com ([2a00:1450:4864:20::22b]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1rrFJ2-0004EP-Mw for bug-gnu-emacs@gnu.org; Mon, 01 Apr 2024 06:54:27 -0400 Received: by mail-lj1-x22b.google.com with SMTP id 38308e7fff4ca-2d109e82bd0so51187721fa.3 for ; Mon, 01 Apr 2024 03:54:24 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1711968863; x=1712573663; darn=gnu.org; h=content-transfer-encoding:mime-version:message-id:date:subject:to :from:from:to:cc:subject:date:message-id:reply-to; bh=dNdAmlGH1hNINJMdTJgSJOrVLzYcCE4X4E5XLdyT4qo=; b=S63s/Hddg1/6/wZc8YfSlXior/V1LpyUSGk61I7a3j8cSP6RzE9/GsKe5+cdeJQpI3 UMKsdnP1vwmN1H/PxUSzTtODyXXaSKuhV3EU/m8lcEPNOKc6shmKoALfcs9ASKNbnQ4M fCxkLasK2LPkeCVnsUft1yCMYO87PvkGNQurPb7x5LXxezPMTshG0Zuqzqz7S09fl1Ki gnQLAQ/3gyrUBpCcvg4V2LaeKseej9dRXsMi6iQ2uxKVI9xP8sRBoptZ+FUoWXS5ezgm thEYeL3LMZU8218lRPHkSc6KzQ1kdmb4jdzd3mDViyEYGaKNXibR3uPUJRyFwGUSBFRL TGsQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1711968863; x=1712573663; h=content-transfer-encoding:mime-version:message-id:date:subject:to :from:x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=dNdAmlGH1hNINJMdTJgSJOrVLzYcCE4X4E5XLdyT4qo=; b=UhIskR3pEMbMACByUo8v5NycKH0H+Xp4xKDl72c7PCUzP9orTp+Fl2ummTgKwh/pfU C0JsLvVpEPoMIx7+wSPaONPZD4fIJrvV5lVcclyVyYIoVoqXB8W0M+AP6R55IoOY40oh XaboInsdkaE3Qy2qH7Ly1r4neY7nCbaKsNTk4isAODUauNqWrmXheCFwD2bQiNVln5Z2 Ws/RCv57BgCTzaAIUTIfq4OOLYvkVeOqAx7OSe4KPdJ0HtpOaS8vqJR7sLwKIi00l/B8 /yOxtO6Y5pFSZeLLYKDbSS7QRvqOvK/j8D3Dodbpf2nlqJadV2rvlgfNgC0zsqdpxspd fkEQ== X-Gm-Message-State: AOJu0Yx8+QduAvGwPuc/ltz/wgQTHVKwqS9EWm2b6uUK2Jk9JTKVGjte y/WUC7ld0ginbWP9P7+tWCkGFIqk9wPhRa3FYK9md3yTFZ8CX3tP/wYTLIV/ X-Google-Smtp-Source: AGHT+IGPW6nNHOWzXYmSCJjC3tbJz3LM8DRDU/BZ0xMQNtfB9qX7h3+WsTilgarg/wCf1lh0Zuy53A== X-Received: by 2002:a05:6512:457:b0:513:cc4c:72ae with SMTP id y23-20020a056512045700b00513cc4c72aemr6968262lfk.42.1711968862467; Mon, 01 Apr 2024 03:54:22 -0700 (PDT) Received: from gabor.localnet ([2001:9e8:1577:be00:e9eb:aba6:d290:d015]) by smtp.gmail.com with ESMTPSA id e18-20020a056402149200b0056dda9dddf1sm512205edv.18.2024.04.01.03.54.21 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 01 Apr 2024 03:54:21 -0700 (PDT) From: Braun =?ISO-8859-1?Q?G=E1bor?= To: bug-gnu-emacs@gnu.org Subject: 29.3.50; Crash via indirect buffers Date: Mon, 01 Apr 2024 12:54:20 +0200 Message-ID: <12427969.O9o76ZdvQC@gabor> MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="utf-8" Received-SPF: pass client-ip=2a00:1450:4864:20::22b; envelope-from=braungb88@gmail.com; helo=mail-lj1-x22b.google.com X-Spam_score_int: -17 X-Spam_score: -1.8 X-Spam_bar: - X-Spam_report: (-1.8 / 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, FREEMAIL_ENVFROM_END_DIGIT=0.25, FREEMAIL_FROM=0.001, 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-Spam-Score: 1.2 (+) X-Spam-Report: Spam detection software, running on the system "debbugs.gnu.org", has NOT identified this incoming email as spam. The original message has been attached to this so you can view it or label similar future email. If you have any questions, see the administrator of that system for details. Content preview: Hi, After building Emacs from source, I have added the following file to the build directory: File ./bug-indirect-crash.el Content analysis details: (1.2 points, 10.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- 0.0 FREEMAIL_FROM Sender email is commonly abused enduser mail provider (braungb88[at]gmail.com) 0.2 FREEMAIL_ENVFROM_END_DIGIT Envelope-from freemail username ends in digit (braungb88[at]gmail.com) 1.0 SPF_SOFTFAIL SPF: sender does not match SPF record (softfail) -0.0 SPF_HELO_PASS SPF: HELO matches SPF record X-Debbugs-Envelope-To: submit X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: 0.2 (/) Hi, After building Emacs from source, I have added the following file to the build directory: =46ile ./bug-indirect-crash.el ;;; bug-indirect-crash.el --- Crash via indirect buffer -*-=20 lexical-binding: t; coding: utf-8; -*- ;;; Commentary: ;; Crash Emacs by stupid use of indirect buffers. ;;; Code: (let (buffer) (with-temp-buffer (with-current-buffer (setq buffer (make-indirect-buffer (current-buffer) (generate-new-buffer-name "indirect"))) (setq-local kill-buffer-query-functions (list #'ignore)))) (with-demoted-errors "Error: %S" (set-buffer buffer)) (message "Current buffer: %s" (current-buffer)) (insert ?A)) ;;; bug-indirect-crash.el ends here. End of file./bug-indirect-crash.el Below is the command I have run Emacs and the output of the=20 command: $ src/emacs -Q --batch -l ./bug-indirect-crash.el=20 Error: (error "Marker does not point anywhere") Current buffer: indirect =46atal error 11: Segmentation fault I find the error about the marker weird, have no idea which marker=20 it is. I expect an error like "Selecting deleted buffer" instead. I also find the second line strange: (seemingly an indirect buffer is current whose base buffer is=20 killed). gdb session: Current directory is /home/gabor/src/build/emacs-29.3/src/ GNU gdb (Debian 13.1-3) 13.1 Reading symbols from /home/gabor/src/build/emacs-29.3/src/emacs... SIGINT is used by the debugger. Are you sure you want to change it? (y or n) [answered Y; input=20 not from terminal] DISPLAY =3D :0 TERM =3D dumb Breakpoint 2 at 0x13a480: file ../../../emacs/src/xterm.c, line=20 26136. =2Egdbinit:1: Error in sourced command file: /home/gabor/src/build/emacs-29.3/../../emacs/src/.gdbinit:1375:=20 Error in sourced command file: Scripting in the "Python" language is not supported in this copy=20 of GDB. Downloading source file /home/gabor/src/build/emacs-29.3/src/ ... (gdb) run Starting program: /home/gabor/src/build/emacs-29.3/src/emacs -Q -- batch -l ../bug-indirect-crash.el Downloading separate debug info for system-supplied DSO at=20 0x7ffff7fc9000... Downloading separate debug info for /lib/x86_64-linux-gnu/ libdbus-1.so.3... [Thread debugging using libthread_db enabled] Using host libthread_db library "/lib/x86_64-linux-gnu/ libthread_db.so.1". Downloading separate debug info for /usr/lib/x86_64-linux-gnu/ libfribidi.so.0... Program received signal SIGSEGV, Segmentation fault. Download failed: Invalid argument. Continuing without source file=20 =2E/string/../sysdeps/x86_64/multiarch/memmove-vec-unaligned-erms.S. __memcpy_avx_unaligned_erms () at ../sysdeps/x86_64/multiarch/ memmove-vec-unaligned-erms.S:331 Download failed: Invalid argument. Continuing without source file=20 =2E/string/../sysdeps/x86_64/multiarch/memmove-vec-unaligned-erms.S. 331 ../sysdeps/x86_64/multiarch/memmove-vec-unaligned- erms.S: No such file or directory. (gdb) Download failed: Invalid argument. Continuing without=20 source file ./string/../sysdeps/x86_64/multiarch/memmove-vec- unaligned-erms.S. bt full #0 __memcpy_avx_unaligned_erms () at ../sysdeps/x86_64/multiarch/ memmove-vec-unaligned-erms.S:331 No locals. #1 0x00005555556ffc43 in insert_1_both=20 (string=3Dstring@entry=3D0x7fffffffdb6b "AUU", nchars=3Dnchars@entry=3D1,=20 nbytes=3Dnbytes@entry=3D1, inherit=3Dinherit@entry=3Dfalse,=20 prepare=3Dprepare@entry=3Dtrue,=20 before_markers=3Dbefore_markers@entry=3Dfalse) at ../../../emacs/src/ insdel.c:918 No locals. #2 0x0000555555700260 in insert_1_both (before_markers=3Dfalse,=20 prepare=3Dtrue, inherit=3Dfalse, nbytes=3D1, nchars=3D1,=20 string=3D0x7fffffffdb6b "AUU") at ../../../emacs/src/insdel.c:888 No locals. #3 insert (string=3D0x7fffffffdb6b "AUU", nbytes=3D1) at ../../../ emacs/src/insdel.c:679 len =3D 1 opoint =3D #4 0x000055555574dc18 in general_insert_function=20 (insert_func=3D0x5555557002b0 ,=20 insert_from_string_func=3D0x555555700580 ,=20 inherit=3Dinherit@entry=3Dfalse, nargs=3D1, args=3D0x7fffffffdbc0) at=20 =2E./../../emacs/src/editfns.c:1353 c =3D str =3D "AUU\000" len =3D argnum =3D 0 val =3D #5 0x000055555574dcaf in Finsert (nargs=3D,=20 args=3D) at ../../../emacs/src/editfns.c:1393 No locals. #6 0x000055555575fdb7 in eval_sub (form=3D) at=20 =2E./../../emacs/src/eval.c:2474 vals =3D 0x7fffffffdbc0 argnum =3D sa_avail =3D sa_count =3D { bytes =3D 1184 } args_left =3D numargs =3D 1 original_fun =3D original_args =3D 0x555555eb48c3 count =3D fun =3D val =3D funcar =3D argvals =3D {0x7ffff1a7e70d, 0x55555575c1f2 ,=20 0x555555eb4000, 0x55555576a3a4 , 0xb, 0xd500, 0x0,=20 0x555555eb4e33} retry =3D #7 0x0000555555761be5 in Fprogn (body=3D0x0) at ../../../emacs/src/ eval.c:436 form =3D val =3D 0x555555ed1d94 val =3D form =3D #8 Flet (args=3D0x555555eb42b3) at ../../../emacs/src/eval.c:1026 temps =3D 0x7fffffffdc80 tem =3D lexenv =3D 0x555555eb42e3 elt =3D count =3D { bytes =3D 1120 } argnum =3D sa_avail =3D sa_count =3D { bytes =3D 1120 } varlist =3D varlist_len =3D nvars =3D #9 0x000055555575fef7 in eval_sub (form=3D) at=20 =2E./../../emacs/src/eval.c:2453 args_left =3D 0x555555eb42b3 numargs =3D 5 original_fun =3D 0xa560 original_args =3D 0x555555eb42b3 count =3D fun =3D val =3D funcar =3D argvals =3D {0x0, 0x555555786954=20 , 0x36, 0x1, 0x2aaa9c0d7690,=20 0x555555eb4e53, 0x30, 0x7fffffffde00} retry =3D #10 0x000055555578e869 in readevalloop=20 (readcharfun=3Dreadcharfun@entry=3D0x555555ec6f8d,=20 infile0=3Dinfile0@entry=3D0x0,=20 sourcename=3Dsourcename@entry=3D0x555555ed0144,=20 printflag=3Dprintflag@entry=3Dfalse, unibyte=3Dunibyte@entry=3D0x0,=20 readfun=3Dreadfun@entry=3D0x0, start=3D0x0, end=3D) at=20 =2E./../../emacs/src/lread.c:2348 count1 =3D c =3D val =3D 0x555555eb4e53 count =3D b =3D continue_reading_p =3D true lex_bound =3D whole_buffer =3D true first_sexp =3D macroexpand =3D 0x2aaa9c0d7690 #11 0x000055555578f967 in Feval_buffer (buffer=3D,=20 printflag=3D0x0, filename=3D0x555555ed0144, unibyte=3D0x0,=20 do_allow_print=3D) at ../../../emacs/src/lread.c:2421 count =3D tem =3D buf =3D 0x555555ec6f8d #12 0x00005555557a4e92 in exec_byte_code (fun=3D,=20 args_template=3D, nargs=3D,=20 args=3D) at ../../../emacs/src/bytecode.c:809 call_nargs =3D 5 call_fun =3D count1 =3D template =3D val =3D call_args =3D 0x7ffff11ff290 original_fun =3D 0x2aaa9bfe9d40 bytecode =3D op =3D 5 type =3D targets =3D {0x5555555a4e6a ,=20 0x5555557a527d , 0x5555557a5278=20 , 0x5555557a5273 ,=20 0x5555557a4c8e , 0x5555557a4c8e=20 , 0x5555557a523f ,=20 0x5555557a520b , 0x5555557a59e1=20 , 0x5555557a59dc ,=20 0x5555557a59d7 , 0x5555557a59d2=20 , 0x5555557a4cbd ,=20 0x5555557a4cc0 , 0x5555557a59c4=20 , 0x5555557a59e6 ,=20 0x5555557a5a71 , 0x5555557a5a6c=20 , 0x5555557a5a67 ,=20 0x5555557a5a62 , 0x5555557a4c1a=20 , 0x5555557a4c20 ,=20 0x5555557a5a46 , 0x5555557a5a54=20 , 0x5555557a59f9 ,=20 0x5555557a59f4 , 0x5555557a5fb5=20 , 0x5555557a5fb0 ,=20 0x5555557a4f1a , 0x5555557a4f20=20 , 0x5555557a5a0c ,=20 0x5555557a59fe , 0x5555557a5f8f=20 , 0x5555557a5f8a ,=20 0x5555557a5f85 , 0x5555557a5f80=20 , 0x5555557a4d2b ,=20 0x5555557a4d30 , 0x5555557a5fa2=20 , 0x5555557a5f94 ,=20 0x5555557a5f5f , 0x5555557a5f5a=20 , 0x5555557a5f55 ,=20 0x5555557a5f50 , 0x5555557a4f63=20 , 0x5555557a4f68 ,=20 0x5555557a5f72 , 0x5555557a5f64=20 , 0x5555557a5bc9 ,=20 0x5555557a5bf6 , 0x5555557a5c60=20 , 0x5555555a4e6a ,=20 0x5555555a4e6a , 0x5555555a4e6a=20 , 0x5555555a4e6a ,=20 0x5555555a4e6a , 0x5555557a6ddf=20 , 0x5555557a6d73 ,=20 0x5555557a6d37 , 0x5555557a6cfb=20 , 0x5555557a6cbd ,=20 0x5555557a5ae3 , 0x5555557a5aaa=20 , 0x5555557a6c92 ,=20 0x5555557a5b95 , 0x5555557a5a76=20 , 0x5555557a6c59 ,=20 0x5555557a6c30 , 0x5555557a6bf7=20 , 0x5555557a6bc1 ,=20 0x5555557a6b87 , 0x5555557a6b22=20 , 0x5555557a6ab4 ,=20 0x5555557a6a3f , 0x5555557a6a16=20 , 0x5555557a69ed ,=20 0x5555557a69b4 , 0x5555557a697b=20 , 0x5555557a6942 ,=20 0x5555557a6905 , 0x5555557a68d2=20 , 0x5555557a689f ,=20 0x5555557a686c , 0x5555557a67db=20 , 0x5555557a6786 ,=20 0x5555557a673c , 0x5555557a66ef=20 , 0x5555557a66a2 ,=20 0x5555557a6655 , 0x5555557a6608=20 , 0x5555557a65b7 ,=20 0x5555557a6561 , 0x5555557a6510=20 , 0x5555557a64bf ,=20 0x5555557a646e , 0x5555557a641c=20 , 0x5555557a6340 ,=20 0x5555557a4fa9 , 0x5555557a6317=20 , 0x5555557a62e9 ,=20 0x5555557a626a , 0x5555557a6227=20 , 0x5555557a61fe ,=20 0x5555557a61d3 , 0x5555557a61a8=20 , 0x5555557a6175 ,=20 0x5555557a614a , 0x5555555a4e6a=20 , 0x5555557a611f ,=20 0x5555557a60f4 , 0x5555557a60c9=20 , 0x5555557a609e ,=20 0x5555557a6073 , 0x5555557a604a=20 , 0x5555557a4fa9 ,=20 0x5555555a4e6a , 0x5555557a600c=20 , 0x5555557a5fe3 ,=20 0x5555557a5fba , 0x5555557a58cb=20 , 0x5555557a5892 ,=20 0x5555557a5869 , 0x5555557a5840=20 , 0x5555557a5807 ,=20 0x5555557a57ce , 0x5555557a5795=20 , 0x5555557a576a ,=20 0x5555557a5741 , 0x5555555a4e6a=20 , 0x5555557a5d50 ,=20 0x5555557a5ee1 , 0x5555557a598a=20 , 0x5555557a5ea7 ,=20 0x5555557a5e70 , 0x5555557a5e39=20 , 0x5555557a5da2 ,=20 0x5555557a5d84 , 0x5555557a5a1a=20 , 0x5555557a5d32 ,=20 0x5555557a5cd6 , 0x5555557a5ca8=20 , 0x5555557a5c68 ,=20 0x5555557a6efb , 0x5555557a6ebe=20 , 0x5555557a6e7b ,=20 0x5555557a6e25 , 0x5555555a4e6a=20 , 0x5555557a5704 ,=20 0x5555557a56db , 0x5555557a56b2=20 , 0x5555557a5689 ,=20 0x5555557a5660 , 0x5555557a5627=20 , 0x5555557a55ee ,=20 0x5555557a55b5 , 0x5555557a557c=20 , 0x5555557a552f ,=20 0x5555557a54f6 , 0x5555557a54bd=20 , 0x5555557a5497 ,=20 0x5555557a543c , 0x5555557a53e1=20 , 0x5555557a53ae ,=20 0x5555557a537b , 0x5555557a534b=20 , 0x5555557a63cb ,=20 0x5555557a6383 , 0x5555557a52e5=20 , 0x5555557a5282 ,=20 0x5555555a4e6a , 0x5555555a4e6a=20 , 0x5555555a4e6a ,=20 0x5555555a4e6a , 0x5555555a4e6a=20 , 0x5555555a4e6a ,=20 0x5555557a6b4b , 0x5555557a6830=20 , 0x5555557a62ad ,=20 0x5555557a51cf , 0x5555557a5193=20 , 0x5555555a4e6a ,=20 0x5555555a4e6a , 0x5555557a5164=20 , 0x5555557a5934 ,=20 0x5555555a4e6a , 0x5555555a4e6a=20 , 0x5555555a4e6a ,=20 0x5555555a4e6a , 0x5555555a4e6a=20 , 0x5555555a4e6a ,=20 0x5555555a4e6a , 0x5555555a4e6a=20 , 0x5555557a5904 =20 } quitcounter =3D 1 '\001' bc =3D 0x555555cf3e70 top =3D pc =3D bytestr =3D vector =3D maxdepth =3D const_length =3D bytestr_length =3D vectorp =3D 0x7ffff1d685c8 max_stack =3D frame_base =3D fp =3D bytestr_data =3D rest =3D mandatory =3D nonrest =3D pushedargs =3D result =3D #13 0x000055555575c626 in Ffuncall (nargs=3Dnargs@entry=3D5,=20 args=3Dargs@entry=3D0x7fffffffe040) at ../../../emacs/src/eval.c:2999 count =3D val =3D #14 0x000055555578f5ed in call4 (arg4=3D0x30, arg3=3D,=20 arg2=3D0x555555ed0144, arg1=3D, fn=3D) at=20 =2E./../../emacs/src/lisp.h:3270 No locals. #15 Fload (file=3D0x555555ecfe64, noerror=3D,=20 nomessage=3D, nosuffix=3D,=20 must_suffix=3D) at ../../../emacs/src/lread.c:1484 val =3D stream =3D 0x0 fd =3D 4 fd_index =3D count =3D found =3D 0x555555ed0144 efound =3D hist_file_name =3D 0x555555ed0144 newer =3D false compiled =3D false handler =3D fmode =3D 0x555555834a9b "r" version =3D no_native =3D is_module =3D false is_native_elisp =3D false found_eff =3D is_elc =3D false input =3D { stream =3D 0x555555ecfe64, lookahead =3D 96 '`', buf =3D "\001\000\000" } #16 0x00005555557a4e92 in exec_byte_code (fun=3D,=20 args_template=3D, nargs=3D,=20 args=3D) at ../../../emacs/src/bytecode.c:809 call_nargs =3D 3 call_fun =3D count1 =3D template =3D val =3D call_args =3D 0x7ffff11ff1b0 original_fun =3D 0xa9b0 bytecode =3D op =3D 3 type =3D targets =3D {0x5555555a4e6a ,=20 0x5555557a527d , 0x5555557a5278=20 , 0x5555557a5273 ,=20 0x5555557a4c8e , 0x5555557a4c8e=20 , 0x5555557a523f ,=20 0x5555557a520b , 0x5555557a59e1=20 , 0x5555557a59dc ,=20 0x5555557a59d7 , 0x5555557a59d2=20 , 0x5555557a4cbd ,=20 0x5555557a4cc0 , 0x5555557a59c4=20 , 0x5555557a59e6 ,=20 0x5555557a5a71 , 0x5555557a5a6c=20 , 0x5555557a5a67 ,=20 0x5555557a5a62 , 0x5555557a4c1a=20 , 0x5555557a4c20 ,=20 0x5555557a5a46 , 0x5555557a5a54=20 , 0x5555557a59f9 ,=20 0x5555557a59f4 , 0x5555557a5fb5=20 , 0x5555557a5fb0 ,=20 0x5555557a4f1a , 0x5555557a4f20=20 , 0x5555557a5a0c ,=20 0x5555557a59fe , 0x5555557a5f8f=20 , 0x5555557a5f8a ,=20 0x5555557a5f85 , 0x5555557a5f80=20 , 0x5555557a4d2b ,=20 0x5555557a4d30 , 0x5555557a5fa2=20 , 0x5555557a5f94 ,=20 0x5555557a5f5f , 0x5555557a5f5a=20 , 0x5555557a5f55 ,=20 0x5555557a5f50 , 0x5555557a4f63=20 , 0x5555557a4f68 ,=20 0x5555557a5f72 , 0x5555557a5f64=20 , 0x5555557a5bc9 ,=20 0x5555557a5bf6 , 0x5555557a5c60=20 , 0x5555555a4e6a ,=20 0x5555555a4e6a , 0x5555555a4e6a=20 , 0x5555555a4e6a ,=20 0x5555555a4e6a , 0x5555557a6ddf=20 , 0x5555557a6d73 ,=20 0x5555557a6d37 , 0x5555557a6cfb=20 , 0x5555557a6cbd ,=20 0x5555557a5ae3 , 0x5555557a5aaa=20 , 0x5555557a6c92 ,=20 0x5555557a5b95 , 0x5555557a5a76=20 , 0x5555557a6c59 ,=20 0x5555557a6c30 , 0x5555557a6bf7=20 , 0x5555557a6bc1 ,=20 0x5555557a6b87 , 0x5555557a6b22=20 , 0x5555557a6ab4 ,=20 0x5555557a6a3f , 0x5555557a6a16=20 , 0x5555557a69ed ,=20 0x5555557a69b4 , 0x5555557a697b=20 , 0x5555557a6942 ,=20 0x5555557a6905 , 0x5555557a68d2=20 , 0x5555557a689f ,=20 0x5555557a686c , 0x5555557a67db=20 , 0x5555557a6786 ,=20 0x5555557a673c , 0x5555557a66ef=20 , 0x5555557a66a2 ,=20 0x5555557a6655 , 0x5555557a6608=20 , 0x5555557a65b7 ,=20 0x5555557a6561 , 0x5555557a6510=20 , 0x5555557a64bf ,=20 0x5555557a646e , 0x5555557a641c=20 , 0x5555557a6340 ,=20 0x5555557a4fa9 , 0x5555557a6317=20 , 0x5555557a62e9 ,=20 0x5555557a626a , 0x5555557a6227=20 , 0x5555557a61fe ,=20 0x5555557a61d3 , 0x5555557a61a8=20 , 0x5555557a6175 ,=20 0x5555557a614a , 0x5555555a4e6a=20 , 0x5555557a611f ,=20 0x5555557a60f4 , 0x5555557a60c9=20 , 0x5555557a609e ,=20 0x5555557a6073 , 0x5555557a604a=20 , 0x5555557a4fa9 ,=20 0x5555555a4e6a , 0x5555557a600c=20 , 0x5555557a5fe3 ,=20 0x5555557a5fba , 0x5555557a58cb=20 , 0x5555557a5892 ,=20 0x5555557a5869 , 0x5555557a5840=20 , 0x5555557a5807 ,=20 0x5555557a57ce , 0x5555557a5795=20 , 0x5555557a576a ,=20 0x5555557a5741 , 0x5555555a4e6a=20 , 0x5555557a5d50 ,=20 0x5555557a5ee1 , 0x5555557a598a=20 , 0x5555557a5ea7 ,=20 0x5555557a5e70 , 0x5555557a5e39=20 , 0x5555557a5da2 ,=20 0x5555557a5d84 , 0x5555557a5a1a=20 , 0x5555557a5d32 ,=20 0x5555557a5cd6 , 0x5555557a5ca8=20 , 0x5555557a5c68 ,=20 0x5555557a6efb , 0x5555557a6ebe=20 , 0x5555557a6e7b ,=20 0x5555557a6e25 , 0x5555555a4e6a=20 , 0x5555557a5704 ,=20 0x5555557a56db , 0x5555557a56b2=20 , 0x5555557a5689 ,=20 0x5555557a5660 , 0x5555557a5627=20 , 0x5555557a55ee ,=20 0x5555557a55b5 , 0x5555557a557c=20 , 0x5555557a552f ,=20 0x5555557a54f6 , 0x5555557a54bd=20 , 0x5555557a5497 ,=20 0x5555557a543c , 0x5555557a53e1=20 , 0x5555557a53ae ,=20 0x5555557a537b , 0x5555557a534b=20 , 0x5555557a63cb ,=20 0x5555557a6383 , 0x5555557a52e5=20 , 0x5555557a5282 ,=20 0x5555555a4e6a , 0x5555555a4e6a=20 , 0x5555555a4e6a ,=20 0x5555555a4e6a , 0x5555555a4e6a=20 , 0x5555555a4e6a ,=20 0x5555557a6b4b , 0x5555557a6830=20 , 0x5555557a62ad ,=20 0x5555557a51cf , 0x5555557a5193=20 , 0x5555555a4e6a ,=20 0x5555555a4e6a , 0x5555557a5164=20 , 0x5555557a5934 ,=20 0x5555555a4e6a , 0x5555555a4e6a=20 , 0x5555555a4e6a ,=20 0x5555555a4e6a , 0x5555555a4e6a=20 , 0x5555555a4e6a ,=20 0x5555555a4e6a , 0x5555555a4e6a=20 , 0x5555557a5904 =20 } quitcounter =3D 40 '(' bc =3D 0x555555cf3e70 top =3D pc =3D bytestr =3D vector =3D maxdepth =3D const_length =3D bytestr_length =3D vectorp =3D 0x7ffff1d5bac0 max_stack =3D frame_base =3D fp =3D bytestr_data =3D rest =3D mandatory =3D nonrest =3D pushedargs =3D result =3D #17 0x000055555576164c in apply_lambda=20 (fun=3Dfun@entry=3D0x7ffff1d4384d, args=3D,=20 count=3Dcount@entry=3D...) at ../../../emacs/src/eval.c:3107 arg_vector =3D 0x7fffffffe1a0 tem =3D sa_avail =3D sa_count =3D { bytes =3D 160 } numargs =3D 0 args_left =3D 0x0 #18 0x000055555575fc03 in eval_sub=20 (form=3Dform@entry=3D0x7ffff2206efb) at ../../../emacs/src/eval.c:2592 original_fun =3D 0x2aaa9bfc5098 original_args =3D 0x0 count =3D fun =3D val =3D funcar =3D argvals =3D {0x12, 0xfffffffffffffb90, 0x90, 0x5,=20 0x7fffffffe967, 0x7ffff57589fa <__GI___libc_malloc+410>, 0x60,=20 0x555555e8e623} retry =3D #19 0x0000555555762706 in Feval (form=3D0x7ffff2206efb,=20 lexical=3D) at ../../../emacs/src/eval.c:2365 count =3D #20 0x000055555575ad37 in internal_condition_case=20 (bfun=3Dbfun@entry=3D0x5555556ced40 ,=20 handlers=3Dhandlers@entry=3D0x90, hfun=3Dhfun@entry=3D0x5555556d5f90=20 ) at ../../../emacs/src/eval.c:1474 val =3D c =3D 0x555555e931d0 #21 0x00005555556cf686 in top_level_1 (ignore=3Dignore@entry=3D0x0) at=20 =2E./../../emacs/src/keyboard.c:1150 No locals. #22 0x000055555575ac91 in internal_catch (tag=3Dtag@entry=3D0x10080,=20 func=3Dfunc@entry=3D0x5555556cf660 , arg=3Darg@entry=3D0x0)=20 at ../../../emacs/src/eval.c:1197 val =3D c =3D 0x555555e74440 #23 0x00005555556cecbf in command_loop () at ../../../emacs/src/ keyboard.c:1110 No locals. #24 0x00005555556d5b41 in recursive_edit_1 () at ../../../emacs/ src/keyboard.c:720 count =3D val =3D #25 0x00005555556d5ec0 in Frecursive_edit () at ../../../emacs/ src/keyboard.c:803 count =3D buffer =3D #26 0x00005555555a8977 in main (argc=3D5, argv=3D0x7fffffffe628) at=20 =2E./../../emacs/src/emacs.c:2521 stack_bottom_variable =3D 0x0 no_loadup =3D false junk =3D 0x0 dname_arg =3D 0x0 ch_to_dir =3D 0x0 original_pwd =3D dump_mode =3D skip_args =3D 1 temacs =3D 0x0 attempt_load_pdump =3D only_version =3D false rlim =3D { rlim_cur =3D 10022912, rlim_max =3D 18446744073709551615 } lc_all =3D sockfd =3D -1 module_assertions =3D Lisp Backtrace: "insert" (0xffffdbc0) "let" (0xffffdd20) "eval-buffer" (0xf11ff290) "load-with-code-conversion" (0xffffe048) "load" (0xf11ff1b0) "command-line-1" (0xf11ff0b8) "command-line" (0xf11ff040) "normal-top-level" (0xffffe1a0) (gdb) quit Debugger finished end of gdb session In GNU Emacs 29.3.50 (build 5, x86_64-pc-linux-gnu, GTK+ Version 3.24.38, cairo version 1.16.0) of 2024-04-01 built on gabor Repository revision: 946d4aad1dfb244352dfd0845a8bc3078fe9bca4 Repository branch: emacs-29 Windowing system distributor 'The X.Org Foundation', version=20 11.0.12101007 System Description: Devuan GNU/Linux 5 (daedalus) Configured using: 'configure --without-libsystemd --without-pop --without-sound --without-gconf --without-mailutils --without-native-compilation --with-cairo --with-x=3Dyes --with-x-toolkit=3Dgtk3 --with-toolkit-scroll-bars' Configured features: CAIRO DBUS FREETYPE GIF GLIB GMP GNUTLS GSETTINGS HARFBUZZ JPEG=20 JSON LIBSELINUX LIBXML2 MODULES NOTIFY INOTIFY PDUMPER PNG RSVG SECCOMP SQLITE3 THREADS TIFF TOOLKIT_SCROLL_BARS TREE_SITTER WEBP X11 XDBE=20 XIM XINPUT2 XPM GTK3 ZLIB Important settings: value of $LANG: hu_HU.UTF-8 locale-coding-system: utf-8-unix Best wishes, G=C3=A1bor From debbugs-submit-bounces@debbugs.gnu.org Mon Apr 01 08:04:15 2024 Received: (at 70124-done) by debbugs.gnu.org; 1 Apr 2024 12:04:15 +0000 Received: from localhost ([127.0.0.1]:49776 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1rrGOd-0002po-BC for submit@debbugs.gnu.org; Mon, 01 Apr 2024 08:04:15 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:44408) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1rrGOb-0002pZ-IY for 70124-done@debbugs.gnu.org; Mon, 01 Apr 2024 08:04:13 -0400 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 1rrGOT-0002j8-4X; Mon, 01 Apr 2024 08:04:05 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=MIME-version:References:Subject:In-Reply-To:To:From: Date; bh=S72KtOYFQ8XBvbu0rWmR4+hSEGH8rO3TlMkfoCyAfjQ=; b=PYpWA/Kg4R5QxMrTgSwb lmHL9fAlnZw6SOZmMgqi+gvBadzedZ/zq4w5tmhHBt3PSfbsYB7es04YCR6DGrC3htm80n6/jb2np qTd4/iDqxS7b7GN8gDE90kdhjxt9P2PxlVWf4o5lLtZv802znNyu/9DqXkcPCtO7tvm1uqMBLUCAI uhCE7ZzIanrtkJCNwVJrHb+4/Z1cJiNh/rKfBTaF6tBrQG7ldEiseS6KJjPTwBhmDGE/r+0gvsmjk XCGBoCQ6cP3JX/HAXyPx+Hm0UerZiSzHmda5/z+NO3J2gO/+IA1elzV83LSlGmbAu13SLsUd55zKO z/i4Ez+VaLyOEg==; Date: Mon, 01 Apr 2024 15:03:59 +0300 Message-Id: <86v8519tn4.fsf@gnu.org> From: Eli Zaretskii To: Braun =?utf-8?Q?G=C3=A1bor?= In-Reply-To: <12427969.O9o76ZdvQC@gabor> (message from Braun =?utf-8?Q?G?= =?utf-8?Q?=C3=A1bor?= on Mon, 01 Apr 2024 12:54:20 +0200) Subject: Re: bug#70124: 29.3.50; Crash via indirect buffers References: <12427969.O9o76ZdvQC@gabor> MIME-version: 1.0 Content-type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Spam-Score: -2.3 (--) X-Debbugs-Envelope-To: 70124-done Cc: 70124-done@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -3.3 (---) > From: Braun Gábor > Date: Mon, 01 Apr 2024 12:54:20 +0200 > > After building Emacs from source, I have added the following file > to the build directory: > > File ./bug-indirect-crash.el > > ;;; bug-indirect-crash.el --- Crash via indirect buffer -*- > lexical-binding: t; coding: utf-8; -*- > > ;;; Commentary: > ;; Crash Emacs by stupid use of indirect buffers. > > ;;; Code: > (let (buffer) > (with-temp-buffer > (with-current-buffer > (setq buffer > (make-indirect-buffer > (current-buffer) > (generate-new-buffer-name "indirect"))) > (setq-local kill-buffer-query-functions (list #'ignore)))) > (with-demoted-errors "Error: %S" (set-buffer buffer)) > (message "Current buffer: %s" (current-buffer)) > (insert ?A)) > ;;; bug-indirect-crash.el ends here. > > End of file./bug-indirect-crash.el > > Below is the command I have run Emacs and the output of the > command: > > $ src/emacs -Q --batch -l ./bug-indirect-crash.el > Error: (error "Marker does not point anywhere") > Current buffer: indirect > Fatal error 11: Segmentation fault > > > I find the error about the marker weird, have no idea which marker > it > is. > I expect an error like "Selecting deleted buffer" instead. > I also find the second line strange: > (seemingly an indirect buffer is current whose base buffer is > killed). Thanks. This is already fixed on the master branch (which will eventually become Emacs 30), where I get: emacs -Q --batch -l d:/usr/eli/data/bug-indirect-crash.el Unable to kill buffer whose indirect buffer `indirect' cannot be killed (Btw, even on the emacs-29 branch I don't see a crash, I see an error: emacs -Q --batch -l d:/usr/eli/data /bug-indirect-crash.el Error: (error "Marker does not point anywhere") Current buffer: indirect But that could be system-dependent.) So I'm closing this bug as already solved. From unknown Sun Aug 10 16:47:51 2025 Received: (at fakecontrol) by fakecontrolmessage; To: internal_control@debbugs.gnu.org From: Debbugs Internal Request Subject: Internal Control Message-Id: bug archived. Date: Tue, 30 Apr 2024 11:24:05 +0000 User-Agent: Fakemail v42.6.9 # This is a fake control message. # # The action: # bug archived. thanks # This fakemail brought to you by your local debbugs # administrator