From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.bugs Subject: bug#20843: 24.5; Profiler error: "Invalid sampling interval" Date: Sat, 20 Jun 2015 22:10:42 +0300 Message-ID: <83r3p6i4b1.fsf@gnu.org> References: <83k2v1l7g4.fsf@gnu.org> <5585B8C4.1050204@cornell.edu> Reply-To: Eli Zaretskii NNTP-Posting-Host: plane.gmane.org X-Trace: ger.gmane.org 1434827485 14752 80.91.229.3 (20 Jun 2015 19:11:25 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sat, 20 Jun 2015 19:11:25 +0000 (UTC) Cc: sva-news@mygooglest.com, 20843@debbugs.gnu.org To: Ken Brown Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Sat Jun 20 21:11:14 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 1Z6OAb-0000Ct-KN for geb-bug-gnu-emacs@m.gmane.org; Sat, 20 Jun 2015 21:11:13 +0200 Original-Received: from localhost ([::1]:34511 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Z6OAa-0004Kt-P8 for geb-bug-gnu-emacs@m.gmane.org; Sat, 20 Jun 2015 15:11:12 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:57139) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Z6OAX-0004Kj-1x for bug-gnu-emacs@gnu.org; Sat, 20 Jun 2015 15:11:09 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Z6OAR-0007Hn-8T for bug-gnu-emacs@gnu.org; Sat, 20 Jun 2015 15:11:08 -0400 Original-Received: from debbugs.gnu.org ([140.186.70.43]:51502) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Z6OAR-0007Hi-50 for bug-gnu-emacs@gnu.org; Sat, 20 Jun 2015 15:11:03 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.80) (envelope-from ) id 1Z6OAQ-0003gr-Rc for bug-gnu-emacs@gnu.org; Sat, 20 Jun 2015 15:11:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sat, 20 Jun 2015 19:11:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 20843 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: moreinfo Original-Received: via spool by 20843-submit@debbugs.gnu.org id=B20843.143482745914176 (code B ref 20843); Sat, 20 Jun 2015 19:11:02 +0000 Original-Received: (at 20843) by debbugs.gnu.org; 20 Jun 2015 19:10:59 +0000 Original-Received: from localhost ([127.0.0.1]:52948 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1Z6OAM-0003gZ-JP for submit@debbugs.gnu.org; Sat, 20 Jun 2015 15:10:59 -0400 Original-Received: from mtaout22.012.net.il ([80.179.55.172]:60130) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1Z6OAJ-0003gH-5I for 20843@debbugs.gnu.org; Sat, 20 Jun 2015 15:10:56 -0400 Original-Received: from conversion-daemon.a-mtaout22.012.net.il by a-mtaout22.012.net.il (HyperSendmail v2007.08) id <0NQ900100BO2O200@a-mtaout22.012.net.il> for 20843@debbugs.gnu.org; Sat, 20 Jun 2015 22:10:48 +0300 (IDT) Original-Received: from HOME-C4E4A596F7 ([87.69.4.28]) by a-mtaout22.012.net.il (HyperSendmail v2007.08) with ESMTPA id <0NQ9001NBBXWGK80@a-mtaout22.012.net.il>; Sat, 20 Jun 2015 22:10:44 +0300 (IDT) In-reply-to: <5585B8C4.1050204@cornell.edu> X-012-Sender: halo1@inter.net.il X-BeenThere: debbugs-submit@debbugs.gnu.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@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-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:104160 Archived-At: > Date: Sat, 20 Jun 2015 15:02:28 -0400 > From: Ken Brown > CC: 20843@debbugs.gnu.org > > On 6/18/2015 4:57 AM, Eli Zaretskii wrote: > >> From: Sebastien Vauban > >> Date: Thu, 18 Jun 2015 10:37:02 +0200 > >> > >> 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: > [...] > > No, the problem is that Cygwin's setitimer supports only ITIMER_REAL, so > the call to setitimer(ITIMER_PROF,...) in profiler.c:315 fails. Then I guess the configure-time test for setitimer should also test for ITIMER_PROF. Also, the diagnostics should be improved, as the wording is misleading in that case.