[pypy-dev] Bug in lltypesystem

2006-03-23 Thread Antonio Cuni
Hi, I've just found a bug in lltypesystem; to reproduce type the following in translatorshell.py: from __future__ import division def bug(x,y): ... return x/y ... t = Translation(bug) t.annotate([int, int]) [cut] t.rtype() [translation:info] already done: Annotatingsimplifying

Re: [pypy-dev] Re: GC problems with PyObject

2006-03-23 Thread Christian Tismer
Michael Hudson wrote: What doesn't work? I changed NEED_OLD_EXTRA_REFS to False and the c tests still run fine. Ah! yes :-)) There are no C tests at all which involve embedded PyObjects. When we access arrays or structs with PyObjects, we get into trouble. Will check in a test (unless I

[pypy-dev] Tracked it a bit down Re: GC problems with PyObject

2006-03-23 Thread Christian Tismer
Christian Tismer wrote: Michael Hudson wrote: What doesn't work? I changed NEED_OLD_EXTRA_REFS to False and the c tests still run fine. see test_genc: # this test crashes after 30 runs on my XP machine def test_refcount_pyobj(): def prob_with_pyobj(a=int, b=int): return 2, 3,