trying to make tracebacks reproducible

Christian Ebert blacktrash at gmx.net
Thu Jul 1 19:12:44 CDT 2010


* Martin Geisler on Thursday, July 01, 2010 at 23:33:24 +0200
> Christian Ebert <blacktrash at gmx.net> writes:
>> Since a few days -- sorry for being vague, but this is actually
>> part of the problem, I _sometimes_ get tracebacks with
>> crew-stable (basically 1.6 I'd say). I cannot reproduce them
>> "reliably", i.e. in the following example, I reissued the command
>> and got the diff as expected. I can reduce the loaded extensions
>> etc. but I'd like to reproduce this reliably first. It seems to
>> happen at random - well, in the true sense of the word, if you
>> look at the final lines of the traceback.
> 
> Heh, nice one :-)
> 
>> I'd be grateful for any ideas.
> 
>>    mod = _origimport(name, globals, locals)
>>  File "/sw/lib/python2.6/random.py", line 59, in <module>
>>    LOG4 = _log(4.0)
>> ValueError: math domain error
> 
> Can you make it fail if you do something like
> 
>   while python -c 'import random; print random.LOG4'; do done

That's evil!

Yes, I can/could. After rebooting the problem has gone away.
Probably I overtortured my machine with multithreaded video
conversion. Well, let's hope this is not a sign of senility - of
the machine I mean.

> The error looks quite strange to me -- there should be nothing fishy
> about taking the natural logarithm of 4.0 :-)

And now, additionally, I have to read up on what a natural
logarithm is. Things like that do not come naturally to me.

Thanks.

c
-- 
\black\trash movie               _S A M E_  _T I M E_  _S A M E_  _P L A C E_
                          --->> http://www.blacktrash.org/underdogma/stsp.php
\black\trash audio   _A N O T H E R_  _T I M E_  _A N O T H E R_  _P L A C E_
                         --->> http://www.blacktrash.org/underdogma/atap.html


More information about the Mercurial-devel mailing list