emacs-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

MPS: a random backtrace while toying with gdb


From: Ihor Radchenko
Subject: MPS: a random backtrace while toying with gdb
Date: Sat, 29 Jun 2024 19:12:22 +0000

I just got this while starting up Emacs on the latest scratch/igc (with
native-comp).

lockix.c:126: Emacs fatal error: assertion failed: res == 0

Thread 1 "emacs" hit Breakpoint 1, terminate_due_to_signal (sig=sig@entry=6, 
backtrace_limit=backtrace_limit@entry=2147483647) at emacs.c:443
443     {
(gdb) bt
#0  terminate_due_to_signal (sig=sig@entry=6, 
backtrace_limit=backtrace_limit@entry=2147483647) at emacs.c:443
#1  0x00005555558634be in set_state (state=IGC_STATE_DEAD) at igc.c:179
#2  igc_assert_fail (file=<optimized out>, line=<optimized out>, msg=<optimized 
out>) at igc.c:205
#3  0x00005555558f1e19 in mps_lib_assert_fail (condition=0x555555943c4c "res == 
0", line=126, file=0x555555943c36 "lockix.c")
    at /home/yantar92/Dist/mps/code/mpsliban.c:87
#4  LockClaim (lock=0x7fffe8000110) at /home/yantar92/Dist/mps/code/lockix.c:126
#5  0x00005555558f204d in ArenaEnterLock (arena=0x7ffff7fbf000, recursive=0) at 
/home/yantar92/Dist/mps/code/global.c:576
#6  0x000055555591aefe in ArenaEnter (arena=0x7ffff7fbf000) at 
/home/yantar92/Dist/mps/code/global.c:553
#7  ArenaAccess (addr=0x7fffeb908758, mode=mode@entry=3, 
context=context@entry=0x7fffffff97d0) at 
/home/yantar92/Dist/mps/code/global.c:655
#8  0x0000555555926202 in sigHandle (sig=<optimized out>, info=0x7fffffff9af0, 
uap=0x7fffffff99c0) at /home/yantar92/Dist/mps/code/protsgix.c:97
#9  0x00007ffff3048050 in <signal handler called> () at /lib64/libc.so.6
#10 0x0000555555827385 in PSEUDOVECTORP (a=XIL(0x7fffeb90875d), code=9) at 
/home/yantar92/Git/emacs/src/lisp.h:1105
#11 PROCESSP (a=XIL(0x7fffeb90875d)) at 
/home/yantar92/Git/emacs/src/process.h:212
#12 XPROCESS (a=XIL(0x7fffeb90875d)) at 
/home/yantar92/Git/emacs/src/process.h:224
#13 handle_child_signal (sig=sig@entry=17) at process.c:7660
#14 0x000055555573b771 in deliver_process_signal (sig=17, 
handler=handler@entry=0x555555827200 <handle_child_signal>) at sysdep.c:1758
#15 0x0000555555820647 in deliver_child_signal (sig=<optimized out>) at 
process.c:7702
#16 0x00007ffff3048050 in <signal handler called> () at /lib64/libc.so.6
#17 0x000055555585f77b in fix_lisp_obj (ss=ss@entry=0x7fffffffa9a8, 
pobj=pobj@entry=0x7fffeee7ffe8) at igc.c:841
#18 0x000055555586050d in fix_cons (ss=0x7fffffffa9a8, cons=0x7fffeee7ffe0) at 
igc.c:1474
#19 dflt_scan_obj (ss=0x7fffffffa9a8, base_start=0x7fffeee7ffd8, 
base_limit=0x7fffeee80000, closure=0x0) at igc.c:1578
#20 dflt_scanx (ss=ss@entry=0x7fffffffa9a8, base_start=<optimized out>, 
base_limit=0x7fffeee80000, closure=closure@entry=0x0) at igc.c:1658
#21 0x00005555558613a3 in dflt_scan (ss=0x7fffffffa9a8, base_start=<optimized 
out>, base_limit=<optimized out>) at igc.c:1669
#22 0x00005555558f163f in TraceScanFormat (limit=0x7fffeee80000, 
base=0x7fffeee7e000, ss=0x7fffffffa9a0) at 
/home/yantar92/Dist/mps/code/trace.c:1539
#23 amcSegScan (totalReturn=0x7fffffffa99c, seg=0x7fffe845e4c8, 
ss=0x7fffffffa9a0) at /home/yantar92/Dist/mps/code/poolamc.c:1440
#24 0x000055555591e7bc in traceScanSegRes (ts=ts@entry=1, rank=rank@entry=1, 
arena=arena@entry=0x7ffff7fbf000, seg=seg@entry=0x7fffe845e4c8)
    at /home/yantar92/Dist/mps/code/trace.c:1205
