Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 639948 - emerge: pygcrypt.errors.GcryptException: (b'Cannot allocate memory', 16810070)
Summary: emerge: pygcrypt.errors.GcryptException: (b'Cannot allocate memory', 16810070)
Status: RESOLVED DUPLICATE of bug 615620
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Python Gentoo Team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2017-12-05 16:15 UTC by Toralf Förster
Modified: 2017-12-05 16:28 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
emerge-info.txt (emerge-info.txt,16.37 KB, text/plain)
2017-12-05 16:16 UTC, Toralf Förster
Details
emerge-history.txt (emerge-history.txt,246.46 KB, text/plain)
2017-12-05 16:16 UTC, Toralf Förster
Details
etc.portage.tbz2 (etc.portage.tbz2,18.42 KB, application/x-bzip)
2017-12-05 16:16 UTC, Toralf Förster
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Toralf Förster gentoo-dev 2017-12-05 16:15:09 UTC
Got the following traceback at the tinderbox image 13.0_20171129-191609 and do wonder what/who to blame ? :




Tue Dec  5 16:45:58 CET 2017

These are the packages that would be merged, in reverse order:

Calculating dependencies  . ... ..... .... done!
[ebuild  N     ] app-emulation/lxd-2.19::gentoo  USE="daemon dnsmasq ipv6 nls {-test}" 0 KiB
[ebuild  N     ]  app-emulation/lxc-2.0.8::gentoo  USE="seccomp -cgmanager -doc -examples -lua -python (-selinux)" PYTHON_TARGETS="python3_5 -python3_4 -python3_6" 0 KiB
[ebuild  N     ]   sys-process/criu-3.6::gentoo  USE="-python (-selinux) -setproctitle -static-libs" PYTHON_TARGETS="python2_7" 0 KiB

Total: 3 packages (3 new), Size of downloads: 0 KiB
>>> Verifying ebuild manifests

>>> Jobs: 0 of 3 complete, 1 running                Load avg: 11.9, 11.6, 11.5
>>> Emerging (1 of 3) sys-process/criu-3.6::gentoo
>>> Jobs: 0 of 3 complete, 1 running                Load avg: 11.9, 11.6, 11.5
>>> Installing (1 of 3) sys-process/criu-3.6::gentoo
>>> Jobs: 0 of 3 complete, 1 running                Load avg: 11.1, 11.5, 11.5
>>> Jobs: 0 of 3 complete                           Load avg: 11.1, 11.5, 11.5
>>> Jobs: 1 of 3 complete                           Load avg: 11.1, 11.4, 11.5
>>> Jobs: 1 of 3 complete, 1 running                Load avg: 11.1, 11.4, 11.5
>>> Emerging (2 of 3) app-emulation/lxc-2.0.8::gentoo
>>> Jobs: 1 of 3 complete, 1 running                Load avg: 11.1, 11.4, 11.5
>>> Installing (2 of 3) app-emulation/lxc-2.0.8::gentoo
>>> Jobs: 1 of 3 complete, 1 running                Load avg: 10.7, 11.5, 11.5
>>> Jobs: 1 of 3 complete                           Load avg: 10.7, 11.5, 11.5
>>> Jobs: 2 of 3 complete                           Load avg: 10.2, 11.4, 11.5
>>> Jobs: 2 of 3 complete, 1 running                Load avg: 10.2, 11.4, 11.5
>>> Emerging (3 of 3) app-emulation/lxd-2.19::gentoo
>>> Jobs: 2 of 3 complete, 1 running                Load avg: 10.2, 11.4, 11.5

