Opened 5 years ago

Closed 5 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: Core Tor/Nyx Version:
Severity: Keywords:
Cc: Actual Points:
Parent ID: Points:
Reviewer: Sponsor:

Description

Leap year related?

$ arm
Traceback (most recent call last):
  File "/usr/local/lib/python2.7/site-packages/arm/starter.py", line 543, in <module>
    cli.controller.startTorMonitor(time.time() - initTime)
  File "/usr/local/lib/python2.7/site-packages/arm/cli/controller.py", line 683, in startTorMonitor
    curses.wrapper(drawTorMonitor, startTime)
  File "/usr/local/lib/python2.7/curses/wrapper.py", line 43, in wrapper
    return func(stdscr, *args, **kwds)
  File "/usr/local/lib/python2.7/site-packages/arm/cli/controller.py", line 703, in drawTorMonitor
    initController(stdscr, startTime)
  File "/usr/local/lib/python2.7/site-packages/arm/cli/controller.py", line 86, in initController
    firstPagePanels.append(cli.logPanel.LogPanel(stdscr, expandedEvents, config))
  File "/usr/local/lib/python2.7/site-packages/arm/cli/logPanel.py", line 645, in __init__
    self.reprepopulateEvents()
  File "/usr/local/lib/python2.7/site-packages/arm/cli/logPanel.py", line 689, in reprepopulateEvents
    torEventBacklog = getLogFileEntries(setRunlevels, readLimit, addLimit, self._config)
  File "/usr/local/lib/python2.7/site-packages/arm/cli/logPanel.py", line 305, in getLogFileEntries
    eventTimeComp = list(time.strptime(timestamp, "%b %d %H:%M:%S"))
  File "/usr/local/lib/python2.7/_strptime.py", line 454, in _strptime_time
    return _strptime(data_string, format)[0]
  File "/usr/local/lib/python2.7/_strptime.py", 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 5 years ago by Sebastian

  • Status changed from new to needs_review

What a fun bug! branch bug5265 in my repo

comment:2 Changed 5 years ago by atagar

  • Resolution set to fixed
  • Status changed from needs_review to closed

Fix pushed - many thanks!

Note: See TracTickets for help on using tickets.