From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Sebastien Vauban Newsgroups: gmane.emacs.bugs Subject: bug#20843: 24.5; Profiler error: "Invalid sampling interval" Date: Thu, 18 Jun 2015 13:58:20 +0200 Organization: Sebastien Vauban Message-ID: References: <83k2v1l7g4.fsf@gnu.org> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: ger.gmane.org 1434628769 1580 80.91.229.3 (18 Jun 2015 11:59:29 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Thu, 18 Jun 2015 11:59:29 +0000 (UTC) Cc: 20843-ubl+/3LiMTaZdePnXv/OxA@public.gmane.org To: Eli Zaretskii Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org-mXXj517/zsQ@public.gmane.org Thu Jun 18 13:59:20 2015 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1Z5YTV-0008Q6-CC for geb-bug-gnu-emacs@m.gmane.org; Thu, 18 Jun 2015 13:59:17 +0200 Original-Received: from localhost ([::1]:52031 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Z5YTU-0000QL-Dw for geb-bug-gnu-emacs@m.gmane.org; Thu, 18 Jun 2015 07:59:16 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:43935) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Z5YTK-0000PP-Ph for bug-gnu-emacs-mXXj517/zsQ@public.gmane.org; Thu, 18 Jun 2015 07:59:10 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Z5YTG-0007AU-6o for bug-gnu-emacs-mXXj517/zsQ@public.gmane.org; Thu, 18 Jun 2015 07:59:06 -0400 Original-Received: from debbugs.gnu.org ([140.186.70.43]:38229) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Z5YTG-0007A9-4K for bug-gnu-emacs-mXXj517/zsQ@public.gmane.org; Thu, 18 Jun 2015 07:59:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.80) (envelope-from ) id 1Z5YTF-0007mK-Ty for bug-gnu-emacs-mXXj517/zsQ@public.gmane.org; Thu, 18 Jun 2015 07:59:02 -0400 X-Loop: help-debbugs-mXXj517/zsQ@public.gmane.org Resent-From: Sebastien Vauban Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs-mXXj517/zsQ@public.gmane.org Resent-Date: Thu, 18 Jun 2015 11:59:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs-mXXj517/zsQ@public.gmane.org X-GNU-PR-Message: followup 20843 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 20843-submit-ubl+/3LiMTaZdePnXv/OxA@public.gmane.org id=B20843.143462871529859 (code B ref 20843); Thu, 18 Jun 2015 11:59:01 +0000 Original-Received: (at 20843) by debbugs.gnu.org; 18 Jun 2015 11:58:35 +0000 Original-Received: from localhost ([127.0.0.1]:50426 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1Z5YSp-0007lW-5a for submit-ubl+/3LiMTaZdePnXv/OxA@public.gmane.org; Thu, 18 Jun 2015 07:58:35 -0400 Original-Received: from dd5e0353a.access.telenet.be ([213.224.53.58]:10387 helo=mail.missioncriticalit.com) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1Z5YSm-0007lG-Oq for 20843-ubl+/3LiMTaZdePnXv/OxA@public.gmane.org; Thu, 18 Jun 2015 07:58:33 -0400 Original-Received: from mundaneum (unknown [10.10.10.51]) by mail.missioncriticalit.com (Postfix) with ESMTPS id 0D63A50008E; Thu, 18 Jun 2015 13:58:26 +0200 (CEST) X-Url: Under construction... X-Archive: encrypt In-Reply-To: <83k2v1l7g4.fsf-mXXj517/zsQ@public.gmane.org> (Eli Zaretskii's message of "Thu, 18 Jun 2015 11:57:47 +0300") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.5 (cygwin) X-BeenThere: debbugs-submit-ubl+/3LiMTaZdePnXv/OxA@public.gmane.org X-Mailman-Version: 2.1.15 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.x X-Received-From: 140.186.70.43 X-BeenThere: bug-gnu-emacs-mXXj517/zsQ@public.gmane.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-mXXj517/zsQ@public.gmane.org Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org-mXXj517/zsQ@public.gmane.org Xref: news.gmane.org gmane.emacs.bugs:104072 Archived-At: Eli Zaretskii writes: >> From: Sebastien Vauban >> >> When trying to start the profiler under Cygwin Emacs 24.5, I get this: >> >> --8<---------------cut here---------------start------------->8--- >> Debugger entered--Lisp error: (error "Invalid sampling interval") >> profiler-cpu-start(1000000) >> profiler-start(cpu) >> call-interactively(profiler-start record nil) > > Can you step with GDB into setup_cpu_timer, and see what goes wrong > there? I suspect this portions: > > if (! RANGED_INTEGERP (1, sampling_interval, > (TYPE_MAXIMUM (time_t) < EMACS_INT_MAX / billion > ? ((EMACS_INT) TYPE_MAXIMUM (time_t) * billion > + (billion - 1)) > : EMACS_INT_MAX))) > return NOT_RUNNING; > > If so, what does TYPE_MAXIMUM(time_t) return in your build? Sorry, I can't -- lack of time, and (moreover) of knowledge... PS- Dunno if this is somehow related, but my Cygwin Emacs is very slow ATM -- sometimes waiting for 5 seconds or so before seeing a reaction to the char I just typed, though often as quick as always. That was why I wanted to run a profiler...