From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Gerd =?UTF-8?Q?M=C3=B6llmann?= Newsgroups: gmane.emacs.bugs Subject: bug#56553: 29.0.50; ASAN error with fringe bitmaps on NS Date: Thu, 14 Jul 2022 15:03:36 +0200 Message-ID: Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="38784"; mail-complaints-to="usenet@ciao.gmane.io" To: 56553@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Thu Jul 14 15:08:50 2022 Return-path: Envelope-to: geb-bug-gnu-emacs@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 1oByaH-0009vn-9t for geb-bug-gnu-emacs@m.gmane-mx.org; Thu, 14 Jul 2022 15:08:49 +0200 Original-Received: from localhost ([::1]:49776 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1oByaG-0001ab-6O for geb-bug-gnu-emacs@m.gmane-mx.org; Thu, 14 Jul 2022 09:08:48 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:41298) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oByVf-0002N3-1q for bug-gnu-emacs@gnu.org; Thu, 14 Jul 2022 09:04:03 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:39217) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1oByVe-0003sN-Or for bug-gnu-emacs@gnu.org; Thu, 14 Jul 2022 09:04:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1oByVe-0000vM-Kn for bug-gnu-emacs@gnu.org; Thu, 14 Jul 2022 09:04:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Gerd =?UTF-8?Q?M=C3=B6llmann?= Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Thu, 14 Jul 2022 13:04:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 56553 X-GNU-PR-Package: emacs X-Debbugs-Original-To: bug-gnu-emacs@gnu.org Original-Received: via spool by submit@debbugs.gnu.org id=B.16578038343533 (code B ref -1); Thu, 14 Jul 2022 13:04:02 +0000 Original-Received: (at submit) by debbugs.gnu.org; 14 Jul 2022 13:03:54 +0000 Original-Received: from localhost ([127.0.0.1]:36976 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1oByVW-0000uv-7K for submit@debbugs.gnu.org; Thu, 14 Jul 2022 09:03:54 -0400 Original-Received: from lists.gnu.org ([209.51.188.17]:53356) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1oByVS-0000um-Bo for submit@debbugs.gnu.org; Thu, 14 Jul 2022 09:03:52 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:41278) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oByVS-0001l3-6H for bug-gnu-emacs@gnu.org; Thu, 14 Jul 2022 09:03:50 -0400 Original-Received: from mail-wm1-x335.google.com ([2a00:1450:4864:20::335]:39778) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1oByVQ-0003rI-Jo for bug-gnu-emacs@gnu.org; Thu, 14 Jul 2022 09:03:49 -0400 Original-Received: by mail-wm1-x335.google.com with SMTP id i204-20020a1c3bd5000000b003a2fa488efdso2702904wma.4 for ; Thu, 14 Jul 2022 06:03:47 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=from:to:subject:date:message-id:mime-version; bh=P3guSBNMD18q+PGonA0x+126DB3of8RS2u28IzlDJJk=; b=Vsj3glgOsg1eYdb4BhvG7tnpMdvpkqd48VhFlEkjHI6sFaby/5cHc7AtZa87ZjTwTr pY9hv2iIJ4AqW5CBxkxYW+G85l7NhfZRwdhx4l/TkiRpx06+3B4NdkJ9KMbiGlPJYVzc axU7qOlrtWPc9CTwlVPw7o4sfEk6o234ySwn68tVMmEj0ReKv+ZmdB1j2tbe7GIi5JLq duNidGdu0L7uZKgMENDuOIlkpN1+OuMZ/wDPVVMJ2Ly2+1rxaLEAcXThc1KGrFQOoR0z b/rNpe/9hCZQeF+3yGO68d2ZqDRuUEkS8CIQk/6MpCtW9tDdwj8mtg+8Ecb7P4st8UWX PfQQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:subject:date:message-id:mime-version; bh=P3guSBNMD18q+PGonA0x+126DB3of8RS2u28IzlDJJk=; b=xGhlgFDy+dbhe+0NOwDocGr+auBjODXrYG+IBiKxgESYNyEKZNotvtnQnUMu6eFF+t 8Pg6MYyuPJXQ37dSGmZwH4ayBjN73kOTvJ2xexF2Bv51LTQSsiLQWJI5ydSkpWrkW5+U WnhSWwHuHC0PCnvCMne+gDGvggNyrd7osfw222hxOcd7vSMmXR8p08fdO9Vnx4HHVjIP nYyFknjhbaMq2jRVBebJbZokmAD7ICgxGdrPQScigMCpFRGSnlMAH0yGvLMgKCehqJqP qsnJb6NrJbp3Kr1mCUpob6LtZSju/M3W/iyF9F1lH3UNT0xSh53Hd8kf6W2Gz6badK6X mO6g== X-Gm-Message-State: AJIora8vA19p/9Ls9VV7Ct/fn+ahfUHxZkZwKsmxGQuzHDpNRpklRs+v FNOQMAXJLoVJwv6FfQLACaxu/IN/zu4= X-Google-Smtp-Source: AGRyM1sfwxg3IjvwHpajZoi/C5Rcbf5UxklTR4GLFfkMPw/Z1U7u8dqX6OLHndhDBGFeGugzDnPnFg== X-Received: by 2002:a05:600c:1e83:b0:3a2:f96b:6c48 with SMTP id be3-20020a05600c1e8300b003a2f96b6c48mr8844613wmb.198.1657803825960; Thu, 14 Jul 2022 06:03:45 -0700 (PDT) Original-Received: from Mini.fritz.box (pd9e365de.dip0.t-ipconnect.de. [217.227.101.222]) by smtp.gmail.com with ESMTPSA id n16-20020a05600c465000b003a03ae64f57sm1828070wmo.8.2022.07.14.06.03.44 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 14 Jul 2022 06:03:45 -0700 (PDT) Received-SPF: pass client-ip=2a00:1450:4864:20::335; envelope-from=gerd.moellmann@gmail.com; helo=mail-wm1-x335.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, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Original-Sender: "bug-gnu-emacs" Xref: news.gmane.io gmane.emacs.bugs:236988 Archived-At: In GNU Emacs 29.0.50 (build 1, aarch64-apple-darwin21.5.0, NS appkit-2113.50 Version 12.4 (Build 21F79)) of 2022-07-12 built on Mini.fritz.box Repository revision: f209650e41d59356a90b5a602abc60c6783bc7b1 This is a Spacemacs profile, with a lot of fringe bitmaps. The error happens right after hitting 'q' on the startup screen, when the first fringe bitmap is displayed. thread #1: tid = 0x3d47c, 0x0000000103dc4870 libclang_rt.asan_osx_dynamic.dylib`__asan::AsanDie(), queue = 'com.apple.main-thread', stop reason = Heap buffer overflow { "access_size": 2, "access_type": 0, "address": 4402845816, "description": "heap-buffer-overflow", "instrumentation_class": "AddressSanitizer", "pc": 4313240244, "stop_type": "fatal_error" } frame #5: 0x000000010116d2b4 emacs`ns_define_fringe_bitmap(which=27, bits=0x00000001066e1860, h=12, w=16) at nsterm.m:2906:20 2903 /* XBM rows are always round numbers of bytes, with any unused 2904 bits ignored. */ 2905 int byte = y * (w/8 + (w%8 ? 1 : 0)) + x/8; -> 2906 bool bit = bits[byte] & (0x80 >> x%8); 2907 if (bit) 2908 [p appendBezierPathWithRect:NSMakeRect (x, y, 1, 1)]; 2909 } (lldb) p byte (int) $22 = 12 frame #6: 0x0000000101079128 emacs`init_fringe_bitmap(which=27, fb=0x00000001066e1850, once_p=0) at fringe.c:1520:2 1517 destroy_fringe_bitmap (which); 1518 1519 if (rif && rif->define_fringe_bitmap) -> 1520 rif->define_fringe_bitmap (which, fb->bits, fb->height, fb->width); 1521 1522 fringe_bitmaps[which] = fb; 1523 if (which >= max_used_fringe_bitmap) (lldb) p *fb (fringe_bitmap) $21 = { bits = 0x00000001066e1860 height = 12 width = 16 period = 0 align = 0 dynamic = true }