[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

bug#20843: 24.5; Profiler error: "Invalid sampling interval"

From: Sebastien Vauban
Subject: bug#20843: 24.5; Profiler error: "Invalid sampling interval"
Date: Fri, 19 Jun 2015 15:38:32 +0200
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/24.5 (windows-nt)

Sebastien Vauban <address@hidden> writes:
> Eli Zaretskii <address@hidden> writes:
>>> From: Sebastien Vauban <address@hidden>
>>> 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...

Eli, if you can give me a couple of instructions on how to step into
that function ("when I should type what?"), I'm willing to give it
a try, as this is reproducible over different Emacs sessions...

reply via email to

[Prev in Thread] Current Thread [Next in Thread]