Subject: bug#76238: closed (Re: bug#76238: 31.0.50; feature/igc: crash #2, 2025-02-12)

From: [email-masked] (GNU bug Tracking System)
Date: Sat, 22 Feb 2025 11:52:06 +0000

Your bug report

#76238: 31.0.50; feature/igc: crash #2, 2025-02-12

which was filed against the emacs package, has been closed.

The explanation is attached below, along with your original report.
If you require more details, please reply to [email-masked].

-- 
76238: https://debbugs.gnu.org/cgi/bugreport.cgi?bug=76238
GNU Bug Tracking System
Contact [email-masked] with problems

Subject: Re: bug#76238: 31.0.50; feature/igc: crash #2, 2025-02-12
From: Pip Cet <[email-masked]>
To: Oliver Reiter <[email-masked]>
Cc: [email-masked]
Date: Sat, 22 Feb 2025 11:51:41 +0000
List-Id: <debbugs-submit.debbugs.gnu.org>

Pip Cet <[email-masked]> writes:

> Pip Cet <[email-masked]> writes:
>
>> "Oliver Reiter" <[email-masked]> writes:
>>>
>>> So you are suggesting to build with X (or Lucid or so?), and if I keep
>>> seeing these crashes we have established it is not PGTK's fault. Or,
>>
>> Precisely.
>
>>> in the case of no (similar) crashes, that it is indeed PGTK causing
>>> these crashes. Right? If yes, then I'll do that over the next weeks.
>>
>> I think that would be extremely helpful, yes (I'd use the plain GTK3
>> build as it's probably closest to PGTK).  You can also wait for me to
>> commit the initial round of fixes for PGTK and try continuing to use
>> that, of course.
>
> I've done that now.  I can run the PGTK build under X (with the warning)
> and under Wayland under X, and I think it's okay not to disable the PGTK
> + MPS build for now, even though it's obviously not well-tested yet.
>
> So feel free to continue testing with or without PGTK.  I'll have
> another look at the font code because I saw you were using unusual
> settings there, too, so if it turns out not to have been PGTK, that
> might be the issue...

Closing this as likely PGTK-related.  Please keep testing, thanks!

Pip

Subject: 31.0.50; feature/igc: crash #2, 2025-02-12
From: Oliver Reiter <[email-masked]>
To: [email-masked]
Date: Wed, 12 Feb 2025 21:23:38 +0100
List-Id: <debbugs-submit.debbugs.gnu.org>

Dear all,

a crash while marking a region:

Thread 1 "emacs" hit Breakpoint 1, terminate_due_to_signal (sig=11, backtrace_limit=40) at /home/reitero/build/sources/emacs/emacs/src/emacs.c:425
425	{
(gdb) bt
#0  terminate_due_to_signal (sig=11, backtrace_limit=40)
    at /home/reitero/build/sources/emacs/emacs/src/emacs.c:425
#1  0x00005555556d38d2 in handle_fatal_signal (sig=sig@entry=11)
    at /home/reitero/build/sources/emacs/emacs/src/sysdep.c:1793
#2  0x00005555556d0fb9 in deliver_thread_signal (sig=sig@entry=11,
    handler=handler@entry=0x5555556d38c4 <handle_fatal_signal>)
    at /home/reitero/build/sources/emacs/emacs/src/sysdep.c:1785
#3  0x00005555556d101d in deliver_fatal_thread_signal (sig=sig@entry=11)
    at /home/reitero/build/sources/emacs/emacs/src/sysdep.c:1805
#4  0x00005555556d104e in handle_sigsegv (sig=11, siginfo=<optimized out>, arg=<optimized out>)
    at /home/reitero/build/sources/emacs/emacs/src/sysdep.c:1943
#5  <signal handler called>
#6  0x00007ffff364c3db in __GI_kill () at ../sysdeps/unix/syscall-template.S:120
#7  0x000055555585f797 in sigHandle ()
#8  <signal handler called>
#9  0x0000555555799d5a in igc_header_nwords (h=h@entry=0x7fffc3f96f10)
    at /home/reitero/build/sources/emacs/emacs/src/igc.c:689
#10 0x0000555555799d68 in obj_size (h=h@entry=0x7fffc3f96f10)
    at /home/reitero/build/sources/emacs/emacs/src/igc.c:720
#11 0x0000555555799d92 in dflt_skip (base_addr=0x7fffc3f96f10)
    at /home/reitero/build/sources/emacs/emacs/src/igc.c:1753
#12 0x000055555586953d in amcSegFix ()
#13 0x000055555580362d in _mps_fix2 ()
#14 0x00005555557994a7 in fix_raw (ss=ss@entry=0x7ffffffef108, p=p@entry=0x7ffffffeef80)
    at /home/reitero/build/sources/emacs/emacs/src/igc.c:1188
#15 0x0000555555799563 in fix_string (ss=ss@entry=0x7ffffffef108, s=s@entry=0x7fffb9c074b8)
    at /home/reitero/build/sources/emacs/emacs/src/igc.c:1765
#16 0x00005555557a0f93 in dflt_scan_obj (ss=ss@entry=0x7ffffffef108,
    base_start=base_start@entry=0x7fffb9c074b8, base_limit=base_limit@entry=0x7fffb9c07730,
    closure=closure@entry=0x0) at /home/reitero/build/sources/emacs/emacs/src/igc.c:2032
