PID check failed. RNG must be re-initialized after fork(). Hint: Try Random.atfork()

Bug #528436 reported by Vincent Ladeuil
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Bazaar
Fix Released
Undecided
Vincent Ladeuil

Bug Description

Test failure on FreeBSD8, see:

FailedConsole Output
View as plain text
Skipping 2,430 KB.. Full Log

FAIL: bzrlib.tests.test_transport.TestSSHConnections.test_bzr_connect_to_bzr_ssh
----------------------------------------------------------------------
_StringException: Text attachment: log
------------
2315.754 failed to load system host keys: [Errno 2] No such file or directory: '/tmp/testbzr-i06S1H.tmp/bzrlib.tests.test_transport.TestSSHConnections.test_bzr_connect_to_bzr_ssh/home/.ssh/known_hosts'
2315.754 failed to load bzr host keys: [Errno 2] No such file or directory: '/tmp/testbzr-i06S1H.tmp/bzrlib.tests.test_transport.TestSSHConnections.test_bzr_connect_to_bzr_ssh/home/.bazaar/ssh_host_keys'
2315.755 creating config directory: '/tmp/testbzr-i06S1H.tmp/bzrlib.tests.test_transport.TestSSHConnections.test_bzr_connect_to_bzr_ssh/home/.bazaar'
   DEBUG starting thread (client mode): 0x2a7994d0L
    INFO Connected (version 2.0, client paramiko_1.7.6)
   ERROR Unknown exception: PID check failed. RNG must be re-initialized after fork(). Hint: Try Random.atfork()
   ERROR Traceback (most recent call last):
   ERROR File "/usr/local/lib/python2.5/site-packages/paramiko/transport.py", line 1517, in run
   ERROR self._send_kex_init()
   ERROR File "/usr/local/lib/python2.5/site-packages/paramiko/transport.py", line 1682, in _send_kex_init
   ERROR m.add_bytes(randpool.get_bytes(16))
   ERROR File "/usr/local/lib/python2.5/site-packages/paramiko/rng.py", line 104, in get_bytes
   ERROR randpool_data = self.randpool.get_bytes(N)
   ERROR File "/usr/local/lib/python2.5/site-packages/Crypto/Util/randpool.py", line 47, in get_bytes
   ERROR return self.__rng.read(N)
   ERROR File "/usr/local/lib/python2.5/site-packages/Crypto/Random/_UserFriendlyRNG.py", line 185, in read
   ERROR return self._singleton.read(bytes)
   ERROR File "/usr/local/lib/python2.5/site-packages/Crypto/Random/_UserFriendlyRNG.py", line 161, in read
   ERROR return _UserFriendlyRNG.read(self, bytes)
   ERROR File "/usr/local/lib/python2.5/site-packages/Crypto/Random/_UserFriendlyRNG.py", line 120, in read
   ERROR self._check_pid()
   ERROR File "/usr/local/lib/python2.5/site-packages/Crypto/Random/_UserFriendlyRNG.py", line 136, in _check_pid
   ERROR raise AssertionError("PID check failed. RNG must be re-initialized after fork(). Hint: Try Random.atfork()")
   ERROR AssertionError: PID check failed. RNG must be re-initialized after fork(). Hint: Try Random.atfork()
   ERROR
