From unknown Fri Aug 15 14:15:12 2025 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-Mailer: MIME-tools 5.509 (Entity 5.509) Content-Type: text/plain; charset=utf-8 From: bug#78824 <78824@debbugs.gnu.org> To: bug#78824 <78824@debbugs.gnu.org> Subject: Status: [igc] segfault in temacs during build => charset-table Reply-To: bug#78824 <78824@debbugs.gnu.org> Date: Fri, 15 Aug 2025 21:15:12 +0000 retitle 78824 [igc] segfault in temacs during build =3D> charset-table reassign 78824 emacs submitter 78824 Jeff Walsh severity 78824 normal thanks From debbugs-submit-bounces@debbugs.gnu.org Wed Jun 18 07:46:21 2025 Received: (at submit) by debbugs.gnu.org; 18 Jun 2025 11:46:21 +0000 Received: from localhost ([127.0.0.1]:47945 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1uRrFC-0005Sj-Gj for submit@debbugs.gnu.org; Wed, 18 Jun 2025 07:46:21 -0400 Received: from lists.gnu.org ([2001:470:142::17]:50094) by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1uRrF8-0005RD-Dx for submit@debbugs.gnu.org; Wed, 18 Jun 2025 07:46:16 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1uRrEs-0003uN-U7 for bug-gnu-emacs@gnu.org; Wed, 18 Jun 2025 07:46:01 -0400 Received: from mail-lj1-x236.google.com ([2a00:1450:4864:20::236]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1uRrEp-00084U-4U for bug-gnu-emacs@gnu.org; Wed, 18 Jun 2025 07:45:58 -0400 Received: by mail-lj1-x236.google.com with SMTP id 38308e7fff4ca-32b7cf56cacso5571301fa.1 for ; Wed, 18 Jun 2025 04:45:52 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1750247151; x=1750851951; darn=gnu.org; h=to:subject:message-id:date:from:mime-version:from:to:cc:subject :date:message-id:reply-to; bh=vqxTgpnpqb9I5KQG/N6wPTyMo44Q5/H+sfmethlpLqo=; b=Ag3Owyf5+uc1qcMirk/ETfEIUC1tiUigm4OQCIaHaowWX4aOoKNq2mBEP7x348LA7p 88tFAri0Es8Rd1pzcLSQVayzPIawtgd7JIaQ6EbXwRpu18UvvTAdot9ctEhB01L3Sa6+ 8SaRqpVprc8W7fP+23sWjeH7q8RQcH81+8EWRbkIvQWoszKs38cEL7HLlY8cdXIimMnj TDlmszwXjRI8sG5pu4hm3hUVQ+3INJc0wIgw2BBlcH7Axmhm49g+iuogxQJftdFx6u2+ QkqV2Ry0pHZ7mge39OgRxp5PxYEXOHZLp4+Exdq6oTpoF8FEqO1sHO1buCi5hy2izoFK HTPw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1750247151; x=1750851951; h=to:subject:message-id:date:from:mime-version:x-gm-message-state :from:to:cc:subject:date:message-id:reply-to; bh=vqxTgpnpqb9I5KQG/N6wPTyMo44Q5/H+sfmethlpLqo=; b=RrTSPDiMG0BKOh3/ZxOlWRbL5rv+goqi6KTUUZbMmzLT6jV2oYgmlFyfzH5myZn9Ex lW/i2AS0jyJN6Z1rsB0+RA69NbADS9hR8x5Co5QvFC6CvebbJ37IpS4k2hpaSQP+3D8Y 88UTL4zHxd5foU11S4VINGspbNgYopBcfXfb0JxjINfkfyJpwLIuFimYMHMffwows2P2 48tI3Wttec8TtLbXx7U+gskbOyRXx+VaCm83zzKWoBe/mgWFK65HhfVMb7ekOaxLCcQ4 Evk5j5sF9437i6MKlbKhuULvGtym9hofnfzUkQGsgbPN3bO9LLBAzlQ2GQVbwXtveWBK U6LA== X-Gm-Message-State: AOJu0YxIyDzYPhAv9/rGwDE8LKjISIDFJB0cmK1rq0GvxKz/VYoUy8Qo lIQme9OaoDFXXH2FMxWSHuyDwSLB0tjM1VsiMZDRYzPTsGW/LOtyJeot2QKCGXV8vW1PXb7gH3O nIzj/pHPmG041kAeJZ8uYwcI/vUl5XOcOXyik X-Gm-Gg: ASbGncsN+e2OwfZwDQHMR0SKudwnn6IMshx6F2ACL/H3NIuAmszfcArKQgrySw2Zzan hS1M/qbMePTSrIOe3Q4PAUDkm2vHHMCCo8hy1tjt8BM4LzluWp9hhV5x/1SGYDQFZ7SPqmlvZwq Yk2AVJJ2nh1GYgg44NU5+PrzFDiHX1aAvGj12ljfyPCy8zxYlVhPDWAhdfOlpERtJJsZ8dJRUFr g== X-Google-Smtp-Source: AGHT+IExQ46FWRgLB5U9rGv1EiDxSa02EF2GvfTUhFKYKyiUzoXxM9m5JwoFW+j3/o9Nncd86BkNPuqWc/nWZiS2Lrw= X-Received: by 2002:a05:651c:4108:b0:32b:7811:d47b with SMTP id 38308e7fff4ca-32b7811da23mr8776771fa.11.1750247150730; Wed, 18 Jun 2025 04:45:50 -0700 (PDT) MIME-Version: 1.0 From: Jeff Walsh Date: Wed, 18 Jun 2025 21:45:39 +1000 X-Gm-Features: AX0GCFsjs1gWHnrmaAorw5Mphq-woJqZ4f743lyxXv_712zUXl0pgx33S7v91qo Message-ID: Subject: [igc] segfault in temacs during build => charset-table To: bug-gnu-emacs@gnu.org Content-Type: multipart/alternative; boundary="000000000000b0446e0637d72bcf" Received-SPF: pass client-ip=2a00:1450:4864:20::236; envelope-from=fejfighter@gmail.com; helo=mail-lj1-x236.google.com X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_FROM=0.001, HTML_MESSAGE=0.001, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-Spam-Score: 1.0 (+) X-Debbugs-Envelope-To: submit X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -0.0 (/) --000000000000b0446e0637d72bcf Content-Type: text/plain; charset="UTF-8" When building the latest of the IGC branch, commit: 887db2ff38ce82bb5f33aa128c76b578caba216d I am getting a SEGFAULT during temacs execution. running under a debugger, this occurs in root_find in igc.c `if (r->d.start == start)` (r is null in this case) walking the list of roots: p *global_igc->roots->next->next->next->next->next->next->next->next->next->next->next->next->next->next->next->next->next->next->next->next->next->next->next->next->next->next->next->next->next->next->next->next->next->next->next->next provides: (igc_root_list) { next = NULL prev = 0x00000000006d5f00 d = { gc = 0x0000000000726e00 root = 0x00007fffe80012a8 start = 0x00000000006142e0 end = 0x0000000000622f20 label = 0x0000000000233fb9 "charset-table" ambig = true } } (lldb) p start (void *) 0x0000000000000000 (lldb) bt * thread #1, name = 'temacs', stop reason = signal SIGSEGV: address not mapped to object (fault address=0x20) frame #0: 0x000000000051c953 temacs`igc_xpalloc_lisp_objs_exact [inlined] root_find(start=0x0000000000000000) at igc.c:3111:8 frame #1: 0x000000000051c940 temacs`igc_xpalloc_lisp_objs_exact [inlined] igc_destroy_root_with_start(start=0x0000000000000000) at igc.c:3135:33 * frame #2: 0x000000000051c940 temacs`igc_xpalloc_lisp_objs_exact(pa=(struct Lisp_Symbol *) $7 = 0x0000000000685300, nitems=0x0000000000628e18, nitems_incr_min=, nitems_max=, item_size=, label="lface-id-to-name") at igc.c:3520:3 frame #3: 0x0000000000392fd1 temacs`Finternal_make_lisp_face(face=(struct Lisp_Symbol *) $13 = 0x000000000068d0c8, frame=) at xfaces.c:2993:8 frame #4: 0x000000000048981a temacs`eval_sub(form=) at eval.c:2703:15 frame #5: 0x000000000048d980 temacs`Flet [inlined] Fprogn(body=) at eval.c:455:13 frame #6: 0x000000000048d961 temacs`Flet(args=(struct Lisp_Cons *) $16 = 0x00007fffe71676d8) at eval.c:1203:9 frame #7: 0x0000000000489676 temacs`eval_sub(form=) at eval.c:2651:30 frame #8: 0x000000000048ccf0 temacs`Fwhile [inlined] Fprogn(body=) at eval.c:455:13 frame #9: 0x000000000048ccd3 temacs`Fwhile [inlined] prog_ignore(body=) at eval.c:466:3 frame #10: 0x000000000048ccd3 temacs`Fwhile(args=) at eval.c:1224:7 frame #11: 0x0000000000489676 temacs`eval_sub(form=) at eval.c:2651:30 frame #12: 0x000000000048d980 temacs`Flet [inlined] Fprogn(body=) at eval.c:455:13 frame #13: 0x000000000048d961 temacs`Flet(args=(struct Lisp_Cons *) $17 = 0x00007fffe7167768) at eval.c:1203:9 frame #14: 0x0000000000489676 temacs`eval_sub(form=) at eval.c:2651:30 frame #15: 0x0000000000489b60 temacs`Fif [inlined] Fprogn(body=) at eval.c:455:13 frame #16: 0x0000000000489b40 temacs`Fif(args=) at eval.c:411:10 frame #17: 0x0000000000489676 temacs`eval_sub(form=) at eval.c:2651:30 frame #18: 0x0000000000489de1 temacs`funcall_lambda [inlined] Fprogn(body=) at eval.c:455:13 frame #19: 0x0000000000489dd0 temacs`funcall_lambda(fun=(struct Lisp_Vector *) $19 = 0x00007fffe716fb80, nargs=39200, arg_vector=(struct Lisp_Symbol *) $25 = 0x0000800000681830) at eval.c:3452:15 frame #20: 0x000000000048ab14 temacs`apply_lambda(fun=(struct Lisp_Vector *) $19 = 0x00007fffe716fb80, args=, count=) at eval.c:3317:9 frame #21: 0x0000000000489028 temacs`eval_sub(form=) at eval.c:2789:9 frame #22: 0x0000000000489de1 temacs`funcall_lambda [inlined] Fprogn(body=) at eval.c:455:13 frame #23: 0x0000000000489dd0 temacs`funcall_lambda(fun=(struct Lisp_Vector *) $26 = 0x00007fffe7174d30, nargs=39200, arg_vector=(struct Lisp_Symbol *) $28 = 0x00008000006819d0) at eval.c:3452:15 frame #24: 0x000000000048ab14 temacs`apply_lambda(fun=(struct Lisp_Vector *) $26 = 0x00007fffe7174d30, args=, count=) at eval.c:3317:9 frame #25: 0x0000000000489028 temacs`eval_sub(form=) at eval.c:2789:9 frame #26: 0x0000000000489de1 temacs`funcall_lambda [inlined] Fprogn(body=) at eval.c:455:13 frame #27: 0x0000000000489dd0 temacs`funcall_lambda(fun=(struct Lisp_Vector *) $29 = 0x00007fffe7736e38, nargs=140737068522315, arg_vector=(struct Lisp_Symbol *) $31 = 0x0000800000681b70) at eval.c:3452:15 frame #28: 0x000000000048ab14 temacs`apply_lambda(fun=(struct Lisp_Vector *) $29 = 0x00007fffe7736e38, args=, count=) at eval.c:3317:9 frame #29: 0x0000000000489028 temacs`eval_sub(form=) at eval.c:2789:9 frame #30: 0x0000000000489b60 temacs`Fif [inlined] Fprogn(body=) at eval.c:455:13 frame #31: 0x0000000000489b40 temacs`Fif(args=) at eval.c:411:10 frame #32: 0x0000000000489676 temacs`eval_sub(form=) at eval.c:2651:30 frame #33: 0x0000000000489de1 temacs`funcall_lambda [inlined] Fprogn(body=) at eval.c:455:13 frame #34: 0x0000000000489dd0 temacs`funcall_lambda(fun=(struct Lisp_Vector *) $32 = 0x00007fffe6fac7e8, nargs=140737078856675, arg_vector=(struct Lisp_Symbol *) $34 = 0x0000800000681df0) at eval.c:3452:15 frame #35: 0x000000000048ab14 temacs`apply_lambda(fun=(struct Lisp_Vector *) $32 = 0x00007fffe6fac7e8, args=, count=) at eval.c:3317:9 frame #36: 0x0000000000489028 temacs`eval_sub(form=) at eval.c:2789:9 frame #37: 0x00000000004b76e6 temacs`readevalloop_eager_expand_eval(val=, macroexpand=(struct Lisp_Symbol *) $36 = 0x0000800000681400) at lread.c:2389:13 frame #38: 0x00000000004bfa6e temacs`readevalloop(readcharfun=error: error: error: Multiple internal symbols found for 'buffer' id = {0x0000046a}, range = [0x00007ffff31feea8-0x00007ffff31feeb0), name="buffer" id = {0x00000427}, range = [0x00007ffff31fec00-0x00007ffff31fec08), name="buffer" id = {0x00000439}, range = [0x00007ffff31fece8-0x00007ffff31fecf0), name="buffer" id = {0x000004cd}, range = [0x00007ffff31ff420-0x00007ffff31ff428), name="buffer" id = {0x00000422}, range = [0x00007ffff31feba8-0x00007ffff31febb0), name="buffer" id = {0x00000432}, range = [0x00007ffff31feca8-0x00007ffff31fecb0), name="buffer" id = {0x000004bb}, range = [0x00007ffff31ff330-0x00007ffff31ff338), name="buffer" id = {0x000004bf}, range = [0x00007ffff31ff360-0x00007ffff31ff368), name="buffer" id = {0x0000041e}, range = [0x00007ffff31feb68-0x00007ffff31feb70), name="buffer" id = {0x000004c4}, range = [0x00007ffff31ff398-0x00007ffff31ff3a0), name="buffer" id = {0x00000417}, range = [0x00007ffff31feb00-0x00007ffff31feb08), name="buffer" id = {0x0000043e}, range = [0x00007ffff31fed40-0x00007ffff31fed48), name="buffer" id = {0x000004b7}, range = [0x00007ffff31ff2f8-0x00007ffff31ff300), name="buffer" id = {0x000004b3}, range = [0x00007ffff31ff298-0x00007ffff31ff2a0), name="buffer" id = {0x00000466}, range = [0x00007ffff31fee68-0x00007ffff31fee70), name="buffer" id = {0x0000046e}, range = [0x00007ffff31feee8-0x00007ffff31feef0), name="buffer" id = {0x0000042e}, range = [0x00007ffff31fec68-0x00007ffff31fec70), name="buffer" id = {0x00000445}, range = [0x00007ffff31feda8-0x00007ffff31fedb0), name="buffer" id = {0x000004e2}, range = [0x00007ffff31ff5a8-0x00007ffff31ff5b0), name="buffer" id = {0x000004dd}, range = [0x00007ffff31ff530-0x00007ffff31ff538), name="buffer" id = {0x000004e9}, range = [0x00007ffff31ff630-0x00007ffff31ff638), name="buffer" id = {0x0000048d}, range = [0x00007ffff31ff088-0x00007ffff31ff090), name="buffer" id = {0x000005ca}, range = [0x00007ffff31ffa70-0x00007ffff31ffa8e), name="buffer" id = {0x00000488}, range = [0x00007ffff31ff050-0x00007ffff31ff058), name="buffer" id = {0x000005c6}, range = [0x00007ffff31ffa60-0x00007ffff31ffa68), name="buffer" id = {0x000004ac}, range = [0x00007ffff31ff230-0x00007ffff31ff238), name="buffer" id = {0x00000484}, range = [0x00007ffff31ff020-0x00007ffff31ff028), name="buffer" id = {0x00000495}, range = [0x00007ffff31ff0e0-0x00007ffff31ff0e8), name="buffer" id = {0x000004d9}, range = [0x00007ffff31ff4c8-0x00007ffff31ff4d0), name="buffer" id = {0x0000047e}, range = [0x00007ffff31fef88-0x00007ffff31fef90), name="buffer" id = {0x000005c5}, range = [0x00007ffff31ffa58-0x00007ffff31ffa60), name="buffer" id = {0x0000049a}, range = [0x00007ffff31ff118-0x00007ffff31ff120), name="buffer" id = {0x000004d5}, range = [0x00007ffff31ff488-0x00007ffff31ff490), name="buffer" id = {0x000005c4}, range = [0x00007ffff31ffa48-0x00007ffff31ffa50), name="buffer" id = {0x00000473}, range = [0x00007ffff31fef40-0x00007ffff31fef48), name="buffer" id = {0x000004a2}, range = [0x00007ffff31ff170-0x00007ffff31ff178), name="buffer" id = {0x000004a6}, range = [0x00007ffff31ff1b8-0x00007ffff31ff1c0), name="buffer", infile0=0x0000000000000000, sourcename=(struct Lisp_String *) $39 = 0x00007fffe70d1d30, printflag=false, unibyte=(struct Lisp_Symbol *) $7 = 0x0000000000685300, readfun=(struct Lisp_Symbol *) $7 = 0x0000000000685300, start=(struct Lisp_Symbol *) $7 = 0x0000000000685300, end=) at lread.c:2571:15 frame #39: 0x00000000004c0e6f temacs`Feval_buffer(buffer=, printflag=(struct Lisp_Symbol *) $41 = 0x00007fffe7757238, filename=(struct Lisp_Symbol *) $7 = 0x0000000000685300, unibyte=(struct Lisp_Symbol *) $7 = 0x0000000000685300, do_allow_print=) at lread.c:2651:3 frame #40: 0x00000000004897d8 temacs`eval_sub(form=) at eval.c:2714:15 frame #41: 0x0000000000489b60 temacs`Fif [inlined] Fprogn(body=) at eval.c:455:13 frame #42: 0x0000000000489b40 temacs`Fif(args=) at eval.c:411:10 frame #43: 0x0000000000489676 temacs`eval_sub(form=) at eval.c:2651:30 frame #44: 0x000000000048d980 temacs`Flet [inlined] Fprogn(body=) at eval.c:455:13 frame #45: 0x000000000048d961 temacs`Flet(args=(struct Lisp_Cons *) $43 = 0x00007fffe236d5b8) at eval.c:1203:9 frame #46: 0x0000000000489676 temacs`eval_sub(form=) at eval.c:2651:30 frame #47: 0x000000000048d980 temacs`Flet [inlined] Fprogn(body=) at eval.c:455:13 frame #48: 0x000000000048d961 temacs`Flet(args=(struct Lisp_Cons *) $44 = 0x00007fffe236d0d8) at eval.c:1203:9 frame #49: 0x0000000000489676 temacs`eval_sub(form=) at eval.c:2651:30 frame #50: 0x00000000004899f4 temacs`Funwind_protect(args=(struct Lisp_Cons *) $45 = 0x00007fffe236d810) at eval.c:1491:9 frame #51: 0x0000000000489676 temacs`eval_sub(form=) at eval.c:2651:30 frame #52: 0x000000000048d980 temacs`Flet [inlined] Fprogn(body=) at eval.c:455:13 frame #53: 0x000000000048d961 temacs`Flet(args=(struct Lisp_Cons *) $46 = 0x00007fffe236cc50) at eval.c:1203:9 frame #54: 0x0000000000489676 temacs`eval_sub(form=) at eval.c:2651:30 frame #55: 0x0000000000489b60 temacs`Fif [inlined] Fprogn(body=) at eval.c:455:13 frame #56: 0x0000000000489b40 temacs`Fif(args=) at eval.c:411:10 frame #57: 0x0000000000489676 temacs`eval_sub(form=) at eval.c:2651:30 frame #58: 0x0000000000489de1 temacs`funcall_lambda [inlined] Fprogn(body=) at eval.c:455:13 frame #59: 0x0000000000489dd0 temacs`funcall_lambda(fun=, nargs=, arg_vector=) at eval.c:3452:15 frame #60: 0x000000000048a432 temacs`Ffuncall(nargs=, args=(struct Lisp_Symbol *) $48 = 0x0000000000685840) at eval.c:3195:21 frame #61: 0x00000000004c0a15 temacs`Fload(file=(struct Lisp_Symbol *) $7 = 0x0000000000685300, noerror=, nomessage=(struct Lisp_Symbol *) $7 = 0x0000000000685300, nosuffix=, must_suffix=) at lread.c:1649:10 frame #62: 0x00000000004897d8 temacs`eval_sub(form=) at eval.c:2714:15 frame #63: 0x00000000004bfc45 temacs`readevalloop(readcharfun=(struct Lisp_Symbol *) $51 = 0x0000000000690708, infile0=0x00007fffffffd820, sourcename=(struct Lisp_String *) $53 = 0x00007ffff1cb6930, printflag=false, unibyte=(struct Lisp_Symbol *) $7 = 0x0000000000685300, readfun=(struct Lisp_Symbol *) $7 = 0x0000000000685300, start=(struct Lisp_Symbol *) $7 = 0x0000000000685300, end=) at lread.c:2573:15 frame #64: 0x00000000004c089c temacs`Fload(file=(struct Lisp_Cons *) $54 = 0x00007fffe70d1a18, noerror=, nomessage=(struct Lisp_Symbol *) $7 = 0x0000000000685300, nosuffix=, must_suffix=) at lread.c:1761:9 frame #65: 0x00000000004897d8 temacs`eval_sub(form=(struct Lisp_Cons *) $55 = 0x00007ffff1cb6670) at eval.c:2714:15 frame #66: 0x0000000000489a50 temacs`Feval(form=(struct Lisp_Cons *) $55 = 0x00007ffff1cb6670, lexical=(struct Lisp_Symbol *) $57 = 0x0000000000685338) at eval.c:2551:10 frame #67: 0x00000000003f7822 temacs`top_level_2 at keyboard.c:1196:21 frame #68: 0x0000000000487293 temacs`internal_condition_case(bfun=(temacs`top_level_2 at keyboard.c:1192:6), handlers=(struct Lisp_Symbol *) $60 = 0x00000000006853a8, hfun=(temacs`cmd_error at keyboard.c:982:1)) at eval.c:1707:25 frame #69: 0x00000000003f85b2 temacs`top_level_1(ignore=) at keyboard.c:1208:5 frame #70: 0x00000000004871bf temacs`internal_catch(tag=(struct Lisp_Symbol *) $63 = 0x000000000069aaa8, func=(temacs`top_level_1 at keyboard.c:1205:1), arg=(struct Lisp_Symbol *) $7 = 0x0000000000685300) at eval.c:1387:25 frame #71: 0x00000000003f7743 temacs`command_loop at keyboard.c:1157:2 frame #72: 0x00000000003ff726 temacs`recursive_edit_1 at keyboard.c:766:9 frame #73: 0x00000000003ffad6 temacs`Frecursive_edit at keyboard.c:849:3 frame #74: 0x00000000003f7077 temacs`main(argc=, argv=) at emacs.c:2604:3 frame #75: 0x00007ffff30115f5 libc.so.6`__libc_start_call_main + 117 frame #76: 0x00007ffff30116a8 libc.so.6`__libc_start_main@@GLIBC_2.34 + 136 frame #77: 0x00000000002befa5 temacs`_start + 37 --000000000000b0446e0637d72bcf Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
When building the latest of the IGC branch, commit: 8= 87db2ff38ce82bb5f33aa128c76b578caba216d=C2=A0