Traceback (most recent call last):
  File "/usr/lib/python-exec/python3.5/emerge", line 50, in <module>
    retval = emerge_main()
  File "/usr/lib64/python3.5/site-packages/_emerge/main.py", line 1250, in emerge_main
    return run_action(emerge_config)
  File "/usr/lib64/python3.5/site-packages/_emerge/actions.py", line 3297, in run_action
    retval = action_build(emerge_config, spinner=spinner)
  File "/usr/lib64/python3.5/site-packages/_emerge/actions.py", line 540, in action_build
    retval = mergetask.merge()
  File "/usr/lib64/python3.5/site-packages/_emerge/Scheduler.py", line 1039, in merge
    rval = self._merge()
  File "/usr/lib64/python3.5/site-packages/_emerge/Scheduler.py", line 1444, in _merge
    self._main_loop()
  File "/usr/lib64/python3.5/site-packages/_emerge/Scheduler.py", line 1422, in _main_loop
    self._event_loop.iteration()
  File "/usr/lib64/python3.5/site-packages/portage/util/_eventloop/EventLoop.py", line 333, in iteration
    if not x.callback(f, event, *x.args):
  File "/usr/lib64/python3.5/site-packages/portage/util/_async/PipeLogger.py", line 92, in _output_handler
    self.wait()
  File "/usr/lib64/python3.5/site-packages/_emerge/AsynchronousTask.py", line 57, in wait
    self._wait_hook()
  File "/usr/lib64/python3.5/site-packages/_emerge/AsynchronousTask.py", line 175, in _wait_hook
    self._exit_listener_stack.pop()(self)
  File "/usr/lib64/python3.5/site-packages/_emerge/SpawnProcess.py", line 173, in _pipe_logger_exit
    self._async_waitpid()
  File "/usr/lib64/python3.5/site-packages/_emerge/SubProcess.py", line 113, in _async_waitpid
    self.pid, self._async_waitpid_cb)
  File "/usr/lib64/python3.5/site-packages/portage/util/_eventloop/EventLoop.py", line 411, in child_watch_add
    self._poll_child_processes()
  File "/usr/lib64/python3.5/site-packages/portage/util/_eventloop/EventLoop.py", line 455, in _poll_child_processes
    x.callback(x.pid, wait_retval[1], x.data)
  File "/usr/lib64/python3.5/site-packages/_emerge/SubProcess.py", line 119, in _async_waitpid_cb
    self.wait()
  File "/usr/lib64/python3.5/site-packages/_emerge/AsynchronousTask.py", line 57, in wait
    self._wait_hook()
  File "/usr/lib64/python3.5/site-packages/_emerge/AsynchronousTask.py", line 175, in _wait_hook
    self._exit_listener_stack.pop()(self)
  File "/usr/lib64/python3.5/site-packages/_emerge/EbuildPhase.py", line 270, in _ebuild_exit
    self.wait()
  File "/usr/lib64/python3.5/site-packages/_emerge/AsynchronousTask.py", line 57, in wait
    self._wait_hook()
  File "/usr/lib64/python3.5/site-packages/_emerge/AsynchronousTask.py", line 175, in _wait_hook
    self._exit_listener_stack.pop()(self)
  File "/usr/lib64/python3.5/site-packages/_emerge/EbuildBuild.py", line 204, in _pre_clean_exit
    already_fetched = fetcher.already_fetched(self.settings)
  File "/usr/lib64/python3.5/site-packages/_emerge/EbuildFetcher.py", line 83, in already_fetched
    mydigests, eout, show_errors=False, hash_filter=hash_filter)
  File "/usr/lib64/python3.5/site-packages/portage/package/ebuild/fetch.py", line 226, in _check_distfile
    if _check_digests(filename, digests, show_errors=show_errors):
  File "/usr/lib64/python3.5/site-packages/portage/package/ebuild/fetch.py", line 184, in _check_digests
    verified_ok, reason = verify_all(filename, digests)
  File "/usr/lib64/python3.5/site-packages/portage/checksum.py", line 466, in verify_all
    myhash = perform_checksum(filename, x, calc_prelink=calc_prelink)[0]
  File "/usr/lib64/python3.5/site-packages/portage/checksum.py", line 524, in perform_checksum
    myhash, mysize = hashfunc_map[hashname].checksum_file(myfilename)
  File "/usr/lib64/python3.5/site-packages/portage/checksum.py", line 87, in checksum_file
    checksum = self._hashobject()
  File "/usr/lib64/python3.5/site-packages/portage/checksum.py", line 160, in __init__
    self._obj = pygcrypt.hashcontext.HashContext(algo=algo)
  File "/usr/lib64/python3.5/site-packages/pygcrypt/hashcontext.py", line 54, in __init__
    raise errors.GcryptException(ffi.string(lib.gcry_strerror(error)), error)
pygcrypt.errors.GcryptException: (b'Cannot allocate memory', 16810070)
Comment 1 Toralf Förster gentoo-dev 2017-12-05 16:16:33 UTC
amd64 chroot image 13.0_20171129-191609:
Comment 2 Toralf Förster gentoo-dev 2017-12-05 16:16:36 UTC
Created attachment 508260 [details]
emerge-info.txt
Comment 3 Toralf Förster gentoo-dev 2017-12-05 16:16:39 UTC
Created attachment 508262 [details]
emerge-history.txt
Comment 4 Toralf Förster gentoo-dev 2017-12-05 16:16:42 UTC
Created attachment 508264 [details]
etc.portage.tbz2
Comment 5 Michał Górny archtester Gentoo Infrastructure gentoo-dev Security 2017-12-05 16:28:56 UTC
As a workaround, uninstall pygcrypt.

*** This bug has been marked as a duplicate of bug 615620 ***