Welcome to the CHICKEN Scheme pasting service
Crash in internal#hash-symbol pasted by sjamaan on Fri Jul 10 11:27:25 2026
(gdb) run 'test.scm' '-output-file' '/home/sjamaan/.cache/chicken-install/test/test.c' '-dynamic' '-feature' 'chicken-compile-shared' '-verbose' '-feature' 'compiling-extension' '-emit-all-import-libraries' '-regenerate-import-libraries' '-setup-mode' '-include-path' '/home/sjamaan/.cache/chicken-install/test' '-optimize-level' '2' '-debug-level' '1'
Starting program: /home/sjamaan/chickens/debug-6/bin/chicken 'test.scm' '-output-file' '/home/sjamaan/.cache/chicken-install/test/test.c' '-dynamic' '-feature' 'chicken-compile-shared' '-verbose' '-feature' 'compiling-extension' '-emit-all-import-libraries' '-regenerate-import-libraries' '-setup-mode' '-include-path' '/home/sjamaan/.cache/chicken-install/test' '-optimize-level' '2' '-debug-level' '1'
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/nix/store/57iz36553175g3178pvxjij8z5rcsd4n-glibc-2.42-61/lib/libthread_db.so.1".
Breakpoint 1, usual_panic (
msg=0x7ffff7311cc0 "Low-level type assertion (C_truep(C_bytevectorp(C_VAL1(str)))) failed at runtime.c:4571") at runtime.c:1648
1648 C_char *dmp = C_dump_trace(0);
(gdb) bt
#0 usual_panic (msg=0x7ffff7311cc0 "Low-level type assertion (C_truep(C_bytevectorp(C_VAL1(str)))) failed at runtime.c:4571") at runtime.c:1648
#1 0x00007ffff6bfa50f in C_u_i_bytevector_hash (str=140737487647328, start=1, end=281474707173103, rnd=62037) at runtime.c:4571
#2 0x00007ffff63881e0 in f_2820 (t0=136339177417208, t1=136339223223744, t2=1995) at internal.c:1414
#3 0x00007ffff6388d15 in f_2857 (c=4, av=0x7ffffff4cca0) at internal.c:1463
#4 0x00007ffff68a207c in f_9838 (c=3, av=0x7ffffff4d180) at expand.c:26235
#5 0x00007ffff5eaba4d in f_3855 (c=4, av=0x7ffffff4d180) at eval.c:9134
#6 0x00007ffff682a7d9 in f_6891 (c=2, av=0x7bfff2f598e0) at expand.c:20211
#7 0x00007ffff6807321 in f_16156 (c=2, av=0x7bfff2f598e0) at expand.c:18435
#8 0x00007ffff6807c3f in f_16158 (t0=136339180358176, t1=136339180357888, t2=14) at expand.c:18456
#9 0x00007ffff680881d in f_16183 (c=2, av=0x7bfff2e5f2c0) at expand.c:18475
#10 0x00007ffff680669e in f_16116 (c=2, av=0x7bfff2e5f2c0) at expand.c:18386
#11 0x00007ffff5bc17c5 in f_26217 (c=2, av=0x7bfff2e5f2c0) at library.c:42706
#12 0x00007ffff5bc4b0e in f_26360 (c=3, av=0x7bfff2e5f2c0) at library.c:42888
#13 0x00007ffff5bc1199 in f_26214 (t0=140737487627104, t1=30) at library.c:42682
#14 0x00007ffff5bc0bfa in f_26210 (t0=136339177685936, t1=136339180404888, t2=140737487632128, t3=69, t4=22, t5=22) at library.c:42663
#15 0x00007ffff5bc3ee4 in f_26264 (t0=140737487628088, t1=136339180404888, t2=22, t3=22) at library.c:42820
#16 0x00007ffff5bc409d in f_26273 (t0=140737487628136, t1=136339180404888, t2=22) at library.c:42831
#17 0x00007ffff5bc424a in f_26278 (t0=140737487628168, t1=136339180404888) at library.c:42842
#18 0x00007ffff5bc2f88 in f_26252 (c=3, av=0x7ffffff4ecc0) at library.c:42781
#19 0x00007ffff68cacc6 in f_10405 (c=2, av=0x7bfff31877a0) at modules.c:3839
#20 0x00007ffff694df92 in f_6783 (t0=140737488067600, t1=140737488077824, t2=14, t3=136339180401136, t4=140737487632128) at modules.c:11229
#21 0x00007ffff6950ad5 in f_6858 (t0=140737488043120, t1=140737488077824, t2=14, t3=140737487632128) at modules.c:11339
#22 0x00007ffff6952689 in f_6888 (c=2, av=0x7bfff3248540) at modules.c:11401
#23 0x00007ffff638b786 in f_2928 (t0=140737487635408, t1=140737487636448, t2=14) at internal.c:1553
#24 0x00007ffff638a92f in f_2916 (c=5, av=0x7ffffff50740) at internal.c:1528
#25 0x00007ffff695194e in f_6880 (c=2, av=0x7bfff30ba720) at modules.c:11381
#26 0x00007ffff638909c in f_2857 (c=4, av=0x7bfff30ba720) at internal.c:1473
#27 0x00007ffff6950e0d in f_6858 (t0=140737488043120, t1=140737488077824, t2=136339177905760, t3=140737487638560) at modules.c:11349
#28 0x00007ffff6952689 in f_6888 (c=2, av=0x7bfff3247d40) at modules.c:11401
#29 0x00007ffff638b786 in f_2928 (t0=140737487641840, t1=140737487642880, t2=14) at internal.c:1553
#30 0x00007ffff638a92f in f_2916 (c=5, av=0x7ffffff52060) at internal.c:1528
#31 0x00007ffff695194e in f_6880 (c=2, av=0x7bfff30b9b20) at modules.c:11381
#32 0x00007ffff638909c in f_2857 (c=4, av=0x7bfff30b9b20) at internal.c:1473
#33 0x00007ffff6950e0d in f_6858 (t0=140737488043120, t1=140737488077824, t2=136339177904016, t3=140737487645024) at modules.c:11349
#34 0x00007ffff6952689 in f_6888 (c=2, av=0x7bfff3247540) at modules.c:11401
#35 0x00007ffff638b786 in f_2928 (t0=140737487648304, t1=140737487649344, t2=14) at internal.c:1553
#36 0x00007ffff638a92f in f_2916 (c=5, av=0x7ffffff539a0) at internal.c:1528
#37 0x00007ffff695194e in f_6880 (c=2, av=0x7bfff30b8f20) at modules.c:11381
#38 0x00007ffff638909c in f_2857 (c=4, av=0x7bfff30b8f20) at internal.c:1473
#39 0x00007ffff6950e0d in f_6858 (t0=140737488043120, t1=140737488077824, t2=136339177902112, t3=140737487651456) at modules.c:11349
#40 0x00007ffff6952689 in f_6888 (c=2, av=0x7bfff3246d40) at modules.c:11401
#41 0x00007ffff638b786 in f_2928 (t0=140737487654480, t1=140737487655520, t2=14) at internal.c:1553
#42 0x00007ffff638a92f in f_2916 (c=5, av=0x7ffffff551c0) at internal.c:1528
--Type for more, q to quit, c to continue without paging--q
❌️ Quit
(gdb) select 2
(gdb) print /x ((C_SCHEME_BLOCK *)t4)
$1 = 0x7ffffff53260
(gdb) print /x *((C_SCHEME_BLOCK *)t4)
$2 = {header = 0x7ffff7f79778, data = 0x7ffffff53268}
(gdb) print /x *((C_SCHEME_BLOCK *)t1)
$3 = {header = 0x100000000000003, data = 0x7bfff2f81dc8}
(gdb) print /x ((C_SCHEME_BLOCK *)t1)->header
$4 = 0x100000000000003
(gdb) print /x (((C_SCHEME_BLOCK *)t1)->header) - 0x1000000000000000L
$5 = 0xf100000000000003
(gdb) print /x (((C_SCHEME_BLOCK *)t1)->header) - 0x1-000000000000000L
$6 = 0x100000000000002
(gdb) print /x (((C_SCHEME_BLOCK *)t1)->header) - 0x10000000000000000L
❌️ Numeric constant too large.
(gdb) print /x (((C_SCHEME_BLOCK *)t1)->header) - 0x1000000000000000L
$7 = 0xf100000000000003
(gdb) print /x (((C_SCHEME_BLOCK *)t1)->header) - 0x100000000000000L
$8 = 0x3
(gdb) print /x ((C_SCHEME_BLOCK *)t1)->header
$9 = 0x100000000000003
(gdb) print /x *((C_SCHEME_BLOCK *)t4)
$10 = {header = 0x7ffff7f79778, data = 0x7ffffff53268}
Function body of the culprit pasted by sjamaan on Fri Jul 10 11:28:34 2026
/* chicken.internal#hash-symbol in k1031 */ static C_word f_2820(C_word t0,C_word t1,C_word t2){ C_word tmp; C_word t3; C_word t4; C_word t5; C_word t6; C_word t7; C_word t8; C_word t9; C_stack_overflow_check;{} t3=C_eqp(t1,((C_word*)((C_word*)t0)[2])[1]); if(C_truep(t3)){ return(C_fixnum_modulo(((C_word*)((C_word*)t0)[3])[1],t2));} else{ t4=C_slot(t1,C_fix(1)); t5=C_mutate(((C_word *)((C_word*)t0)[2])+1,t1); t6=C_block_size(t4); t7=C_fixnum_difference(t6,C_fix(1)); t8=C_mutate(((C_word *)((C_word*)t0)[3])+1,C_u_i_bytevector_hash(t4,C_fix(0),t7,((C_word*)t0)[4])); return(C_fixnum_modulo(((C_word*)((C_word*)t0)[3])[1],t2));}}
x/8xg t4 pasted by sjamaan on Fri Jul 10 11:46:17 2026
(gdb) x/8xg t4 0x7ffffff53260: 0x00007ffff7f79778 0x00007ffff78fb8b2 0x7ffffff53270: 0x00007bfff06ab6a0 0x00007ffffff532c0 0x7ffffff53280: 0x00007ffffff532c0 0x00007ffff784f9b8 0x7ffffff53290: 0x00007bfff06ab6b0 0x00007ffff7932e6d
x/8xg t1 added by sjamaan on Fri Jul 10 11:49:16 2026
(gdb) x/8xg t1 0x7bfff2f81dc0: 0x0100000000000003 0x000000000000002e 0x7bfff2f81dd0: 0x00007ffffff53260 0x00007bfff069f0f8 0x7bfff2f81de0: 0x0000000000000000 0x0000000000000000 0x7bfff2f81df0: 0x0000000000000000 0x00007bfff2cfe81d