hgn / captcp

A open source program for TCP analysis of PCAP files
http://research.protocollabs.com/captcp/
GNU General Public License v3.0
113 stars 40 forks source link

MemoryError on sequencegraph #2

Closed igrigorik closed 12 years ago

igrigorik commented 12 years ago

Guessing this is not a captcp problem, but wondering if you have some tips? Trying to run this on OSX.

$> python captcp.py sequencegraph -v debug -i 1 -l 192.168.0.199 ~/Desktop/archive.pcap

# captcp 2010,2011 Hagen Paul Pfeifer (c)
# python: 2.7.1 [releaselevel: final, serial: 0]
# pcap file: /Users/igrigorik/Desktop/archive.pcap
# visualization limited to the following connections: ['1']
# call pre_process_packet [1/4]
# call pre_process_final [2/4]
# now draw 974 packets
# call process_packet [3/4]
# call pre_process_final [4/4]
Traceback (most recent call last):
  File "captcp.py", line 3753, in <module>
    sys.exit(captcp.run())
  File "captcp.py", line 3740, in run
    ret = classinstance.process_final()
  File "captcp.py", line 1848, in process_final
    self.cr.show_page()
MemoryError

Cairo issue / bug? pcap file: http://dl.dropbox.com/u/2132185/archive.pcap

hgn commented 12 years ago

Hey Ilya, maybe try to reduce archive.pcap, e.g. tcpsplit the pcap file?

Can you upload the pcap file? I will try to reproduce the error.

Hgn

Hagen Paul Pfeifer hagen@jauu.net || http://jauu.net Telephone: +49 174 5455209

Ilya Grigorik reply@reply.github.com schrieb:

Guessing this is not a captcp problem, but wondering if you have some tips? Trying to run this on OSX.

$> python captcp.py sequencegraph -v debug -i 1 -l 192.168.0.199 ~/Desktop/archive.pcap

# captcp 2010,2011 Hagen Paul Pfeifer (c)
# python: 2.7.1 [releaselevel: final, serial: 0]
# pcap file: /Users/igrigorik/Desktop/archive.pcap
# visualization limited to the following connections: ['1']
# call pre_process_packet [1/4]
# call pre_process_final [2/4]
# now draw 974 packets
# call process_packet [3/4]
# call pre_process_final [4/4]
Traceback (most recent call last):
File "captcp.py", line 3753, in <module>
sys.exit(captcp.run())
File "captcp.py", line 3740, in run
ret = classinstance.process_final()
File "captcp.py", line 1848, in process_final
self.cr.show_page()
MemoryError

Cairo issue / bug?


Reply to this email directly or view it on GitHub: https://github.com/hgn/captcp/issues/2

igrigorik commented 12 years ago

http://dl.dropbox.com/u/2132185/archive.pcap - should be it. seems to be crashing on small files also, I suspect its my cairo install (ugh).

hgn commented 12 years ago

Tends to be. The raised python error highlight a s

Cairo error. Can you try to boot Linux and reproduce the error?

Hagen Paul Pfeifer hagen@jauu.net || http://jauu.net Telephone: +49 174 5455209

hgn commented 12 years ago

Yes: libcairo problem for MacOSX - sorry:

@hal:captcp $ python captcp.py sequencegraph -v debug -i 1 -l 192.168.0.199 archive.pcap

captcp 2010,2011 Hagen Paul Pfeifer (c)

python: 2.7.3 [releaselevel: candidate, serial: 2]

pcap file: archive.pcap

visualization limited to the following connections: ['1']

call pre_process_packet [1/4]

call pre_process_final [2/4]

now draw 974 packets

call process_packet [3/4]

call pre_process_final [4/4]

generate PDF file "seq-graph.pdf"

processing duration: 0.2451 seconds

Hagen

hgn commented 12 years ago

no captcp bug