#25 0x000055555591e9ca in traceScanSeg (ts=1, rank=1, arena=0x7ffff7fbf000, 
seg=0x7fffe845e4c8) at /home/yantar92/Dist/mps/code/trace.c:1267
#26 0x000055555591f3a4 in TraceAdvance (trace=trace@entry=0x7ffff7fbfaa8) at 
/home/yantar92/Dist/mps/code/trace.c:1728
#27 0x000055555591faa4 in TracePoll
    (workReturn=workReturn@entry=0x7fffffffab90, 
collectWorldReturn=collectWorldReturn@entry=0x7fffffffab8c, 
globals=globals@entry=0x7ffff7fbf008, collectWorldAllowed=<optimized out>) at 
/home/yantar92/Dist/mps/code/trace.c:1849
#28 0x000055555591fceb in ArenaPoll (globals=globals@entry=0x7ffff7fbf008) at 
/home/yantar92/Dist/mps/code/global.c:745
#29 0x00005555559200da in mps_ap_fill (p_o=p_o@entry=0x7fffffffad00, 
mps_ap=mps_ap@entry=0x7fffe80017f0, size=size@entry=24)
    at /home/yantar92/Dist/mps/code/mpsi.c:1097
#30 0x00005555558601ee in alloc_impl (size=24, type=IGC_OBJ_CONS, 
ap=0x7fffe80017f0) at igc.c:3330
#31 0x000055555586023c in alloc (size=size@entry=16, 
type=type@entry=IGC_OBJ_CONS) at igc.c:3358
#32 0x000055555586187a in igc_make_cons (car=XIL(0x133e0), cdr=XIL(0)) at 
igc.c:3385
#33 0x000055555578e7de in Fcons (car=<optimized out>, cdr=<optimized out>) at 
alloc.c:2926
#34 Flist (nargs=31, args=0x7fffffffaf38) at alloc.c:3054
#35 0x00007ffff06b13ea in 
F7365742d666163652d617474726962757465_set_face_attribute_0 ()
--Type <RET> for more, q to quit, c to continue without paging--c
    at 
/home/yantar92/Git/emacs/src/../native-lisp/31.0.50-27937d9d/preloaded/faces-b9447c93-32c2609b.eln
#36 0x00005555557bfcbc in funcall_subr (subr=<optimized out>, 
numargs=numargs@entry=34, args=args@entry=0x7fffffffaf28) at eval.c:3209
#37 0x00005555557c28bb in funcall_general (fun=<optimized out>, 
numargs=numargs@entry=34, args=args@entry=0x7fffffffaf28) at eval.c:3065
#38 0x00005555557bd2dc in Ffuncall (nargs=nargs@entry=35, 
args=args@entry=0x7fffffffaf20) at eval.c:3118
#39 0x00005555557bda80 in Fapply (nargs=4, args=0x7fffffffb0e0) at eval.c:2790
#40 0x00007ffff06b6cac in 
F666163652d737065632d72657365742d66616365_face_spec_reset_face_0 ()
    at 