#17 0x00005555557a1146 in dflt_scanx (ss=ss@entry=0x7ffffffef108, base_start=<optimized out>,
    base_limit=0x7fffb9c07730, closure=closure@entry=0x0)
    at /home/reitero/build/sources/emacs/emacs/src/igc.c:2099
#18 0x00005555557a1182 in dflt_scan (ss=0x7ffffffef108, base_start=<optimized out>,
    base_limit=<optimized out>) at /home/reitero/build/sources/emacs/emacs/src/igc.c:2110
#19 0x0000555555834ce5 in amcSegScan ()
#20 0x0000555555863ec0 in traceScanSegRes ()
#21 0x00005555558640aa in traceScanSeg ()
#22 0x0000555555864f06 in TraceAdvance ()
#23 0x00005555558656cd in TracePoll ()
#24 0x0000555555865939 in ArenaPoll ()
#25 0x0000555555865d23 in mps_ap_fill ()
#26 0x000055555579d572 in alloc_impl (size=size@entry=24, type=type@entry=IGC_OBJ_CONS,
    ap=0x7fffe8001900) at /home/reitero/build/sources/emacs/emacs/src/igc.c:4089
#27 0x000055555579d661 in alloc (size=size@entry=24, type=type@entry=IGC_OBJ_CONS)
    at /home/reitero/build/sources/emacs/emacs/src/igc.c:4117
#28 0x000055555579d682 in igc_make_cons (car=0x2, cdr=0x0)
    at /home/reitero/build/sources/emacs/emacs/src/igc.c:4146
#29 0x000055555570e3cd in Fcons (car=<optimized out>, cdr=<optimized out>)
    at /home/reitero/build/sources/emacs/emacs/src/alloc.c:2812
#30 0x000055555570f143 in Flist (nargs=1, args=0x7ffffffef510)
    at /home/reitero/build/sources/emacs/emacs/src/alloc.c:2928
#31 0x0000555555702422 in Fmatch_data (integers=integers@entry=0x0, reuse=reuse@entry=0x0,
--Type <RET> for more, q to quit, c to continue without paging--
    reseat=reseat@entry=0x0) at /home/reitero/build/sources/emacs/emacs/src/search.c:2936
#32 0x00005555557028bd in record_unwind_save_match_data ()
    at /home/reitero/build/sources/emacs/emacs/src/search.c:3181
#33 0x000055555579639f in autocmp_chars (rule=rule@entry=0x7fffb904568d, charpos=charpos@entry=1162,
    bytepos=bytepos@entry=1162, limit=limit@entry=21798, win=win@entry=0x7fffeecf3c08,
    face=face@entry=0x7fffc376c888, string=0x0, direction=0x3bf0, ch=40)
    at /home/reitero/build/sources/emacs/emacs/src/composite.c:948
#34 0x000055555579680d in composition_reseat_it (cmp_it=0x7fffffff7830, charpos=1162, bytepos=1162,
    endpos=21798, w=0x7fffeecf3c08, bidi_level=<optimized out>, face=0x7fffc376c888, string=0x0)
    at /home/reitero/build/sources/emacs/emacs/src/composite.c:1353
#35 0x0000555555613c36 in next_element_from_buffer (it=0x7fffffff6f70)
    at /home/reitero/build/sources/emacs/emacs/src/xdisp.c:9812
#36 0x00005555556116ad in get_next_display_element (it=0x7fffffff6f70)
    at /home/reitero/build/sources/emacs/emacs/src/xdisp.c:8310
#37 0x0000555555614845 in move_it_in_display_line_to (it=it@entry=0x7fffffff6f70,
    to_charpos=to_charpos@entry=21798, to_x=to_x@entry=-1, op=op@entry=MOVE_TO_POS)
    at /home/reitero/build/sources/emacs/emacs/src/xdisp.c:10111
#38 0x000055555561673b in move_it_to (it=it@entry=0x7fffffff6f70, to_charpos=21798,
    to_x=to_x@entry=-1, to_y=<optimized out>, to_vpos=to_vpos@entry=-1, op=op@entry=10)
    at /home/reitero/build/sources/emacs/emacs/src/xdisp.c:10845
#39 0x0000555555617b4c in partial_line_height (it_origin=<optimized out>)
    at /home/reitero/build/sources/emacs/emacs/src/xdisp.c:11477
#40 0x0000555555623955 in try_window (window=window@entry=0x7fffeecf3c0d, pos=..., flags=flags@entry=1)
    at /home/reitero/build/sources/emacs/emacs/src/xdisp.c:21311