I am= getting a SEGFAULT during temacs execution.

runni= ng under a debugger, this occurs in root_find in igc.c
`if (r->= ;d.start =3D=3D start)` (r is null in this case)

w= alking the list of roots:
p *global_igc->roots->next->ne= xt->next->next->next->next->next->next->next->next-= >next->next->next->next->next->next->next->next->= ;next->next->next->next->next->next->next->next->ne= xt->next->next->next->next->next->next->next->next-= >next=C2=A0

provides:
(igc_root_list)= {
=C2=A0 next =3D NULL
=C2=A0 prev =3D 0x00000000006d5f00
=C2=A0 = d =3D {
=C2=A0 =C2=A0 gc =3D 0x0000000000726e00
=C2=A0 =C2=A0 root = =3D 0x00007fffe80012a8
=C2=A0 =C2=A0 start =3D 0x00000000006142e0
=C2= =A0 =C2=A0 end =3D 0x0000000000622f20
=C2=A0 =C2=A0 label =3D 0x00000000= 00233fb9 "charset-table"
=C2=A0 =C2=A0 ambig =3D true
=C2= =A0 }
}

(lldb) p start
(void *) 0x0000000000= 000000

(lldb) bt
* thread #1, name =3D 'tem= acs', stop reason =3D signal SIGSEGV: address not mapped to object (fau= lt address=3D0x20)
=C2=A0 =C2=A0 frame #0: 0x000000000051c953 temacs`igc= _xpalloc_lisp_objs_exact [inlined] root_find(start=3D0x0000000000000000) at= igc.c:3111:8
=C2=A0 =C2=A0 frame #1: 0x000000000051c940 temacs`igc_xpal= loc_lisp_objs_exact [inlined] igc_destroy_root_with_start(start=3D0x0000000= 000000000) at igc.c:3135:33
=C2=A0 * frame #2: 0x000000000051c940 temacs= `igc_xpalloc_lisp_objs_exact(pa=3D(struct Lisp_Symbol *) $7 =3D 0x000000000= 0685300, nitems=3D0x0000000000628e18, nitems_incr_min=3D<unavailable>= , nitems_max=3D<unavailable>, item_size=3D<unavailable>, label= =3D"lface-id-to-name") at igc.c:3520:3
=C2=A0 =C2=A0 frame #3:= 0x0000000000392fd1 temacs`Finternal_make_lisp_face(face=3D(struct Lisp_Sym= bol *) $13 =3D 0x000000000068d0c8, frame=3D<unavailable>) at xfaces.c= :2993:8
=C2=A0 =C2=A0 frame #4: 0x000000000048981a temacs`eval_sub(form= =3D<unavailable>) at eval.c:2703:15
=C2=A0 =C2=A0 frame #5: 0x0000= 00000048d980 temacs`Flet [inlined] Fprogn(body=3D<unavailable>) at ev= al.c:455:13
=C2=A0 =C2=A0 frame #6: 0x000000000048d961 temacs`Flet(args= =3D(struct Lisp_Cons *) $16 =3D 0x00007fffe71676d8) at eval.c:1203:9
=C2= =A0 =C2=A0 frame #7: 0x0000000000489676 temacs`eval_sub(form=3D<unavaila= ble>) at eval.c:2651:30
=C2=A0 =C2=A0 frame #8: 0x000000000048ccf0 te= macs`Fwhile [inlined] Fprogn(body=3D<unavailable>) at eval.c:455:13=C2=A0 =C2=A0 frame #9: 0x000000000048ccd3 temacs`Fwhile [inlined] prog_i= gnore(body=3D<unavailable>) at eval.c:466:3
=C2=A0 =C2=A0 frame #1= 0: 0x000000000048ccd3 temacs`Fwhile(args=3D<unavailable>) at eval.c:1= 224:7
=C2=A0 =C2=A0 frame #11: 0x0000000000489676 temacs`eval_sub(form= =3D<unavailable>) at eval.c:2651:30
=C2=A0 =C2=A0 frame #12: 0x000= 000000048d980 temacs`Flet [inlined] Fprogn(body=3D<unavailable>) at e= val.c:455:13
=C2=A0 =C2=A0 frame #13: 0x000000000048d961 temacs`Flet(arg= s=3D(struct Lisp_Cons *) $17 =3D 0x00007fffe7167768) at eval.c:1203:9
= =C2=A0 =C2=A0 frame #14: 0x0000000000489676 temacs`eval_sub(form=3D<unav= ailable>) at eval.c:2651:30
=C2=A0 =C2=A0 frame #15: 0x0000000000489b= 60 temacs`Fif [inlined] Fprogn(body=3D<unavailable>) at eval.c:455:13=
=C2=A0 =C2=A0 frame #16: 0x0000000000489b40 temacs`Fif(args=3D<unava= ilable>) at eval.c:411:10
=C2=A0 =C2=A0 frame #17: 0x0000000000489676= temacs`eval_sub(form=3D<unavailable>) at eval.c:2651:30
=C2=A0 = =C2=A0 frame #18: 0x0000000000489de1 temacs`funcall_lambda [inlined] Fprogn= (body=3D<unavailable>) at eval.c:455:13
=C2=A0 =C2=A0 frame #19: 0= x0000000000489dd0 temacs`funcall_lambda(fun=3D(struct Lisp_Vector *) $19 = =3D 0x00007fffe716fb80, nargs=3D39200, arg_vector=3D(struct Lisp_Symbol *) = $25 =3D 0x0000800000681830) at eval.c:3452:15
=C2=A0 =C2=A0 frame #20: 0= x000000000048ab14 temacs`apply_lambda(fun=3D(struct Lisp_Vector *) $19 =3D = 0x00007fffe716fb80, args=3D<unavailable>, count=3D<unavailable>= ) at eval.c:3317:9
=C2=A0 =C2=A0 frame #21: 0x0000000000489028 temacs`ev= al_sub(form=3D<unavailable>) at eval.c:2789:9
=C2=A0 =C2=A0 frame = #22: 0x0000000000489de1 temacs`funcall_lambda [inlined] Fprogn(body=3D<u= navailable>) at eval.c:455:13
=C2=A0 =C2=A0 frame #23: 0x000000000048= 9dd0 temacs`funcall_lambda(fun=3D(struct Lisp_Vector *) $26 =3D 0x00007fffe= 7174d30, nargs=3D39200, arg_vector=3D(struct Lisp_Symbol *) $28 =3D 0x00008= 000006819d0) at eval.c:3452:15
=C2=A0 =C2=A0 frame #24: 0x000000000048ab= 14 temacs`apply_lambda(fun=3D(struct Lisp_Vector *) $26 =3D 0x00007fffe7174= d30, args=3D<unavailable>, count=3D<unavailable>) at eval.c:331= 7:9
=C2=A0 =C2=A0 frame #25: 0x0000000000489028 temacs`eval_sub(form=3D&= lt;unavailable>) at eval.c:2789:9
=C2=A0 =C2=A0 frame #26: 0x00000000= 00489de1 temacs`funcall_lambda [inlined] Fprogn(body=3D<unavailable>)= at eval.c:455:13
=C2=A0 =C2=A0 frame #27: 0x0000000000489dd0 temacs`fun= call_lambda(fun=3D(struct Lisp_Vector *) $29 =3D 0x00007fffe7736e38, nargs= =3D140737068522315, arg_vector=3D(struct Lisp_Symbol *) $31 =3D 0x000080000= 0681b70) at eval.c:3452:15
=C2=A0 =C2=A0 frame #28: 0x000000000048ab14 t= emacs`apply_lambda(fun=3D(struct Lisp_Vector *) $29 =3D 0x00007fffe7736e38,= args=3D<unavailable>, count=3D<unavailable>) at eval.c:3317:9<= br>=C2=A0 =C2=A0 frame #29: 0x0000000000489028 temacs`eval_sub(form=3D<u= navailable>) at eval.c:2789:9
=C2=A0 =C2=A0 frame #30: 0x000000000048= 9b60 temacs`Fif [inlined] Fprogn(body=3D<unavailable>) at eval.c:455:= 13
=C2=A0 =C2=A0 frame #31: 0x0000000000489b40 temacs`Fif(args=3D<una= vailable>) at eval.c:411:10
=C2=A0 =C2=A0 frame #32: 0x00000000004896= 76 temacs`eval_sub(form=3D<unavailable>) at eval.c:2651:30
=C2=A0 = =C2=A0 frame #33: 0x0000000000489de1 temacs`funcall_lambda [inlined] Fprogn= (body=3D<unavailable>) at eval.c:455:13
=C2=A0 =C2=A0 frame #34: 0= x0000000000489dd0 temacs`funcall_lambda(fun=3D(struct Lisp_Vector *) $32 = =3D 0x00007fffe6fac7e8, nargs=3D140737078856675, arg_vector=3D(struct Lisp_= Symbol *) $34 =3D 0x0000800000681df0) at eval.c:3452:15
=C2=A0 =C2=A0 fr= ame #35: 0x000000000048ab14 temacs`apply_lambda(fun=3D(struct Lisp_Vector *= ) $32 =3D 0x00007fffe6fac7e8, args=3D<unavailable>, count=3D<unava= ilable>) at eval.c:3317:9
=C2=A0 =C2=A0 frame #36: 0x0000000000489028= temacs`eval_sub(form=3D<unavailable>) at eval.c:2789:9
=C2=A0 =C2= =A0 frame #37: 0x00000000004b76e6 temacs`readevalloop_eager_expand_eval(val= =3D<unavailable>, macroexpand=3D(struct Lisp_Symbol *) $36 =3D 0x0000= 800000681400) at lread.c:2389:13
=C2=A0 =C2=A0 frame #38: 0x00000000004b= fa6e temacs`readevalloop(readcharfun=3Derror: error: error: Multiple intern= al symbols found for 'buffer'
id =3D {0x0000046a}, range =3D [0x= 00007ffff31feea8-0x00007ffff31feeb0), name=3D"buffer"
id =3D {= 0x00000427}, range =3D [0x00007ffff31fec00-0x00007ffff31fec08), name=3D&quo= t;buffer"
id =3D {0x00000439}, range =3D [0x00007ffff31fece8-0x0000= 7ffff31fecf0), name=3D"buffer"
id =3D {0x000004cd}, range =3D = [0x00007ffff31ff420-0x00007ffff31ff428), name=3D"buffer"
id = =3D {0x00000422}, range =3D [0x00007ffff31feba8-0x00007ffff31febb0), name= =3D"buffer"
id =3D {0x00000432}, range =3D [0x00007ffff31feca8= -0x00007ffff31fecb0), name=3D"buffer"
id =3D {0x000004bb}, ran= ge =3D [0x00007ffff31ff330-0x00007ffff31ff338), name=3D"buffer"id =3D {0x000004bf}, range =3D [0x00007ffff31ff360-0x00007ffff31ff368), n= ame=3D"buffer"
id =3D {0x0000041e}, range =3D [0x00007ffff31fe= b68-0x00007ffff31feb70), name=3D"buffer"
id =3D {0x000004c4}, = range =3D [0x00007ffff31ff398-0x00007ffff31ff3a0), name=3D"buffer"= ;
id =3D {0x00000417}, range =3D [0x00007ffff31feb00-0x00007ffff31feb08)= , name=3D"buffer"
id =3D {0x0000043e}, range =3D [0x00007ffff3= 1fed40-0x00007ffff31fed48), name=3D"buffer"
id =3D {0x000004b7= }, range =3D [0x00007ffff31ff2f8-0x00007ffff31ff300), name=3D"buffer&q= uot;
id =3D {0x000004b3}, range =3D [0x00007ffff31ff298-0x00007ffff31ff2= a0), name=3D"buffer"
id =3D {0x00000466}, range =3D [0x00007ff= ff31fee68-0x00007ffff31fee70), name=3D"buffer"
id =3D {0x00000= 46e}, range =3D [0x00007ffff31feee8-0x00007ffff31feef0), name=3D"buffe= r"
id =3D {0x0000042e}, range =3D [0x00007ffff31fec68-0x00007ffff31= fec70), name=3D"buffer"
id =3D {0x00000445}, range =3D [0x0000= 7ffff31feda8-0x00007ffff31fedb0), name=3D"buffer"
id =3D {0x00= 0004e2}, range =3D [0x00007ffff31ff5a8-0x00007ffff31ff5b0), name=3D"bu= ffer"
id =3D {0x000004dd}, range =3D [0x00007ffff31ff530-0x00007fff= f31ff538), name=3D"buffer"
id =3D {0x000004e9}, range =3D [0x0= 0007ffff31ff630-0x00007ffff31ff638), name=3D"buffer"
id =3D {0= x0000048d}, range =3D [0x00007ffff31ff088-0x00007ffff31ff090), name=3D"= ;buffer"
id =3D {0x000005ca}, range =3D [0x00007ffff31ffa70-0x00007= ffff31ffa8e), name=3D"buffer"
id =3D {0x00000488}, range =3D [= 0x00007ffff31ff050-0x00007ffff31ff058), name=3D"buffer"
id =3D= {0x000005c6}, range =3D [0x00007ffff31ffa60-0x00007ffff31ffa68), name=3D&q= uot;buffer"
id =3D {0x000004ac}, range =3D [0x00007ffff31ff230-0x00= 007ffff31ff238), name=3D"buffer"
id =3D {0x00000484}, range = =3D [0x00007ffff31ff020-0x00007ffff31ff028), name=3D"buffer"
i= d =3D {0x00000495}, range =3D [0x00007ffff31ff0e0-0x00007ffff31ff0e8), name= =3D"buffer"
id =3D {0x000004d9}, range =3D [0x00007ffff31ff4c8= -0x00007ffff31ff4d0), name=3D"buffer"
id =3D {0x0000047e}, ran= ge =3D [0x00007ffff31fef88-0x00007ffff31fef90), name=3D"buffer"id =3D {0x000005c5}, range =3D [0x00007ffff31ffa58-0x00007ffff31ffa60), n= ame=3D"buffer"
id =3D {0x0000049a}, range =3D [0x00007ffff31ff= 118-0x00007ffff31ff120), name=3D"buffer"
id =3D {0x000004d5}, = range =3D [0x00007ffff31ff488-0x00007ffff31ff490), name=3D"buffer"= ;
id =3D {0x000005c4}, range =3D [0x00007ffff31ffa48-0x00007ffff31ffa50)= , name=3D"buffer"
id =3D {0x00000473}, range =3D [0x00007ffff3= 1fef40-0x00007ffff31fef48), name=3D"buffer"
id =3D {0x000004a2= }, range =3D [0x00007ffff31ff170-0x00007ffff31ff178), name=3D"buffer&q= uot;
id =3D {0x000004a6}, range =3D [0x00007ffff31ff1b8-0x00007ffff31ff1= c0), name=3D"buffer", infile0=3D0x0000000000000000, sourcename=3D= (struct Lisp_String *) $39 =3D 0x00007fffe70d1d30, printflag=3Dfalse, uniby= te=3D(struct Lisp_Symbol *) $7 =3D 0x0000000000685300, readfun=3D(struct Li= sp_Symbol *) $7 =3D 0x0000000000685300, start=3D(struct Lisp_Symbol *) $7 = =3D 0x0000000000685300, end=3D<unavailable>) at lread.c:2571:15
= =C2=A0 =C2=A0 frame #39: 0x00000000004c0e6f temacs`Feval_buffer(buffer=3D&l= t;unavailable>, printflag=3D(struct Lisp_Symbol *) $41 =3D 0x00007fffe77= 57238, filename=3D(struct Lisp_Symbol *) $7 =3D 0x0000000000685300, unibyte= =3D(struct Lisp_Symbol *) $7 =3D 0x0000000000685300, do_allow_print=3D<u= navailable>) at lread.c:2651:3
=C2=A0 =C2=A0 frame #40: 0x00000000004= 897d8 temacs`eval_sub(form=3D<unavailable>) at eval.c:2714:15
=C2= =A0 =C2=A0 frame #41: 0x0000000000489b60 temacs`Fif [inlined] Fprogn(body= =3D<unavailable>) at eval.c:455:13
=C2=A0 =C2=A0 frame #42: 0x0000= 000000489b40 temacs`Fif(args=3D<unavailable>) at eval.c:411:10
=C2= =A0 =C2=A0 frame #43: 0x0000000000489676 temacs`eval_sub(form=3D<unavail= able>) at eval.c:2651:30
=C2=A0 =C2=A0 frame #44: 0x000000000048d980 = temacs`Flet [inlined] Fprogn(body=3D<unavailable>) at eval.c:455:13=C2=A0 =C2=A0 frame #45: 0x000000000048d961 temacs`Flet(args=3D(struct Li= sp_Cons *) $43 =3D 0x00007fffe236d5b8) at eval.c:1203:9
=C2=A0 =C2=A0 fr= ame #46: 0x0000000000489676 temacs`eval_sub(form=3D<unavailable>) at = eval.c:2651:30
=C2=A0 =C2=A0 frame #47: 0x000000000048d980 temacs`Flet [= inlined] Fprogn(body=3D<unavailable>) at eval.c:455:13
=C2=A0 =C2= =A0 frame #48: 0x000000000048d961 temacs`Flet(args=3D(struct Lisp_Cons *) $= 44 =3D 0x00007fffe236d0d8) at eval.c:1203:9
=C2=A0 =C2=A0 frame #49: 0x0= 000000000489676 temacs`eval_sub(form=3D<unavailable>) at eval.c:2651:= 30
=C2=A0 =C2=A0 frame #50: 0x00000000004899f4 temacs`Funwind_protect(ar= gs=3D(struct Lisp_Cons *) $45 =3D 0x00007fffe236d810) at eval.c:1491:9
= =C2=A0 =C2=A0 frame #51: 0x0000000000489676 temacs`eval_sub(form=3D<unav= ailable>) at eval.c:2651:30
=C2=A0 =C2=A0 frame #52: 0x000000000048d9= 80 temacs`Flet [inlined] Fprogn(body=3D<unavailable>) at eval.c:455:1= 3
=C2=A0 =C2=A0 frame #53: 0x000000000048d961 temacs`Flet(args=3D(struct= Lisp_Cons *) $46 =3D 0x00007fffe236cc50) at eval.c:1203:9
=C2=A0 =C2=A0= frame #54: 0x0000000000489676 temacs`eval_sub(form=3D<unavailable>) = at eval.c:2651:30
=C2=A0 =C2=A0 frame #55: 0x0000000000489b60 temacs`Fif= [inlined] Fprogn(body=3D<unavailable>) at eval.c:455:13
=C2=A0 = =C2=A0 frame #56: 0x0000000000489b40 temacs`Fif(args=3D<unavailable>)= at eval.c:411:10
=C2=A0 =C2=A0 frame #57: 0x0000000000489676 temacs`eva= l_sub(form=3D<unavailable>) at eval.c:2651:30
=C2=A0 =C2=A0 frame = #58: 0x0000000000489de1 temacs`funcall_lambda [inlined] Fprogn(body=3D<u= navailable>) at eval.c:455:13
=C2=A0 =C2=A0 frame #59: 0x000000000048= 9dd0 temacs`funcall_lambda(fun=3D<unavailable>, nargs=3D<unavailab= le>, arg_vector=3D<unavailable>) at eval.c:3452:15
=C2=A0 =C2= =A0 frame #60: 0x000000000048a432 temacs`Ffuncall(nargs=3D<unavailable&g= t;, args=3D(struct Lisp_Symbol *) $48 =3D 0x0000000000685840) at eval.c:319= 5:21
=C2=A0 =C2=A0 frame #61: 0x00000000004c0a15 temacs`Fload(file=3D(st= ruct Lisp_Symbol *) $7 =3D 0x0000000000685300, noerror=3D<unavailable>= ;, nomessage=3D(struct Lisp_Symbol *) $7 =3D 0x0000000000685300, nosuffix= =3D<unavailable>, must_suffix=3D<unavailable>) at lread.c:1649:= 10
=C2=A0 =C2=A0 frame #62: 0x00000000004897d8 temacs`eval_sub(form=3D&l= t;unavailable>) at eval.c:2714:15
=C2=A0 =C2=A0 frame #63: 0x00000000= 004bfc45 temacs`readevalloop(readcharfun=3D(struct Lisp_Symbol *) $51 =3D 0= x0000000000690708, infile0=3D0x00007fffffffd820, sourcename=3D(struct Lisp_= String *) $53 =3D 0x00007ffff1cb6930, printflag=3Dfalse, unibyte=3D(struct = Lisp_Symbol *) $7 =3D 0x0000000000685300, readfun=3D(struct Lisp_Symbol *) = $7 =3D 0x0000000000685300, start=3D(struct Lisp_Symbol *) $7 =3D 0x00000000= 00685300, end=3D<unavailable>) at lread.c:2573:15
=C2=A0 =C2=A0 fr= ame #64: 0x00000000004c089c temacs`Fload(file=3D(struct Lisp_Cons *) $54 = =3D 0x00007fffe70d1a18, noerror=3D<unavailable>, nomessage=3D(struct = Lisp_Symbol *) $7 =3D 0x0000000000685300, nosuffix=3D<unavailable>, m= ust_suffix=3D<unavailable>) at lread.c:1761:9
=C2=A0 =C2=A0 frame = #65: 0x00000000004897d8 temacs`eval_sub(form=3D(struct Lisp_Cons *) $55 =3D= 0x00007ffff1cb6670) at eval.c:2714:15
=C2=A0 =C2=A0 frame #66: 0x000000= 0000489a50 temacs`Feval(form=3D(struct Lisp_Cons *) $55 =3D 0x00007ffff1cb6= 670, lexical=3D(struct Lisp_Symbol *) $57 =3D 0x0000000000685338) at eval.c= :2551:10
=C2=A0 =C2=A0 frame #67: 0x00000000003f7822 temacs`top_level_2 = at keyboard.c:1196:21
=C2=A0 =C2=A0 frame #68: 0x0000000000487293 temacs= `internal_condition_case(bfun=3D(temacs`top_level_2 at keyboard.c:1192:6), = handlers=3D(struct Lisp_Symbol *) $60 =3D 0x00000000006853a8, hfun=3D(temac= s`cmd_error at keyboard.c:982:1)) at eval.c:1707:25
=C2=A0 =C2=A0 frame = #69: 0x00000000003f85b2 temacs`top_level_1(ignore=3D<unavailable>) at= keyboard.c:1208:5
=C2=A0 =C2=A0 frame #70: 0x00000000004871bf temacs`in= ternal_catch(tag=3D(struct Lisp_Symbol *) $63 =3D 0x000000000069aaa8, func= =3D(temacs`top_level_1 at keyboard.c:1205:1), arg=3D(struct Lisp_Symbol *) = $7 =3D 0x0000000000685300) at eval.c:1387:25
=C2=A0 =C2=A0 frame #71: 0x= 00000000003f7743 temacs`command_loop at keyboard.c:1157:2
=C2=A0 =C2=A0 = frame #72: 0x00000000003ff726 temacs`recursive_edit_1 at keyboard.c:766:9=C2=A0 =C2=A0 frame #73: 0x00000000003ffad6 temacs`Frecursive_edit at key= board.c:849:3
=C2=A0 =C2=A0 frame #74: 0x00000000003f7077 temacs`main(ar= gc=3D<unavailable>, argv=3D<unavailable>) at emacs.c:2604:3
= =C2=A0 =C2=A0 frame #75: 0x00007ffff30115f5 libc.so.6`__libc_start_call_mai= n + 117
=C2=A0 =C2=A0 frame #76: 0x00007ffff30116a8 libc.so.6`__libc_sta= rt_main@@GLIBC_2.34 + 136
=C2=A0 =C2=A0 frame #77: 0x00000000002befa5 te= macs`_start + 37