/home/yantar92/Git/emacs/src/../native-lisp/31.0.50-27937d9d/preloaded/faces-b9447c93-32c2609b.eln
#41 0x00005555557bfbb5 in funcall_subr (subr=<optimized out>, 
numargs=numargs@entry=2, args=args@entry=0x7fffffffb2d8) at eval.c:3188
#42 0x00005555557c28bb in funcall_general (fun=<optimized out>, 
numargs=numargs@entry=2, args=args@entry=0x7fffffffb2d8) at eval.c:3065
#43 0x00005555557bd2dc in Ffuncall (nargs=3, args=0x7fffffffb2d0) at eval.c:3118
#44 0x00007ffff06b6fb6 in F666163652d737065632d726563616c63_face_spec_recalc_0 
()
    at 
/home/yantar92/Git/emacs/src/../native-lisp/31.0.50-27937d9d/preloaded/faces-b9447c93-32c2609b.eln
#45 0x00005555557bfbb5 in funcall_subr (subr=<optimized out>, 
numargs=numargs@entry=2, args=args@entry=0x7fffffffb598) at eval.c:3188
#46 0x00005555557c28bb in funcall_general (fun=<optimized out>, 
numargs=numargs@entry=2, args=args@entry=0x7fffffffb598) at eval.c:3065
#47 0x00005555557bd2dc in Ffuncall (nargs=3, args=0x7fffffffb590) at eval.c:3118
#48 0x00007ffff06b6e61 in F666163652d737065632d736574_face_spec_set_0 ()
    at 
/home/yantar92/Git/emacs/src/../native-lisp/31.0.50-27937d9d/preloaded/faces-b9447c93-32c2609b.eln
#49 0x00005555557bfbcc in funcall_subr (subr=<optimized out>, 
numargs=numargs@entry=3, args=args@entry=0x7fffffffb6f8) at eval.c:3190
#50 0x00005555557c28bb in funcall_general (fun=<optimized out>, 
numargs=numargs@entry=3, args=args@entry=0x7fffffffb6f8) at eval.c:3065
#51 0x00005555557bd2dc in Ffuncall (nargs=4, args=0x7fffffffb6f0) at eval.c:3118
#52 0x00007fffe02fa20c in 
F637573746f6d2d6465636c6172652d66616365_custom_declare_face_0 ()
    at 
/home/yantar92/Git/emacs/src/../native-lisp/31.0.50-27937d9d/preloaded/cus-face-74f1689e-33ab82e8.eln
#53 0x00005555557c162c in eval_sub (form=form@entry=XIL(0x7fffe5fb38fb)) at 
/home/yantar92/Git/emacs/src/lisp.h:2267
#54 0x00005555557fce9f in readevalloop
    (readcharfun=readcharfun@entry=XIL(0x98a0), 
infile0=infile0@entry=0x7fffffffb950, 
sourcename=sourcename@entry=XIL(0x7fffe5fb20c4), 
printflag=printflag@entry=false, unibyte=unibyte@entry=XIL(0), 
readfun=readfun@entry=XIL(0), start=XIL(0), end=<optimized out>) at lread.c:2541
#55 0x00005555557fdc0b in Fload (file=<optimized out>, 
    file@entry=XIL(0x7fffe89a00ac), noerror=noerror@entry=XIL(0x30), 
