Coder Social home page Coder Social logo

Comments (3)

AlDanial avatar AlDanial commented on July 17, 2024

I'm unable to duplicate this issue on Ubuntu 24.04 LTS. I cloned the repo then

dotgov-data » cloc .
      23 text files.
      21 unique files.                              
       3 files ignored.

github.com/AlDanial/cloc v 2.01  T=0.76 s (27.6 files/s, 444008.6 lines/s)
-------------------------------------------------------------------------------
Language                     files          blank        comment           code
-------------------------------------------------------------------------------
CSV                             10              0              0         305072
Text                             1              0              0          32222
Markdown                         5             39              0             56
YAML                             3              2              1             56
Bourne Shell                     1              0              0              6
JSON                             1              0              0              1
-------------------------------------------------------------------------------
SUM:                            21             41              1         337413
-------------------------------------------------------------------------------

dotgov-data » wc dotgov-websites/pulse-subdomains-snapshot-06-08-2020-https.json       
       0    75980 13071784 dotgov-websites/pulse-subdomains-snapshot-06-08-2020-https.json

dotgov-data » cloc dotgov-websites/pulse-subdomains-snapshot-06-08-2020-https.json
       1 text file.
       1 unique file.                              
       0 files ignored.

github.com/AlDanial/cloc v 2.01  T=0.55 s (1.8 files/s, 1.8 lines/s)
-------------------------------------------------------------------------------
Language                     files          blank        comment           code
-------------------------------------------------------------------------------
JSON                             1              0              0              1
-------------------------------------------------------------------------------

Possibly a memory issue? My machine has 64 GB.

from cloc.

includesec-erik avatar includesec-erik commented on July 17, 2024

@AlDanial I'm sorry for wasting your time this weekend, it is exactly as you describe, this was an ephemeral instance of Ubuntu from our internal pentest VM cluster that only had 1GB RAM.

Confirmed via:

root@ip-10-0-2-41:~# dmesg -T | egrep -i 'killed process'
[Sat May 25 08:52:20 2024] Out of memory: Killed process 34447 (perl) total-vm:719368kB, anon-rss:622152kB, file-rss:2304kB, shmem-rss:0kB, UID:1000 pgtables:1348kB oom_score_adj:0
[Sat May 25 08:54:40 2024] Out of memory: Killed process 34450 (perl) total-vm:718184kB, anon-rss:620808kB, file-rss:2176kB, shmem-rss:0kB, UID:1000 pgtables:1332kB oom_score_adj:0

If there is any opportunity to improve the UX with better messaging around OOM Killed processes that'd be great, otherwise closing this out as a non-issue.

from cloc.

AlDanial avatar AlDanial commented on July 17, 2024

Perl's built-in exception handling is kind of lame so even if I knew where the memory fault happened, it isn't clear I'd be able to do much about it. If you rerun on the VM with -v 3 you might be able to see which subroutine the code was running when it was killed.

from cloc.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.