From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: =?utf-8?Q?Gerd_M=C3=B6llmann?= Newsgroups: gmane.emacs.devel Subject: Re: Building the igc branch on MS-Windows Date: Sat, 27 Apr 2024 15:26:35 +0200 Message-ID: References: <86il063imh.fsf@gnu.org> <87cyqcfv6k.fsf@gmail.com> <86o79wzi31.fsf@gnu.org> <86mspgza23.fsf@gnu.org> <867cgkz7e2.fsf@gnu.org> <87r0esdv7o.fsf@gmail.com> <87le50dmec.fsf@gmail.com> <8734r7etu1.fsf@gmail.com> <86il03xrlz.fsf@gnu.org> <868r0zxpfr.fsf@gnu.org> <8634r7xoil.fsf@gnu.org> <86y18zukdk.fsf@gnu.org> <86plubugkb.fsf@gnu.org> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="32539"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Cc: eller.helmut@gmail.com, emacs-devel@gnu.org To: Eli Zaretskii Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Sat Apr 27 15:26:53 2024 Return-path: Envelope-to: ged-emacs-devel@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1s0i4r-0008HG-GG for ged-emacs-devel@m.gmane-mx.org; Sat, 27 Apr 2024 15:26:53 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1s0i4i-0002KY-GH; Sat, 27 Apr 2024 09:26:44 -0400 Original-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 1s0i4f-0002KD-5u for emacs-devel@gnu.org; Sat, 27 Apr 2024 09:26:41 -0400 Original-Received: from mail-lf1-x134.google.com ([2a00:1450:4864:20::134]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1s0i4d-0000nF-IY; Sat, 27 Apr 2024 09:26:40 -0400 Original-Received: by mail-lf1-x134.google.com with SMTP id 2adb3069b0e04-51ae2e37a87so3632943e87.2; Sat, 27 Apr 2024 06:26:38 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1714224397; x=1714829197; darn=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=ZkYwpY4o0i4ktY8xPJAUA27PgCJVvLGq/BjPNOj8NM0=; b=f7Ch4Uu2gs4ax1rZEdU40cm+DUrlSKf/1HjYiaizHRyhzfBJMTS3a/rHrOSel1uTOB BBBCuw60mICSNFak3ovbwnv2UDwihB/dknLRasP5Gz/XeLSY+QrI5ppzDe2Oyojc0yTL oI+RG0P0FWvF1+J+9Nl3TIXWAXacM6QLa9LT5avSx/SQXA4shezixpT1TYf/K95Q5Fq8 PkvGIZW5X1FR0y/+rnO7arHf4XxjmE0qtR7jzODL7dHYPhSdaeZ3hTakKCrct9RSNTxn i9wcxZmXLZSd2Y0DE8mM2ypwcHXuj51pl5y86gsiJpl7+i14v6PdMAekQLgHQV6Cy5N3 Ye/A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1714224397; x=1714829197; 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=ZkYwpY4o0i4ktY8xPJAUA27PgCJVvLGq/BjPNOj8NM0=; b=rOxpuBa4e3YpZRTbZlPY/bQkXVArLf5UY1KVtCaQ+5qbdaN3aFzvq6MRWkGLx5I6uz t9upBPDFtx5uLxoOVpCg/u0KNx97P5/Qmt/jZ94TlBVXSATi99tYhZqe/BB5uiYYSCNH pqqEIPcQUKkl4YPKCpMrd28aznHwHLM1zr4PbFpJdI7X6SnP4e98FAQ/oC45yUIuNDIf brz0Oe4w4v2Qn3G1D9KbrKQsx6SBSQyUjQB/LlX+EmhD9uRuQWKmUAfUu3j9M1SPiskP pFfAMAttmTZZm0kuqdT6bw7velzzssPIRb1eXPDw6BgV3X2Q4Aj4F0yLrxlFKV8Ly0EV 48eg== X-Forwarded-Encrypted: i=1; AJvYcCUgIEAyI86/rRZR9/gZ0WPIZ3L7ybiOon/9MI8l+6yH8GTaWfuvAXwmJIUcCPYrOkC+F5eaZDbDbP/8SBP+izINsv56 X-Gm-Message-State: AOJu0YxcbdLtIXbfJA3mtPkimpGJNt9EhI1hYzRt+y2B1TcfC5lXaJK/ pf9g3OqtqtJMOYMYHXqozrdQCxJsjMlqTpFKTWkWXtFGKzpfhy4zcxLTBg== X-Google-Smtp-Source: AGHT+IEeq9oLkUHem3y8SXJvnIIZHjHqXVoyPYe/CI/sUXnyQfvng0hfLM+4s4xeTzjay8ZCmv9PTQ== X-Received: by 2002:a05:6512:33c1:b0:513:5a38:f545 with SMTP id d1-20020a05651233c100b005135a38f545mr4139865lfg.62.1714224396518; Sat, 27 Apr 2024 06:26:36 -0700 (PDT) Original-Received: from pro2.fritz.box (p4fe3ae42.dip0.t-ipconnect.de. [79.227.174.66]) by smtp.gmail.com with ESMTPSA id h2-20020a170906398200b00a4df061728fsm11617701eje.83.2024.04.27.06.26.35 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 27 Apr 2024 06:26:36 -0700 (PDT) In-Reply-To: <86plubugkb.fsf@gnu.org> (Eli Zaretskii's message of "Sat, 27 Apr 2024 15:37:56 +0300") Received-SPF: pass client-ip=2a00:1450:4864:20::134; envelope-from=gerd.moellmann@gmail.com; helo=mail-lf1-x134.google.com X-Spam_score_int: -10 X-Spam_score: -1.1 X-Spam_bar: - X-Spam_report: (-1.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, FREEMAIL_REPLY=1, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=no autolearn_force=no X-Spam_action: no action X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Xref: news.gmane.io gmane.emacs.devel:318200 Archived-At: Eli Zaretskii writes: >> From: Gerd M=C3=B6llmann >> Cc: eller.helmut@gmail.com, emacs-devel@gnu.org >> Date: Sat, 27 Apr 2024 14:09:26 +0200 >>=20 >> Inaccessible memory in my experience so far means that the corresponding >> object has either been moved by MPS, or it has been "freed", by not >> copying it. >>=20 >> So, as an ansatz, let's assume the font in question has been moved. It >> would follow, I think, that it is not a face->font right? Because >> otherwise the reference to the the font would have been traced. The >> question would be where the reference to the font comes from? > > It _is_ face->font. We get to it like this: > > void > gui_produce_glyphs (struct it *it) > { > int extra_line_spacing =3D it->extra_line_spacing; > > it->glyph_not_available_p =3D false; > > if (it->what =3D=3D IT_CHARACTER) > { > unsigned char2b; > struct face *face =3D FACE_FROM_ID (it->f, it->face_id); > struct font *font =3D face->font; <<<<<<<<<<<<<<<<<<<<<<<<<<<< > > IOW, the display iterator references a face by its ID, and we access > that face via the frame's face cache. As I wrote in a previous > message, all the faces in the cache after index 21 are clobbered, > although the cache's 'used' count is 57, and the index of the > problematic face is 22. Good! Can you something wrong ub fix_face_cache (please see the other mail I sent)? And then, do we have other references to face_cache than from the frame? Maybe I've missed one?