[Bug 3757] New: hg crashes because of python's urandom module
mercurial-bugs at selenic.com
mercurial-bugs at selenic.com
Tue Jan 8 03:22:51 CST 2013
http://bz.selenic.com/show_bug.cgi?id=3757
Priority: normal
Bug ID: 3757
CC: mercurial-devel at selenic.com
Assignee: bugzilla at selenic.com
Summary: hg crashes because of python's urandom module
Severity: bug
Classification: Unclassified
OS: Linux
Reporter: ale.fener at gmail.com
Hardware: PC
Status: UNCONFIRMED
Version: 2.3.2
Component: Mercurial
Product: Mercurial
Hello to everybody,
I am not sure this is a bug, I have probably done something wrong with my repo
and I cannot figure out what. This is what happens:
1. For a few commands (like "hg --version" and just "hg") it works
2. For most commands (like "hg commit", and "hg status") Mercurial crashes
since a week or so giving the following error message:
#hg commit
** unknown exception encountered, please report by visiting
** http://mercurial.selenic.com/wiki/BugTracker
** Python 2.6.7 (r267:88850, Oct 17 2011, 10:52:29) [GCC 4.5.1]
** Mercurial Distributed SCM (version 2.3.2)
** Extensions loaded:
Traceback (most recent call last):
File "/usr/bin/hg", line 38, in <module>
mercurial.dispatch.run()
File "/usr/lib/python2.6/site-packages/mercurial/dispatch.py", line 28, in
run
sys.exit((dispatch(request(sys.argv[1:])) or 0) & 255)
File "/usr/lib/python2.6/site-packages/mercurial/dispatch.py", line 65, in
dispatch
return _runcatch(req)
File "/usr/lib/python2.6/site-packages/mercurial/dispatch.py", line 88, in
_runcatch
return _dispatch(req)
File "/usr/lib/python2.6/site-packages/mercurial/dispatch.py", line 740, in
_dispatch
cmdpats, cmdoptions)
File "/usr/lib/python2.6/site-packages/mercurial/dispatch.py", line 514, in
runcommand
ret = _runcommand(ui, options, cmd, d)
File "/usr/lib/python2.6/site-packages/mercurial/dispatch.py", line 830, in
_runcommand
return checkargs()
File "/usr/lib/python2.6/site-packages/mercurial/dispatch.py", line 801, in
checkargs
return cmdfunc()
File "/usr/lib/python2.6/site-packages/mercurial/dispatch.py", line 737, in
<lambda>
d = lambda: util.checksignature(func)(ui, *args, **cmdoptions)
File "/usr/lib/python2.6/site-packages/mercurial/util.py", line 471, in check
return func(*args, **kwargs)
File "/usr/lib/python2.6/site-packages/mercurial/commands.py", line 1324, in
commit
node = cmdutil.commit(ui, repo, commitfunc, pats, opts)
File "/usr/lib/python2.6/site-packages/mercurial/cmdutil.py", line 1565, in
commit
scmutil.match(repo[None], pats, opts), opts)
File "/usr/lib/python2.6/site-packages/mercurial/commands.py", line 1322, in
commitfunc
match, editor=e, extra=extra)
File "/usr/lib/python2.6/site-packages/mercurial/localrepo.py", line 1252, in
commit
changes = self.status(match=match, clean=force)
File "/usr/lib/python2.6/site-packages/mercurial/localrepo.py", line 1576, in
status
if (f not in ctx1 or ctx2.flags(f) != ctx1.flags(f)
File "/usr/lib/python2.6/site-packages/mercurial/context.py", line 974, in
flags
return self._flagfunc(path)
File "/usr/lib/python2.6/site-packages/mercurial/util.py", line 245, in
__get__
result = self.func(obj)
File "/usr/lib/python2.6/site-packages/mercurial/context.py", line 831, in
_flagfunc
return self._repo.dirstate.flagfunc(self._buildflagfunc)
File "/usr/lib/python2.6/site-packages/mercurial/dirstate.py", line 156, in
flagfunc
if self._checklink and self._checkexec:
File "/usr/lib/python2.6/site-packages/mercurial/util.py", line 245, in
__get__
result = self.func(obj)
File "/usr/lib/python2.6/site-packages/mercurial/dirstate.py", line 140, in
_checklink
return util.checklink(self._root)
File "/usr/lib/python2.6/site-packages/mercurial/posix.py", line 133, in
checklink
name = tempfile.mktemp(dir=path, prefix='hg-checklink-')
File "/usr/lib/python2.6/site-packages/mercurial/demandimport.py", line 86,
in __getattribute__
self._load()
File "/usr/lib/python2.6/site-packages/mercurial/demandimport.py", line 58,
in _load
mod = _origimport(head, globals, locals)
File "/usr/lib/python2.6/tempfile.py", line 34, in <module>
from random import Random as _Random
File "/usr/lib/python2.6/site-packages/mercurial/demandimport.py", line 114,
in _demandimport
mod = _origimport(name, globals, locals)
File "/usr/lib/python2.6/random.py", line 873, in <module>
_inst = Random()
File "/usr/lib/python2.6/random.py", line 96, in __init__
self.seed(x)
File "/usr/lib/python2.6/random.py", line 110, in seed
a = long(_hexlify(_urandom(16)), 16)
File "/usr/lib/python2.6/site-packages/mercurial/demandimport.py", line 82,
in __call__
raise TypeError("%s object is not callable" % repr(self))
TypeError: <unloaded module 'urandom'> object is not callable
I have no clue about what to check and I cannot figure out what I changed
lately that made hg crash... could you please help me?
Thank you in advance
Alessandro Mammana
--
You are receiving this mail because:
You are on the CC list for the bug.
More information about the Mercurial-devel
mailing list