Skip to content

RuntimeError: maximum recursion depth exceeded in cmp #3

Closed

Description

@a-khakimov
lsof: WARNING: can't stat() fuse.gvfsd-fuse file system /run/user/1000/gvfs
      Output information may be incomplete.
lsof: WARNING: can't stat() fuse file system /run/user/1000/doc
      Output information may be incomplete.
Traceback (most recent call last):
  File "lsofgraph.py", line 183, in <module>
    print_graph(procs, conns)
  File "lsofgraph.py", line 168, in print_graph
    if files[0]['proc'] != files[1]['proc']:
RuntimeError: maximum recursion depth exceeded in cmp
Error: <stdin>: syntax error in line 295 near ''

Activity

  1. akme commented on Apr 12, 2018

    @akme
    Owner

    made some changes, could u please test?

  2. a-khakimov commented on Apr 15, 2018

    @a-khakimov
    Author

    I did not make any changes. Just downloaded repo and ran command from readme.
    I use Python 2.7.12

  3. akme commented on Apr 15, 2018

    @akme
    Owner

    I did some changes, pull them and test if it fails, please

  4. a-khakimov commented on Apr 15, 2018

    @a-khakimov
    Author

    unfortunately nothing has changed
    same mistake

  5. widgetii commented on Apr 18, 2018

    @widgetii

    Seems that I have same mistake also, script just from git

    I use Centos 4.9 in Docker environment

      File "lsofgraph.py", line 183, in <module>
        print_graph(procs, conns)
      File "lsofgraph.py", line 168, in print_graph
        if files[0]['proc'] != files[1]['proc']:
    RuntimeError: maximum recursion depth exceeded in cmp
    Error: <stdin>: syntax error in line 15
    
  6. akme commented on Apr 21, 2018

    @akme
    Owner

    Could you please try to set higher limit for recursion?
    Like this:
    sys.setrecursionlimit(15000)

  7. widgetii commented on Apr 23, 2018

    @widgetii

    I tried to add, but still same error

    Here is my dump of lsof output
    lsof.zip

  8. powerpxe commented on May 12, 2018

    @powerpxe

    Does not help adding a line sys.setrecursionlimit(15000). Python 2.7.12 Linux Mint 18.3.
    Use ssh -l root 11.10.23.200 'lsof -n -F' | python lsofgraph.py | unflatten -l 1 -c 6 | dot -T jpg > /tmp/a.jpg

    Python answer:
    File "lsofgraph.py", line 184, in
    print_graph(procs, conns)
    File "lsofgraph.py", line 169, in print_graph
    if files[0]['proc'] != files[1]['proc']:
    RuntimeError: maximum recursion depth exceeded in cmp
    Error: : syntax error in line 72 near ''

    ssh is connected to the kernel 2.4.32, lsof version 4.77.

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    help wantedExtra attention is needed

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions