On Tue, Sep 13, 2016 at 10:48:42PM -0500, Bob Friesenhahn wrote:

> It may be necessary to prove where the problem is occuring by manually
> overwriting updated files in the magick directory with those from the
> previous working version until the problem goes away (assuming that it
> does).

I've bisected it to 

 
https://sourceforge.net/p/graphicsmagick/code/ci/4ee2a87a67e064f3a094ee30b40a7a9bba1eb727/

 Use clock_gettime() to obtain elapsed time.

Further observations:

- it also happens with GCC 5
- it goes away if ElapsedTime() or StartTimer() in magick/timer.c are
  optimized with -O0 (bisected with GCC #pragmas)
- it also goes away if LockSemaphoreInfo() in magick/semaphore.c is
  optimized with -O0, which seems weird
- it also goes away if I modify ElapsedTime() in magick/timer.c to
  print out the return value before returning it

I haven't found the exact optimization that's triggering it yet,
and I haven't looked at the code GCC generates.
-- 
Niko Tyni   nt...@debian.org

Reply via email to