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: Fri, 19 Jun 2015 20:42:31 +0300

> From: Sebastien Vauban <address@hidden>
> Date: Fri, 19 Jun 2015 15:38:32 +0200
> 
> >> 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...

Like this:

 $ cd /path/to/emacs/src
 $ gdb ./emacs.exe
 (gdb) break setup_cpu_timer
 (gdb) run -Q

Inside Emacs, type:

  M-x profiler-start RET RET

Then GDB will get control, because profiler-start calls
setup_cpu_timer.  Then type at GDB prompt:

 (gdb) next
 (gdb) p TYPE_MAXIMUM(time_t)
 (gdb) p EMACS_INT_MAX
 (gdb) p EMACS_INT_MAX/billion
 (gdb) p sampling_interval
 (gdb) next
 (gdb) next

and continue stepping until it returns.  Then post here everything you
see during this session.

Thanks.





reply via email to

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