New issue 1937: Upgrade from 2.3.1->2.4.0 running specific unit test the
process crash with exit code 139
https://bitbucket.org/pypy/pypy/issue/1937/upgrade-from-231-240-running-specific-unit
Eitan Yanovsky:
We have a bunch of tests which worked fine on all previous versions of pypy.
When we upgrade to version 2.4.0 one of them started to crash always with exit
code 139.
I was able to isolate the problem to the following function:
def normalize_counter(counter):
"""
Returns a normalize representation of the counter in a dictionary
"""
result = {}
counter_sum = sum(counter.itervalues())
for key, count in counter.iteritems():
result[key] = float(count) / counter_sum
return result
If I change the counter.itervalues() to counter.values() the problem is not
reproduced.
I am not able to create a standalone simple reproduction without my entire app.
I tried reproducing by calling this method with the same data which is being
called when the actual failure occur, together with the same order of method
invocation but it doesn't crash.
I hope this provides enough info.
_______________________________________________
pypy-issue mailing list
[email protected]
https://mail.python.org/mailman/listinfo/pypy-issue