Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Enry binary freezes if called multiple times sequentially #8

@vsmaxim

Description

@vsmaxim

Hi! I'm facing strange bug with enry release binaries, it freezes if called multiple times. Here is minimal bash script to reproduce such behavior (this happens not only on small files, but on large directories also).

test_dir - is directory with only one empty.py file which is empty.

#!/bin/bash
for i in {1..100}; do
  time ./enry ./test_dir -json 1>/dev/null 2>/dev/null
done

At some iteration this happen:

real    0m0.039s
user    0m0.039s
sys     0m0.010s

# This step is frozen for ~40 secs, but it can be even slower
real    0m42.637s
user    0m42.884s
sys     0m1.577s

real    0m0.044s
user    0m0.052s
sys     0m0.015s

I've tested it with enry release v 1.1.0 on these OSs:

  • macOS Catalina v. 10.15.5
  • Ubuntu 18.04.3 LTS

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions