From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Philipp Stephani Newsgroups: gmane.emacs.devel Subject: Re: [emacs-master] Frequent freezes on macOS Date: Tue, 19 Jan 2021 19:09:09 +0100 Message-ID: References: <010001771963787a-0fcd3ba3-764a-4f66-b59c-c1828b2503e8-000000@email.amazonses.com> <83zh156imm.fsf@gnu.org> Mime-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="4882"; mail-complaints-to="usenet@ciao.gmane.io" Cc: Eli Zaretskii , Emacs developers , herbert@gojira.at, Pankaj Jangid To: Doug Davis Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Tue Jan 19 19:49:31 2021 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 1l1w4J-0001BJ-1n for ged-emacs-devel@m.gmane-mx.org; Tue, 19 Jan 2021 19:49:31 +0100 Original-Received: from localhost ([::1]:51304 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1l1w4H-0002VR-Uu for ged-emacs-devel@m.gmane-mx.org; Tue, 19 Jan 2021 13:49:29 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:44144) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1l1vRW-0004fk-LD for emacs-devel@gnu.org; Tue, 19 Jan 2021 13:09:27 -0500 Original-Received: from mail-oi1-x22e.google.com ([2607:f8b0:4864:20::22e]:45683) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1l1vRT-0006Ey-BG; Tue, 19 Jan 2021 13:09:26 -0500 Original-Received: by mail-oi1-x22e.google.com with SMTP id f132so22092655oib.12; Tue, 19 Jan 2021 10:09:21 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=F3LL6syysMDdTQFyRj9iI0p9mvLZFsD+QgJR71Tzvls=; b=GOrjWJLMgxVOLRM6ee03b20C0i5R3KmzxGBveEky/m8xu3pOC+ZZ6a9N3BjViiyq7k JLEmnJeS2xBIWZwNc8bmc7DeFphNk1myU0LNuTUbXLz8pISZ5bWl+9QRqMpIgs2MwsiH o9ADKrWQquzZO/WS3jpgK9eJKBPkeV2J4Fd9NfiuGG0NpWq0v4wty8pxYmQk8zzVjPBJ LC9xHSgXaSDN7BOu9GaHpeZsvkJo+wxWgJdb86FanPoml+SNJWaTF8+cwSQWlEn/3oFV NdcMC/MfvhJIWVwA6l6OicpX2+/rPOxrTC5lREvCvDsSn2tAZZl2vaaEsgGcvXxRuJGB L+cg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=F3LL6syysMDdTQFyRj9iI0p9mvLZFsD+QgJR71Tzvls=; b=Fphh/HEYNSOQ3SmhA10kGPSC6VvxPlfspxzpwkgzaxZRST+tIAJszqnKKaHT4uazvY QBaX4KmlxiKgCK33UrnRW0VInc/wr0gVBfEEe0/ia9eQVNttcaETmWHADgUtet99ufKD HOiGNMWem6HcDxJIiLUTVmSwGSR8aHFP67jTiGZWm1YX73L89YoU28n7A01XS0LOvTN4 isqPc9WVPmmsMetpxCZeR9WKEIzjenBObgomW7JuZfWYi85eFvncGWVCumK1lEiy236u MtKeG9iEx80cfKYFpCairUweFFz6AjUe7RC/xLOpIM0EHCddCjhUxLKsqzsQsvbbYicw mh+A== X-Gm-Message-State: AOAM533QLyTIcBlNGnZoOxUysC2hGqW0QOU34+OrcPP5ULZR8qG3uA/1 ZwsxInqUOWg+brmKHj51syEuIBQBqGjdy8fmiF/isDFd7yo= X-Google-Smtp-Source: ABdhPJxSQCXLZqAcAgeZ0PF86QQPboaY87JkK5/d0qJJTn42aub0usqstvHJsvDWNnwbeaSIgf9f3wHwA/t0IsggSDo= X-Received: by 2002:aca:5d09:: with SMTP id r9mr611564oib.25.1611079760562; Tue, 19 Jan 2021 10:09:20 -0800 (PST) In-Reply-To: Received-SPF: pass client-ip=2607:f8b0:4864:20::22e; envelope-from=p.stephani2@gmail.com; helo=mail-oi1-x22e.google.com X-Spam_score_int: -17 X-Spam_score: -1.8 X-Spam_bar: - X-Spam_report: (-1.8 / 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_ENVFROM_END_DIGIT=0.25, 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: emacs-devel@gnu.org X-Mailman-Version: 2.1.23 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" Xref: news.gmane.io gmane.emacs.devel:263177 Archived-At: Am Di., 19. Jan. 2021 um 18:40 Uhr schrieb Doug Davis : > > I've been able to reproduce the crash. > > Eli Zaretskii writes: > > > Can you attach a debugger to Emacs when it freezes, and show the > > C-level backtrace? > > Here's my novice debugger attempt (apologies if it's not helpful); first > after compiling with -O3 -g3: > > ddavis@charm ~/software/repos/emacs (HEAD detached at 8f0ce42d3e) $ lldb src/emacs > (lldb) target create "src/emacs" > Current executable set to '/Users/ddavis/software/repos/emacs/src/emacs' (arm64). > (lldb) run > Process 28189 launched: '/Users/ddavis/software/repos/emacs/src/emacs' (arm64) > 2021-01-19 11:30:20.006114-0500 emacs[28189:1400131] fopen failed for data file: errno = 2 (No such file or directory) > 2021-01-19 11:30:20.006128-0500 emacs[28189:1400131] Errors found! Invalidating cache... > Process 28189 stopped > * thread #1, queue = 'com.apple.main-thread', stop reason = signal SIGTERM > frame #0: 0x000000018cc708d0 libsystem_kernel.dylib`read + 8 > libsystem_kernel.dylib`read: > -> 0x18cc708d0 <+8>: b.lo 0x18cc708f0 ; <+40> > 0x18cc708d4 <+12>: pacibsp > 0x18cc708d8 <+16>: stp x29, x30, [sp, #-0x10]! > 0x18cc708dc <+20>: mov x29, sp > Target 0: (emacs) stopped. > (lldb) bt > Process 28189 exited with status = 0 (0x00000000) Terminated due to signal 9 > warning: could not execute support code to read Objective-C class data in the process. This may reduce the quality of type information available. > * thread #1, queue = 'com.apple.main-thread', stop reason = signal SIGTERM > * frame #0: 0x000000018cc708d0 libsystem_kernel.dylib`read + 8 > frame #1: 0x00000001000de1c8 emacs`emacs_read [inlined] emacs_intr_read(fd=17, buf=0x000000016fdfbb3f, nbyte=, interruptible=) at sysdep.c:2486:16 [opt] > frame #2: 0x00000001000de1b8 emacs`emacs_read(fd=, buf=, nbyte=) at sysdep.c:2500 [opt] > > and after compiling with -O0 -g3: > > ddavis@charm ~/software/repos/emacs (HEAD detached at 8f0ce42d3e) $ lldb src/emacs > (lldb) target create "src/emacs" > Current executable set to '/Users/ddavis/software/repos/emacs/src/emacs' (arm64). > (lldb) run > Process 60350 launched: '/Users/ddavis/software/repos/emacs/src/emacs' (arm64) > Process 60350 stopped > * thread #1, queue = 'com.apple.main-thread', stop reason = signal SIGTERM > frame #0: 0x000000018cc708d0 libsystem_kernel.dylib`read + 8 > libsystem_kernel.dylib`read: > -> 0x18cc708d0 <+8>: b.lo 0x18cc708f0 ; <+40> > 0x18cc708d4 <+12>: pacibsp > 0x18cc708d8 <+16>: stp x29, x30, [sp, #-0x10]! > 0x18cc708dc <+20>: mov x29, sp > Target 0: (emacs) stopped. > (lldb) thread list > Process 60350 stopped > * thread #1: tid = 0x1764c3, 0x000000018cc708d0 libsystem_kernel.dylib`read + 8, queue = 'com.apple.main-thread', stop reason = signal SIGTERM > thread #4: tid = 0x1764f7, 0x000000018cc77e04 libsystem_kernel.dylib`poll + 8, name = 'gmain' > thread #5: tid = 0x176508, 0x000000018cc7a0e8 libsystem_kernel.dylib`__select + 8 > thread #6: tid = 0x176520, 0x000000018cc6fce8 libsystem_kernel.dylib`mach_msg_trap + 8, name = 'com.apple.NSEventThread' > thread #36: tid = 0x178ca1, 0x000000018cc719c4 libsystem_kernel.dylib`__workq_kernreturn + 8 > thread #38: tid = 0x1790f4, 0x000000018cc719c4 libsystem_kernel.dylib`__workq_kernreturn + 8 > (lldb) thread backtrace all > Process 60350 exited with status = 0 (0x00000000) Terminated due to signal 9 > warning: could not execute support code to read Objective-C class data in the process. This may reduce the quality of type information available. > * thread #1, queue = 'com.apple.main-thread', stop reason = signal SIGTERM > * frame #0: 0x000000018cc708d0 libsystem_kernel.dylib`read + 8 > frame #1: 0x0000000100170254 emacs`emacs_intr_read(fd=17, buf=, nbyte=, interruptible=) at sysdep.c:2486:16 This backtrace looks surprisingly short, and I'm wondering why the arguments got optimized out even with -O0? Any chance you could produce a longer backtrace? I'm also trying to reproduce this, but haven't had any luck so far. > thread #4, name = 'gmain' > frame #0: 0xffffffffffffffff > thread #5 > frame #0: 0xffffffffffffffff > thread #6, name = 'com.apple.NSEventThread' > frame #0: 0xffffffffffffffff > thread #36 > frame #0: 0xffffffffffffffff > thread #38 > frame #0: 0xffffffffffffffff >