From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.bugs Subject: bug#58042: 29.0.50; ASAN use-after-free in re_match_2_internal Date: Tue, 04 Oct 2022 19:35:30 +0300 Message-ID: <83edvnv965.fsf@gnu.org> References: Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="17267"; mail-complaints-to="usenet@ciao.gmane.io" Cc: 58042@debbugs.gnu.org To: Gerd =?UTF-8?Q?M=C3=B6llmann?= Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Tue Oct 04 19:24:55 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 1oflf4-0004L4-E8 for geb-bug-gnu-emacs@m.gmane-mx.org; Tue, 04 Oct 2022 19:24:54 +0200 Original-Received: from localhost ([::1]:39854 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1oflf3-00043j-4e for geb-bug-gnu-emacs@m.gmane-mx.org; Tue, 04 Oct 2022 13:24:53 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:47126) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1ofktn-0001O8-Gm for bug-gnu-emacs@gnu.org; Tue, 04 Oct 2022 12:36:18 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:55957) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1ofktm-0005Ta-DS for bug-gnu-emacs@gnu.org; Tue, 04 Oct 2022 12:36:03 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1ofktl-0003Fj-U7 for bug-gnu-emacs@gnu.org; Tue, 04 Oct 2022 12:36:01 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Tue, 04 Oct 2022 16:36:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 58042 X-GNU-PR-Package: emacs Original-Received: via spool by 58042-submit@debbugs.gnu.org id=B58042.166490134212479 (code B ref 58042); Tue, 04 Oct 2022 16:36:01 +0000 Original-Received: (at 58042) by debbugs.gnu.org; 4 Oct 2022 16:35:42 +0000 Original-Received: from localhost ([127.0.0.1]:55035 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ofktS-0003FD-BJ for submit@debbugs.gnu.org; Tue, 04 Oct 2022 12:35:42 -0400 Original-Received: from eggs.gnu.org ([209.51.188.92]:59574) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ofktQ-0003Ez-5T for 58042@debbugs.gnu.org; Tue, 04 Oct 2022 12:35:41 -0400 Original-Received: from fencepost.gnu.org ([2001:470:142:3::e]:53260) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1ofktK-0005RW-OZ; Tue, 04 Oct 2022 12:35:34 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=MIME-version:References:Subject:In-Reply-To:To:From: Date; bh=21/ZEOI3L5w9IKATjnvrAcHXobzH+IcY9QG9XAx8PIg=; b=LXd5tatr5WCzN8cQkqqd Lw9Hs8pG8IKLkyaC/wl+KPaBTu+WDAoDg//aX+x1CDNvZxYWUm/h9Td6iXlJiXsPU6hWn+8ehjObo rj2+iZOysGi5ZnmtM3AZogzrpn+/LlCKsOrLKI8xtSXTM4nysCu8Ku+iHrBo62SiWMjQeciko0vfm YT6CRgOo8Bnd7uISGXuxOtqrwADB0ajeqNZPgDjz689oC/jr9N7Evd+Jen+c92R9U0AGU/Mgo+yUq r+1aUWYHTvcjrFGhTW3ecVmJpQhKJ7bAKfuWYe7TyJ/FnEt4oQx0WYlukfx4TFjj8mc65+v4sL/kH o2WptKQh5xZEcQ==; Original-Received: from [87.69.77.57] (port=4258 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1ofktK-00080T-7g; Tue, 04 Oct 2022 12:35:34 -0400 In-Reply-To: (message from Gerd =?UTF-8?Q?M=C3=B6llmann?= on Tue, 04 Oct 2022 16:33:45 +0200) 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:244456 Archived-At: > From: Gerd Möllmann > Date: Tue, 04 Oct 2022 16:33:45 +0200 > > 0x00011f90d0a1 is located 1953 bytes inside of 8184-byte region [0x00011f90c900,0x00011f90e8f8) > freed by thread T0 here: > #0 0x103332de4 in wrap_free+0x98 (libclang_rt.asan_osx_dynamic.dylib:arm64e+0x3ede4) > #1 0x100985df8 in rpl_free free.c:48 > #2 0x1005b6e7c in lisp_free alloc.c:1038 > #3 0x1005cba7c in compact_small_strings alloc.c:2191 > #4 0x1005c9bfc in sweep_strings alloc.c:2072 > #5 0x1005bcd00 in gc_sweep alloc.c:7397 > #6 0x1005bae50 in garbage_collect alloc.c:6245 > #7 0x1005ba36c in maybe_garbage_collect alloc.c:6090 > #8 0x100650284 in maybe_gc lisp.h:5622 > #9 0x100648cd4 in Ffuncall eval.c:2972 > #10 0x10064b9a8 in internal_condition_case_n eval.c:1555 > #11 0x1000cd964 in safe__call xdisp.c:3026 > #12 0x1000cdc9c in safe__call1 xdisp.c:3062 > #13 0x1001d60dc in prepare_menu_bars xdisp.c:13572 > #14 0x1000f2018 in redisplay_internal xdisp.c:16523 > #15 0x100108c0c in redisplay xdisp.c:16105 > #16 0x10088fa44 in -[EmacsView layoutSublayersOfLayer:] nsterm.m:8662 > #17 0x1900a9624 in CA::Layer::layout_if_needed(CA::Transaction*)+0x224 (QuartzCore:arm64e+0x20624) > #18 0x1901f661c in CA::Context::commit_transaction(CA::Transaction*, double, double*)+0x1c0 (QuartzCore:arm64e+0x16d61c) > #19 0x19008b4c8 in CA::Transaction::commit()+0x2bc (QuartzCore:arm64e+0x24c8) > #20 0x18bee1698 in __62+[CATransaction(NSCATransaction) NS_setFlushesWithDisplayLink]_block_invoke+0x12c (AppKit:arm64e+0x1ac698) > #21 0x18c646754 in ___NSRunLoopObserverCreateWithHandler_block_invoke+0x3c (AppKit:arm64e+0x911754) > #22 0x1892101a0 in __CFRUNLOOP_IS_CALLING_OUT_TO_AN_OBSERVER_CALLBACK_FUNCTION__+0x20 (CoreFoundation:arm64e+0x841a0) > #23 0x18920fff0 in __CFRunLoopDoObservers+0x24c (CoreFoundation:arm64e+0x83ff0) > #24 0x18920f524 in __CFRunLoopRun+0x300 (CoreFoundation:arm64e+0x83524) > #25 0x18920ea80 in CFRunLoopRunSpecific+0x254 (CoreFoundation:arm64e+0x82a80) > #26 0x191e4e334 in RunCurrentEventLoopInMode+0x120 (HIToolbox:arm64e+0x32334) > #27 0x191e4dfc0 in ReceiveNextEventCommon+0x140 (HIToolbox:arm64e+0x31fc0) > #28 0x191e4de64 in _BlockUntilNextEventMatchingListInModeWithFilter+0x44 (HIToolbox:arm64e+0x31e64) > #29 0x18bd76518 in _DPSNextEvent+0x358 (AppKit:arm64e+0x41518) Any idea how is the above related to the other two backtraces? Why don't I see 'main' at the top of the backtrace here? Can the sanitizer be asked to produce more than 30 backtrace frames?