From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Andrii Kolomoiets Newsgroups: gmane.emacs.bugs Subject: bug#43973: 28.0.50; [NS] Two crashes on macOS Date: Tue, 13 Oct 2020 10:35:28 +0300 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="15523"; mail-complaints-to="usenet@ciao.gmane.io" To: 43973@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Tue Oct 13 09:36:32 2020 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 1kSErG-0003tA-L7 for geb-bug-gnu-emacs@m.gmane-mx.org; Tue, 13 Oct 2020 09:36:30 +0200 Original-Received: from localhost ([::1]:33828 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1kSErF-0007sg-M0 for geb-bug-gnu-emacs@m.gmane-mx.org; Tue, 13 Oct 2020 03:36:29 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:41430) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kSEqo-0007s6-NB for bug-gnu-emacs@gnu.org; Tue, 13 Oct 2020 03:36:02 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:33500) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1kSEqo-0005Up-AC for bug-gnu-emacs@gnu.org; Tue, 13 Oct 2020 03:36:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1kSEqo-00017m-4o for bug-gnu-emacs@gnu.org; Tue, 13 Oct 2020 03:36:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Andrii Kolomoiets Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Tue, 13 Oct 2020 07:36:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 43973 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.16025745384283 (code B ref -1); Tue, 13 Oct 2020 07:36:01 +0000 Original-Received: (at submit) by debbugs.gnu.org; 13 Oct 2020 07:35:38 +0000 Original-Received: from localhost ([127.0.0.1]:45046 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kSEqQ-000171-Ij for submit@debbugs.gnu.org; Tue, 13 Oct 2020 03:35:38 -0400 Original-Received: from lists.gnu.org ([209.51.188.17]:49606) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kSEqO-00016u-PY for submit@debbugs.gnu.org; Tue, 13 Oct 2020 03:35:37 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:41320) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kSEqO-0007NN-H0 for bug-gnu-emacs@gnu.org; Tue, 13 Oct 2020 03:35:36 -0400 Original-Received: from mail-lf1-x141.google.com ([2a00:1450:4864:20::141]:43244) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1kSEqM-0005Mu-7C for bug-gnu-emacs@gnu.org; Tue, 13 Oct 2020 03:35:36 -0400 Original-Received: by mail-lf1-x141.google.com with SMTP id l28so5720688lfp.10 for ; Tue, 13 Oct 2020 00:35:32 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:subject:date:message-id:mime-version; bh=ZgdKjjb1DlMiFCHlc4BBafspVMcHQIIKySnNkjZ+7l0=; b=KZMelEsn/KKTJEFAoQGqR2dGXRvJPi2pzTogHq/bLYKnk3NxvchI+Q++XZ7qw7eaDb lca67oyHayPXPRAZrnK3c2RI+NRe9KPBz1UfGr8lfxoklB17BjcBoBvW836ssuaU+Po9 6+rVSqjvqMi1TrNtbWyX6bWZ32cV3eGcnwevSCgzSYfbcS3lih2SEHDgbZnShLSTU73z DlAROB3fxNRQOIVP6LZBUZDWmTB+tbB2JM5gvztKR8SgkCow4kFGFJtEv78ER0fr+QK+ yFWEmQ/o+gnEuSZ0+IN9G4Hn4hOgZqKY1zjP6igVin2fd2OyU5U0yWlMtf3JJz/n/GZs B9Rw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:subject:date:message-id:mime-version; bh=ZgdKjjb1DlMiFCHlc4BBafspVMcHQIIKySnNkjZ+7l0=; b=bFFf8nj5DL7NZSERXDbZnjkea3BWWEXS4w9XJk8J/xHYukhctryc3D9oMZA+lgMQMO NgUpTxncDsgSsSFFQR92Hn2W93iyg8qSSaIHSicYnWDYzKKSQOXfxXRn6oma9Ce0an1t 2d+hjVoeQ0TEccHWu8YGAPF8ULuyBQTwrumWDD/R0s8jDqmtFY1DInRbfacM/x0HUqx7 aY4lqoP4OFr2tWsU01XRd/VBDdjg/GURJzPDBnqLKlfkNDLhu1wnplNJ2jocaaikmG2Q PmjERWUJ0o8JCQgbCG8J/VDVTGxauDlgeaGd3F3h5xZUWevQYE8ledt8C9GdhOufxDuP Jwlg== X-Gm-Message-State: AOAM532EGJce6/I2rNLL/BeguaU2fhrYzzTFxi+L2FvZgO2uFj3Ght2u eiLQJbRDOMUem7BOpZVmyvc4n+wHXBc= X-Google-Smtp-Source: ABdhPJw9j65H3myQ6QvIXCeeiw5+iseEXVAS7c2M5UXPK1ODmhAZ8kVZyMyYaox6O5jc/3Ca1I4PIg== X-Received: by 2002:a19:38c:: with SMTP id 134mr8588415lfd.564.1602574530489; Tue, 13 Oct 2020 00:35:30 -0700 (PDT) Original-Received: from muffinmac ([91.206.110.168]) by smtp.gmail.com with ESMTPSA id p21sm4885533lji.106.2020.10.13.00.35.29 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 13 Oct 2020 00:35:29 -0700 (PDT) Received-SPF: pass client-ip=2a00:1450:4864:20::141; envelope-from=andreyk.mad@gmail.com; helo=mail-lf1-x141.google.com X-detected-operating-system: by eggs.gnu.org: No matching host in p0f cache. That's all we know. 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 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:190402 Archived-At: Update to recent trunk brought me everyone's favorite random crashes. In an attempt to find the recipe for reproduce the bug somehow, I spot two crashes that I actually can reproduce in 'emacs -Q'. The first one is more "stable": With this code in scratch and point at '|': (make-frame `((parent-frame . ,(selected-frame)) (width . 0.5) (height . 0.5) (top . 0.5) (left . 0.5)))| 1. C-x C-e 2. s-w Repeating these two steps 3-5 times leads to crash. Most of the time the only meaningfull record in the 'bt' is: Thread 3 received signal SIGSEGV, Segmentation fault. 0x00007fff6fa97678 in ?? () (gdb) bt full #0 0x00007fff6fa97678 in ?? () No symbol table info available. #1 0x0000000100476338 in -[EmacsImage dealloc] (self=0x1014c77f0, _cmd=0x7fff7afcdc58) at nsimage.m:286 No locals. It may be tool bar related, because Emacs is not crashing with tool-bar-mode turned of. The second one is not reproducible every time: 1. M-x tool-bar-mode 2. Evaluate (let ((params `((parent-frame . ,(selected-frame)) (undecorated . t)))) (dotimes (_z 100) (set-face-background 'internal-border "black" (make-frame params)))) 3. Move the frame Thread 3 received signal SIGSEGV, Segmentation fault. 0x0000000100456e88 in ns_clear_under_internal_border (f=0x13cedafe8) at nsterm.m:3052 3052 [ns_lookup_indexed_color (NS_FACE_BACKGROUND (face), f) set]; (gdb) bt full #0 0x0000000100456e88 in ns_clear_under_internal_border (f=0x13cedafe8) at nsterm.m:3052 frame_rect = {origin = {x = 0, y = 0}, size = {width = 595, height = 508}} face_id = 15 border_width = 2 view = 0x10bfb2b70 edge_rect = {origin = {x = 0, y = 6.9529314086768113e-310}, size = {width = 2.6133677750952917e-314, height = 2.6133668897296544e-314}} edge = {NSRectEdgeMinX, NSRectEdgeMinY, NSRectEdgeMaxX, NSRectEdgeMaxY} face = 0x0 #1 0x0000000100067b8d in redisplay_internal () at xdisp.c:16014 gcscrollbars = false f_redisplay_flag = false f = 0x13cedafe8 w = 0x105046430 sw = 0x105046430 fr = 0x10503b430 pending = false must_finish = true match_p = true tlbufpos = {charpos = 304, bytepos = 304} tlendpos = {charpos = 0, bytepos = 0} number_of_visible_frames = 101 count = 3 sf = 0x10503b430 polling_stopped_here = true tail = {i = 0x102227d93} frame = {i = 0x13cedafed} hscroll_retries = 0 garbaged_frame_retries = 0 consider_all_windows_p = true update_miniwindow_p = false #2 0x000000010006ceb9 in redisplay () at xdisp.c:15159 No locals. (Just for the record: in my usual workflow I don't create that much child frames) Thanks! And hope Emacs is crashing on your side too ;) In GNU Emacs 28.0.50 (build 3, x86_64-apple-darwin19.6.0, NS appkit-1894.60 Version 10.15.6 (Build 19G2021)) Windowing system distributor 'Apple', version 10.3.1894 System Description: Mac OS X 10.15.6 Configured using: 'configure --enable-checking=yes,glyphs --enable-check-lisp-object-type 'CFLAGS=-O0 -g3''