Skip to content

TagFuse/TagDump: checksum failure -> resync -> BadAddress/UnboundLocalError #5

@cire831

Description

@cire831

TagNet/TagFuse @ ad4011e

--- @1565736  21921  2246754   40     4  EVENT  GPS_TIME  132252162  5939
    GPS_TIME: (19) <132252162 5939 4000 0>  x(7e20202 1733 fa0 0)

--- @1565776  21922  2246754   40     4  EVENT  GPS_GEO  439902572  3081968938
    GPS_GEO: (17) <439902572 3081968938 1986 517882000>  x(1a38616c b7b31d2a 7c2 1ede4090)

*** checksum failure @1565816 (0x17e478) [wanted: 0x1c26, got: 0x1a50]
 1565816  21923        0  220    32  GPS_RAW      @1565816 (0x17e478) [0x1c26]

*** resync started @1565816 (0x17e478)
*** resync: exception error: <type 'exceptions.OSError'> @1565816
Traceback (most recent call last):
  File "/usr/local/bin/tagdump", line 11, in <module>
    load_entry_point('tagdump==0.2.12', 'console_scripts', 'tagdump')()
  File "/usr/local/lib/python2.7/dist-packages/tagdump-0.2.12-py2.7.egg/tagdump/__main__.py", line 10, in main
    dump(parseargs())
  File "/usr/local/lib/python2.7/dist-packages/tagdump-0.2.12-py2.7.egg/tagdump/tagdump.py", line 466, in dump
    get_record(infile)
  File "/usr/local/lib/python2.7/dist-packages/tagdump-0.2.12-py2.7.egg/tagdump/tagdump.py", line 372, in get_record
    offset = resync(fd, offset)
  File "/usr/local/lib/python2.7/dist-packages/tagdump-0.2.12-py2.7.egg/tagdump/tagdump.py", line 196, in resync
    majik_buf = fd.read(quad_struct.size)
  File "/usr/local/lib/python2.7/dist-packages/tagdump-0.2.12-py2.7.egg/tagdump/tagfile.py", line 47, in read
    return os.read(self.fileno, cnt)
OSError: [Errno 14] Bad address
P222 (43):

On the TagFuse side:

UnboundLocal.txt

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions