[RTEMS Project] #2356: MVME3100: Time goes backwards, post-timecounter changes

RTEMS trac trac at rtems.org
Fri May 29 07:38:18 UTC 2015

#2356: MVME3100: Time goes backwards, post-timecounter changes
 Reporter:  nick.withers  |       Owner:
     Type:  defect        |      Status:  new
 Priority:  high          |   Milestone:  4.11
Component:  General       |     Version:  4.11
 Severity:  critical      |  Resolution:
 Keywords:                |

Comment (by nick.withers):

 Replying to [comment:2 sebastian.huber]:
 > The psim BSP uses the same clock driver and here the test works.

 I just tried to reproduce ''spnsext01'' failing on the MVME3100 a few
 times and wasn't successful... Maybe I was wrong about it failing, but I
 think I may just have got lucky (or unlucky) before.

 My test does fail on the psim:
 nick at nuc211:/home/nick/projects/rtems-time-backwards % psim-gdb
 GNU gdb (GDB) 7.9
 Copyright (C) 2015 Free Software Foundation, Inc.
 License GPLv3+: GNU GPL version 3 or later
 This is free software: you are free to change and redistribute it.
 There is NO WARRANTY, to the extent permitted by law.  Type "show copying"
 and "show warranty" for details.
 This GDB was configured as "--host=x86_64-freebsd10.1 --target=powerpc-
 Type "show configuration" for configuration details.
 For bug reporting instructions, please see:
 Find the GDB manual and other documentation resources online at:
 For help, type "help".
 Type "apropos word" to search for commands related to "word"...
 Reading symbols from ./test.debug...done.
 Connected to the simulator.
 Breakpoint 1 at 0x3978: file
 exceptions/bspsupport/ppc_exc_global_handler.c, line 23.
 Breakpoint 2 at 0x11f00: file
 ../../../../../../../rtems/c/src/../../cpukit/score/src/interr.c, line 36.
 psim-cmds:5: Error in sourced command file:
 No symbol "the_source" in current context.
 (gdb) run
 Starting program: /usr/home/nick/projects/rtems-time-backwards/test.debug
 warning: failed to reevaluate condition for breakpoint 1: No symbol
 "the_source" in current context.
 OpenPIC Version 1.2 (2 CPUs and 17 IRQ sources) at 0x0C130000
 OpenPIC Vendor 0 (Unknown), Device 0 (Unknown), Stepping 0
 Overriding NumSources (17) from configuration with 16
 OpenPIC timer frequency is 1 Hz
 Starting, 100 ticks/s...
 Time went backwards, from {0, 0} to {-1, 2902599}
 Time went backwards, from {5, 10143599} to {5, 222199}
 Time went backwards, from {7, 10182999} to {7, 261599}
 Time went backwards, from {9, 10223299} to {9, 301899}
 Time went backwards, from {10, 242899} to {9, 990324899}
 Time went backwards, from {12, 282799} to {11, 990364799}
 Time went backwards, from {22, 10483199} to {22, 561799}
 Time went backwards, from {24, 10523499} to {24, 602099}
 Time went backwards, from {25, 10543199} to {25, 621799}
 Time went backwards, from {26, 10563399} to {26, 641999}
 Time went backwards, from {27, 10583599} to {27, 662199}

 I'll attach the code momentarily...

Ticket URL: <http://devel.rtems.org/ticket/2356#comment:3>
RTEMS Project <http://www.rtems.org/>
RTEMS Project

More information about the bugs mailing list