GNU bug report logs -
#75976
31.0.50; feature/igc: crash igc_make_multibyte_string
Previous Next
Reported by: Ihor Radchenko <yantar92 <at> posteo.net>
Date: Fri, 31 Jan 2025 19:21:02 UTC
Severity: normal
Found in version 31.0.50
Done: Pip Cet <pipcet <at> protonmail.com>
Bug is archived. No further changes may be made.
To add a comment to this bug, you must first unarchive it, by sending
a message to control AT debbugs.gnu.org, with unarchive 75976 in the body.
You can then email your comments to 75976 AT debbugs.gnu.org in the normal way.
Toggle the display of automated, internal messages from the tracker.
Report forwarded
to
bug-gnu-emacs <at> gnu.org
:
bug#75976
; Package
emacs
.
(Fri, 31 Jan 2025 19:21:02 GMT)
Full text and
rfc822 format available.
Acknowledgement sent
to
Ihor Radchenko <yantar92 <at> posteo.net>
:
New bug report received and forwarded. Copy sent to
bug-gnu-emacs <at> gnu.org
.
(Fri, 31 Jan 2025 19:21:02 GMT)
Full text and
rfc822 format available.
Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):
just got this backtrace:
protix.c:117: Emacs fatal error: assertion failed: unreachable code
Thread 1 "emacs" hit Breakpoint 1, terminate_due_to_signal (sig=sig <at> entry=6, backtrace_limit=backtrace_limit <at> entry=2147483647) at emacs.c:432
432 {
(gdb) bt
#0 terminate_due_to_signal (sig=sig <at> entry=6, backtrace_limit=backtrace_limit <at> entry=2147483647) at emacs.c:432
#1 0x00005555557e3429 in set_state (state=IGC_STATE_DEAD) at igc.c:1022
#2 igc_assert_fail (file=<optimized out>, line=<optimized out>, msg=<optimized out>) at igc.c:307
#3 0x0000555555883b3d in shieldFlushEntries (shield=0x7ffff7fbe658) at /home/yantar92/Dist/mps/code/shield.c:417
#4 ShieldFlush (arena=0x7ffff7fbe000) at /home/yantar92/Dist/mps/code/shield.c:674
#5 0x00005555558853b3 in ShieldLeave (arena=arena <at> entry=0x7ffff7fbe000) at /home/yantar92/Dist/mps/code/shield.c:694
#6 0x0000555555885627 in ArenaLeaveLock (recursive=<optimized out>, arena=<optimized out>) at /home/yantar92/Dist/mps/code/global.c:614
#7 ArenaLeave (arena=0x7ffff7fbe000) at /home/yantar92/Dist/mps/code/global.c:600
#8 0x000055555588e311 in mps_ap_fill (p_o=p_o <at> entry=0x7fffffffb6e0, mps_ap=mps_ap <at> entry=0x7fffe8001a40, size=size <at> entry=264) at /home/yantar92/Dist/mps/code/mpsi.c:1107
#9 0x00005555557dec89 in alloc_impl (size=264, type=IGC_OBJ_STRING_DATA, ap=0x7fffe8001a40) at igc.c:4011
#10 0x00005555557dedad in alloc (size=size <at> entry=260, type=type <at> entry=IGC_OBJ_STRING_DATA) at igc.c:4039
#11 0x00005555557e183c in alloc_string_data (nbytes=251, clear=false) at igc.c:4092
#12 igc_make_string (nchars=251, nbytes=251, unibyte=unibyte <at> entry=false, clear=clear <at> entry=false) at igc.c:4156
#13 0x00005555557e186c in igc_make_multibyte_string (nchars=<optimized out>, nbytes=<optimized out>, clear=clear <at> entry=false) at igc.c:4163
#14 0x0000555555735cc2 in make_clear_multibyte_string (nchars=nchars <at> entry=251, nbytes=nbytes <at> entry=251, clearit=clearit <at> entry=false) at alloc.c:2584
#15 0x0000555555736645 in make_uninit_multibyte_string (nchars=nchars <at> entry=251, nbytes=nbytes <at> entry=251) at alloc.c:2604
#16 0x0000555555736821 in make_specified_string
(contents=contents <at> entry=0x7fffffffb800 "id:qutebrowser/qutebrowser/issues/1587/834521111 <at> github.com id:qutebrowser/qutebrowser/issues/1587/834525408 <at> github.com id:qutebrowser/qutebrowser/issue/1587/issue_event/4702823424 <at> github.com id:quteb"..., nchars=nchars <at> entry=251, nbytes=nbytes <at> entry=251, multibyte=false) at alloc.c:2537
#17 0x000055555578810c in read_string_literal (readcharfun=readcharfun <at> entry=XIL(0x7ffdd643b3a5)) at lread.c:3346
#18 0x000055555578a4d6 in read0 (readcharfun=readcharfun <at> entry=XIL(0x7ffdd643b3a5), locate_syms=<optimized out>, locate_syms <at> entry=false) at lread.c:4252
#19 0x000055555578b304 in read_internal_start (stream=XIL(0x7ffdd643b3a5), start=start <at> entry=XIL(0), end=end <at> entry=XIL(0), locate_syms=locate_syms <at> entry=false) at lread.c:2767
#20 0x000055555578b4a9 in Fread (stream=<optimized out>) at lread.c:2679
#21 0x0000555555759d20 in funcall_subr (subr=<optimized out>, numargs=numargs <at> entry=1, args=args <at> entry=0x7fffffffbf88) at eval.c:3183
#22 0x000055555575be0a in funcall_general (fun=<optimized out>, numargs=numargs <at> entry=1, args=args <at> entry=0x7fffffffbf88) at /home/yantar92/Git/emacs/src/lisp.h:2335
#23 0x0000555555757f22 in Ffuncall (nargs=2, args=0x7fffffffbf80) at eval.c:3115
#24 0x00007fffd4acca20 in F6e6f746d7563682d736578702d72656164_notmuch_sexp_read_0 () at /home/yantar92/.emacs.d/eln-cache/31.0.50-7a3b6388/notmuch-parser-f8705f98-6bf14062.eln
#25 0x0000555555759d20 in funcall_subr (subr=<optimized out>, numargs=numargs <at> entry=1, args=args <at> entry=0x7fffffffc108) at eval.c:3183
#26 0x000055555575be0a in funcall_general (fun=<optimized out>, numargs=numargs <at> entry=1, args=args <at> entry=0x7fffffffc108) at /home/yantar92/Git/emacs/src/lisp.h:2335
#27 0x0000555555757f22 in Ffuncall (nargs=2, args=0x7fffffffc100) at eval.c:3115
#28 0x00007fffd4acceb4 in F6e6f746d7563682d736578702d70617273652d7061727469616c2d6c697374_notmuch_sexp_parse_partial_list_0 ()
at /home/yantar92/.emacs.d/eln-cache/31.0.50-7a3b6388/notmuch-parser-f8705f98-6bf14062.eln
#29 0x0000555555759d33 in funcall_subr (subr=<optimized out>, numargs=numargs <at> entry=2, args=args <at> entry=0x7fffffffc298) at eval.c:3185
#30 0x000055555575be0a in funcall_general (fun=<optimized out>, numargs=numargs <at> entry=2, args=args <at> entry=0x7fffffffc298) at /home/yantar92/Git/emacs/src/lisp.h:2335
#31 0x0000555555757f22 in Ffuncall (nargs=3, args=0x7fffffffc290) at eval.c:3115
#32 0x00007fffd4c18b32 in F6e6f746d7563682d7365617263682d70726f636573732d66696c746572_notmuch_search_process_filter_0 () at /home/yantar92/.emacs.d/eln-cache/31.0.50-7a3b6388/notmuch-dd5194ce-b0908765.eln
#33 0x0000555555759d33 in funcall_subr (subr=<optimized out>, numargs=numargs <at> entry=2, args=args <at> entry=0x7fffffffc3e8) at eval.c:3185
#34 0x000055555575be0a in funcall_general (fun=<optimized out>, numargs=numargs <at> entry=2, args=args <at> entry=0x7fffffffc3e8) at /home/yantar92/Git/emacs/src/lisp.h:2335
#35 0x0000555555757f22 in Ffuncall (nargs=nargs <at> entry=3, args=args <at> entry=0x7fffffffc3e0) at eval.c:3115
#36 0x000055555575846f in Fapply (nargs=nargs <at> entry=2, args=args <at> entry=0x7fffffffc470) at eval.c:2787
#37 0x0000555555758542 in apply1 (fn=<optimized out>, arg=<optimized out>) at eval.c:3003
#38 0x00005555557ad48f in read_process_output_call (fun_and_args=fun_and_args <at> entry=XIL(0x7ffdd850ea63)) at process.c:6148
#39 0x00005555557568de in internal_condition_case_1
(bfun=bfun <at> entry=0x5555557ad476 <read_process_output_call>, arg=XIL(0x7ffdd850ea63), handlers=handlers <at> entry=XIL(0), hfun=hfun <at> entry=0x5555557ad3c7 <read_process_output_error_handler>) at eval.c:1651
#40 0x00005555557b02e6 in read_and_dispose_of_process_output (p=<optimized out>, chars=<optimized out>, nbytes=4096, coding=<optimized out>) at process.c:6517
#41 read_process_output (proc=proc <at> entry=XIL(0x7ffdd643af75), channel=channel <at> entry=33) at process.c:6285
#42 0x00005555557b84f4 in wait_reading_process_output
(time_limit=time_limit <at> entry=0, nsecs=nsecs <at> entry=0, read_kbd=read_kbd <at> entry=-1, do_display=true, wait_for_cell=wait_for_cell <at> entry=XIL(0), wait_proc=wait_proc <at> entry=0x0, just_wait_proc=0)
at process.c:5966
#43 0x00005555556df66c in kbd_buffer_get_event (kbp=<synthetic pointer>, used_mouse_menu=0x7fffffffcffb, end_time=0x0) at keyboard.c:4115
#44 read_event_from_main_queue (end_time=end_time <at> entry=0x0, local_getcjmp=local_getcjmp <at> entry=0x7fffffffccd0, used_mouse_menu=used_mouse_menu <at> entry=0x7fffffffcffb) at keyboard.c:2336
#45 0x00005555556e22dd in read_decoded_event_from_main_queue (end_time=<optimized out>, local_getcjmp=<optimized out>, prev_event=<optimized out>, used_mouse_menu=<optimized out>) at keyboard.c:2399
#46 read_char (commandflag=1, map=map <at> entry=XIL(0x7ffdd85b10c3), prev_event=XIL(0), used_mouse_menu=used_mouse_menu <at> entry=0x7fffffffcffb, end_time=end_time <at> entry=0x0) at keyboard.c:3031
#47 0x00005555556e386d in read_key_sequence
(keybuf=keybuf <at> entry=0x7fffffffd150, prompt=prompt <at> entry=XIL(0), dont_downcase_last=dont_downcase_last <at> entry=false, can_return_switch_frame=can_return_switch_frame <at> entry=true, fix_current_buffer=fix_current_buffer <at> entry=true, prevent_redisplay=prevent_redisplay <at> entry=false, disable_text_conversion_p=false) at keyboard.c:10790
#48 0x00005555556e59f7 in command_loop_1 () at keyboard.c:1435
--Type <RET> for more, q to quit, c to continue without paging--c
#49 0x0000555555756866 in internal_condition_case (bfun=bfun <at> entry=0x5555556e5505 <command_loop_1>, handlers=handlers <at> entry=XIL(0xa8), hfun=hfun <at> entry=0x5555556d6470 <cmd_error>) at eval.c:1627
#50 0x00005555556d1247 in command_loop_2 (handlers=handlers <at> entry=XIL(0xa8)) at keyboard.c:1174
#51 0x00005555557567a1 in internal_catch (tag=tag <at> entry=XIL(0x15498), func=func <at> entry=0x5555556d1217 <command_loop_2>, arg=arg <at> entry=XIL(0xa8)) at eval.c:1306
#52 0x00005555556d11f4 in command_loop () at keyboard.c:1152
#53 0x00005555556d5fe3 in recursive_edit_1 () at keyboard.c:760
#54 0x00005555556d638b in Frecursive_edit () at keyboard.c:843
#55 0x00005555556d044b in main (argc=1, argv=0x7fffffffd5e8) at emacs.c:2658
Lisp Backtrace:
"read" (0xffffbf88)
"notmuch-sexp-read" (0xffffc108)
"notmuch-sexp-parse-partial-list" (0xffffc298)
"notmuch-search-process-filter" (0xffffc3e8)
(gdb) q
In GNU Emacs 31.0.50 (build 1, x86_64-pc-linux-gnu, GTK+ Version
3.24.42, cairo version 1.18.2) of 2025-01-30 built on localhost
Repository revision: 67e602105774a31508239a6d2a6a05a4d4c5d363
Repository branch: feature/igc
Windowing system distributor 'The X.Org Foundation', version 11.0.12101014
System Description: Gentoo Linux
Configured using:
'configure --with-mps=yes --with-native-compilation 'CFLAGS=-g3
-I/opt/mps/include -L/opt/mps/lib'
JAVAC=/etc/java-config-2/current-system-vm/bin/javac
PKG_CONFIG_PATH=/usr/share/guile-data/3.0/pkgconfig'
--
Ihor Radchenko // yantar92,
Org mode maintainer,
Learn more about Org mode at <https://orgmode.org/>.
Support Org development at <https://liberapay.com/org-mode>,
or support my work at <https://liberapay.com/yantar92>
Information forwarded
to
bug-gnu-emacs <at> gnu.org
:
bug#75976
; Package
emacs
.
(Fri, 31 Jan 2025 20:10:02 GMT)
Full text and
rfc822 format available.
Message #8 received at 75976 <at> debbugs.gnu.org (full text, mbox):
"Ihor Radchenko" <yantar92 <at> posteo.net> writes:
> just got this backtrace:
>
> protix.c:117: Emacs fatal error: assertion failed: unreachable code
Interesting one:
An mprotect call failed. Do you have a coredump or the gdb
session/process still open?
Pip
Information forwarded
to
bug-gnu-emacs <at> gnu.org
:
bug#75976
; Package
emacs
.
(Sun, 02 Feb 2025 15:08:01 GMT)
Full text and
rfc822 format available.
Message #11 received at 75976 <at> debbugs.gnu.org (full text, mbox):
Pip Cet <pipcet <at> protonmail.com> writes:
>> protix.c:117: Emacs fatal error: assertion failed: unreachable code
>
> Interesting one:
>
> An mprotect call failed. Do you have a coredump or the gdb
> session/process still open?
Unfortunately, no.
And, ironically, I got 3 crashes on Friday but nothing yesterday and
today.
--
Ihor Radchenko // yantar92,
Org mode maintainer,
Learn more about Org mode at <https://orgmode.org/>.
Support Org development at <https://liberapay.com/org-mode>,
or support my work at <https://liberapay.com/yantar92>
Information forwarded
to
bug-gnu-emacs <at> gnu.org
:
bug#75976
; Package
emacs
.
(Fri, 21 Feb 2025 18:22:02 GMT)
Full text and
rfc822 format available.
Message #14 received at 75976 <at> debbugs.gnu.org (full text, mbox):
"Ihor Radchenko" <yantar92 <at> posteo.net> writes:
> Pip Cet <pipcet <at> protonmail.com> writes:
>
>>> protix.c:117: Emacs fatal error: assertion failed: unreachable code
>>
>> Interesting one:
>>
>> An mprotect call failed. Do you have a coredump or the gdb
>> session/process still open?
>
> Unfortunately, no.
> And, ironically, I got 3 crashes on Friday but nothing yesterday and
> today.
Ihor,
has anything like this happened with recent code? If not, we should
probably close this bug report?
Thanks
Pip
Information forwarded
to
bug-gnu-emacs <at> gnu.org
:
bug#75976
; Package
emacs
.
(Fri, 21 Feb 2025 18:31:01 GMT)
Full text and
rfc822 format available.
Message #17 received at 75976 <at> debbugs.gnu.org (full text, mbox):
Pip Cet <pipcet <at> protonmail.com> writes:
> has anything like this happened with recent code? If not, we should
> probably close this bug report?
No longer reproducible.
So, feel free to close.
There is a chance that the crash was related to some combination of my
hard drive space exhausting, notmuch behaving strangely because of that,
and Emacs interacting with that strangely-behaving notmuch. If it is
true, such scenario is not what I can reproduce easily.
--
Ihor Radchenko // yantar92,
Org mode maintainer,
Learn more about Org mode at <https://orgmode.org/>.
Support Org development at <https://liberapay.com/org-mode>,
or support my work at <https://liberapay.com/yantar92>
Reply sent
to
Pip Cet <pipcet <at> protonmail.com>
:
You have taken responsibility.
(Fri, 21 Feb 2025 18:34:03 GMT)
Full text and
rfc822 format available.
Notification sent
to
Ihor Radchenko <yantar92 <at> posteo.net>
:
bug acknowledged by developer.
(Fri, 21 Feb 2025 18:34:03 GMT)
Full text and
rfc822 format available.
Message #22 received at 75976-done <at> debbugs.gnu.org (full text, mbox):
"Ihor Radchenko" <yantar92 <at> posteo.net> writes:
> Pip Cet <pipcet <at> protonmail.com> writes:
>
>> has anything like this happened with recent code? If not, we should
>> probably close this bug report?
>
> No longer reproducible.
> So, feel free to close.
>
> There is a chance that the crash was related to some combination of my
> hard drive space exhausting, notmuch behaving strangely because of that,
^^^^^^^^^^^^^^^^
Did you run out of virtual memory as well? As far as I know, that might
explain mprotect acting weirdly...
I'll close this for now, just to get a better overview of still-open
issues.
Thanks for the report!
Pip
Information forwarded
to
bug-gnu-emacs <at> gnu.org
:
bug#75976
; Package
emacs
.
(Fri, 21 Feb 2025 18:37:02 GMT)
Full text and
rfc822 format available.
Message #25 received at 75976-done <at> debbugs.gnu.org (full text, mbox):
Pip Cet <pipcet <at> protonmail.com> writes:
>> There is a chance that the crash was related to some combination of my
>> hard drive space exhausting, notmuch behaving strangely because of that,
> ^^^^^^^^^^^^^^^^
>
> Did you run out of virtual memory as well? As far as I know, that might
> explain mprotect acting weirdly...
Not virtual memory, no. It is just my automatic downloading of
bookmarked youtube videos that went out of control.
--
Ihor Radchenko // yantar92,
Org mode maintainer,
Learn more about Org mode at <https://orgmode.org/>.
Support Org development at <https://liberapay.com/org-mode>,
or support my work at <https://liberapay.com/yantar92>
bug archived.
Request was from
Debbugs Internal Request <help-debbugs <at> gnu.org>
to
internal_control <at> debbugs.gnu.org
.
(Sat, 22 Mar 2025 11:24:20 GMT)
Full text and
rfc822 format available.
This bug report was last modified 115 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.