nomessage=nomessage@entry=XIL(0x30), nosuffix=nosuffix@entry=XIL(0), 
must_suffix=<optimized out>, must_suffix@entry=XIL(0x30)) at lread.c:1732
#56 0x00005555557fdda8 in save_match_data_load
    (file=file@entry=XIL(0x7fffe89a00ac), noerror=noerror@entry=XIL(0x30), 
nomessage=nomessage@entry=XIL(0x30), nosuffix=nosuffix@entry=XIL(0), 
must_suffix=must_suffix@entry=XIL(0x30)) at lread.c:1781
#57 0x00005555557bd087 in load_with_autoload_queue
    (file=file@entry=XIL(0x7fffe89a00ac), noerror=noerror@entry=XIL(0x30), 
nomessage=nomessage@entry=XIL(0x30), nosuffix=nosuffix@entry=XIL(0), 
must_suffix=must_suffix@entry=XIL(0x30)) at eval.c:2401
#58 0x00005555557d573d in Frequire (feature=XIL(0x2aaa929409f8), 
filename=<optimized out>, noerror=XIL(0x30)) at fns.c:3768
#59 0x00005555557c17bd in eval_sub (form=<optimized out>) at eval.c:2629
#60 0x00005555557c13fe in eval_sub (form=<optimized out>) at eval.c:2611
#61 0x00005555557c2b25 in Fif (args=XIL(0x7fffe5fafa03)) at eval.c:400
#62 0x00005555557c14ed in eval_sub (form=<optimized out>) at eval.c:2574
#63 0x00005555557c1f5e in Fprogn (body=<optimized out>) at eval.c:448
#64 0x00005555557c14ed in eval_sub (form=form@entry=XIL(0x7fffe5f882f3)) at 
eval.c:2574
#65 0x00005555557c42cb in internal_lisp_condition_case 
(var=XIL(0x2aaa8c8ec508), bodyform=<optimized out>, handlers=<optimized out>) 
at eval.c:1583
#66 0x00005555557c4664 in Fcondition_case (args=<optimized out>) at eval.c:1454
#67 0x00005555557c14ed in eval_sub (form=<optimized out>) at eval.c:2574
#68 0x00005555557c1f5e in Fprogn (body=<optimized out>) at eval.c:448
#69 0x00005555557c14ed in eval_sub (form=<optimized out>) at eval.c:2574
#70 0x00005555557c2b4c in Fif (args=<optimized out>) at eval.c:403
#71 0x00005555557c14ed in eval_sub (form=<optimized out>) at eval.c:2574
#72 0x00005555557f48e5 in readevalloop_eager_expand_eval (val=<optimized out>, 
macroexpand=macroexpand@entry=XIL(0xb3d0)) at lread.c:2357
#73 0x00005555557f4859 in readevalloop_eager_expand_eval (val=XIL(0), 
val@entry=XIL(0x7fffe5f7d80b), macroexpand=macroexpand@entry=XIL(0xb3d0))
    at /home/yantar92/Git/emacs/src/lisp.h:1522
#74 0x00005555557fce01 in readevalloop
    (readcharfun=readcharfun@entry=XIL(0x7fffe2905d95), 
infile0=infile0@entry=0x0, sourcename=sourcename@entry=XIL(0x7fffe2905c3c), 
printflag=printflag@entry=false, unibyte=unibyte@entry=XIL(0), 
readfun=readfun@entry=XIL(0), start=XIL(0), end=<optimized out>) at lread.c:2539
#75 0x00005555557fdfdb in Feval_buffer
    (buffer=<optimized out>, printflag=XIL(0), filename=XIL(0x7fffe2905c3c), 
unibyte=XIL(0), do_allow_print=<optimized out>) at lread.c:2614
#76 0x00007fffe01023e4 in 
F6c6f61642d776974682d636f64652d636f6e76657273696f6e_load_with_code_conversion_0 
()
    at 
/home/yantar92/Git/emacs/src/../native-lisp/31.0.50-27937d9d/preloaded/mule-3352613d-8d84c8e1.eln
#77 0x00005555557bfc06 in funcall_subr (subr=<optimized out>, 
numargs=numargs@entry=4, args=args@entry=0x7fffffffc678) at eval.c:3194
#78 0x00005555557c28bb in funcall_general (fun=<optimized out>, 
numargs=numargs@entry=4, args=args@entry=0x7fffffffc678) at eval.c:3065
#79 0x00005555557bd2dc in Ffuncall (nargs=nargs@entry=5, 
args=args@entry=0x7fffffffc670) at eval.c:3118
#80 0x00005555557fd947 in Fload
    (file=<optimized out>, noerror=<optimized out>, nomessage=<optimized out>, 
nosuffix=<optimized out>, must_suffix=<optimized out>) at lread.c:1620
#81 0x00005555557c1807 in eval_sub (form=<optimized out>) at eval.c:2637
#82 0x00005555557c1f5e in Fprogn (body=<optimized out>) at eval.c:448
#83 0x00005555557c36f8 in Flet (args=<optimized out>) at 
/home/yantar92/Git/emacs/src/lisp.h:1522
#84 0x00005555557c14ed in eval_sub (form=<optimized out>) at eval.c:2574
#85 0x00005555557f48e5 in readevalloop_eager_expand_eval (val=<optimized out>, 
val@entry=XIL(0x7fffe29054e3), macroexpand=macroexpand@entry=XIL(0xb3d0))
    at lread.c:2357
