[pypy-dev] Problems translating PyPy to Java

Jan Wedel Jan.Wedel at ettex.de
Wed Oct 7 16:40:39 CEST 2009


Hi,

sorry I was mistaken. There is a trace indeed! My bad...

[translation:ERROR] Error:
[translation:ERROR]  Traceback (most recent call last):
[translation:ERROR]    File "C:\Dokumente und Einstellungen\Jan 
Wedel\Eigene Dat
eien\repo\trunk\rialto\tools\pypy-1.1.0\pypy\translator\goal\translate.p
y", line
 273, in main
[translation:ERROR]     drv.proceed(goals)
[translation:ERROR]    File "C:\Dokumente und Einstellungen\Jan 
Wedel\Eigene Dat
eien\repo\trunk\rialto\tools\pypy-1.1.0\pypy\translator\driver.py", line 
704, in
 proceed
[translation:ERROR]     return self._execute(goals, task_skip = 
self._maybe_skip
())
[translation:ERROR]    File "C:\Dokumente und Einstellungen\Jan 
Wedel\Eigene Dat
eien\repo\trunk\rialto\tools\pypy-1.1.0\pypy\translator\tool\taskengine.
py", lin
e 116, in _execute
[translation:ERROR]     res = self._do(goal, taskcallable, *args, 
**kwds)
[translation:ERROR]    File "C:\Dokumente und Einstellungen\Jan 
Wedel\Eigene Dat
eien\repo\trunk\rialto\tools\pypy-1.1.0\pypy\translator\driver.py", line 
267, in
 _do
[translation:ERROR]     res = func()
[translation:ERROR]    File "C:\Dokumente und Einstellungen\Jan 
Wedel\Eigene Dat
eien\repo\trunk\rialto\tools\pypy-1.1.0\pypy\translator\driver.py", line 
395, in
 task_backendopt_ootype
[translation:ERROR]     backend_optimizations(self.translator)
[translation:ERROR]    File "C:\Dokumente und Einstellungen\Jan 
Wedel\Eigene Dat
eien\repo\trunk\rialto\tools\pypy-1.1.0\pypy\translator\backendopt\all.p
y", line
 80, in backend_optimizations
[translation:ERROR]     inline_heuristic=heuristic)
[translation:ERROR]    File "C:\Dokumente und Einstellungen\Jan 
Wedel\Eigene Dat
eien\repo\trunk\rialto\tools\pypy-1.1.0\pypy\translator\backendopt\all.p
y", line
 156, in inline_malloc_removal_phase
[translation:ERROR]     call_count_pred=call_count_pred)
[translation:ERROR]    File "C:\Dokumente und Einstellungen\Jan 
Wedel\Eigene Dat
eien\repo\trunk\rialto\tools\pypy-1.1.0\pypy\translator\backendopt\inlin
e.py", l
ine 779, in auto_inline_graphs
[translation:ERROR]     call_count_pred=call_count_pred)
[translation:ERROR]    File "C:\Dokumente und Einstellungen\Jan 
Wedel\Eigene Dat
eien\repo\trunk\rialto\tools\pypy-1.1.0\pypy\translator\backendopt\inlin
e.py", l
ine 750, in auto_inlining
[translation:ERROR]     call_count_pred, cleanup=False)
[translation:ERROR]    File "C:\Dokumente und Einstellungen\Jan 
Wedel\Eigene Dat
eien\repo\trunk\rialto\tools\pypy-1.1.0\pypy\translator\backendopt\inlin
e.py", l
ine 108, in inline_function
[translation:ERROR]     return inliner.inline_all()
[translation:ERROR]    File "C:\Dokumente und Einstellungen\Jan 
Wedel\Eigene Dat
eien\repo\trunk\rialto\tools\pypy-1.1.0\pypy\translator\backendopt\inlin
e.py", l
ine 217, in inline_all
[translation:ERROR]     self.inline_once(block, index_operation)
[translation:ERROR]    File "C:\Dokumente und Einstellungen\Jan 
Wedel\Eigene Dat
eien\repo\trunk\rialto\tools\pypy-1.1.0\pypy\translator\backendopt\inlin
e.py", l
ine 244, in inline_once
[translation:ERROR]     self.translator, self.raise_analyzer):
[translation:ERROR]    File "C:\Dokumente und Einstellungen\Jan 
Wedel\Eigene Dat
eien\repo\trunk\rialto\tools\pypy-1.1.0\pypy\translator\backendopt\inlin
e.py", l
ine 160, in any_call_to_raising_graphs
[translation:ERROR]     if does_raise_directly(graph_or_something, 
raise_analyze
r):
[translation:ERROR]    File "C:\Dokumente und Einstellungen\Jan 
Wedel\Eigene Dat
eien\repo\trunk\rialto\tools\pypy-1.1.0\pypy\translator\backendopt\inlin
e.py", l
ine 153, in does_raise_directly
[translation:ERROR]     if raise_analyzer.can_raise(op):
[translation:ERROR]    File "C:\Dokumente und Einstellungen\Jan 
Wedel\Eigene Dat
eien\repo\trunk\rialto\tools\pypy-1.1.0\pypy\translator\backendopt\canra
ise.py",
 line 33, in can_raise
[translation:ERROR]     return self.analyze(op, seen)
[translation:ERROR]    File "C:\Dokumente und Einstellungen\Jan 
Wedel\Eigene Dat
eien\repo\trunk\rialto\tools\pypy-1.1.0\pypy\translator\backendopt\graph
analyze.
py", line 38, in analyze
[translation:ERROR]     return self.analyze_external_call(op)
[translation:ERROR]    File "C:\Dokumente und Einstellungen\Jan 
Wedel\Eigene Dat
eien\repo\trunk\rialto\tools\pypy-1.1.0\pypy\translator\backendopt\canra
ise.py",
 line 21, in analyze_external_call
[translation:ERROR]     fnobj = deref(op.args[0].value)
[translation:ERROR]    File "C:\Dokumente und Einstellungen\Jan 
Wedel\Eigene Dat
eien\repo\trunk\rialto\tools\pypy-1.1.0\pypy\rpython\typesystem.py", 
line 153, i
n deref
[translation:ERROR]     assert isinstance(ootype.typeOf(obj), 
ootype.OOType)
[translation:ERROR]  AssertionError
[translation] start debugger...
> c:\dokumente und einstellungen\jan wedel\eigene 
dateien\repo\trunk\rialto\tool
s\pypy-1.1.0\pypy\rpython\typesystem.py(153)deref()
-> assert isinstance(ootype.typeOf(obj), ootype.OOType)
(Pdb+) exit

-----Ursprüngliche Nachricht-----
Von: Amaury Forgeot d'Arc [mailto:amauryfa at gmail.com] 
Gesendet: Mittwoch, 7. Oktober 2009 15:22
An: Jan Wedel
Cc: pypy-dev at codespeak.net
Betreff: Re: [pypy-dev] Problems translating PyPy to Java

2009/10/7 Jan Wedel <Jan.Wedel at ettex.de>:
>
>> More interesting is the last traceback, but your post truncated it.
>> Can you provide a full traceback?
>
> Actually...no! There is no traceback except what I posted. After this
> line, its an unknown (at least to me) debugger and displays a promp
> which I exited by typing "exit".

Err... no exception type, no message...
maybe some kind of out-of-memory condition?

-- 
Amaury Forgeot d'Arc





More information about the Pypy-dev mailing list