From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Vladimir Kazanov Newsgroups: gmane.emacs.bugs Subject: bug#70385: Crash in note_fringe_highlight Date: Sun, 14 Apr 2024 17:40:28 +0100 Message-ID: References: <86h6g49cdv.fsf@mail.linkov.net> 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="21849"; mail-complaints-to="usenet@ciao.gmane.io" Cc: 70385@debbugs.gnu.org To: Juri Linkov Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Sun Apr 14 18:41:59 2024 Return-path: Envelope-to: geb-bug-gnu-emacs@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 1rw2vV-0005Yx-U1 for geb-bug-gnu-emacs@m.gmane-mx.org; Sun, 14 Apr 2024 18:41:58 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1rw2vS-0008TW-Sw; Sun, 14 Apr 2024 12:41:54 -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 1rw2vR-0008TB-6R for bug-gnu-emacs@gnu.org; Sun, 14 Apr 2024 12:41:53 -0400 Original-Received: from debbugs.gnu.org ([2001:470:142:5::43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1rw2vQ-0000uA-Qw for bug-gnu-emacs@gnu.org; Sun, 14 Apr 2024 12:41:52 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1rw2vb-0005VC-ST for bug-gnu-emacs@gnu.org; Sun, 14 Apr 2024 12:42:03 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Vladimir Kazanov Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sun, 14 Apr 2024 16:42:03 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 70385 X-GNU-PR-Package: emacs Original-Received: via spool by 70385-submit@debbugs.gnu.org id=B70385.171311286620596 (code B ref 70385); Sun, 14 Apr 2024 16:42:03 +0000 Original-Received: (at 70385) by debbugs.gnu.org; 14 Apr 2024 16:41:06 +0000 Original-Received: from localhost ([127.0.0.1]:36079 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1rw2ud-0005LV-Ta for submit@debbugs.gnu.org; Sun, 14 Apr 2024 12:41:06 -0400 Original-Received: from mail-lj1-x232.google.com ([2a00:1450:4864:20::232]:57473) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1rw2uZ-0005K3-Vl for 70385@debbugs.gnu.org; Sun, 14 Apr 2024 12:41:02 -0400 Original-Received: by mail-lj1-x232.google.com with SMTP id 38308e7fff4ca-2d87450361fso30577111fa.2 for <70385@debbugs.gnu.org>; Sun, 14 Apr 2024 09:40:48 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1713112843; x=1713717643; darn=debbugs.gnu.org; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:from:to:cc:subject:date :message-id:reply-to; bh=HLjb3C6Q/UNKI1bxNNmqsdMK6gRxMJBetlB5iDJaqSE=; b=Wm+CYe91NYtC/Z7Sr7LIdO49sSat/N1/gKb7WANC+fSqwnge5PzLGJbmI6CcXfZ+HU KS5eykcREb4BcchiaNBbp6mhJw/E2Jpc5H97NZdvBw6C7mcSquDKrP6AWFoYjYKh3Q54 6YQV0aG3denSykMvjNdVlu3r/GTMUAWVOQzcg7HW39s/gbqvQSBbMhYRetLI4tUFxi12 gB4LVIdKAjPHKn5anCzhdskgahYSanGQ/5v+uMHw2jNE0sovMaqRFIDMZQlDJszd94Bl wRprdCEfqlUTKF0W4IHDTyiSGxusGCYc19AfTDOOfF/4eMGl0+g3GnOyPooGaGdWjVet f0fA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1713112843; x=1713717643; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=HLjb3C6Q/UNKI1bxNNmqsdMK6gRxMJBetlB5iDJaqSE=; b=r7hfahKFPmxV7wfCIMKrdFtU0AHhWKlQKhSe3dHuOAMx4EQ+YGSz8EsHqPh8ArniQx Wg/sWo8vRe/pPRhYMXuYHk2bn1Wz3Fo12BXRJnobiZ9e04tBIOH1OTjUZroVafDvQcza HShQHsswjngW6z6PE1S0W/7dtMAL9WCqo17baQoSaA5tJfUwf/zlNnn7cPTkliNlJLVa in20jCEO9e1WFY/gCF0tl2njaEeEJI1vC06NUEXZ78LM++ZpHvbsIWwhrMvIOfGDTiUG nYuuBnFlrhwRxmU0539k9jVyXXAKPGM67knhFTomoG0YE69yMWW0YJMak3xEa+Th/Ob9 GhaA== X-Gm-Message-State: AOJu0Ywmf4NTSeiYVXqvc/VLPAdZgvDoszhmnsG/RSOLP6f8hWJybZWt s1GoI75CEiE0PvP+Z2yWDs3yItCIrHGnRhr3cw0Z8qT5phiS/t+DHEvcVinbZQnfrg/OEe4e/3B Nx2d8XTYZ2gL0/1c1fGwjqt7PrCdb X-Google-Smtp-Source: AGHT+IEoear40y6iDSdMAuB25BrQgJAZRTrB0c/MEvpzXqTGWPM5x9KwX/Nplq8myxd5+fRpRqdpaTWSZdux8tkpnAo= X-Received: by 2002:a2e:83ce:0:b0:2d6:fd9c:6af6 with SMTP id s14-20020a2e83ce000000b002d6fd9c6af6mr4840109ljh.28.1713112842402; Sun, 14 Apr 2024 09:40:42 -0700 (PDT) In-Reply-To: <86h6g49cdv.fsf@mail.linkov.net> X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list 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-mx.org@gnu.org Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Xref: news.gmane.io gmane.emacs.bugs:283302 Archived-At: Hi Juri, This must be related to the recent patch introducing the function. Can you reliably reproduce the crash? On Sun, 14 Apr 2024 at 17:18, Juri Linkov wrote: > > Hopefully this backtrace could help to find where is the bug: > > Thread 1 "emacs" received signal SIGSEGV, Segmentation fault. > 0x00005555556120fe in note_fringe_highlight (part=3D, y=3D= , x=3D, window=3DXIL(0x5555564aa62d)) at xdis= p.c:35762 > 35762 struct glyph *glyph =3D MATRIX_ROW_GLYPH_START (w->current_matr= ix, vpos); > > (gdb) bt > #0 0x00005555556120fe in note_fringe_highlight (part=3D, = y=3D, x=3D, window=3DXIL(0x5555564aa62d)) at = xdisp.c:35762 > #1 note_mouse_highlight (f=3D0x5555564aa198, x=3D, y=3D) at xdisp.c:36017 > #2 0x000055555568afd0 in XTframe_up_to_date (f=3D0x5555564aa198) at xter= m.c:7633 > #3 0x0000555555743903 in garbage_collect () at alloc.c:6587 > #4 0x0000555555766c65 in maybe_gc () at lisp.h:5891 > #5 Ffuncall (nargs=3D3, args=3D0x7fffffff7cd0) at eval.c:3017 > #6 0x00007fffdfc5eae6 in F70726f6a6563742d7472792d7663_project_try_vc_0 = () at project-5477de5a-135e3ef0.eln > #7 0x0000555555766bb7 in Ffuncall (nargs=3D2, args=3D0x7fffffff7e30) at = eval.c:3022 > #8 0x0000555555765adb in run_hook_with_args (nargs=3D2, args=3D0x7ffffff= f7e30, funcall=3D0x555555766ac0 ) at eval.c:2881 > #9 0x0000555555766bb7 in Ffuncall (nargs=3D3, args=3D0x7fffffff7e28) at = eval.c:3022 > #10 0x00007fffdfc5d5fe in F70726f6a6563742d2d66696e642d696e2d646972656374= 6f7279_project__find_in_directory_0 () at project-5477de5a-135e3ef0.eln > #11 0x0000555555766bb7 in Ffuncall (nargs=3D2, args=3D0x7fffffff7ea0) at = eval.c:3022 > #12 0x00007fffdfc5d405 in F70726f6a6563742d63757272656e74_project_current= _0 () at project-5477de5a-135e3ef0.eln > #13 0x0000555555766bb7 in Ffuncall (nargs=3D1, args=3D0x7fffffff7f58) at = eval.c:3022 > #14 0x00007fffdfc6761a in F70726f6a6563742d6d6f64652d6c696e652d666f726d61= 74_project_mode_line_format_0 () at project-5477de5a-135e3ef0.eln > #15 0x000055555576a516 in eval_sub (form=3D) at lisp.h:224= 2 > #16 0x000055555576c9c4 in Feval (form=3DXIL(0x55555700d1b3), lexical=3D) at eval.c:2389 > #17 0x0000555555766bb7 in Ffuncall (nargs=3Dnargs@entry=3D3, args=3Dargs@= entry=3D0x7fffffff8230) at eval.c:3022 > #18 0x00005555555cd15f in funcall_with_backtraces (nargs=3Dnargs@entry=3D= 3, args=3Dargs@entry=3D0x7fffffff8230) at xdisp.c:3081 > #19 0x0000555555765361 in internal_condition_case_n (bfun=3Dbfun@entry=3D= 0x5555555cd130 , nargs=3Dnargs@entry=3D3, args=3Da= rgs@entry=3D0x7fffffff8230, handlers=3Dhandlers@entry=3DXIL(0x30), hfun=3Dh= fun@entry=3D0x5555555e14d0 ) at eval.c:1617 > #20 0x00005555555ce7d2 in dsafe__call (inhibit_quit=3Dinhibit_quit@entry= =3Dtrue, f=3D0x5555555cd130 , nargs=3Dnargs@entry= =3D3, args=3Dargs@entry=3D0x7fffffff8230) at lisp.h:1191 > #21 0x00005555555fd701 in dsafe__call (args=3D0x7fffffff8230, nargs=3D3, = f=3D, inhibit_quit=3Dtrue) at xdisp.c:3056 > #22 dsafe_eval (sexpr=3D) at xdisp.c:3103 > #23 display_mode_element (it=3D0x7fffffff83d0, depth=3D4, field_width=3D0= , precision=3D-39, elt=3D, props=3DXIL(0), risky=3Dfalse) at= xdisp.c:27876 > #24 0x00005555555fd862 in display_mode_element (it=3D0x7fffffff83d0, dept= h=3D1, field_width=3D0, precision=3D0, elt=3D, props=3DXIL(0= ), risky=3Dfalse) at lisp.h:1538 > #25 0x00005555555ff020 in display_mode_line (w=3Dw@entry=3D0x5555564aa410= , face_id=3DMODE_LINE_ACTIVE_FACE_ID, format=3DXIL(0x7fffeff37a4b)) at lisp= .h:1191 > #26 0x00005555556010be in display_mode_lines (w=3Dw@entry=3D0x5555564aa41= 0) at lisp.h:751 > #27 0x0000555555616722 in redisplay_window (window=3D, jus= t_this_one_p=3D) at xdisp.c:20921 > #28 0x000055555561a513 in redisplay_window_0 (window=3Dwindow@entry=3DXIL= (0x5555564aa415)) at xdisp.c:18012 > #29 0x000055555576520c in internal_condition_case_1 (bfun=3Dbfun@entry=3D= 0x55555561a4e0 , arg=3Darg@entry=3DXIL(0x5555564aa415),= handlers=3D, hfun=3Dhfun@entry=3D0x5555555d0e60 ) at eval.c:1561 > #30 0x00005555555ce379 in redisplay_windows (window=3DXIL(0x5555564aa415)= ) at xdisp.c:17981 > #31 0x00005555556021b1 in redisplay_internal () at xdisp.c:17381 > #32 0x000055555560387d in redisplay_preserve_echo_area (from_where=3Dfrom= _where@entry=3D8) at xdisp.c:17744 > #33 0x00005555556eb27e in detect_input_pending_run_timers (do_display=3Dd= o_display@entry=3Dtrue) at keyboard.c:11555 > #34 0x00005555557c7798 in wait_reading_process_output (time_limit=3Dtime_= limit@entry=3D82, nsecs=3Dnsecs@entry=3D0, read_kbd=3Dread_kbd@entry=3D-1, = do_display=3Ddo_display@entry=3Dtrue, wait_for_cell=3Dwait_for_cell@entry= =3DXIL(0), wait_proc=3Dwait_proc@entry=3D0x0, just_wait_proc=3D) at process.c:5839 > #35 0x00005555555bd354 in sit_for (timeout=3Dtimeout@entry=3Dmake_fixnum(= 82), reading=3Dreading@entry=3Dtrue, display_option=3Ddisplay_option@entry= =3D1) at lisp.h:1191 > #36 0x00005555556e5404 in read_char (commandflag=3D1, map=3DXIL(0x5555650= 74e43), prev_event=3DXIL(0), used_mouse_menu=3D0x7fffffffde9b, end_time=3D0= x0) at lisp.h:1225 > #37 0x00005555556e7161 in read_key_sequence (keybuf=3D0x7fffffffdff0, pro= mpt=3DXIL(0), dont_downcase_last=3D, can_return_switch_frame= =3Dtrue, fix_current_buffer=3Dtrue, prevent_redisplay=3D, di= sable_text_conversion_p=3Dfalse) at keyboard.c:10722 > #38 0x00005555556e8f8f in command_loop_1 () at lisp.h:1191 > #39 0x0000555555765177 in internal_condition_case (bfun=3Dbfun@entry=3D0x= 5555556e8dc0 , handlers=3Dhandlers@entry=3DXIL(0x90), hfun= =3Dhfun@entry=3D0x5555556dd2d0 ) at eval.c:1537 > #40 0x00005555556d51ea in command_loop_2 (handlers=3Dhandlers@entry=3DXIL= (0x90)) at keyboard.c:1167 > #41 0x00005555557650b9 in internal_catch (tag=3Dtag@entry=3DXIL(0x10740),= func=3Dfunc@entry=3D0x5555556d51c0 , arg=3Darg@entry=3DXIL= (0x90)) at eval.c:1217 > #42 0x00005555556d5186 in command_loop () at lisp.h:1191 > #43 0x00005555556dce35 in recursive_edit_1 () at keyboard.c:753 > #44 0x00005555556dd1e4 in Frecursive_edit () at keyboard.c:836 > #45 0x00005555555b23f1 in main (argc=3D, argv=3D) at emacs.c:2618 > > Lisp Backtrace: > "Automatic GC" (0x0) > "cl-find-if" (0xffff7cd8) > "project-try-vc" (0xffff7e38) > "run-hook-with-args-until-success" (0xffff7e30) > "project--find-in-directory" (0xffff7ea8) > "project-current" (0xffff7f60) > "project-mode-line-format" (0xffff8030) > "eval" (0xffff8238) > "redisplay_internal (C function)" (0x0) > > > --=20 Regards, Vladimir Kazanov