#41 0x00005555556277b1 in redisplay_window (window=0x7fffeecf3c0d,
    just_this_one_p=just_this_one_p@entry=true)
    at /home/reitero/build/sources/emacs/emacs/src/xdisp.c:20654
#42 0x0000555555629499 in redisplay_window_1 (window=window@entry=0x7fffeecf3c0d)
    at /home/reitero/build/sources/emacs/emacs/src/xdisp.c:18138
#43 0x000055555572c3e4 in internal_condition_case_1 (bfun=0x55555562946a <redisplay_window_1>,
    arg=0x7fffeecf3c0d, handlers=<optimized out>, hfun=0x555555621106 <redisplay_window_error>)
    at /home/reitero/build/sources/emacs/emacs/src/eval.c:1650
#44 0x0000555555622625 in redisplay_internal ()
    at /home/reitero/build/sources/emacs/emacs/src/xdisp.c:17644
#45 0x0000555555623621 in redisplay () at /home/reitero/build/sources/emacs/emacs/src/xdisp.c:16675
#46 0x00005555556bb2e8 in read_char (commandflag=1, map=0x7fffc5182d6b, prev_event=0x0,
    used_mouse_menu=0x7fffffffd65b, end_time=0x0)
    at /home/reitero/build/sources/emacs/emacs/src/keyboard.c:2683
#47 0x00005555556c4fc0 in read_key_sequence (keybuf=0x7fffffffd780, prompt=0x0,
    dont_downcase_last=false, can_return_switch_frame=true, fix_current_buffer=true,
    prevent_redisplay=false, disable_text_conversion_p=false)
    at /home/reitero/build/sources/emacs/emacs/src/keyboard.c:10790
#48 0x00005555556b7de3 in command_loop_1 ()
    at /home/reitero/build/sources/emacs/emacs/src/keyboard.c:1435
#49 0x000055555572c36e in internal_condition_case (bfun=0x5555556b7ba1 <command_loop_1>,
    handlers=<optimized out>, hfun=0x5555556b4c5e <cmd_error>)
    at /home/reitero/build/sources/emacs/emacs/src/eval.c:1626
#50 0x00005555556b4e89 in command_loop_2 (handlers=handlers@entry=0xa8)
    at /home/reitero/build/sources/emacs/emacs/src/keyboard.c:1174
#51 0x000055555572c2ac in internal_catch (tag=<optimized out>, func=0x5555556b4e67 <command_loop_2>,
    arg=0xa8) at /home/reitero/build/sources/emacs/emacs/src/eval.c:1305
#52 0x00005555556b6069 in command_loop ()
    at /home/reitero/build/sources/emacs/emacs/src/keyboard.c:1152
--Type <RET> for more, q to quit, c to continue without paging--
#53 0x00005555556b6100 in recursive_edit_1 ()
    at /home/reitero/build/sources/emacs/emacs/src/keyboard.c:760
#54 0x00005555556b629e in Frecursive_edit ()
    at /home/reitero/build/sources/emacs/emacs/src/keyboard.c:843
#55 0x00005555556b76d6 in main (argc=<optimized out>, argv=0x7fffffffdb78)
    at /home/reitero/build/sources/emacs/emacs/src/emacs.c:2580

Lisp Backtrace:
"redisplay_internal (C function)" (0x0)

In GNU Emacs 31.0.50 (build 9, x86_64-pc-linux-gnu, GTK+ Version
 3.24.48, cairo version 1.18.2) of 2025-02-11 built on wilap
Repository revision: 9d3e946e756ac5a146c21d6fbae2fc803de95059
Repository branch: feature/igc
System Description: Arch Linux

Configured using:
 'configure 'CFLAGS=-g3 -ggdb -Og -fno-omit-frame-pointer'
 CPPFLAGS=-I/home/reitero/.local/lib/mps
 LDFLAGS=-L/home/reitero/.local/lib/mps --prefix=/usr --sysconfdir=/etc
 --libexecdir=/usr/lib --localstatedir=/var --with-mps=yes
 --with-gameuser=root:games --with-pgtk --with-xft --with-harfbuzz
 --with-modules --without-compress-install --without-m17n-flt
 --with-libotf --without-imagemagick --without-gsettings --without-gconf
 --with-native-compilation=aot --with-tree-sitter
 --enable-link-time-optimization'

Configured features:
ACL CAIRO DBUS FREETYPE GIF GLIB GMP GNUTLS GPM HARFBUZZ JPEG LCMS2
LIBOTF LIBSYSTEMD LIBXML2 MODULES MPS NATIVE_COMP NOTIFY INOTIFY PDUMPER
PGTK PNG RSVG SECCOMP SOUND SQLITE3 THREADS TIFF TOOLKIT_SCROLL_BARS
TREE_SITTER WEBP XIM GTK3 ZLIB

Important settings:
  value of $LANG: de_AT.UTF-8
  locale-coding-system: utf-8-unix