#86 0x00005555557fce01 in readevalloop
    (readcharfun=readcharfun@entry=XIL(0x7fffe29026a5), 
infile0=infile0@entry=0x0, sourcename=sourcename@entry=XIL(0x7fffe290259c), 
printflag=printflag@entry=false, unibyte=unibyte@entry=XIL(0), 
readfun=readfun@entry=XIL(0), start=XIL(0), end=<optimized out>) at lread.c:2539
#87 0x00005555557fdfdb in Feval_buffer
    (buffer=<optimized out>, printflag=XIL(0), filename=XIL(0x7fffe290259c), 
unibyte=XIL(0), do_allow_print=<optimized out>) at lread.c:2614
#88 0x00007fffe01023e4 in 
F6c6f61642d776974682d636f64652d636f6e76657273696f6e_load_with_code_conversion_0 
()
    at 
/home/yantar92/Git/emacs/src/../native-lisp/31.0.50-27937d9d/preloaded/mule-3352613d-8d84c8e1.eln
#89 0x00005555557bfc06 in funcall_subr (subr=<optimized out>, 
numargs=numargs@entry=4, args=args@entry=0x7fffffffcdd8) at eval.c:3194
#90 0x00005555557c28bb in funcall_general (fun=<optimized out>, 
numargs=numargs@entry=4, args=args@entry=0x7fffffffcdd8) at eval.c:3065
#91 0x00005555557bd2dc in Ffuncall (nargs=nargs@entry=5, 
args=args@entry=0x7fffffffcdd0) at eval.c:3118
#92 0x00005555557fd947 in Fload
    (file=<optimized out>, noerror=<optimized out>, nomessage=<optimized out>, 
nosuffix=<optimized out>, must_suffix=<optimized out>) at lread.c:1620
#93 0x00005555557bfc06 in funcall_subr (subr=<optimized out>, 
numargs=numargs@entry=3, args=args@entry=0x7fffdf200048) at eval.c:3194
#94 0x0000555555811438 in exec_byte_code (fun=<optimized out>, 
fun@entry=XIL(0x7fffe28f3c55), args_template=<optimized out>, 
    args_template@entry=0, nargs=<optimized out>, nargs@entry=0, 
args=<optimized out>, args@entry=0x7fffffffd0d0)
    at /home/yantar92/Git/emacs/src/lisp.h:2267
#95 0x00005555557c20cf in funcall_lambda (fun=XIL(0x7fffe28f3c55), 
nargs=nargs@entry=0, arg_vector=arg_vector@entry=0x7fffffffd0d0) at eval.c:3277
#96 0x00005555557c2a70 in funcall_general (fun=<optimized out>, 
numargs=numargs@entry=0, args=args@entry=0x7fffffffd0d0) at eval.c:3069
#97 0x00005555557bd2dc in Ffuncall (nargs=1, args=0x7fffffffd0c8) at eval.c:3118
#98 0x00007fffdff374f7 in 
F737461727475702d2d6c6f61642d757365722d696e69742d66696c65_startup__load_user_init_file_0
 ()
    at 
