{"issue":{"created_at":"2011-12-13T04:56:58Z","state":"open","updated_at":"2011-12-13T06:01:20Z","user":{"gravatar_id":"b0ae6febb3043f6d3242721e6091110b","id":635007,"url":"https://api.github.com/users/bobveznat","login":"bobveznat","avatar_url":"https://secure.gravatar.com/avatar/b0ae6febb3043f6d3242721e6091110b?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png"},"comments":2,"body":"\r\n>>> import coro\r\nTraceback (most recent call last):\r\n  File \"<stdin>\", line 1, in <module>\r\n  File \"/usr/local/lib/python2.6/site-packages/coro/__init__.py\", line 131, in <module>\r\n    from coro._coro import *\r\n  File \"aplib.tsc_time.pxd\", line 28, in init coro._coro (coro/_coro.c:49571)\r\n  File \"aplib.tsc_time.pyx\", line 275, in init aplib.tsc_time (aplib/aplib.tsc_time.c:11561)\r\n  File \"aplib.tsc_time.pyx\", line 254, in aplib.tsc_time.get_ticks_per_sec (aplib/aplib.tsc_time.c:1045)\r\nSystemError\r\n\r\n\r\n# uname -a\r\nFreeBSD ip-10-170-30-5 8.2-RELEASE FreeBSD 8.2-RELEASE #0: Thu Aug  4 15:39:43 UTC 2011     root@ip-10-17-5-252:/usr/obj/i386/usr/src/sys/XEN  i386\r\n\r\nThis is a t1.micro instance.\r\n\r\n# sysctl machdep\r\nmachdep.rtc_save_period: 1800\r\nmachdep.adjkerntz: 0\r\nmachdep.wall_cmos_clock: 0\r\nmachdep.disable_rtc_set: 0\r\nmachdep.disable_mtrrs: 0\r\nmachdep.guessed_bootdev: 0\r\nmachdep.idle: hlt\r\nmachdep.idle_available: spin, mwait, mwait_hlt, hlt, acpi, \r\nmachdep.prot_fault_translation: 0\r\nmachdep.panic_on_nmi: 1\r\nmachdep.kdb_on_nmi: 1\r\nmachdep.xen_disable_rtc_set: 0\r\nmachdep.independent_wallclock: 1\r\n\r\n\r\n# sysctl -a | grep tsc\r\nkern.timecounter.smp_tsc: 0\r\nkern.timecounter.invariant_tsc: 1\r\n","assignee":null,"id":2532953,"number":2,"labels":[],"pull_request":{"patch_url":null,"html_url":null,"diff_url":null},"title":"SystemError in aplib.tsc_time on FreeBSD/EC2","closed_at":null,"html_url":"https://github.com/ironport/aplib/issues/2","url":"https://api.github.com/repos/ironport/aplib/issues/2","milestone":null},"action":"created","comment":{"created_at":"2011-12-13T06:01:20Z","updated_at":"2011-12-13T06:01:20Z","user":{"gravatar_id":"b0ae6febb3043f6d3242721e6091110b","id":635007,"url":"https://api.github.com/users/bobveznat","login":"bobveznat","avatar_url":"https://secure.gravatar.com/avatar/b0ae6febb3043f6d3242721e6091110b?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png"},"body":"I have this patch. Which works and appears reasonably accurate. But I don't really understand the ramifications of it. Eric is also reading FreeBSD source at this moment.\r\n\r\nWith this patch time.time() gets totally borked (Eric tells me that time.time() is monkey patched when you import coro).\r\n\r\nhttps://github.com/bobveznat/aplib/commit/2a8427f6c393ed1b80962c54ad00828ed459718f","id":3119305,"url":"https://api.github.com/repos/ironport/aplib/issues/comments/3119305"}}