Subject: Re: bug#75477: 31.0.50; scratch/igc: crash on the latest commit

From: Ihor Radchenko <[email-masked]>
Date: Fri, 10 Jan 2025 17:13:42 +0000

Ihor Radchenko <[email-masked]> writes:

>> Weird.  Always worked here.  Does M-x igc-snapshot work?  Or M-x
>> igc--roots-snapshot ? (Note: double dash for the latter).
>
> Just checked with emacs -Q and it is working there. Something in my config...
>

... or not. Fresh Emacs did show something in that buffer.

I figured that I automatically used M-r (revert-buffer) and that emptied
the buffer.

After trying to kill it, next invocation of M-x igc-root-stats gave me

Debugger entered--Lisp error: (wrong-type-argument number-or-marker-p nil)
  (igc--roots-diff (("committed" 1 509386752 0) ("commit-limit" 1 -1 0) ("spare-committed" 1 316694528 0) ("reserved" 1 805310464 0) ("spare" nil 0.75 nil) ("pause-time" nil 0.1 nil) ("PVEC_FONT" 8280 1041320 312) ("PVEC_RECORD" 9782 646936 472) ("PVEC_SUB_CHAR_TABLE" 11983 11089896 1048) ("PVEC_CHAR_TABLE" 604 348472 656) ("PVEC_CLOSURE" 37132 1968992 64) ("PVEC_SQLITE" 0 0 0) ("PVEC_TS_COMPILED_QUERY" 0 0 0) ("PVEC_TS_NODE" 0 0 0) ("PVEC_TS_PARSER" 0 0 0) ("PVEC_NATIVE_COMP_UNIT" 725 127600 176) ("PVEC_MODULE_GLOBAL_REFERENCE" 52 1664 32) ("PVEC_MODULE_FUNCTION" 9 720 80) ("PVEC_CONDVAR" 0 0 0) ("PVEC_MUTEX" 0 0 0) ("PVEC_THREAD" 0 0 0) ("PVEC_XWIDGET_VIEW" 0 0 0) ("PVEC_XWIDGET" 0 0 0) ("PVEC_OTHER" 1 80 80) ("PVEC_SUBR" 50250 4824000 96) ("PVEC_WINDOW_CONFIGURATION" 8 960 120) ("PVEC_TERMINAL" 1 552 552) ("PVEC_OBARRAY" 166 5312 32) ("PVEC_WEAK_HASH_TABLE" 26 1040 40) ("PVEC_HASH_TABLE" 5505 484440 88) ("PVEC_BUFFER" 194 192448 992) ("PVEC_BOOL_VECTOR" 429 17152 40) ("PVEC_WINDOW" 23 12696 552) ("PVEC_FRAME" 1 664 664) ("PVEC_PROCESS" 2 752 376) ("PVEC_USER_PTR" 0 0 0) ("PVEC_MISC_PTR" 0 0 0) ("PVEC_SYMBOL_WITH_POS" 0 0 0) ("PVEC_FINALIZER" 0 0 0) ("PVEC_OVERLAY" 361 14440 40) ("PVEC_MARKER" 5118 286608 56) ("PVEC_BIGNUM" 234 7488 32) ("PVEC_FREE" 493 18376 312) ("PVEC_NORMAL_VECTOR" 81105 12569104 1048592) ("IGC_OBJ_WEAK_HASH_TABLE_STRONG_PART" 26 283792 82784) ("IGC_OBJ_WEAK_HASH_TABLE_WEAK_PART" 26 64912 16656) ("IGC_OBJ_DUMPED_BYTES" 1 19520 19520) ("IGC_OBJ_DUMPED_BIGNUM_DATA" 0 0 0) ("IGC_OBJ_DUMPED_BUFFER_TEXT" 0 0 0) ("IGC_OBJ_DUMPED_CODE_SPACE_MASKS" 1 10248 10248) ...) (("committed" 1 509386752 0) ("commit-limit" 1 -1 0) ("spare-committed" 1 323715072 0) ("reserved" 1 805310464 0) ("spare" nil 0.75 nil) ("pause-time" nil 0.1 nil) ("PVEC_FONT" 8280 1041320 312) ("PVEC_RECORD" 9755 644808 472) ("PVEC_SUB_CHAR_TABLE" 11983 11089896 1048) ("PVEC_CHAR_TABLE" 603 347848 656) ("PVEC_CLOSURE" 34530 1829304 64) ("PVEC_SQLITE" 0 0 0) ("PVEC_TS_COMPILED_QUERY" 0 0 0) ("PVEC_TS_NODE" 0 0 0) ("PVEC_TS_PARSER" 0 0 0) ("PVEC_NATIVE_COMP_UNIT" 725 127600 176) ("PVEC_MODULE_GLOBAL_REFERENCE" 52 1664 32) ("PVEC_MODULE_FUNCTION" 9 720 80) ("PVEC_CONDVAR" 0 0 0) ("PVEC_MUTEX" 0 0 0) ("PVEC_THREAD" 0 0 0) ("PVEC_XWIDGET_VIEW" 0 0 0) ("PVEC_XWIDGET" 0 0 0) ("PVEC_OTHER" 1 80 80) ("PVEC_SUBR" 50250 4824000 96) ("PVEC_WINDOW_CONFIGURATION" 5 600 120) ("PVEC_TERMINAL" 1 552 552) ("PVEC_OBARRAY" 166 5312 32) ("PVEC_WEAK_HASH_TABLE" 26 1040 40) ("PVEC_HASH_TABLE" 5502 484176 88) ("PVEC_BUFFER" 126 124992 992) ("PVEC_BOOL_VECTOR" 429 17152 40) ("PVEC_WINDOW" 17 9384 552) ("PVEC_FRAME" 1 664 664) ("PVEC_PROCESS" 2 752 376) ("PVEC_USER_PTR" 0 0 0) ("PVEC_MISC_PTR" 0 0 0) ("PVEC_SYMBOL_WITH_POS" 0 0 0) ("PVEC_FINALIZER" 0 0 0) ("PVEC_OVERLAY" 327 13080 40) ("PVEC_MARKER" 3783 211848 56) ("PVEC_BIGNUM" 200 6400 32) ("PVEC_FREE" 493 18376 312) ("PVEC_NORMAL_VECTOR" 78251 12435208 1048592) ("IGC_OBJ_WEAK_HASH_TABLE_STRONG_PART" 26 283792 82784) ("IGC_OBJ_WEAK_HASH_TABLE_WEAK_PART" 26 64912 16656) ("IGC_OBJ_DUMPED_BYTES" 1 19520 19520) ("IGC_OBJ_DUMPED_BIGNUM_DATA" 0 0 0) ("IGC_OBJ_DUMPED_BUFFER_TEXT" 0 0 0) ("IGC_OBJ_DUMPED_CODE_SPACE_MASKS" 1 10248 10248) ...))
  (igc--roots-info-to-display)
  (igc-roots-stats)
  (funcall-interactively igc-roots-stats)
  (command-execute igc-roots-stats record)
  (execute-extended-command nil "igc-roots-stats" nil)
  (funcall-interactively execute-extended-command nil "igc-roots-stats" nil)
  (command-execute execute-extended-command)

-- 
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>