Nomossa segfaults (on large files?)
https://sentry.softwareheritage.org/organizations/swh/issues/104695/?referrer=phabricator_plugin
CalledProcessError: Command '['nomossa', '/tmp/swh/indexer.fossology.license/tmpcfn5b6ok/4a27065677e2b22049ef1f56c3efdba458b4cb8b']' died with <Signals.SIGSEGV: 11>.
File "swh/indexer/fossology_license.py", line 37, in compute_license
properties = subprocess.check_output(["nomossa", path], universal_newlines=True)
File "subprocess.py", line 420, in check_output
return run(*popenargs, stdout=PIPE, timeout=timeout, check=True,
File "subprocess.py", line 524, in run
raise CalledProcessError(retcode, process.args,
Problem during license detection for sha1 4a27065677e2b22049ef1f56c3efdba458b4cb8b
4a27065677e2b22049ef1f56c3efdba458b4cb8b is 256MB, so it probably made the container run out of memory, and nomossa probably does not handle OOM properly.
Migrated from T4584 (view on Phabricator)