--000000000000b0446e0637d72bcf-- From debbugs-submit-bounces@debbugs.gnu.org Wed Jun 18 08:09:52 2025 Received: (at 78824) by debbugs.gnu.org; 18 Jun 2025 12:09:52 +0000 Received: from localhost ([127.0.0.1]:48352 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1uRrbz-00083f-Un for submit@debbugs.gnu.org; Wed, 18 Jun 2025 08:09:52 -0400 Received: from mail-4316.protonmail.ch ([185.70.43.16]:47083) by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1uRrbw-000839-U5 for 78824@debbugs.gnu.org; Wed, 18 Jun 2025 08:09:49 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=protonmail.com; s=protonmail3; t=1750248581; x=1750507781; bh=2XG8PxajVhR5T63ArU8IEFfOT9dQK585yrJxJN7V9AU=; h=Date:To:From:Cc:Subject:Message-ID:In-Reply-To:References: Feedback-ID:From:To:Cc:Date:Subject:Reply-To:Feedback-ID: Message-ID:BIMI-Selector:List-Unsubscribe:List-Unsubscribe-Post; b=wRnEhSyZCuRWC6r/asXG8qrk23jzPg7k/ZZwcVCdmyT/dNdJgdFj/3kRftI7m5bPS 5fstYC9wv4mYKDRg6QUCxeG4zipLSzjPwiA7bdNy9HCZpqAUNeGzh5WoSmm4QqK4fv btPRcLFz5aDquy9Ibr2vnlFH1Cl1KnGFXPBfsjY2l6C8C8C2/PRxGb5yhKV4iktGIA TrCa/5p/RpQ0OOi9Txsfqevf3hSflliYbHMq+IAXp3BlCenqRbE7ia8yc8nSfcMW5Z EUvfCcXHfzYxnK1IYxjLjDUrehyE/VJSqBejnf0xLHD2Ut6Tq6my+KO2lE/8pf/p/P ELZL02Kuu6WVA== Date: Wed, 18 Jun 2025 12:09:36 +0000 To: Jeff Walsh From: Pip Cet Subject: Re: bug#78824: [igc] segfault in temacs during build => charset-table Message-ID: <87y0tps138.fsf@protonmail.com> In-Reply-To: References: Feedback-ID: 112775352:user:proton X-Pm-Message-ID: 6f8c0735c10fe8075b1b1b8ef4f082b1d4346d8e MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: 78824 Cc: 78824@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) "Jeff Walsh" writes: > When building the latest of the IGC branch, commit: 887db2ff38ce82bb5f33a= a128c76b578caba216d=20 > > I am getting a SEGFAULT during temacs execution. Thanks for the report. I'm not sure what is happening, though. > running under a debugger, this occurs in root_find in igc.c > `if (r->d.start =3D=3D start)` (r is null in this case) This is the code: static igc_root_list * root_find (void *start) { for (igc_root_list *r =3D global_igc->roots; r; r =3D r->next) if (r->d.start =3D=3D start) return r; return NULL; } Clearly, r cannot be NULL on the second line, because of the check in the for loop continue condition. > walking the list of roots: > p > *global_igc->roots->next->next->next->next->next->next->next->next->next-= >next->next->next->next->next->next->next->next->next->next->next->next->ne= xt->next->next->next->next->next->next->next->next->next->next->next->next-= >next->next > > > provides: > (igc_root_list) { > next =3D NULL > prev =3D 0x00000000006d5f00 > d =3D { > gc =3D 0x0000000000726e00 > root =3D 0x00007fffe80012a8 > start =3D 0x00000000006142e0 > end =3D 0x0000000000622f20 > label =3D 0x0000000000233fb9 "charset-table" > ambig =3D true > } > } That's the last root in the list; can you walk the list to try to find the one labelled "lface-id-to-name"? My guess is there is no such root. > (lldb) p start > (void *) 0x0000000000000000 > > (lldb) bt > * thread #1, name =3D 'temacs', stop reason =3D signal SIGSEGV: address n= ot mapped to object (fault address=3D0x20) > frame #0: 0x000000000051c953 temacs`igc_xpalloc_lisp_objs_exact [inli= ned] root_find(start=3D0x0000000000000000) at igc.c:3111:8 > frame #1: 0x000000000051c940 temacs`igc_xpalloc_lisp_objs_exact [inli= ned] igc_destroy_root_with_start(start=3D0x0000000000000000) at > igc.c:3135:33 > * frame #2: 0x000000000051c940 temacs`igc_xpalloc_lisp_objs_exact(pa=3D= (struct Lisp_Symbol *) $7 =3D 0x0000000000685300, > nitems=3D0x0000000000628e18, nitems_incr_min=3D, nitems_max= =3D, item_size=3D, label=3D"lface-id-to-name") at > igc.c:3520:3 Hmm. I think the value of pa is 0. That would mean lldb's interpretation of pa as a pointer to struct Lisp_Symbol (which it isn't) is incorrect. Can you print the numeric value of lispsym to confirm it's 0x685300? My best guess at this point is that clang deduces that start must be non-NULL because it's used as the source argument of a 0-byte memcpy. Can you try replacing the memcpy in igc_xpalloc_lisp_objs_exact with if (nitems_old) memcpy (new, old, nitems_old * sizeof old[0]); ? Thanks! Pip From debbugs-submit-bounces@debbugs.gnu.org Wed Jun 18 15:54:08 2025 Received: (at 78824) by debbugs.gnu.org; 18 Jun 2025 19:54:08 +0000 Received: from localhost ([127.0.0.1]:55949 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1uRyrG-0002pk-NH for submit@debbugs.gnu.org; Wed, 18 Jun 2025 15:54:08 -0400 Received: from mail-ed1-x52e.google.com ([2a00:1450:4864:20::52e]:52457) by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.84_2) (envelope-from ) id 1uRyrD-0002od-Lx for 78824@debbugs.gnu.org; Wed, 18 Jun 2025 15:54:04 -0400 Received: by mail-ed1-x52e.google.com with SMTP id 4fb4d7f45d1cf-607434e1821so10616185a12.0 for <78824@debbugs.gnu.org>; Wed, 18 Jun 2025 12:54:03 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1750276437; x=1750881237; darn=debbugs.gnu.org; h=content-transfer-encoding:mime-version:user-agent:message-id:date :references:in-reply-to:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=nkr0rDEfygjvnROnrGiK7L80MIP6ZYgJoGm81pr7m8A=; b=UbSqnxLr12N+1QILiqcuTG2XYFsmoRXlsHQLh8Hs2e7NOE3Jb2qM4j0B6LBCL/SIrI nwZzTQ3BraAGZcVDFcqO3KbIX36L9e4NQ0mXC2eF/aI4pu3bDap67IYg4szsFq1x4pH3 GyyjdadklnMESUD616Br6Qzc/zAba18XmDzIlHeJObDaRD6OJfxWK7Vqdce0JAvkT6+z qzqhLWD1e+ZgesWpGlgsMzMY9XNDr0U5GiSmfBx4ExDuENGa3xcfvOP47FBpj6mDgm2F snPutTvyDgxXJmUp0eGj6YgM5sYBxAH9TizjByOlenX9q5nR5yeB3tQGr/AYhyy4Ze0/ ierA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1750276437; x=1750881237; h=content-transfer-encoding:mime-version:user-agent:message-id:date :references:in-reply-to:subject:cc:to:from:x-gm-message-state:from :to:cc:subject:date:message-id:reply-to; bh=nkr0rDEfygjvnROnrGiK7L80MIP6ZYgJoGm81pr7m8A=; b=cz47tvnFHQeBjJx9bsLycr1ZwtLghSQMr/+OSuplL/R634DYELt9l0pZfV4La/f1OF aZp8M4VkC47cnn018W+QRBZlIEXGa066yFCZ8rQL0Ug3sv/0dJx0o27EfYbmmhfQdQaP 0VzaBo1n7DOyRIdNm3YtUM29hJEPka0f2lVpWvF2SC4M2I2ZwDq+o7OyIP7erG3DaP3C LzGQL1058AQilhjJXzwsrJnmy1GkSD55n9z4x57WWpDDhGAuI0YMHYT+1Ckxginj7yxS ioCXLjMUxCNZvgCb+zX182AEwBZS9jBBsB5GkE0AWLLLok196G+qa+qmyrLxvzfamDSt Wg+A== X-Gm-Message-State: AOJu0Yx74XbSsIiPIKXejhjLTSFOfWPhYXJ4ujeo3p5Ox8rseAFZviF8 02rHRmSjGXYnJRNuWSF7WoTlRNWcnhiWfyRmeLnmrZWwXwoW4zD2vzla X-Gm-Gg: ASbGncv6v78j9FAQt8t2gKtOFEutt1vbzeXQD2k8+3qQ+BuGG+C+U0Zdsjf9h3LRY4O 3hhcDLcGXgcL64Fsi1eILlBu8MLSRZBUoYkDKZpsGDk9HQDTwnwj55Mp8aaQTUo71wFVPodvKsn yVUe/UZBcNl1GdqvXAaxktw2Ix64VsXat34cF+j4CJX4Mg2ogBJqhCGGXH7hiTFYUYuMmAWmBZt lj7BbVMoSwOy2Y9i9t7CTj46qCttWaaWFa0ygme1WfLqp+gg0YVuMbBZbAeYf/TvoRi7fLB+WZc He5d9uG3Xd7PEs1GZVb1OsTvpFJ3fbnJKvpiv43MMfDSFpzxV1VoObrfDR1fI1WFQMZg5eWDhcM R4lUmyURZPxlHGCF64tJ4SANLRhSUmA== X-Google-Smtp-Source: AGHT+IHayS8jwxSnMi3S941NCU310I7PmtM7/HcsdQkRyBEPv8HMS8/PMBohmmOv10DJlTuSp6jeOQ== X-Received: by 2002:a05:6402:40ce:b0:5ff:f72e:f494 with SMTP id 4fb4d7f45d1cf-608d099f37bmr16280776a12.31.1750276437193; Wed, 18 Jun 2025 12:53:57 -0700 (PDT) Received: from caladan (dial-184179.pool.broadband44.net. [212.46.184.179]) by smtp.gmail.com with ESMTPSA id 4fb4d7f45d1cf-608b4a5b6a5sm10470134a12.40.2025.06.18.12.53.56 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 18 Jun 2025 12:53:56 -0700 (PDT) From: Helmut Eller To: Jeff Walsh Subject: Re: bug#78824: [igc] segfault in temacs during build => charset-table In-Reply-To: References: Date: Wed, 18 Jun 2025 21:53:56 +0200 Message-ID: <87a564omgb.fsf@gmail.com> User-Agent: Gnus/5.13 (Gnus v5.13) MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: 78824 Cc: Pip Cet , 78824@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) On Wed, Jun 18 2025, Jeff Walsh wrote: > When building the latest of the IGC branch, commit: > 887db2ff38ce82bb5f33aa128c76b578caba216d=C2=A0 > > I am getting a SEGFAULT during temacs execution. > > running under a debugger, this occurs in root_find in igc.c > `if (r->d.start =3D=3D start)` (r is null in this case) I can reproduce this with gcc 14.2, when configured with ./configure -C --without-x --with-gnutls=3Dno --with-mps=3Ddebug 'CFLAGS= =3D-O2 -ggdb3 -gctf -fno-omit-frame-pointer -fno-tree-sra -I/scratch/emacs/mps-install/include' 'LDFLAGS=3D-L /scratch/emacs/mps-install/lib' I had to remove --enable-checking. As Pip suspected, the problem in igc_xpalloc_lisp_objs_exact is that memcpy is called with old =3D=3D NULL. According to [1]: The behavior is undefined if either dest or src is an invalid or null pointer. So I guess that we are in nasal demon territory and the compiler assumes that old !=3D NULL. Helmut [1] https://en.cppreference.com/w/c/string/byte/memcpy From debbugs-submit-bounces@debbugs.gnu.org Wed Jun 18 16:20:00 2025 Received: (at 78824) by debbugs.gnu.org; 18 Jun 2025 20:20:00 +0000 Received: from localhost ([127.0.0.1]:56293 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1uRzGI-0005b7-G9 for submit@debbugs.gnu.org; Wed, 18 Jun 2025 16:19:59 -0400 Received: from mail-4316.protonmail.ch ([185.70.43.16]:29447) by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1uRzGE-0005Zi-J5 for 78824@debbugs.gnu.org; Wed, 18 Jun 2025 16:19:56 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=protonmail.com; s=protonmail3; t=1750277987; x=1750537187; bh=V/a/sGObu/R3em3Utn+Ru4myoAalLXxMcDkagjIAozI=; h=Date:To:From:Cc:Subject:Message-ID:In-Reply-To:References: Feedback-ID:From:To:Cc:Date:Subject:Reply-To:Feedback-ID: Message-ID:BIMI-Selector:List-Unsubscribe:List-Unsubscribe-Post; b=svWRdJucnPDHWve/oA9IIpcTTKOs7Q85ZC5G6xVD59J0JKhPcpxAB+uexKcx56ZuY HIJFK9DKdqpvQOhhoYq0oQc0pbtzxWhEWscBKDjGeeN2AvNUE+IYICYMX6UliIR+Gj sEjdWTxU963ZNaSaEpJ5P8eo19ZLbt3bqWEM+UbsRmS93dXEzoZzp8S0T79WOJD+L7 rMQAsXfzxQha4yFz+CXYpw95z3Iw4HKgxBZ8/49X4+OY+HIJuxtqlenWcTsRgHgBK3 60aSFrz54KoimtILr+Cakh+NiIEVunoOVOV7MAx3OHzK+xoQT9c55GUwnw1ShYov41 VON6Kq8HtQW4g== Date: Wed, 18 Jun 2025 20:19:44 +0000 To: Helmut Eller From: Pip Cet Subject: Re: bug#78824: [igc] segfault in temacs during build => charset-table Message-ID: <87ldpossys.fsf@protonmail.com> In-Reply-To: <87a564omgb.fsf@gmail.com> References: <87a564omgb.fsf@gmail.com> Feedback-ID: 112775352:user:proton X-Pm-Message-ID: ee911dc645f0a06fa9b7b0a72d75b85aa55ec30d MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: 78824 Cc: Jeff Walsh , 78824@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) "Helmut Eller" writes: > On Wed, Jun 18 2025, Jeff Walsh wrote: > >> When building the latest of the IGC branch, commit: >> 887db2ff38ce82bb5f33aa128c76b578caba216d=C2=A0 >> >> I am getting a SEGFAULT during temacs execution. >> >> running under a debugger, this occurs in root_find in igc.c >> `if (r->d.start =3D=3D start)` (r is null in this case) > > I can reproduce this with gcc 14.2, when configured with > > ./configure -C --without-x --with-gnutls=3Dno --with-mps=3Ddebug 'CFLAG= S=3D-O2 > -ggdb3 -gctf -fno-omit-frame-pointer -fno-tree-sra > -I/scratch/emacs/mps-install/include' 'LDFLAGS=3D-L > /scratch/emacs/mps-install/lib' > > I had to remove --enable-checking. Et tu, GCC? Let's hope this rampage of declaring what's logically a perfectly consistent call to be UB (eventually) goes the way of C99 trigraphs... Thanks for testing that. I've applied your second patch and hopefully that fixes this bug. Jeff, could you confirm? Thanks again! Pip From debbugs-submit-bounces@debbugs.gnu.org Wed Jun 18 18:14:11 2025 Received: (at 78824) by debbugs.gnu.org; 18 Jun 2025 22:14:12 +0000 Received: from localhost ([127.0.0.1]:57591 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1uS12o-0000yr-CW for submit@debbugs.gnu.org; Wed, 18 Jun 2025 18:14:11 -0400 Received: from mail-lj1-x233.google.com ([2a00:1450:4864:20::233]:60921) by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.84_2) (envelope-from ) id 1uS12k-0000xf-5N for 78824@debbugs.gnu.org; Wed, 18 Jun 2025 18:14:07 -0400 Received: by mail-lj1-x233.google.com with SMTP id 38308e7fff4ca-32b7113ed6bso1288591fa.1 for <78824@debbugs.gnu.org>; Wed, 18 Jun 2025 15:14:06 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1750284839; x=1750889639; darn=debbugs.gnu.org; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:from:to:cc:subject:date:message-id:reply-to; bh=CYCeRW69NPCuoUxfAt53ervQyWjX7Q6iY26Rj3IMxBU=; b=KVc8Xir9f/pv0fceUqB/q4m5bbsznSxPSTYd5jg+jBfhCAKbQLvBSsREWEuVVB+XEJ owes1RlhVpx5u+4BsJCBgr2QSSkmnKFJKDPSqVM18V9J/iEPTEwafx16tC++r/KjTcTD tEFNML2TxTR+jUCMGQG5WGLMHnag7DfamLnBYxImPDF0tOk8jXsiyJjhZmhrJ+TsXO5J hRmB4ZYY3ksYaKl6bCw9ZAPczg4bB+qaWHpT8MBUghnbD4mPMNvrQx+YzGURzcGvO65a cUZvP7R1JDdrwoRJUSK9wDNL/LQ61AXKLzfbyPzT1j7aRuM6zCj9n/iHN/OB8zioO6zk ICOg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1750284839; x=1750889639; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=CYCeRW69NPCuoUxfAt53ervQyWjX7Q6iY26Rj3IMxBU=; b=C6QEf1g0Fp8wJC8/6HDx8BoCiM9OHIemrCpgMB+VX2sSKbWuWM+5eqGBJ9lLz4KQ+u A5Hvejhe2S9idWeTIXWjP2ss+BMivLjv35h6CwYjBJOPUDEq0XX7hQ/rh7PvNhVah9yV 1VqvzeepEBfaQp+/O8i557tXZ63MMHCVf0eqJeDkyE4XoTgK+sLAwOdZjJ782hxjwgf5 GlE7USYHQAaBgfP2HVsK6DSEUGjlzaKtvaZ9CK2mg3gK7R9SEdOkBlbLAI+x9wCRkf4v G6+1Abxm6QdebescqnTv0uTwFNCuaTiiEgEsfFIQrk1XXzpmECOqcwh5rKAlzlre2kBC vhLg== X-Forwarded-Encrypted: i=1; AJvYcCWqxyXX//c7anIB0IaN23nyXJa3zpYUTGIr+K05SrYpXELdNTtasBbCf01Zl9Ty2vVN5/PfqA==@debbugs.gnu.org X-Gm-Message-State: AOJu0YyL7pwJYn3iaF9a7GIgumd5ABbihJihZndfeDvXT2fkf7oEUpd/ 7Kw/HZ/JcRr1KLHKFXZVEl/5GiTZIZUqytzD2QX/IIniwlmmVKqxkWq3sdJ89z52v63yLiC46WR XLyXOSRu7VXuU1NhwM8qLkIQVNLQP/8g= X-Gm-Gg: ASbGncuhwdEiQ8euAldgkyRygeWw4Q7tbeWRiHqj58g0C0MzUvjoEJwEf5f0bLiZ0AP 0KHinOoPy5/lrsIaBK5qDIzTYxTMjghF+6TmgCsYRbUDXC+M8kzawoOO27NI3EL7DRlWtj9fPP3 XxdBOL/jjMfmuDR9WLY8DBuhyx6E9qOCOMSLs0y28mDVEeFNU7UF3UeTo9meVsEBpNkfBbRIaOf w== X-Google-Smtp-Source: AGHT+IHl5JEr3DuQeeZHDLEFlFmdxY80XNUjzuW+5F0lxdJ1uSdHNIg/z/WfOw+y//Q7w3GxBNad9nJTDYIfslkuKN8= X-Received: by 2002:a2e:a9a6:0:b0:32a:7332:bf7a with SMTP id 38308e7fff4ca-32b4a2dab37mr52562681fa.13.1750284838993; Wed, 18 Jun 2025 15:13:58 -0700 (PDT) MIME-Version: 1.0 References: <87a564omgb.fsf@gmail.com> <87ldpossys.fsf@protonmail.com> In-Reply-To: <87ldpossys.fsf@protonmail.com> From: Jeff Walsh Date: Thu, 19 Jun 2025 08:13:47 +1000 X-Gm-Features: AX0GCFtFDux6lRUwHTOK31A-L8bzPXx_oT_C9Zi_WC5yhF35--hJza_cL3t3vbI Message-ID: Subject: Re: bug#78824: [igc] segfault in temacs during build => charset-table To: Pip Cet Content-Type: multipart/alternative; boundary="0000000000001581d00637dff282" X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: 78824 Cc: Helmut Eller , 78824@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) --0000000000001581d00637dff282 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Hi Pip, Helmet, I can confirm that this is gcc 15.1 on Fedora 42. CFLAGS are less dramatic: just `-O2 -g` Building with commit ac73794b43d440d34689293f4152ea38a42bb07a (which I believe has the patches) works as expected, thankyou. Jeff Walsh On Thu, Jun 19, 2025 at 6:19=E2=80=AFAM Pip Cet wro= te: > "Helmut Eller" writes: > > > On Wed, Jun 18 2025, Jeff Walsh wrote: > > > >> When building the latest of the IGC branch, commit: > >> 887db2ff38ce82bb5f33aa128c76b578caba216d > >> > >> I am getting a SEGFAULT during temacs execution. > >> > >> running under a debugger, this occurs in root_find in igc.c > >> `if (r->d.start =3D=3D start)` (r is null in this case) > > > > I can reproduce this with gcc 14.2, when configured with > > > > ./configure -C --without-x --with-gnutls=3Dno --with-mps=3Ddebug > 'CFLAGS=3D-O2 > > -ggdb3 -gctf -fno-omit-frame-pointer -fno-tree-sra > > -I/scratch/emacs/mps-install/include' 'LDFLAGS=3D-L > > /scratch/emacs/mps-install/lib' > > > > I had to remove --enable-checking. > > Et tu, GCC? Let's hope this rampage of declaring what's logically a > perfectly consistent call to be UB (eventually) goes the way of C99 > trigraphs... > > Thanks for testing that. I've applied your second patch and hopefully > that fixes this bug. > > Jeff, could you confirm? > > Thanks again! > > Pip > > --0000000000001581d00637dff282 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
Hi Pip, Helmet,

I can confir= m=C2=A0that this is gcc 15.1 on Fedora 42.
CFLAGS are less dramat= ic: just `-O2 -g`=C2=A0

Building with commit=C2=A0= ac73794b43d440d34689293f4152ea38a42bb07a (which I believe has the patches) = works as expected, thankyou.

Jeff Walsh
=


On Thu, Jun 19, 2025 at 6:19= =E2=80=AFAM Pip Cet <pipcet@pro= tonmail.com> wrote:
"Helmut Eller" <eller.helmut@gmail.com> writes:

> On Wed, Jun 18 2025, Jeff Walsh wrote:
>
>> When building the latest of the IGC branch, commit:
>> 887db2ff38ce82bb5f33aa128c76b578caba216d=C2=A0
>>
>> I am getting a SEGFAULT during temacs execution.
>>
>> running under a debugger, this occurs in root_find in igc.c
>> `if (r->d.start =3D=3D start)` (r is null in this case)
>
> I can reproduce this with gcc 14.2, when configured with
>
>=C2=A0 =C2=A0./configure -C --without-x --with-gnutls=3Dno --with-mps= =3Ddebug 'CFLAGS=3D-O2
>=C2=A0 =C2=A0-ggdb3 -gctf -fno-omit-frame-pointer -fno-tree-sra
>=C2=A0 =C2=A0-I/scratch/emacs/mps-install/include' 'LDFLAGS=3D-= L
>=C2=A0 =C2=A0/scratch/emacs/mps-install/lib'
>
> I had to remove --enable-checking.

Et tu, GCC?=C2=A0 Let's hope this rampage of declaring what's logic= ally a
perfectly consistent call to be UB (eventually) goes the way of C99
trigraphs...

Thanks for testing that.=C2=A0 I've applied your second patch and hopef= ully
that fixes this bug.

Jeff, could you confirm?

Thanks again!

Pip

--0000000000001581d00637dff282--