bug-gnu-emacs
[Top][All Lists]
Advanced

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

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


From: Eli Zaretskii
Subject: bug#20843: 24.5; Profiler error: "Invalid sampling interval"
Date: Thu, 18 Jun 2015 11:57:47 +0300

> From: Sebastien Vauban <address@hidden>
> 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:

  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?





reply via email to

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