Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Crashes on large files #5

Open
GoogleCodeExporter opened this issue Mar 4, 2016 · 0 comments
Open

Crashes on large files #5

GoogleCodeExporter opened this issue Mar 4, 2016 · 0 comments

Comments

@GoogleCodeExporter
Copy link

What steps will reproduce the problem?
1.
2.
3.

What is the expected output? What do you see instead?

[root@zoltan ~]# (zcat /var/log/snmpd.log.[1-9].gz; cat
/var/log/snmpd.log) | grep `date -d 'last month' | awk '{print $2}'`|
grep "snmpd\[" | petit --hash
Traceback (most recent call last):
File "/usr/bin/petit", line 348, in ?
get_options(sys.argv[1:])
File "/usr/bin/petit", line 135, in get_options
hash(filename)
File "/usr/bin/petit", line 164, in hash
log = Log(args)
File "/usr/share/petit/crunchtools.py", line 631, in __init__
self.append(Entry(line))
File "/usr/share/petit/crunchtools.py", line 90, in __init__
self.month = str(time.strptime(self.month,"%b")[1])
File "/usr/lib/python2.4/_strptime.py", line 291, in strptime
found = format_regex.match(data_string)
MemoryError

Please use labels and text to provide additional information.
Scott submitted this, I know what it is


Original issue reported on code.google.com by [email protected] on 28 Apr 2011 at 6:23

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant