From unknown Sat Aug 16 11:41:46 2025 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-Mailer: MIME-tools 5.509 (Entity 5.509) Content-Type: text/plain; charset=utf-8 From: bug#34235 <34235@debbugs.gnu.org> To: bug#34235 <34235@debbugs.gnu.org> Subject: Status: 27.0.50; lisp profiler does not work Reply-To: bug#34235 <34235@debbugs.gnu.org> Date: Sat, 16 Aug 2025 18:41:46 +0000 retitle 34235 27.0.50; lisp profiler does not work reassign 34235 emacs submitter 34235 Alex Branham severity 34235 normal thanks From debbugs-submit-bounces@debbugs.gnu.org Mon Jan 28 13:34:31 2019 Received: (at submit) by debbugs.gnu.org; 28 Jan 2019 18:34:31 +0000 Received: from localhost ([127.0.0.1]:49495 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1goBjr-0002r3-I2 for submit@debbugs.gnu.org; Mon, 28 Jan 2019 13:34:31 -0500 Received: from eggs.gnu.org ([209.51.188.92]:38317) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1goBjp-0002qr-Ss for submit@debbugs.gnu.org; Mon, 28 Jan 2019 13:34:30 -0500 Received: from lists.gnu.org ([209.51.188.17]:40962) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1goBjj-0001ec-Ep for submit@debbugs.gnu.org; Mon, 28 Jan 2019 13:34:24 -0500 Received: from eggs.gnu.org ([209.51.188.92]:48473) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1goBjg-0005C8-Qj for bug-gnu-emacs@gnu.org; Mon, 28 Jan 2019 13:34:23 -0500 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=0.0 required=5.0 tests=BAYES_40,FREEMAIL_FROM autolearn=disabled version=3.3.2 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1goBja-0001bN-Sf for bug-gnu-emacs@gnu.org; Mon, 28 Jan 2019 13:34:17 -0500 Received: from mail-oi1-x231.google.com ([2607:f8b0:4864:20::231]:44252) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1goBjW-0001XQ-JS for bug-gnu-emacs@gnu.org; Mon, 28 Jan 2019 13:34:11 -0500 Received: by mail-oi1-x231.google.com with SMTP id m6so13867020oig.11 for ; Mon, 28 Jan 2019 10:34:07 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=user-agent:from:to:subject:date:message-id:mime-version; bh=qDeIhhYdkPEkwn8/O6tJQzlQob7kYJgOdHQx3Xrk4Io=; b=iN3GVTc3XkJFQdiYV4XJdeLMW/a0KYb8BBaCOf1dbGtkPuEY+LBf/AEk8ZheF7V6kF tvYeExJzWa6So52xEuogjM+k6ptFEuQRqsLcbx2IVK5XVrhDzVLxu5E26L8dw/rq+Gdg lG13eYegcRZp+VZR6KRa0+8/KWJAB77A1/aT4n8zptRuXgWVFOY8fKVvxTlXKbQdB0d6 AEtcSgh4ZMTALNkCK0jWTfd7iTcSb3Yxle7PvfmPGSrfK6hvTT/H7iC61juVSkBLhKot FmMoLyvPUpn2wWN++eFVdghxDKbYZqNDdbY6zbk4fdmZe+bZbKXUbKlydF0t1f/2dYCI K0/g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:user-agent:from:to:subject:date:message-id :mime-version; bh=qDeIhhYdkPEkwn8/O6tJQzlQob7kYJgOdHQx3Xrk4Io=; b=izMbGJscn6CF2K35X7jNK2BtDZFdMK255uvEuN9I2uTuiIF+kMso7f7IE44SVsZGcd u9hGtPDrZcDqHRUam9PuqSp8l4caGdnY/rI99Zm1i82u3LB8oGhYXgl9FkDnhiohC28L qhRZDg2GmEUu0bhvRpTEPre6d6WpQAriOruKhuDVW/ZrGba9EJcrH95mltrqc41S06yr 5kINBUYWkNFGyntFh5VfJP3mrQuNtb94z/weA2fr4wOBM0h+uQIWJdrOrLd4ohQEq9qY GUIjkBaeADsxPqBvXIqOORYuqKOsiSIFKO1IJgUproVfzqK6z5aQzdGgvCreo00t04L5 jjkA== X-Gm-Message-State: AJcUukeXpRdzU91hqNOke3GQsP4NolZ3lhWufgX+nacxAh1mG6Q+DfbH rSf6ij7gS0a9Cm8jfHd9OXNZiEc3 X-Google-Smtp-Source: ALg8bN5ARtd8sw/4ItlcOowwAfYZfH6ZfLdLLGz0+92Z4eCsI9dMMgT+ZiRV1PuAl+Sbae7gS5+RlA== X-Received: by 2002:aca:6155:: with SMTP id v82mr7005294oib.259.1548700445989; Mon, 28 Jan 2019 10:34:05 -0800 (PST) Received: from earth (cpe-70-114-192-208.austin.res.rr.com. [70.114.192.208]) by smtp.gmail.com with ESMTPSA id u136sm5265304oie.38.2019.01.28.10.34.04 for (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Mon, 28 Jan 2019 10:34:05 -0800 (PST) User-agent: mu4e 1.1.0; emacs 27.0.50 From: Alex Branham To: bug-gnu-emacs@gnu.org Subject: 27.0.50; lisp profiler does not work Date: Mon, 28 Jan 2019 12:34:03 -0600 Message-ID: <87o9807ht0.fsf@gmail.com> MIME-Version: 1.0 Content-Type: text/plain X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 2607:f8b0:4864:20::231 X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x X-Spam-Score: 1.0 (+) X-Debbugs-Envelope-To: submit X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -0.0 (/) The lisp profiler (i.e. M-x profiler-start, M-x profiler-report, etc) seems to not work for me since the pdumper got merged (or sometime around then). I'm not using --enable-profiling when I run ./configure. emacs -q M-x profiler-start (set cpu mode) C-x C-f ~/.emacs.d/init.el M-x profiler-report results in the profiler report buffer only having the contents: - ... 1 100% Automatic GC 1 100% but surely there should be more in there. More generally, it doesn't seem to ever report anything for me, no matter how long I leave it running for. I've got no idea if the pdumper has anything to do with this, it just seems to have been happening since about then. Thanks, Alex In GNU Emacs 27.0.50 (build 1, x86_64-pc-linux-gnu, GTK+ Version 3.24.2) of 2019-01-25 built on localhost Windowing system distributor 'The X.Org Foundation', version 11.0.11906000 System Description: NixOS 18.09.1985.749a3a0d00b (Jellyfish) Configured using: 'configure --prefix=/nix/store/dw0cpqxxrnm2khnmldp7mncn6db4779p-emacs-27.0.50 --with-modules --with-x-toolkit=gtk3 --with-xft CFLAGS=-DMAC_OS_X_VERSION_MAX_ALLOWED=101200' Configured features: XPM JPEG TIFF GIF PNG RSVG SOUND DBUS GSETTINGS GLIB NOTIFY INOTIFY LIBSELINUX GNUTLS LIBXML2 FREETYPE M17N_FLT LIBOTF XFT ZLIB TOOLKIT_SCROLL_BARS GTK3 X11 XDBE XIM MODULES THREADS LIBSYSTEMD JSON CANNOT_DUMP GMP Important settings: value of $LANG: en_US.UTF-8 locale-coding-system: utf-8-unix From debbugs-submit-bounces@debbugs.gnu.org Tue Jan 29 11:06:33 2019 Received: (at 34235) by debbugs.gnu.org; 29 Jan 2019 16:06:33 +0000 Received: from localhost ([127.0.0.1]:50732 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1goVuD-0004H0-4E for submit@debbugs.gnu.org; Tue, 29 Jan 2019 11:06:33 -0500 Received: from eggs.gnu.org ([209.51.188.92]:55912) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1goVuB-0004Gk-Tk for 34235@debbugs.gnu.org; Tue, 29 Jan 2019 11:06:32 -0500 Received: from fencepost.gnu.org ([2001:470:142:3::e]:47275) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1goVu2-0003OI-DQ; Tue, 29 Jan 2019 11:06:24 -0500 Received: from [176.228.60.248] (port=3471 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.82) (envelope-from ) id 1goVty-0007G9-2L; Tue, 29 Jan 2019 11:06:21 -0500 Date: Tue, 29 Jan 2019 18:06:05 +0200 Message-Id: <83lg3330uq.fsf@gnu.org> From: Eli Zaretskii To: Alex Branham In-reply-to: <87o9807ht0.fsf@gmail.com> (message from Alex Branham on Mon, 28 Jan 2019 12:34:03 -0600) Subject: Re: bug#34235: 27.0.50; lisp profiler does not work References: <87o9807ht0.fsf@gmail.com> X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Spam-Score: -0.0 (/) X-Debbugs-Envelope-To: 34235 Cc: 34235@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) > From: Alex Branham > Date: Mon, 28 Jan 2019 12:34:03 -0600 > > The lisp profiler (i.e. M-x profiler-start, M-x profiler-report, etc) > seems to not work for me since the pdumper got merged (or sometime > around then). I'm not using --enable-profiling when I run ./configure. > > emacs -q > M-x profiler-start (set cpu mode) > C-x C-f ~/.emacs.d/init.el > M-x profiler-report > > results in the profiler report buffer only having the contents: > > - ... 1 100% > Automatic GC 1 100% > > but surely there should be more in there. More generally, it doesn't > seem to ever report anything for me, no matter how long I leave it > running for. I've got no idea if the pdumper has anything to do with > this, it just seems to have been happening since about then. I couldn't reproduce this with today's master branch. I tried on GNU/Linux and on 2 different MS-Windows machines, and profiling worked for me on all of them. I see much more than just "Automatic GC". So I suggest that you look into possible local changes on your system recently, and perhaps also try the emacs-26 branch (where there's no pdumper). For the record, after invoking profiler-start in CPU mode, I visited xdisp.c and typed M->, then invoked profiler-report, and typed "C-u RET" on every "+" sign in the leftmost column. Did you do something similar? Thanks. From debbugs-submit-bounces@debbugs.gnu.org Wed Jan 30 08:34:19 2019 Received: (at 34235) by debbugs.gnu.org; 30 Jan 2019 13:34:19 +0000 Received: from localhost ([127.0.0.1]:51099 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1goq0Q-0003Pm-QG for submit@debbugs.gnu.org; Wed, 30 Jan 2019 08:34:19 -0500 Received: from colin.muc.de ([193.149.48.1]:58316 helo=mail.muc.de) by debbugs.gnu.org with smtp (Exim 4.84_2) (envelope-from ) id 1goq0O-0003Pd-Ss for 34235@debbugs.gnu.org; Wed, 30 Jan 2019 08:34:17 -0500 Received: (qmail 94712 invoked by uid 3782); 30 Jan 2019 13:34:14 -0000 Received: from acm.muc.de (p4FE15E69.dip0.t-ipconnect.de [79.225.94.105]) by colin.muc.de (tmda-ofmipd) with ESMTP; Wed, 30 Jan 2019 14:34:13 +0100 Received: (qmail 5529 invoked by uid 1000); 30 Jan 2019 13:33:11 -0000 Date: Wed, 30 Jan 2019 13:33:11 +0000 To: Eli Zaretskii , Alex Branham Subject: Re: bug#34235: 27.0.50; lisp profiler does not work Message-ID: <20190130133311.GA5463@ACM> References: <87o9807ht0.fsf@gmail.com> <83lg3330uq.fsf@gnu.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <83lg3330uq.fsf@gnu.org> User-Agent: Mutt/1.10.1 (2018-07-13) X-Delivery-Agent: TMDA/1.1.12 (Macallan) From: Alan Mackenzie X-Primary-Address: acm@muc.de X-Spam-Score: -0.0 (/) X-Debbugs-Envelope-To: 34235 Cc: 34235@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) Hello, Eli and Alex On Tue, Jan 29, 2019 at 18:06:05 +0200, Eli Zaretskii wrote: > > From: Alex Branham > > Date: Mon, 28 Jan 2019 12:34:03 -0600 > > The lisp profiler (i.e. M-x profiler-start, M-x profiler-report, etc) > > seems to not work for me since the pdumper got merged (or sometime > > around then). I'm not using --enable-profiling when I run ./configure. > > emacs -q > > M-x profiler-start (set cpu mode) > > C-x C-f ~/.emacs.d/init.el > > M-x profiler-report > > results in the profiler report buffer only having the contents: > > - ... 1 100% > > Automatic GC 1 100% > > but surely there should be more in there. More generally, it doesn't > > seem to ever report anything for me, no matter how long I leave it > > running for. I've got no idea if the pdumper has anything to do with > > this, it just seems to have been happening since about then. > I couldn't reproduce this with today's master branch. I tried on > GNU/Linux and on 2 different MS-Windows machines, and profiling worked > for me on all of them. I see much more than just "Automatic GC". > So I suggest that you look into possible local changes on your system > recently, and perhaps also try the emacs-26 branch (where there's no > pdumper). > For the record, after invoking profiler-start in CPU mode, I visited > xdisp.c and typed M->, then invoked profiler-report, and typed "C-u RET" > on every "+" sign in the leftmost column. Did you do something similar? For what it's worth, I see the bug in master in GNU/Linux, starting off with emacs -Q, visiting xdisp.c, M-x profiler-start , M->, M-x profiler-report. I see in the report just the single entry for Automatic GC, like Alex. I last updated my repository yesterday, just before midday UTC. > Thanks. -- Alan Mackenzie (Nuremberg, Germany). From debbugs-submit-bounces@debbugs.gnu.org Wed Jan 30 10:40:12 2019 Received: (at 34235) by debbugs.gnu.org; 30 Jan 2019 15:40:12 +0000 Received: from localhost ([127.0.0.1]:51834 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1goryG-0006db-IG for submit@debbugs.gnu.org; Wed, 30 Jan 2019 10:40:12 -0500 Received: from mail-ot1-f52.google.com ([209.85.210.52]:33021) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1goryE-0006dJ-Hr for 34235@debbugs.gnu.org; Wed, 30 Jan 2019 10:40:10 -0500 Received: by mail-ot1-f52.google.com with SMTP id i20so21505423otl.0 for <34235@debbugs.gnu.org>; Wed, 30 Jan 2019 07:40:10 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=references:user-agent:from:to:cc:subject:in-reply-to:date :message-id:mime-version; bh=S/2y/QvXaRlq6eTXj0qNN5DZY+dMG5/Hs0jZH7gL0F4=; b=Pg+zaIbAlEUdF1wol5Of7CeXaVrxui5FE0QKwX5bUOfKQ90YZKtvQf2PIOV3knib9k GGDPcqYUSvUPX3WqjetnaYA9C8rTUWrYBlA2oD5cRwq72P+zeLUipX8pZI4GwFnv6qUq L7mH91FlDZgQPiCh3lK1EbCpprvAYcjjQlh9rKxHKg0QKUU8t8KfsWLG3YcrkS6JM1Ml NNO3zegERrK60Ea0RHK5pmnNomkqOf+3bZbh1TlCCjrtLP4weLnIR3LMwuqIDaN9Zs6t yxUYB1ygAp+5LvDJJrHeA5zYD1zqaoaGuczf7OfkcrtQ9ldIcdNRU8wtSSUWms0EjZft OcSA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:references:user-agent:from:to:cc:subject :in-reply-to:date:message-id:mime-version; bh=S/2y/QvXaRlq6eTXj0qNN5DZY+dMG5/Hs0jZH7gL0F4=; b=IOy2i7uTqV3AwYfKyv4NeyjyMmy5mYYCymKGDNo354ovQmP8dlVMeLQQmykLMa8FR3 E/kvIoAm/GmQpcD1j2D/Ng8JJmtJSZ0RsA1vPO40AIhlC16R6xdmqU2vqpDgGRNy5Y/r 2RZ5g9HQ30vMpco706u+WauRz2yVmsQE6PolPz7DwJSlGWbRSpYRsiPnPmCAK6crwXrs 4e3jXmSKEvu/mCUgPg2+NI+P4b0rSEmk2mCqsp3FBWXPJbH7C5AHR0GBr4RHcc4PF77r zuJlZqVZO/nmx6nKw2XOFc1CYUuuOU4i0Si2/jMrl37o1DLL5wV6QfIjcYauybOeGQXx 3HJg== X-Gm-Message-State: AJcUukfLBqY/+BvjkHdVHEBE3EOYRmWA1ntlMsDKnZlDb01QVNPHl9XO Q4YW2b8xVgdRxgJkzHOo9cxGMSxm X-Google-Smtp-Source: ALg8bN4oOrOpRaMWpa0cvHgV+pTCiHAdExOCAZMruSO+xNSEDmEVzpgy3XX8SMJ34znEnUwdAVX50g== X-Received: by 2002:a9d:927:: with SMTP id 36mr23638068otp.263.1548862804638; Wed, 30 Jan 2019 07:40:04 -0800 (PST) Received: from earth (cpe-70-114-192-208.austin.res.rr.com. [70.114.192.208]) by smtp.gmail.com with ESMTPSA id i12sm635155otc.48.2019.01.30.07.40.03 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Wed, 30 Jan 2019 07:40:03 -0800 (PST) References: <87o9807ht0.fsf@gmail.com> <83lg3330uq.fsf@gnu.org> <20190130133311.GA5463@ACM> User-agent: mu4e 1.1.0; emacs 27.0.50 From: Alex Branham To: Alan Mackenzie Subject: Re: bug#34235: 27.0.50; lisp profiler does not work In-reply-to: <20190130133311.GA5463@ACM> Date: Wed, 30 Jan 2019 09:40:02 -0600 Message-ID: <874l9qjgrx.fsf@gmail.com> MIME-Version: 1.0 Content-Type: multipart/signed; boundary="=-=-="; micalg=pgp-sha256; protocol="application/pgp-signature" X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: 34235 Cc: Eli Zaretskii , 34235@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) --=-=-= Content-Type: text/plain On Wed 30 Jan 2019 at 07:33, Alan Mackenzie wrote: > For what it's worth, I see the bug in master in GNU/Linux, starting off > with emacs -Q, visiting xdisp.c, M-x profiler-start , M->, M-x > profiler-report. > > I see in the report just the single entry for Automatic GC, like Alex. > > I last updated my repository yesterday, just before midday UTC. Thanks, Alan. Good to know it's not just me. Since submitting this bug, I've discovered that it affects previous versions of Emacs as well. Emacs from git master that I compile myself, Emacs 26.1 from my distro (nixOS), and Emacs 25.3 from my distro. I haven't had time yet to dig in much more than that, but figured I'd report that as well since it rules out the pdumper. Alex --=-=-= Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQEzBAEBCAAdFiEEeEJ4XAMgliXNXicpHkInolPpmscFAlxRxVIACgkQHkInolPp msdMIQgAqLtBRobTFI37nkgxbxZHXtKpiF2IFt1Ilp0qTH2HOGt1LNQUk5yCALci eHWOPqA06exXnMcbk2YtamzznbJRMLbepRT8UamaNIfIvGxBRbxuzuSKo25pE7vl 71tUy9JRoH/3SXc/ViYaAUQTkIbZEqJW9678SGVNMTdHdP5NXWe1YiLVezb30deF s+55lw+EpZViO/3jJWr6hYGAH+I1H+H6EHZjNSwrPWJCh1Fxy+NiK+udpwYLQb8F gCnQYZnLCc69W9d+esxCA6fzfVFbLtYZ5ybGcW06oJ8iMLw5xIQ5yhZyU3UQo8lk v4PLeCEjh9qKyOdm2qqrzsuUZtxeCw== =EWf5 -----END PGP SIGNATURE----- --=-=-=-- From debbugs-submit-bounces@debbugs.gnu.org Wed Jan 30 10:48:44 2019 Received: (at 34235) by debbugs.gnu.org; 30 Jan 2019 15:48:44 +0000 Received: from localhost ([127.0.0.1]:51843 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1gos6V-0006sI-UD for submit@debbugs.gnu.org; Wed, 30 Jan 2019 10:48:44 -0500 Received: from eggs.gnu.org ([209.51.188.92]:58772) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1gos6U-0006s3-9a for 34235@debbugs.gnu.org; Wed, 30 Jan 2019 10:48:42 -0500 Received: from fencepost.gnu.org ([2001:470:142:3::e]:45541) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gos6M-0002rD-Ob; Wed, 30 Jan 2019 10:48:35 -0500 Received: from [176.228.60.248] (port=3636 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.82) (envelope-from ) id 1gos6M-0007rO-BX; Wed, 30 Jan 2019 10:48:34 -0500 Date: Wed, 30 Jan 2019 17:48:26 +0200 Message-Id: <83womm1705.fsf@gnu.org> From: Eli Zaretskii To: Alan Mackenzie In-reply-to: <20190130133311.GA5463@ACM> (message from Alan Mackenzie on Wed, 30 Jan 2019 13:33:11 +0000) Subject: Re: bug#34235: 27.0.50; lisp profiler does not work References: <87o9807ht0.fsf@gmail.com> <83lg3330uq.fsf@gnu.org> <20190130133311.GA5463@ACM> X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Spam-Score: -0.0 (/) X-Debbugs-Envelope-To: 34235 Cc: alex.branham@gmail.com, 34235@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) > Date: Wed, 30 Jan 2019 13:33:11 +0000 > Cc: 34235@debbugs.gnu.org > From: Alan Mackenzie > > For what it's worth, I see the bug in master in GNU/Linux, starting off > with emacs -Q, visiting xdisp.c, M-x profiler-start , M->, M-x > profiler-report. > > I see in the report just the single entry for Automatic GC, like Alex. Thanks, I hope you (or someone else who sees this) will be able to debug this. From debbugs-submit-bounces@debbugs.gnu.org Wed Jan 30 11:16:32 2019 Received: (at 34235) by debbugs.gnu.org; 30 Jan 2019 16:16:32 +0000 Received: from localhost ([127.0.0.1]:51852 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1gosXP-0007c6-Hs for submit@debbugs.gnu.org; Wed, 30 Jan 2019 11:16:31 -0500 Received: from colin.muc.de ([193.149.48.1]:46563 helo=mail.muc.de) by debbugs.gnu.org with smtp (Exim 4.84_2) (envelope-from ) id 1gosXK-0007bt-L9 for 34235@debbugs.gnu.org; Wed, 30 Jan 2019 11:16:28 -0500 Received: (qmail 51225 invoked by uid 3782); 30 Jan 2019 16:16:25 -0000 Received: from acm.muc.de (p4FE15E69.dip0.t-ipconnect.de [79.225.94.105]) by colin.muc.de (tmda-ofmipd) with ESMTP; Wed, 30 Jan 2019 17:16:23 +0100 Received: (qmail 4068 invoked by uid 1000); 30 Jan 2019 16:15:21 -0000 Date: Wed, 30 Jan 2019 16:15:21 +0000 To: Alex Branham , Eli Zaretskii Subject: Re: bug#34235: 27.0.50; lisp profiler does not work Message-ID: <20190130161521.GA4051@ACM> References: <87o9807ht0.fsf@gmail.com> <83lg3330uq.fsf@gnu.org> <20190130133311.GA5463@ACM> <874l9qjgrx.fsf@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <874l9qjgrx.fsf@gmail.com> User-Agent: Mutt/1.10.1 (2018-07-13) X-Delivery-Agent: TMDA/1.1.12 (Macallan) From: Alan Mackenzie X-Primary-Address: acm@muc.de X-Spam-Score: -0.0 (/) X-Debbugs-Envelope-To: 34235 Cc: 34235@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) Hello, Alex and Eli. On Wed, Jan 30, 2019 at 09:40:02 -0600, Alex Branham wrote: > On Wed 30 Jan 2019 at 07:33, Alan Mackenzie wrote: > > For what it's worth, I see the bug in master in GNU/Linux, starting off > > with emacs -Q, visiting xdisp.c, M-x profiler-start , M->, M-x > > profiler-report. > > I see in the report just the single entry for Automatic GC, like Alex. > > I last updated my repository yesterday, just before midday UTC. > Thanks, Alan. Good to know it's not just me. > Since submitting this bug, I've discovered that it affects previous > versions of Emacs as well. Emacs from git master that I compile myself, > Emacs 26.1 from my distro (nixOS), and Emacs 25.3 from my distro. I > haven't had time yet to dig in much more than that, but figured I'd > report that as well since it rules out the pdumper. It seems to be a Linux problem, at least at my end. I see the bug with kernel versions 4.19.17 and 4.19.13. I don't see the bug with versions 4.18.19 and 4.19.10. It seems some incompatibility between Emacs and Linux was introduced in one of the kernels 4.19.1[123]. I don't know how to debug this any further. > Alex -- Alan Mackenzie (Nuremberg, Germany). From debbugs-submit-bounces@debbugs.gnu.org Wed Jan 30 11:23:21 2019 Received: (at 34235) by debbugs.gnu.org; 30 Jan 2019 16:23:21 +0000 Received: from localhost ([127.0.0.1]:51861 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1gose0-0007oR-UF for submit@debbugs.gnu.org; Wed, 30 Jan 2019 11:23:21 -0500 Received: from mail-ot1-f54.google.com ([209.85.210.54]:33095) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1gosdy-0007o2-Oc for 34235@debbugs.gnu.org; Wed, 30 Jan 2019 11:23:19 -0500 Received: by mail-ot1-f54.google.com with SMTP id i20so133649otl.0 for <34235@debbugs.gnu.org>; Wed, 30 Jan 2019 08:23:18 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=references:user-agent:from:to:cc:subject:in-reply-to:date :message-id:mime-version; bh=jelMbqTHD9tNgQvabuiosfwdl9XH2xcHmzX3BaTk/po=; b=NPgdFu/qHyIoclfoJUvqfM31YbHsQ287GZAF8KxcrWuR6BtPaUsSNKlGTPCM8tcGhW aLCqOVdpf1JgqKH6iWZxNx7wrK9lXGX2gAzphL0D7B8YiCAcTDwIdYgh7AtdYFS2Ijkr oM7eaF1lkFGntkgevrQe22wTHyxOnUiHrj4LbRs6RHa2W4YW4vuciBQLLe9AXbO1JwP9 z0J9bcmAE//6scNTj2ouZRkKRAJgSl8ZzwCeRyFLQUIDNwYnVDrj3hY6bjx0hOSyKPtK uq4o5QYQg0XsXWj/ICPhOJ3d0jTCkt8yxK8WVaWtPWrjQ2u7sC3PSmPUIchd7HTfpeEK B75Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:references:user-agent:from:to:cc:subject :in-reply-to:date:message-id:mime-version; bh=jelMbqTHD9tNgQvabuiosfwdl9XH2xcHmzX3BaTk/po=; b=uVH/xkJ9BNnuj94YrxfzKmr91oN6gE3blHlJkMo/XFCigZapYhPHeyLvLLAkQIP6ug n6Ufw+UIN6hcWPVjIztudrS0HAMeOzb/acvgaRr10W47l0hwOoCyrw8dG3ZdHdZYlgJI AiT110VDMW158O+eXC4RFsa5Yqwkd/CIWchfdoU8p4ZQidVvKJiM/p7VEW1vzMQ74fD4 0xMuVyn5+1hz7qO9PegXI+k6sTY6sJ0MfEZ8iwAZr0TgrBHNkCTWk7bWHG40iBVYDxAe CAIxs3jvAN6pOGezRoDVDJAUjF5zB0tKFZHViFE4VGzyBhNL2nx9SX3ZINWWudI8e8Rk AXRQ== X-Gm-Message-State: AJcUukfKxhRdPnAOI4VX98j0jvCUSzHaFqYF2G7dcJET6oXatz/sIIFg xiws1o/62cqmwukIz9JF8lMCZP3q X-Google-Smtp-Source: ALg8bN5arcku5lkBs6k1Yft3RJt7KsHDmLZbiK99LdVMwwtZ33iY2GLmn4tJ4S0kkhqWTbllQ6dnKw== X-Received: by 2002:a9d:2186:: with SMTP id s6mr24482211otb.346.1548865392634; Wed, 30 Jan 2019 08:23:12 -0800 (PST) Received: from earth (cpe-70-114-192-208.austin.res.rr.com. [70.114.192.208]) by smtp.gmail.com with ESMTPSA id j5sm727536otc.54.2019.01.30.08.23.11 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Wed, 30 Jan 2019 08:23:11 -0800 (PST) References: <87o9807ht0.fsf@gmail.com> <83lg3330uq.fsf@gnu.org> <20190130133311.GA5463@ACM> <874l9qjgrx.fsf@gmail.com> <20190130161521.GA4051@ACM> User-agent: mu4e 1.1.0; emacs 27.0.50 From: Alex Branham To: Alan Mackenzie Subject: Re: bug#34235: 27.0.50; lisp profiler does not work In-reply-to: <20190130161521.GA4051@ACM> Date: Wed, 30 Jan 2019 10:23:10 -0600 Message-ID: <8736pajes1.fsf@gmail.com> MIME-Version: 1.0 Content-Type: multipart/signed; boundary="=-=-="; micalg=pgp-sha256; protocol="application/pgp-signature" X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: 34235 Cc: Eli Zaretskii , 34235@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) --=-=-= Content-Type: text/plain On Wed 30 Jan 2019 at 10:15, Alan Mackenzie wrote: > It seems to be a Linux problem, at least at my end. > > I see the bug with kernel versions 4.19.17 and 4.19.13. > I don't see the bug with versions 4.18.19 and 4.19.10. > > It seems some incompatibility between Emacs and Linux was introduced in > one of the kernels 4.19.1[123]. I'm on kernel 4.14.95, so if it is a Linux issue, it's been backported. --=-=-= Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQEzBAEBCAAdFiEEeEJ4XAMgliXNXicpHkInolPpmscFAlxRz24ACgkQHkInolPp msebaQgAn3cF/sZvLzNjIbbkzmggZIoq0Vn/1Am7Y5ZZNyOlZKtvJmbwcct+jXOl fe6sjMSvGZKtdeeyxS8VI9lMBEUHPbFt1ldal8BO9HYbcKXvuUCmHTULOJU6J1QZ MFT/AdKEWdUvU2ckf7zfqErecCP8R/zJAfjMucrUOezeV/Xs8YjJlBPIH+/T+SMt hmR8+L0EMLGn6EfhIXG9syIFA4enJPVGvbcp8a2tQmcEpz3R6Xg358jLVuHuVyXG R7/1aw04CUkhkZbY/Bz0jyfa8t66qNVfcneYjLO+qiwxp+AwpN03tkGIsU6DQxcF tx9YQJdxPs92xUEsSsB7xX7wjHgLTg== =F/t9 -----END PGP SIGNATURE----- --=-=-=-- From debbugs-submit-bounces@debbugs.gnu.org Wed Jan 30 11:42:18 2019 Received: (at 34235) by debbugs.gnu.org; 30 Jan 2019 16:42:18 +0000 Received: from localhost ([127.0.0.1]:51870 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1goswM-0008I3-2Y for submit@debbugs.gnu.org; Wed, 30 Jan 2019 11:42:18 -0500 Received: from eggs.gnu.org ([209.51.188.92]:41987) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1goswI-0008Hn-JI for 34235@debbugs.gnu.org; Wed, 30 Jan 2019 11:42:16 -0500 Received: from fencepost.gnu.org ([2001:470:142:3::e]:46253) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1goswC-0003iD-6a; Wed, 30 Jan 2019 11:42:08 -0500 Received: from [176.228.60.248] (port=2962 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.82) (envelope-from ) id 1goswB-0001V1-I7; Wed, 30 Jan 2019 11:42:08 -0500 Date: Wed, 30 Jan 2019 18:41:58 +0200 Message-Id: <83muni14ix.fsf@gnu.org> From: Eli Zaretskii To: Alan Mackenzie In-reply-to: <20190130161521.GA4051@ACM> (message from Alan Mackenzie on Wed, 30 Jan 2019 16:15:21 +0000) Subject: Re: bug#34235: 27.0.50; lisp profiler does not work References: <87o9807ht0.fsf@gmail.com> <83lg3330uq.fsf@gnu.org> <20190130133311.GA5463@ACM> <874l9qjgrx.fsf@gmail.com> <20190130161521.GA4051@ACM> X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Spam-Score: -0.0 (/) X-Debbugs-Envelope-To: 34235 Cc: alex.branham@gmail.com, 34235@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) > Date: Wed, 30 Jan 2019 16:15:21 +0000 > Cc: 34235@debbugs.gnu.org > From: Alan Mackenzie > > It seems to be a Linux problem, at least at my end. > > I see the bug with kernel versions 4.19.17 and 4.19.13. > I don't see the bug with versions 4.18.19 and 4.19.10. > > It seems some incompatibility between Emacs and Linux was introduced in > one of the kernels 4.19.1[123]. Maybe some problems with the SIGPROF signal? Does the signal handler (handle_profiler_signal) get called at all when you are profiling? If the signal handler does get called, maybe it's the backtrace_top_function function that fails? From debbugs-submit-bounces@debbugs.gnu.org Wed Jan 30 11:43:57 2019 Received: (at 34235) by debbugs.gnu.org; 30 Jan 2019 16:43:57 +0000 Received: from localhost ([127.0.0.1]:51874 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1gosxx-0008KT-HS for submit@debbugs.gnu.org; Wed, 30 Jan 2019 11:43:57 -0500 Received: from eggs.gnu.org ([209.51.188.92]:42276) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1gosxv-0008KH-FZ for 34235@debbugs.gnu.org; Wed, 30 Jan 2019 11:43:55 -0500 Received: from fencepost.gnu.org ([2001:470:142:3::e]:46269) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gosxo-0004SI-Ns; Wed, 30 Jan 2019 11:43:50 -0500 Received: from [176.228.60.248] (port=3070 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.82) (envelope-from ) id 1gosxo-0001bS-Be; Wed, 30 Jan 2019 11:43:48 -0500 Date: Wed, 30 Jan 2019 18:43:41 +0200 Message-Id: <83lg3214g2.fsf@gnu.org> From: Eli Zaretskii To: Alex Branham In-reply-to: <8736pajes1.fsf@gmail.com> (message from Alex Branham on Wed, 30 Jan 2019 10:23:10 -0600) Subject: Re: bug#34235: 27.0.50; lisp profiler does not work References: <87o9807ht0.fsf@gmail.com> <83lg3330uq.fsf@gnu.org> <20190130133311.GA5463@ACM> <874l9qjgrx.fsf@gmail.com> <20190130161521.GA4051@ACM> <8736pajes1.fsf@gmail.com> X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Spam-Score: -0.0 (/) X-Debbugs-Envelope-To: 34235 Cc: acm@muc.de, 34235@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) > From: Alex Branham > Cc: Eli Zaretskii , 34235@debbugs.gnu.org > Date: Wed, 30 Jan 2019 10:23:10 -0600 > > > I see the bug with kernel versions 4.19.17 and 4.19.13. > > I don't see the bug with versions 4.18.19 and 4.19.10. > > > > It seems some incompatibility between Emacs and Linux was introduced in > > one of the kernels 4.19.1[123]. > > I'm on kernel 4.14.95, so if it is a Linux issue, it's been backported. Do you keep records of your system updates? If so, can you look there for relevant recent updates, like glibc or some kernel modules/drivers or libraries? From debbugs-submit-bounces@debbugs.gnu.org Wed Jan 30 15:47:17 2019 Received: (at 34235) by debbugs.gnu.org; 30 Jan 2019 20:47:18 +0000 Received: from localhost ([127.0.0.1]:51969 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1gowlR-0005uk-J9 for submit@debbugs.gnu.org; Wed, 30 Jan 2019 15:47:17 -0500 Received: from mail-oi1-f196.google.com ([209.85.167.196]:42567) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1gowlP-0005uW-V5 for 34235@debbugs.gnu.org; Wed, 30 Jan 2019 15:47:16 -0500 Received: by mail-oi1-f196.google.com with SMTP id w13so811725oiw.9 for <34235@debbugs.gnu.org>; Wed, 30 Jan 2019 12:47:15 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=references:user-agent:from:to:cc:subject:in-reply-to:date :message-id:mime-version; bh=IENSs9t0N7fXJD0Q3X8Utb75VZCDeJtQZW8767m8+5o=; b=YwpTSxl77FAuoM1NKHUsXvcjkuBZ2mAb9CtIpDCOcTsb1JeoP1/ZbdV1XobMW+9waK SDfTulCdcu1mnhIDTkWI/8zsol+w1M9XwJYZmugdgLDNe7q4qBLXw9Uie5CrM7TtIOOl eVwABNcQUU57z8137J4qoi01kcgfVsEgl0cLoGKOaDTLWiTzvW6wyoruGmAQWLmp9lDV RVYp90NvOviUHYwz98E9dNvDqAySfzUCMf6T3CWukzJYOsPzIk6G2J7ktXY+klzAqo9/ rbE9iJYzkoWw48FF0bjzml98M1ailMXdIYNRT8KXywiLkm4cJxrYnsnTRdht+MGBUW4g 21KA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:references:user-agent:from:to:cc:subject :in-reply-to:date:message-id:mime-version; bh=IENSs9t0N7fXJD0Q3X8Utb75VZCDeJtQZW8767m8+5o=; b=avYoW1KIbUxvjCrmhm44HEHLlIRFsH9YbhpY3xbMOwD0QdskJRMDa1IkTInIM59FZz JuFIWjLhmbMpJ2+vll9IBFQ+uq3lhJSbv5i07qroMHTDCQanSZi3N4ZgDyrHSr2vLseh FGIlyXwOPrtUpKlww6X9Hzrjam9CzsStoQDnNmPa9rTiNk1BbvSRSsQ9U3eig9RuZbxA m4pMDgN+/9z9cev42n66uq/gSuqpamTwEh25W5g9XPxdd8imDF/kX/ItQA1VczxPa2nM hsU3/68wBawP3m5Jk2rEeWVZTp2qAuedDWhQTj/4Sg69e7SaeElPSEZV9Cqeyj8TccYU kXPg== X-Gm-Message-State: AJcUukexx9zQaYr6BsGDcUT1x+UHohDIta5fU47Wq0TPqtgri+wAqqAB UHis34JBHK6C89RM1S3S8PbEJotN X-Google-Smtp-Source: ALg8bN6AAUIEwPSyHs/KiCq8jdcV3ZiaVlVK/5tFWfnxV+NZl+O2Mg1A2s5LbQzRtMtv0cS7KEsNNg== X-Received: by 2002:aca:ef0b:: with SMTP id n11mr13081070oih.116.1548881229766; Wed, 30 Jan 2019 12:47:09 -0800 (PST) Received: from earth (cpe-70-114-192-208.austin.res.rr.com. [70.114.192.208]) by smtp.gmail.com with ESMTPSA id z7sm978120otm.63.2019.01.30.12.47.08 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Wed, 30 Jan 2019 12:47:09 -0800 (PST) References: <87o9807ht0.fsf@gmail.com> <83lg3330uq.fsf@gnu.org> <20190130133311.GA5463@ACM> <874l9qjgrx.fsf@gmail.com> <20190130161521.GA4051@ACM> <8736pajes1.fsf@gmail.com> <83lg3214g2.fsf@gnu.org> User-agent: mu4e 1.1.0; emacs 27.0.50 From: Alex Branham To: Eli Zaretskii Subject: Re: bug#34235: 27.0.50; lisp profiler does not work In-reply-to: <83lg3214g2.fsf@gnu.org> Date: Wed, 30 Jan 2019 14:47:06 -0600 Message-ID: <87pnsdzxdh.fsf@gmail.com> MIME-Version: 1.0 Content-Type: multipart/signed; boundary="=-=-="; micalg=pgp-sha256; protocol="application/pgp-signature" X-Spam-Score: -0.0 (/) X-Debbugs-Envelope-To: 34235 Cc: acm@muc.de, 34235@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) --=-=-= Content-Type: text/plain On Wed 30 Jan 2019 at 10:43, Eli Zaretskii wrote: >> From: Alex Branham >> Cc: Eli Zaretskii , 34235@debbugs.gnu.org >> Date: Wed, 30 Jan 2019 10:23:10 -0600 >> >> > I see the bug with kernel versions 4.19.17 and 4.19.13. >> > I don't see the bug with versions 4.18.19 and 4.19.10. >> > >> > It seems some incompatibility between Emacs and Linux was introduced in >> > one of the kernels 4.19.1[123]. >> >> I'm on kernel 4.14.95, so if it is a Linux issue, it's been backported. > > Do you keep records of your system updates? If so, can you look there > for relevant recent updates, like glibc or some kernel modules/drivers > or libraries? nixOS keeps old systems laying around. I was able to go back to a system that doesn't have this bug (back in December, nixos-version 18.09.1763.fbb7dbdb95d). The only differences in package versions between this system and the next one (where the profiler doesn't work, nixos-version 18.09.1829.0396345b794) is this: - linux-4.14.89 + linux-4.14.91 - python3-3.6.7 + python3-3.6.8 - libjpeg-turbo-1.5.3 + libjpeg-turbo-2.0.1 - cpupower-4.14.89 + cpupower-4.14.91 If there's any other info I can share, let me know. Thanks, Alex --=-=-= Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQEzBAEBCAAdFiEEeEJ4XAMgliXNXicpHkInolPpmscFAlxSDUoACgkQHkInolPp mscHewf9G5f5BPvsU7P0+KoTFBP9Jdm6eI135x0IVHDPJHkOlTxwmJ8d9WwcoIdx lyP0g/1RKDq7PkJRWuXSzDjPSgUhVc6iM8qBy06ZAB6FKYVPRlZ4oD98AN3HMKYc NZKkTsA5AFDzCgNgWHwAp5evGYPVlRVSxUj7y7yqO0QRRd6ts/Y+LziBQmNNfxqE pztQy/I9xIah6Z2bQhoPvvaL18maucBHKtiqiKTBg7K58pNLYtoI9PT7lRbebogb 3L190WPE5xAuGw/IGqyaKLJbwhI4ejtP5E+y8WtQIRAl+zzZAWIM7YyIaccz2hDA Jca/MMDc0cyly8XNWjT0hRvAs/ySYQ== =CGKX -----END PGP SIGNATURE----- --=-=-=-- From debbugs-submit-bounces@debbugs.gnu.org Fri Feb 01 16:48:30 2019 Received: (at 34235) by debbugs.gnu.org; 1 Feb 2019 21:48:30 +0000 Received: from localhost ([127.0.0.1]:55322 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1gpgfl-00045l-S1 for submit@debbugs.gnu.org; Fri, 01 Feb 2019 16:48:30 -0500 Received: from colin.muc.de ([193.149.48.1]:19126 helo=mail.muc.de) by debbugs.gnu.org with smtp (Exim 4.84_2) (envelope-from ) id 1gpgfj-00045b-QP for 34235@debbugs.gnu.org; Fri, 01 Feb 2019 16:48:28 -0500 Received: (qmail 43782 invoked by uid 3782); 1 Feb 2019 21:48:23 -0000 Received: from acm.muc.de (p4FE15ED8.dip0.t-ipconnect.de [79.225.94.216]) by colin.muc.de (tmda-ofmipd) with ESMTP; Fri, 01 Feb 2019 22:48:21 +0100 Received: (qmail 5451 invoked by uid 1000); 1 Feb 2019 21:47:00 -0000 Date: Fri, 1 Feb 2019 21:47:00 +0000 To: Thomas Gleixner , linux-kernel@vger.kernel.org Subject: 0e334db6bb4b1fd1e2d72c1f3d8f004313cd9f94 (posix-timers: Fix division by zero bug). Problems with glibc. Message-ID: <20190201214700.GA4950@ACM> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.10.1 (2018-07-13) X-Delivery-Agent: TMDA/1.1.12 (Macallan) From: Alan Mackenzie X-Primary-Address: acm@muc.de X-Spam-Score: -0.0 (/) X-Debbugs-Envelope-To: 34235 Cc: Eli Zaretskii , Alex Branham , 34235@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) Hello, Thomas, Hello Linux. 0e334db6bb4b1fd1e2d72c1f3d8f004313cd9f94 posix-timers: Fix division by zero bug Committed: 2018-12-17 17:35:45 +0100 With this patch in place I am seeing problems with glibc's function timer_create. I am an Emacs maintainer, and saw these problems whilst investigating Emacs bug #34235 "27.0.50; lisp profiler does not work". Full details of this bug are at https://debbugs.gnu.org/cgi/bugreport.cgi?bug=34235. Emacs's profiler fails in kernel 4.19.13, but works in a version of 4.19.13 with the patch reversed, otherwise unchanged. My current version of glibc is 2.27-r6 (I think the "-r6" comes from Gentoo, my distro). The Emacs profiler works by a signal handler being repeatedly triggered by the SIGPROF signal every 1 millisecond. In the bug scenario, this signal gets triggered precisely once each time the Emacs profiler is started, rather than continually. The core of the code in Emacs which initialises the glibc timer is: int i; struct sigevent sigev; sigev.sigev_value.sival_ptr = &profiler_timer; sigev.sigev_signo = SIGPROF; sigev.sigev_notify = SIGEV_SIGNAL; for (i = 0; i < ARRAYELTS (system_clock); i++) if (timer_create (system_clock[i], &sigev, &profiler_timer) == 0) { profiler_timer_ok = 1; break; } } if (profiler_timer_ok) { struct itimerspec ispec; ispec.it_value = ispec.it_interval = interval; if (timer_settime (profiler_timer, 0, &ispec, 0) == 0) return TIMER_SETTIME_RUNNING; } The variable `interval' has been checked as non-zero. This code is in .../emacs/src/profiler.c It seems either that the patch has uncovered some invalid call between Emacs and glibc, or between glibc and Linux, or that there is some intrinsic problem with the patch. I have very little familiarity with glibc and Linux source code, so I would be greatful if you could help me investigate the bug scenario. Naturally, I will help as I can in this process. Thanks in advance! -- Alan Mackenzie (Nuremberg, Germany). From debbugs-submit-bounces@debbugs.gnu.org Fri Feb 01 17:20:31 2019 Received: (at 34235) by debbugs.gnu.org; 1 Feb 2019 22:20:31 +0000 Received: from localhost ([127.0.0.1]:55332 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1gphAk-0004tL-Sz for submit@debbugs.gnu.org; Fri, 01 Feb 2019 17:20:31 -0500 Received: from galois.linutronix.de ([146.0.238.70]:39835) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1gpgve-0004Ue-GC for 34235@debbugs.gnu.org; Fri, 01 Feb 2019 17:04:54 -0500 Received: from p5492e0d8.dip0.t-ipconnect.de ([84.146.224.216] helo=nanos) by Galois.linutronix.de with esmtpsa (TLS1.2:DHE_RSA_AES_256_CBC_SHA256:256) (Exim 4.80) (envelope-from ) id 1gpgvZ-0007mN-5H; Fri, 01 Feb 2019 23:04:49 +0100 Date: Fri, 1 Feb 2019 23:04:48 +0100 (CET) From: Thomas Gleixner To: Alan Mackenzie Subject: Re: 0e334db6bb4b1fd1e2d72c1f3d8f004313cd9f94 (posix-timers: Fix division by zero bug). Problems with glibc. In-Reply-To: <20190201214700.GA4950@ACM> Message-ID: References: <20190201214700.GA4950@ACM> User-Agent: Alpine 2.21 (DEB 202 2017-01-01) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII X-Linutronix-Spam-Score: -1.0 X-Linutronix-Spam-Level: - X-Linutronix-Spam-Status: No , -1.0 points, 5.0 required, ALL_TRUSTED=-1, SHORTCIRCUIT=-0.0001 X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: 34235 X-Mailman-Approved-At: Fri, 01 Feb 2019 17:20:29 -0500 Cc: Alex Branham , Eli Zaretskii , linux-kernel@vger.kernel.org, 34235@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) Hello Alan, On Fri, 1 Feb 2019, Alan Mackenzie wrote: > 0e334db6bb4b1fd1e2d72c1f3d8f004313cd9f94 > posix-timers: Fix division by zero bug > Committed: 2018-12-17 17:35:45 +0100 > > With this patch in place I am seeing problems with glibc's function > timer_create. I am an Emacs maintainer, and saw these problems whilst > investigating Emacs bug #34235 "27.0.50; lisp profiler does not work". > Emacs's profiler fails in kernel 4.19.13, but works in a version of > 4.19.13 with the patch reversed, otherwise unchanged. My current version > of glibc is 2.27-r6 (I think the "-r6" comes from Gentoo, my distro). Please upgrade to 4.19.19. The issue should be fixed there with the backported variant of 93ad0fc088c5 ("posix-cpu-timers: Unbreak timer rearming") Commit 21c0d1621b8d4b in 4.19.19 Thanks, tglx From debbugs-submit-bounces@debbugs.gnu.org Fri Feb 01 21:07:19 2019 Received: (at 34235) by debbugs.gnu.org; 2 Feb 2019 02:07:19 +0000 Received: from localhost ([127.0.0.1]:55363 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1gpkiE-0001zO-R1 for submit@debbugs.gnu.org; Fri, 01 Feb 2019 21:07:19 -0500 Received: from zimbra.cs.ucla.edu ([131.179.128.68]:57302) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1gpkiC-0001zB-CA for 34235@debbugs.gnu.org; Fri, 01 Feb 2019 21:07:17 -0500 Received: from localhost (localhost [127.0.0.1]) by zimbra.cs.ucla.edu (Postfix) with ESMTP id B3C9E16118D; Fri, 1 Feb 2019 18:07:10 -0800 (PST) Received: from zimbra.cs.ucla.edu ([127.0.0.1]) by localhost (zimbra.cs.ucla.edu [127.0.0.1]) (amavisd-new, port 10032) with ESMTP id nS6CwHwFKwdo; Fri, 1 Feb 2019 18:07:09 -0800 (PST) Received: from localhost (localhost [127.0.0.1]) by zimbra.cs.ucla.edu (Postfix) with ESMTP id CBA601611B9; Fri, 1 Feb 2019 18:07:09 -0800 (PST) X-Virus-Scanned: amavisd-new at zimbra.cs.ucla.edu Received: from zimbra.cs.ucla.edu ([127.0.0.1]) by localhost (zimbra.cs.ucla.edu [127.0.0.1]) (amavisd-new, port 10026) with ESMTP id tUkKQ1vOdvnK; Fri, 1 Feb 2019 18:07:09 -0800 (PST) Received: from Penguin.CS.UCLA.EDU (Penguin.CS.UCLA.EDU [131.179.64.200]) by zimbra.cs.ucla.edu (Postfix) with ESMTPSA id AA2BA16118D; Fri, 1 Feb 2019 18:07:09 -0800 (PST) To: Thomas Gleixner From: Paul Eggert Subject: Re: 0e334db6bb4b1fd1e2d72c1f3d8f004313cd9f94 (posix-timers: Fix, division by zero bug). Problems with glibc. Openpgp: preference=signencrypt Autocrypt: addr=eggert@cs.ucla.edu; prefer-encrypt=mutual; keydata= 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 uNcby4U= Organization: UCLA Computer Science Department Message-ID: <17880b13-2fde-764d-a284-11cf0caf1cec@cs.ucla.edu> Date: Fri, 1 Feb 2019 18:07:09 -0800 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.4.0 MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="------------3EDE60C2A864A50FA18F8A05" Content-Language: en-US X-Spam-Score: -2.3 (--) X-Debbugs-Envelope-To: 34235 Cc: Alan Mackenzie , Alex Branham , Eli Zaretskii , 34235@debbugs.gnu.org, linux-kernel@vger.kernel.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -3.3 (---) This is a multi-part message in MIME format. --------------3EDE60C2A864A50FA18F8A05 Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit Thanks for helping to track down this bug. Since the problem occurs only with a few Linux kernel versions and affects Emacs only when doing CPU profiling, it doesn't seem worth spending time to try to patch Emacs to work around the bug. So I installed the attached patch into emacs-26's etc/PROBLEMS file to warn users about the problem, and am closing the Emacs bug report. --------------3EDE60C2A864A50FA18F8A05 Content-Type: text/x-patch; name="0001-etc-PROBLEMS-Mention-profiler-report-bug-Bug-34235.patch" Content-Transfer-Encoding: 7bit Content-Disposition: attachment; filename*0="0001-etc-PROBLEMS-Mention-profiler-report-bug-Bug-34235.patc"; filename*1="h" >From 1243188bc4f722abf16518bf73924ce5f17750cf Mon Sep 17 00:00:00 2001 From: Paul Eggert Date: Fri, 1 Feb 2019 17:58:05 -0800 Subject: [PATCH] * etc/PROBLEMS: Mention profiler-report bug (Bug#34235). --- etc/PROBLEMS | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/etc/PROBLEMS b/etc/PROBLEMS index cab087631c..00583f016d 100644 --- a/etc/PROBLEMS +++ b/etc/PROBLEMS @@ -1850,6 +1850,12 @@ term/xterm.el) for more details. ** GNU/Linux +*** GNU/Linux: profiler-report outputs nothing. + +A few versions of the Linux kernel have timer bugs that break CPU +profiling; see Bug#34235. To fix the problem, upgrade to kernel +versions 4.19.19 or 4.20.6, or later. + *** GNU/Linux: Process output is corrupted. There is a bug in Linux kernel 2.6.10 PTYs that can cause emacs to -- 2.20.1 --------------3EDE60C2A864A50FA18F8A05-- From debbugs-submit-bounces@debbugs.gnu.org Fri Feb 01 21:25:30 2019 Received: (at control) by debbugs.gnu.org; 2 Feb 2019 02:25:30 +0000 Received: from localhost ([127.0.0.1]:55368 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1gpkzq-0002UN-Dd for submit@debbugs.gnu.org; Fri, 01 Feb 2019 21:25:30 -0500 Received: from zimbra.cs.ucla.edu ([131.179.128.68]:59294) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1gpkzn-0002U5-JI for control@debbugs.gnu.org; Fri, 01 Feb 2019 21:25:29 -0500 Received: from localhost (localhost [127.0.0.1]) by zimbra.cs.ucla.edu (Postfix) with ESMTP id 3782216116C for ; Fri, 1 Feb 2019 18:25:21 -0800 (PST) Received: from zimbra.cs.ucla.edu ([127.0.0.1]) by localhost (zimbra.cs.ucla.edu [127.0.0.1]) (amavisd-new, port 10032) with ESMTP id kBpRaRZO2r9p for ; Fri, 1 Feb 2019 18:25:20 -0800 (PST) Received: from localhost (localhost [127.0.0.1]) by zimbra.cs.ucla.edu (Postfix) with ESMTP id 91B49161181 for ; Fri, 1 Feb 2019 18:25:20 -0800 (PST) X-Virus-Scanned: amavisd-new at zimbra.cs.ucla.edu Received: from zimbra.cs.ucla.edu ([127.0.0.1]) by localhost (zimbra.cs.ucla.edu [127.0.0.1]) (amavisd-new, port 10026) with ESMTP id Bj7wmvhVzBFT for ; Fri, 1 Feb 2019 18:25:20 -0800 (PST) Received: from Penguin.CS.UCLA.EDU (Penguin.CS.UCLA.EDU [131.179.64.200]) by zimbra.cs.ucla.edu (Postfix) with ESMTPSA id 7B56A160FF9 for ; Fri, 1 Feb 2019 18:25:20 -0800 (PST) To: GNU bug control From: Paul Eggert Subject: close 34235 Openpgp: preference=signencrypt Autocrypt: addr=eggert@cs.ucla.edu; prefer-encrypt=mutual; keydata= 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 uNcby4U= Organization: UCLA Computer Science Department Message-ID: Date: Fri, 1 Feb 2019 18:25:14 -0800 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.4.0 MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit Content-Language: en-US X-Spam-Score: -2.3 (--) X-Debbugs-Envelope-To: control X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -3.3 (---) close 34235 From debbugs-submit-bounces@debbugs.gnu.org Sat Feb 02 04:22:00 2019 Received: (at 34235) by debbugs.gnu.org; 2 Feb 2019 09:22:00 +0000 Received: from localhost ([127.0.0.1]:55462 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1gprUu-0000RR-7V for submit@debbugs.gnu.org; Sat, 02 Feb 2019 04:22:00 -0500 Received: from galois.linutronix.de ([146.0.238.70]:40508) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1gprUr-0000RG-Dd for 34235@debbugs.gnu.org; Sat, 02 Feb 2019 04:21:59 -0500 Received: from p5492e0d8.dip0.t-ipconnect.de ([84.146.224.216] helo=nanos) by Galois.linutronix.de with esmtpsa (TLS1.2:DHE_RSA_AES_256_CBC_SHA256:256) (Exim 4.80) (envelope-from ) id 1gprUb-0001OG-21; Sat, 02 Feb 2019 10:21:41 +0100 Date: Sat, 2 Feb 2019 10:21:40 +0100 (CET) From: Thomas Gleixner To: Paul Eggert Subject: Re: 0e334db6bb4b1fd1e2d72c1f3d8f004313cd9f94 (posix-timers: Fix, division by zero bug). Problems with glibc. In-Reply-To: <17880b13-2fde-764d-a284-11cf0caf1cec@cs.ucla.edu> Message-ID: References: <17880b13-2fde-764d-a284-11cf0caf1cec@cs.ucla.edu> User-Agent: Alpine 2.21 (DEB 202 2017-01-01) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII X-Linutronix-Spam-Score: -1.0 X-Linutronix-Spam-Level: - X-Linutronix-Spam-Status: No , -1.0 points, 5.0 required, ALL_TRUSTED=-1, SHORTCIRCUIT=-0.0001 X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: 34235 Cc: Alan Mackenzie , Alex Branham , Eli Zaretskii , 34235@debbugs.gnu.org, linux-kernel@vger.kernel.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) On Fri, 1 Feb 2019, Paul Eggert wrote: > Thanks for helping to track down this bug. Since the problem occurs only with > a few Linux kernel versions and affects Emacs only when doing CPU profiling, > it doesn't seem worth spending time to try to patch Emacs to work around the > bug. So I installed the attached patch into emacs-26's etc/PROBLEMS file to > warn users about the problem, and am closing the Emacs bug report. Can you please verify whether the issue is fixed with 4.19.19? The commit in question broke posix CPU timers as a unintended side effect and a follow up patch unbreaks them again. Thanks, tglx From debbugs-submit-bounces@debbugs.gnu.org Sat Feb 02 05:45:39 2019 Received: (at 34235) by debbugs.gnu.org; 2 Feb 2019 10:45:39 +0000 Received: from localhost ([127.0.0.1]:55517 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1gpsnq-0002Xv-Lr for submit@debbugs.gnu.org; Sat, 02 Feb 2019 05:45:38 -0500 Received: from colin.muc.de ([193.149.48.1]:41131 helo=mail.muc.de) by debbugs.gnu.org with smtp (Exim 4.84_2) (envelope-from ) id 1gpsno-0002Xl-BB for 34235@debbugs.gnu.org; Sat, 02 Feb 2019 05:45:37 -0500 Received: (qmail 85477 invoked by uid 3782); 2 Feb 2019 10:45:35 -0000 Received: from acm.muc.de (p4FE15063.dip0.t-ipconnect.de [79.225.80.99]) by colin.muc.de (tmda-ofmipd) with ESMTP; Sat, 02 Feb 2019 11:45:33 +0100 Received: (qmail 1124 invoked by uid 1000); 2 Feb 2019 10:44:04 -0000 Date: Sat, 2 Feb 2019 10:44:04 +0000 To: Thomas Gleixner Subject: Re: 0e334db6bb4b1fd1e2d72c1f3d8f004313cd9f94 (posix-timers: Fix division by zero bug). Problems with glibc. Message-ID: <20190202104404.GA1067@ACM> References: <20190201214700.GA4950@ACM> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.10.1 (2018-07-13) X-Delivery-Agent: TMDA/1.1.12 (Macallan) From: Alan Mackenzie X-Primary-Address: acm@muc.de X-Spam-Score: -0.0 (/) X-Debbugs-Envelope-To: 34235 Cc: Alex Branham , Eli Zaretskii , Paul Eggert , linux-kernel@vger.kernel.org, 34235@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) Hello, Thomas. Thanks for such a rapid reply! On Fri, Feb 01, 2019 at 23:04:48 +0100, Thomas Gleixner wrote: > Hello Alan, > On Fri, 1 Feb 2019, Alan Mackenzie wrote: > > 0e334db6bb4b1fd1e2d72c1f3d8f004313cd9f94 > > posix-timers: Fix division by zero bug > > Committed: 2018-12-17 17:35:45 +0100 > > With this patch in place I am seeing problems with glibc's function > > timer_create. I am an Emacs maintainer, and saw these problems whilst > > investigating Emacs bug #34235 "27.0.50; lisp profiler does not work". > > Emacs's profiler fails in kernel 4.19.13, but works in a version of > > 4.19.13 with the patch reversed, otherwise unchanged. My current version > > of glibc is 2.27-r6 (I think the "-r6" comes from Gentoo, my distro). > Please upgrade to 4.19.19. The issue should be fixed there with the > backported variant of > 93ad0fc088c5 ("posix-cpu-timers: Unbreak timer rearming") > Commit 21c0d1621b8d4b in 4.19.19 I've just built and installed Linux 4.19.19, and it does indeed solve the Emacs profiler bug, #34235. :-) I see that the patch has been installed in 4.20.6, 4.19.19, and 4.14.97. Are there any plans to install it into 4.9.x, the other live long term support branch? The reason I ask is to make an entry into Emacs's PROBLEMS file, telling users and distributions which kernel versions to upgrade to. > Thanks, > tglx -- Alan Mackenzie (Nuremberg, Germany). From debbugs-submit-bounces@debbugs.gnu.org Sat Feb 02 09:03:07 2019 Received: (at 34235) by debbugs.gnu.org; 2 Feb 2019 14:03:07 +0000 Received: from localhost ([127.0.0.1]:55578 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1gpvsu-00018k-Pd for submit@debbugs.gnu.org; Sat, 02 Feb 2019 09:03:06 -0500 Received: from mail-ot1-f66.google.com ([209.85.210.66]:42015) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1gpvsr-00018F-Ar for 34235@debbugs.gnu.org; Sat, 02 Feb 2019 09:03:03 -0500 Received: by mail-ot1-f66.google.com with SMTP id v23so8520015otk.9 for <34235@debbugs.gnu.org>; Sat, 02 Feb 2019 06:03:01 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=references:user-agent:from:to:cc:subject:in-reply-to:date :message-id:mime-version; bh=dqVTaSE8fV9xPVU4XPp44agRGExNr64bUye/r7VBtDQ=; b=ObR8O/nalgl3aW/AZePyTo/D2t+zOuAaWUoOphoREGMoM6qpn0xuMysRtkMPFDkD+e UXr1gaiv7jOVBLLvghUh+X0WK8P6X9VRDVs8G2oyK2iFHU+EaELyesgoXI+9wHWr9tHv RCdVCXrud1mmPCMlkW0XnRO8wwN2zX8+7hUUTY0gvwV5C+dzlQerEiMFfxv1bc61eamm naWylBZanhgspscxQCVrNblaQQoD8b/i2Pqnsck9cDIDlWMDQujpIrC2rnK0UgNhZZ/K DfCw2WSRUFokLHNcJ8zXiDmH8fTNlbBnk5jwagGl/fgWtOmlXpA1X4e8cTECKH5BfJzK u5SA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:references:user-agent:from:to:cc:subject :in-reply-to:date:message-id:mime-version; bh=dqVTaSE8fV9xPVU4XPp44agRGExNr64bUye/r7VBtDQ=; b=SHHtu1N0wxiUOC3v5cm4n9zZgGbzPW6tKhHavQTcXltD6hM9aMaDdnJ5NEXx/UWEcF HjLqIGU4P3OMLk/ndARXC/qQhhNKNS2WV07MPCoyg/wfIWxdcCPUuw46TeO7pzXTFeGb qpYB0sU2KhjD5NgnGmmJRF1zDAGK/IhTtmn+q3vcQNATdlIZPHjDnKWWA7xrUUlhz9nX gIolNFydZW3l2AEpaBwAkoDL4LgRl7cQM5NaUsUcib/j00bG6My7gvA4UENzWR/LcIC+ On/K69sqGmcoYbWVvsj/Aotkg8Bf0hXGu+K2EqxlAlCKeCs7f0UeZZpeROjE0WdZwa8A vVlw== X-Gm-Message-State: AHQUAubIuwxAcf/O2LjOw59MijyH2y7MCJAmvYwCarlC1FBp5XuovtR0 +a8C9QvaHwqyXX7jwIKktnxsq2vC X-Google-Smtp-Source: AHgI3IaftD8uGOKAmCJWSrmKmjUcj81aEARy73j0xiA2el5JrgVfhW2l6OAhAXPSXLtl2HnmcudZew== X-Received: by 2002:a05:6830:13d7:: with SMTP id e23mr9100477otq.2.1549116175430; Sat, 02 Feb 2019 06:02:55 -0800 (PST) Received: from mars (72-47-130-203.brhmcmtc01.res.dyn.suddenlink.net. [72.47.130.203]) by smtp.gmail.com with ESMTPSA id n3sm5103986oia.3.2019.02.02.06.02.54 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Sat, 02 Feb 2019 06:02:54 -0800 (PST) References: <17880b13-2fde-764d-a284-11cf0caf1cec@cs.ucla.edu> User-agent: mu4e 1.1.0; emacs 27.0.50 From: Alex Branham To: Paul Eggert Subject: Re: 0e334db6bb4b1fd1e2d72c1f3d8f004313cd9f94 (posix-timers: Fix, division by zero bug). Problems with glibc. In-reply-to: <17880b13-2fde-764d-a284-11cf0caf1cec@cs.ucla.edu> Date: Sat, 02 Feb 2019 08:02:52 -0600 Message-ID: <87r2cqp9tf.fsf@gmail.com> MIME-Version: 1.0 Content-Type: multipart/signed; boundary="=-=-="; micalg=pgp-sha256; protocol="application/pgp-signature" X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: 34235 Cc: Alan Mackenzie , Eli Zaretskii , 34235@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) --=-=-= Content-Type: text/plain Content-Transfer-Encoding: quoted-printable On Fri 01 Feb 2019 at 20:07, Paul Eggert wrote: > +A few versions of the Linux kernel have timer bugs that break CPU > +profiling; see Bug#34235. To fix the problem, upgrade to kernel > +versions 4.19.19 or 4.20.6, or later. > + > *** GNU/Linux: Process output is corrupted. > > There is a bug in Linux kernel 2.6.10 PTYs that can cause emacs to Hi all -=20 Thanks for all the work uncovering this one! I upgraded to linux-4.14.97, which did solve the issue. Thanks again! Alex --=-=-= Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQEzBAEBCAAdFiEEeEJ4XAMgliXNXicpHkInolPpmscFAlxVowwACgkQHkInolPp msdL3Af/TcK+YAIvUKGK9De97iJfVAYcS2VryfdYIp6UrnZBvgUY3sSVPrWd/7to /vMXaLKNbZZ4DrIfBHtMOyF9C33J9grZaJt5qAacnkCgbCT+RwA+xkwrE+lyb5tP 35V5iw64DFreQhi8/FOEJdfejLZpIBSYiv86cS0sgxRUjzftHuVT2HqYzGMbCBIn yfcSWWHSS/JYlTIzw3iJ6zQej0ZuH0fz0WpN9gd+jj//V+fwdCHxmhpgyxyBQ1tD LY0E+ZjG4y84bjcqSzffJLp0zWSHCJr3NXR8wiyJQ6QmneF+2WFoh58OQvhFG7+3 kLH4q6IFCiDJ9BffkGHYT5uo2m5vaQ== =ZME6 -----END PGP SIGNATURE----- --=-=-=-- From debbugs-submit-bounces@debbugs.gnu.org Sun Feb 03 01:28:58 2019 Received: (at 34235) by debbugs.gnu.org; 3 Feb 2019 06:28:58 +0000 Received: from localhost ([127.0.0.1]:56726 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1gqBH0-0005MW-J3 for submit@debbugs.gnu.org; Sun, 03 Feb 2019 01:28:58 -0500 Received: from zimbra.cs.ucla.edu ([131.179.128.68]:47314) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1gqBGy-0005MG-La for 34235@debbugs.gnu.org; Sun, 03 Feb 2019 01:28:57 -0500 Received: from localhost (localhost [127.0.0.1]) by zimbra.cs.ucla.edu (Postfix) with ESMTP id C70861611BE; Sat, 2 Feb 2019 22:28:50 -0800 (PST) Received: from zimbra.cs.ucla.edu ([127.0.0.1]) by localhost (zimbra.cs.ucla.edu [127.0.0.1]) (amavisd-new, port 10032) with ESMTP id g065fdssKUeO; Sat, 2 Feb 2019 22:28:50 -0800 (PST) Received: from localhost (localhost [127.0.0.1]) by zimbra.cs.ucla.edu (Postfix) with ESMTP id 18A3B1611C0; Sat, 2 Feb 2019 22:28:50 -0800 (PST) X-Virus-Scanned: amavisd-new at zimbra.cs.ucla.edu Received: from zimbra.cs.ucla.edu ([127.0.0.1]) by localhost (zimbra.cs.ucla.edu [127.0.0.1]) (amavisd-new, port 10026) with ESMTP id SDnYZL__BnGx; Sat, 2 Feb 2019 22:28:49 -0800 (PST) Received: from [192.168.1.9] (cpe-23-242-74-103.socal.res.rr.com [23.242.74.103]) by zimbra.cs.ucla.edu (Postfix) with ESMTPSA id C2CF116119F; Sat, 2 Feb 2019 22:28:49 -0800 (PST) Subject: Re: 0e334db6bb4b1fd1e2d72c1f3d8f004313cd9f94 (posix-timers: Fix, division by zero bug). Problems with glibc. To: Thomas Gleixner References: <17880b13-2fde-764d-a284-11cf0caf1cec@cs.ucla.edu> From: Paul Eggert Organization: UCLA Computer Science Department Message-ID: <1682db6c-0e70-f4d2-ecc7-6dabbccdcccc@cs.ucla.edu> Date: Sat, 2 Feb 2019 22:28:49 -0800 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.4.0 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit X-Spam-Score: -2.3 (--) X-Debbugs-Envelope-To: 34235 Cc: Alan Mackenzie , Alex Branham , Eli Zaretskii , 34235@debbugs.gnu.org, linux-kernel@vger.kernel.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -3.3 (---) Thomas Gleixner wrote: > Can you please verify whether the issue is fixed with 4.19.19? It depends on what you mean by "verify". I looked at the Linux kernel source code and checked that the "posix-cpu-timers: Unbreak timer rearming" patch is in 4.19.19 (but not 4.19.18) and in 4.20.6 (but not 4.20.5). I did not test Emacs's CPU profiler on these kernels, as I don't have them installed. I expect to upgrade soon to 4.20.6 (whenever Fedora 29 release does - 4.20.6 was submitted for testing a couple of days ago) and plan to give it a try then. From debbugs-submit-bounces@debbugs.gnu.org Mon Feb 04 12:25:20 2019 Received: (at 34235) by debbugs.gnu.org; 4 Feb 2019 17:25:20 +0000 Received: from localhost ([127.0.0.1]:59688 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1gqhzj-0000x1-L5 for submit@debbugs.gnu.org; Mon, 04 Feb 2019 12:25:19 -0500 Received: from galois.linutronix.de ([146.0.238.70]:43406) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1gqhzi-0000wt-94 for 34235@debbugs.gnu.org; Mon, 04 Feb 2019 12:25:19 -0500 Received: from [176.12.107.132] (helo=nanos) by Galois.linutronix.de with esmtpsa (TLS1.2:DHE_RSA_AES_256_CBC_SHA256:256) (Exim 4.80) (envelope-from ) id 1gqhzc-0002fs-O3; Mon, 04 Feb 2019 18:25:12 +0100 Date: Mon, 4 Feb 2019 17:25:11 +0000 (GMT) From: Thomas Gleixner To: Alan Mackenzie Subject: Re: 0e334db6bb4b1fd1e2d72c1f3d8f004313cd9f94 (posix-timers: Fix division by zero bug). Problems with glibc. In-Reply-To: <20190202104404.GA1067@ACM> Message-ID: References: <20190201214700.GA4950@ACM> <20190202104404.GA1067@ACM> User-Agent: Alpine 2.21 (DEB 202 2017-01-01) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII X-Linutronix-Spam-Score: -1.0 X-Linutronix-Spam-Level: - X-Linutronix-Spam-Status: No , -1.0 points, 5.0 required, ALL_TRUSTED=-1, SHORTCIRCUIT=-0.0001 X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: 34235 Cc: Alex Branham , Paul Eggert , Greg KH , LKML , Eli Zaretskii , 34235@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) On Sat, 2 Feb 2019, Alan Mackenzie wrote: > Hello, Thomas. > > Thanks for such a rapid reply! > > On Fri, Feb 01, 2019 at 23:04:48 +0100, Thomas Gleixner wrote: > > Hello Alan, > > > On Fri, 1 Feb 2019, Alan Mackenzie wrote: > > > 0e334db6bb4b1fd1e2d72c1f3d8f004313cd9f94 > > > posix-timers: Fix division by zero bug > > > Committed: 2018-12-17 17:35:45 +0100 > > > > With this patch in place I am seeing problems with glibc's function > > > timer_create. I am an Emacs maintainer, and saw these problems whilst > > > investigating Emacs bug #34235 "27.0.50; lisp profiler does not work". > > > > Emacs's profiler fails in kernel 4.19.13, but works in a version of > > > 4.19.13 with the patch reversed, otherwise unchanged. My current version > > > of glibc is 2.27-r6 (I think the "-r6" comes from Gentoo, my distro). > > > Please upgrade to 4.19.19. The issue should be fixed there with the > > backported variant of > > > 93ad0fc088c5 ("posix-cpu-timers: Unbreak timer rearming") > > > Commit 21c0d1621b8d4b in 4.19.19 > > I've just built and installed Linux 4.19.19, and it does indeed solve > the Emacs profiler bug, #34235. :-) > > I see that the patch has been installed in 4.20.6, 4.19.19, and 4.14.97. > Are there any plans to install it into 4.9.x, the other live long term > support branch? The reason I ask is to make an entry into Emacs's > PROBLEMS file, telling users and distributions which kernel versions to > upgrade to. 4.9 doesn't have the offending commit AFAICT. Thanks, tglx From debbugs-submit-bounces@debbugs.gnu.org Tue Feb 05 08:56:24 2019 Received: (at 34235) by debbugs.gnu.org; 5 Feb 2019 13:56:24 +0000 Received: from localhost ([127.0.0.1]:60339 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1gr1D6-0004Ig-Ks for submit@debbugs.gnu.org; Tue, 05 Feb 2019 08:56:24 -0500 Received: from colin.muc.de ([193.149.48.1]:62624 helo=mail.muc.de) by debbugs.gnu.org with smtp (Exim 4.84_2) (envelope-from ) id 1gr1D1-0004IV-Rx for 34235@debbugs.gnu.org; Tue, 05 Feb 2019 08:56:21 -0500 Received: (qmail 35704 invoked by uid 3782); 5 Feb 2019 13:56:16 -0000 Received: from acm.muc.de (p4FE15DB4.dip0.t-ipconnect.de [79.225.93.180]) by colin.muc.de (tmda-ofmipd) with ESMTP; Tue, 05 Feb 2019 14:56:14 +0100 Received: (qmail 6915 invoked by uid 1000); 5 Feb 2019 13:54:23 -0000 Date: Tue, 5 Feb 2019 13:54:23 +0000 To: Thomas Gleixner Subject: Re: 0e334db6bb4b1fd1e2d72c1f3d8f004313cd9f94 (posix-timers: Fix division by zero bug). Problems with glibc. Message-ID: <20190205135423.GA3919@ACM> References: <20190201214700.GA4950@ACM> <20190202104404.GA1067@ACM> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.10.1 (2018-07-13) X-Delivery-Agent: TMDA/1.1.12 (Macallan) From: Alan Mackenzie X-Primary-Address: acm@muc.de X-Spam-Score: -0.0 (/) X-Debbugs-Envelope-To: 34235 Cc: Alex Branham , Paul Eggert , Greg KH , LKML , Eli Zaretskii , 34235@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) Hello, Thomas. On Mon, Feb 04, 2019 at 17:25:11 +0000, Thomas Gleixner wrote: > On Sat, 2 Feb 2019, Alan Mackenzie wrote: [ .... ] > > I've just built and installed Linux 4.19.19, and it does indeed solve > > the Emacs profiler bug, #34235. :-) > > I see that the patch has been installed in 4.20.6, 4.19.19, and 4.14.97. > > Are there any plans to install it into 4.9.x, the other live long term > > support branch? The reason I ask is to make an entry into Emacs's > > PROBLEMS file, telling users and distributions which kernel versions to > > upgrade to. > 4.9 doesn't have the offending commit AFAICT. OK, thanks very much! I've put these three version numbers into the message in Emacs's PROBLEMS file. I think we're finished, now. > Thanks, > tglx -- Alan Mackenzie (Nuremberg, Germany). From unknown Sat Aug 16 11:41:46 2025 Received: (at fakecontrol) by fakecontrolmessage; To: internal_control@debbugs.gnu.org From: Debbugs Internal Request Subject: Internal Control Message-Id: bug archived. Date: Wed, 06 Mar 2019 12:24:05 +0000 User-Agent: Fakemail v42.6.9 # This is a fake control message. # # The action: # bug archived. thanks # This fakemail brought to you by your local debbugs # administrator From debbugs-submit-bounces@debbugs.gnu.org Mon Mar 11 16:32:44 2019 Received: (at control) by debbugs.gnu.org; 11 Mar 2019 20:32:44 +0000 Received: from localhost ([127.0.0.1]:39539 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1h3RbH-0002Is-Os for submit@debbugs.gnu.org; Mon, 11 Mar 2019 16:32:43 -0400 Received: from eggs.gnu.org ([209.51.188.92]:33713) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1h3RbF-0002IY-Bl for control@debbugs.gnu.org; Mon, 11 Mar 2019 16:32:41 -0400 Received: from fencepost.gnu.org ([2001:470:142:3::e]:43215) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1h3RbA-0004UL-6G for control@debbugs.gnu.org; Mon, 11 Mar 2019 16:32:36 -0400 Received: from rgm by fencepost.gnu.org with local (Exim 4.82) (envelope-from ) id 1h3Rb8-0008CN-U0 for control@debbugs.gnu.org; Mon, 11 Mar 2019 16:32:35 -0400 Subject: control message for bug 34809 To: X-Mailer: mail (GNU Mailutils 2.99.98) Message-Id: From: Glenn Morris Date: Mon, 11 Mar 2019 16:32:34 -0400 X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Spam-Score: -0.0 (/) X-Debbugs-Envelope-To: control X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) unarchive 34235 forcemerge 34235 34809 From unknown Sat Aug 16 11:41:46 2025 Received: (at fakecontrol) by fakecontrolmessage; To: internal_control@debbugs.gnu.org From: Debbugs Internal Request Subject: Internal Control Message-Id: bug archived. Date: Tue, 09 Apr 2019 11:24:03 +0000 User-Agent: Fakemail v42.6.9 # This is a fake control message. # # The action: # bug archived. thanks # This fakemail brought to you by your local debbugs # administrator