------------
Text attachment: traceback
------------
Traceback (most recent call last):
  File "/home/babune/lib/python/testtools/runtest.py", line 128, in _run_user
    return fn(*args)
  File "/home/babune/lib/python/testtools/testcase.py", line 369, in _run_test_method
    testMethod()
  File "/usr/home/babune/babune/slaves/freebsd8.local/workspace/selftest-matrix/label/freebsd8.local/bzrlib/tests/test_transport.py", line 977, in test_bzr_connect_to_bzr_ssh
    t.mkdir('foo')
  File "/usr/home/babune/babune/slaves/freebsd8.local/workspace/selftest-matrix/label/freebsd8.local/bzrlib/transport/remote.py", line 242, in mkdir
    self._serialise_optional_mode(mode))
  File "/usr/home/babune/babune/slaves/freebsd8.local/workspace/selftest-matrix/label/freebsd8.local/bzrlib/transport/remote.py", line 182, in _call2
    return self._client.call(method, *args)
  File "/usr/home/babune/babune/slaves/freebsd8.local/workspace/selftest-matrix/label/freebsd8.local/bzrlib/smart/client.py", line 132, in call
    result, protocol = self.call_expecting_body(method, *args)
  File "/usr/home/babune/babune/slaves/freebsd8.local/workspace/selftest-matrix/label/freebsd8.local/bzrlib/smart/client.py", line 145, in call_expecting_body
    method, args, expect_response_body=True)
  File "/usr/home/babune/babune/slaves/freebsd8.local/workspace/selftest-matrix/label/freebsd8.local/bzrlib/smart/client.py", line 90, in _call_and_read_response
    readv_body=readv_body, body_stream=body_stream)
  File "/usr/home/babune/babune/slaves/freebsd8.local/workspace/selftest-matrix/label/freebsd8.local/bzrlib/smart/client.py", line 63, in _send_request
    encoder.call(method, *args)
  File "/usr/home/babune/babune/slaves/freebsd8.local/workspace/selftest-matrix/label/freebsd8.local/bzrlib/smart/protocol.py", line 1302, in call
    self._write_end()
  File "/usr/home/babune/babune/slaves/freebsd8.local/workspace/selftest-matrix/label/freebsd8.local/bzrlib/smart/protocol.py", line 1127, in _write_end
    self.flush()
  File "/usr/home/babune/babune/slaves/freebsd8.local/workspace/selftest-matrix/label/freebsd8.local/bzrlib/smart/protocol.py", line 1093, in flush
    self._real_write_func(''.join(self._buf))
  File "/usr/home/babune/babune/slaves/freebsd8.local/workspace/selftest-matrix/label/freebsd8.local/bzrlib/smart/medium.py", line 398, in accept_bytes
    self._accept_bytes(bytes)
  File "/usr/home/babune/babune/slaves/freebsd8.local/workspace/selftest-matrix/label/freebsd8.local/bzrlib/smart/medium.py", line 925, in _accept_bytes
    self._medium._accept_bytes(bytes)
  File "/usr/home/babune/babune/slaves/freebsd8.local/workspace/selftest-matrix/label/freebsd8.local/bzrlib/smart/medium.py", line 779, in _accept_bytes
    self._ensure_connection()
  File "/usr/home/babune/babune/slaves/freebsd8.local/workspace/selftest-matrix/label/freebsd8.local/bzrlib/smart/medium.py", line 803, in _ensure_connection
    '--directory=/', '--allow-writes'])
  File "/usr/home/babune/babune/slaves/freebsd8.local/workspace/selftest-matrix/label/freebsd8.local/bzrlib/transport/ssh.py", line 338, in connect_ssh
    t = self._connect(username, password, host, port)
  File "/usr/home/babune/babune/slaves/freebsd8.local/workspace/selftest-matrix/label/freebsd8.local/bzrlib/transport/ssh.py", line 291, in _connect
    t.start_client()
  File "/usr/local/lib/python2.5/site-packages/paramiko/transport.py", line 458, in start_client
    raise e
AssertionError: PID check failed. RNG must be re-initialized after fork(). Hint: Try Random.atfork()

Tags: babune

Related branches

Vincent Ladeuil (vila)
Changed in bzr:
status: New → Confirmed
tags: added: babune
Vincent Ladeuil (vila)
Changed in bzr:
assignee: nobody → Vincent Ladeuil (vila)
Vincent Ladeuil (vila)
Changed in bzr:
status: Confirmed → In Progress
Vincent Ladeuil (vila)
Changed in bzr:
milestone: none → 2.2b3
status: In Progress → Fix Released
Revision history for this message
Philipp Keller (philipp-keller-gmail) wrote :

I'm not using bzr but I found out that downgrading to pycrypto 2.0.1 does the trick

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.