Opened 9 years ago

Closed 9 years ago

#5265 closed defect (fixed)

arm dies on "day is out of range for month"

Reported by: cypherpunks Owned by: atagar
Priority: Medium Milestone:
Component: Archived/Nyx Version:
Severity: Keywords:
Cc: Actual Points:
Parent ID: Points:
Reviewer: Sponsor:


Leap year related?

$ arm
Traceback (most recent call last):
  File "/usr/local/lib/python2.7/site-packages/arm/", line 543, in <module>
    cli.controller.startTorMonitor(time.time() - initTime)
  File "/usr/local/lib/python2.7/site-packages/arm/cli/", line 683, in startTorMonitor
    curses.wrapper(drawTorMonitor, startTime)
  File "/usr/local/lib/python2.7/curses/", line 43, in wrapper
    return func(stdscr, *args, **kwds)
  File "/usr/local/lib/python2.7/site-packages/arm/cli/", line 703, in drawTorMonitor
    initController(stdscr, startTime)
  File "/usr/local/lib/python2.7/site-packages/arm/cli/", line 86, in initController
    firstPagePanels.append(cli.logPanel.LogPanel(stdscr, expandedEvents, config))
  File "/usr/local/lib/python2.7/site-packages/arm/cli/", line 645, in __init__
  File "/usr/local/lib/python2.7/site-packages/arm/cli/", line 689, in reprepopulateEvents
    torEventBacklog = getLogFileEntries(setRunlevels, readLimit, addLimit, self._config)
  File "/usr/local/lib/python2.7/site-packages/arm/cli/", line 305, in getLogFileEntries
    eventTimeComp = list(time.strptime(timestamp, "%b %d %H:%M:%S"))
  File "/usr/local/lib/python2.7/", line 454, in _strptime_time
    return _strptime(data_string, format)[0]
  File "/usr/local/lib/python2.7/", line 440, in _strptime
    datetime_date(year, 1, 1).toordinal() + 1
ValueError: day is out of range for month
$ date 
Wed Feb 29 01:02:38 UTC 2012

Above log is from FreeBSD with arm from ports, also dying on my Linux box.

Child Tickets

Change History (2)

comment:1 Changed 9 years ago by Sebastian

Status: newneeds_review

What a fun bug! branch bug5265 in my repo

comment:2 Changed 9 years ago by atagar

Resolution: fixed
Status: needs_reviewclosed

Fix pushed - many thanks!

Note: See TracTickets for help on using tickets.