/home/yantar92/Git/emacs/src/../native-lisp/31.0.50-27937d9d/preloaded/startup-bbc6ea72-e56c9510.eln
#99 0x00005555557bfbcc in funcall_subr (subr=<optimized out>, 
numargs=numargs@entry=3, args=args@entry=0x7fffffffd258) at eval.c:3190
#100 0x00005555557c28bb in funcall_general (fun=<optimized out>, 
numargs=numargs@entry=3, args=args@entry=0x7fffffffd258) at eval.c:3065
#101 0x00005555557bd2dc in Ffuncall (nargs=4, args=0x7fffffffd250) at 
eval.c:3118
#102 0x00007fffdff3892b in F636f6d6d616e642d6c696e65_command_line_0 ()
    at 
/home/yantar92/Git/emacs/src/../native-lisp/31.0.50-27937d9d/preloaded/startup-bbc6ea72-e56c9510.eln
#103 0x00005555557bfb96 in funcall_subr (subr=<optimized out>, 
numargs=numargs@entry=0, args=args@entry=0x7fffffffd3c0) at eval.c:3184
#104 0x00005555557c28bb in funcall_general (fun=<optimized out>, 
numargs=numargs@entry=0, args=args@entry=0x7fffffffd3c0) at eval.c:3065
#105 0x00005555557bd2dc in Ffuncall (nargs=1, args=0x7fffffffd3b8) at 
eval.c:3118
#106 0x00007fffdff353f0 in F6e6f726d616c2d746f702d6c6576656c_normal_top_level_0 
()
    at 
/home/yantar92/Git/emacs/src/../native-lisp/31.0.50-27937d9d/preloaded/startup-bbc6ea72-e56c9510.eln
#107 0x00005555557c1e73 in eval_sub (form=form@entry=XIL(0x7fffe08b357b)) at 
eval.c:2620
#108 0x00005555557c46ac in Feval (form=XIL(0x7fffe08b357b), 
lexical=lexical@entry=XIL(0x30)) at eval.c:2482
#109 0x00005555557137d8 in top_level_2 () at keyboard.c:1185
#110 0x00005555557bb469 in internal_condition_case
    (bfun=bfun@entry=0x5555557137b9 <top_level_2>, 
handlers=handlers@entry=XIL(0x90), hfun=hfun@entry=0x55555571a734 <cmd_error>) 
at eval.c:1629
#111 0x00005555557134e4 in top_level_1 (ignore=ignore@entry=XIL(0)) at 
keyboard.c:1197
#112 0x00005555557bb368 in internal_catch (tag=tag@entry=XIL(0x12360), 
func=func@entry=0x5555557134ba <top_level_1>, arg=arg@entry=XIL(0)) at 
eval.c:1308
#113 0x0000555555713450 in command_loop () at keyboard.c:1146
#114 0x000055555571a219 in recursive_edit_1 () at keyboard.c:755
#115 0x000055555571a58e in Frecursive_edit () at keyboard.c:838
#116 0x0000555555712f37 in main (argc=1, argv=<optimized out>) at emacs.c:2651

Lisp Backtrace:
"set-face-attribute" (0xffffaf28)
"face-spec-reset-face" (0xffffb2d8)
"face-spec-recalc" (0xffffb598)
"face-spec-set" (0xffffb6f8)
"custom-declare-face" (0xffffb770)
"require" (0xffffbbb0)
"not" (0xffffbc58)
"if" (0xffffbd28)
"progn" (0xffffbdf8)
"condition-case" (0xffffbf38)
"progn" (0xffffc008)
"if" (0xffffc0d8)
"load-with-code-conversion" (0xffffc678)
"load" (0xffffc770)
"let" (0xffffc8c8)
"load-with-code-conversion" (0xffffcdd8)
"load" (0xdf200048)
0xe28f3c50 PVEC_CLOSURE
"startup--load-user-init-file" (0xffffd258)
"command-line" (0xffffd3c0)
"normal-top-level" (0xffffd450)

-- 
Ihor Radchenko // yantar92,
Org mode contributor,
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 via email to

[Prev in Thread] Current Thread [Next in Thread]