From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Codrut Gusoi Newsgroups: gmane.emacs.bugs Subject: bug#26097: Segmentation fault due to missing faces in face_cache. Date: Mon, 20 Mar 2017 21:40:30 +0200 Message-ID: References: <838to7btyv.fsf@gnu.org> <83h92nwzuw.fsf@gnu.org> NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 X-Trace: blaine.gmane.org 1490038881 13472 195.159.176.226 (20 Mar 2017 19:41:21 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Mon, 20 Mar 2017 19:41:21 +0000 (UTC) Cc: 26097@debbugs.gnu.org To: Eli Zaretskii Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Mon Mar 20 20:41:17 2017 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by blaine.gmane.org with esmtp (Exim 4.84_2) (envelope-from ) id 1cq3B3-0002bj-6U for geb-bug-gnu-emacs@m.gmane.org; Mon, 20 Mar 2017 20:41:13 +0100 Original-Received: from localhost ([::1]:34613 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1cq3B9-00038X-6t for geb-bug-gnu-emacs@m.gmane.org; Mon, 20 Mar 2017 15:41:19 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:33439) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1cq3Av-00033C-8U for bug-gnu-emacs@gnu.org; Mon, 20 Mar 2017 15:41:06 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1cq3As-0001ss-3c for bug-gnu-emacs@gnu.org; Mon, 20 Mar 2017 15:41:05 -0400 Original-Received: from debbugs.gnu.org ([208.118.235.43]:38494) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1cq3As-0001sd-0G for bug-gnu-emacs@gnu.org; Mon, 20 Mar 2017 15:41:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1cq3Ar-0008Vx-Nr for bug-gnu-emacs@gnu.org; Mon, 20 Mar 2017 15:41:01 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Codrut Gusoi Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Mon, 20 Mar 2017 19:41:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 26097 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 26097-submit@debbugs.gnu.org id=B26097.149003883932676 (code B ref 26097); Mon, 20 Mar 2017 19:41:01 +0000 Original-Received: (at 26097) by debbugs.gnu.org; 20 Mar 2017 19:40:39 +0000 Original-Received: from localhost ([127.0.0.1]:36693 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1cq3AV-0008Ux-1F for submit@debbugs.gnu.org; Mon, 20 Mar 2017 15:40:39 -0400 Original-Received: from mail-ot0-f175.google.com ([74.125.82.175]:34821) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1cq3AT-0008Uf-8Y for 26097@debbugs.gnu.org; Mon, 20 Mar 2017 15:40:37 -0400 Original-Received: by mail-ot0-f175.google.com with SMTP id x37so139400358ota.2 for <26097@debbugs.gnu.org>; Mon, 20 Mar 2017 12:40:37 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc; bh=DlIqXjgpybRTfCGDnQvlryL5WyxTf4GZHyevC0fEjxs=; b=d8zXobiyMqogbbEZj+7x0FAElByZjEuEnafZSBbstyGKzMsElT8lj7Et73KwWOwU5X uwm4gh9PbQdtuc09DYhv1LY+4eLm6hv4aK3VW8diJ9216wrJpEnARL3cuSnY5HRNDfkr yp7dZ7vbEuflGe+pttgBE+M9f9nDvYuo5meMIs7ujbUVIHacumfKwmIhaqfx/xTHSLGg Yb2NBHaU1FXIMQsRgqcXqQjfpvaLbpUwMH7H0R3OsyrwBB7pV3YYhfXXEySa3UED9nfk cHjWGcf0RHuvclMxRgwPCVkrr1rCJ8Izv6HmSr+16cQlTP3TgWvBkrzkxMcxmy57GzBY 1rhw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to:cc; bh=DlIqXjgpybRTfCGDnQvlryL5WyxTf4GZHyevC0fEjxs=; b=bdy1nqSaeB27c+9++zRaSap76liDCKB0CDmIVtFxh3rX4ncbmgZqG3hh/bejiPRf1Q ZdxZAp1YcH6a4yi39j1hHdUP6PzPkCpgCxm+q3dx6ZJwuEFnQ9xo0zwt9w6hPTaoxsgC oBSYp/IrjOLIEVyeKvhcQbTVY394On3s98e3g3alslJYH4XDJkCu+1l6ufJYg97ME9/3 CxYGOUUXC0zgoJEU/SXaVne3oeROlvhLdUOy12UfL8Z/+Lt6Szj4mr8IfN/865wpuqjN 6bWXdbf9ecCWoMrFB3uhQem888ALnLhMtMgd6RB+hw7pha31NokEN2RJm9ONlOdIKO+I SLTA== X-Gm-Message-State: AFeK/H3qgnZA2X0ATH1QwN8YUQkPxwSLavbRNAx/ItMH7i1jKZa8otAE+TNCLeLzHSMhjvcmOsFePXppdkz2Mg== X-Received: by 10.157.17.104 with SMTP id p37mr15526825otp.249.1490038831418; Mon, 20 Mar 2017 12:40:31 -0700 (PDT) Original-Received: by 10.182.121.68 with HTTP; Mon, 20 Mar 2017 12:40:30 -0700 (PDT) In-Reply-To: <83h92nwzuw.fsf@gnu.org> X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 208.118.235.43 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.org@gnu.org Original-Sender: "bug-gnu-emacs" Xref: news.gmane.org gmane.emacs.bugs:130758 Archived-At: Yes there is a reliable recipe to reproduce. I've prepared the VM, just let me know how I should send you the login credentials (without the whole internet getting their hands on them) since I can not write them here. The exact recipe is described in my first email, here is what you need to do on the VM now that I set it up: First make sure your terminal is either maximized or fullscreen. Then cd ~/emacs emacs -nw . Now that you have emacs running you should wait untill you see 2 windows: neotree on the left and dired on the right. You need to type: p f. That is 'spacebar' followed by a 'p' followed by an 'f', lower case. This will open helm on the lower part of the screen. From here type what's between the quotes here: "src/term.c" then press return (RET). You will have to wait a few seconds, then the segfault will happen. This is an Ubuntu 14.04 VM, you should be able to do anything you please with it. I am also available to chat on any platform you desire if you need real time feedback from me. On Mon, Mar 20, 2017 at 8:46 PM, Eli Zaretskii wrote: > [Please keep the bug address on the CC list.] > >> From: Codrut Gusoi >> Date: Mon, 20 Mar 2017 14:16:29 +0200 >> >> I've tried watching the `used` count with `watch -l` and there is no >> place where the font cache shrinks for the current frame. I believe >> what I experineced previously was the `used` count from different >> frames (since I added a breakpoint but did not look at the frame >> address). > > For the bug you describe to happen, the 'used' count of a frame's face > cache _must_ be reset to zero at some point. There simply isn't any > other way to "lose" faces from the cache. So if you don't see that, > it means you didn't succeed to reproduce the problem. > >> Have you managed to reproduce it locally? > > No. > >> If not, what do you say I set up a VM in AWS and give you the IP and >> login details to take a look. > > That could work if there's a more-or-less reliable recipe for > reproducing the problem. Is there? > > If there is not recipe, I won't be able to investigate the path to > disaster, and when the segfault happens, it's already too late.