I also have a similar kind of problem when doing some unrelated xml parsing
tests using LightXML today. My code hasn't changed. The stack trace
suggests it's not LightXML related but more how the type inference got
confused.
Strangely enough, as long as I repeat the function call with the same
object arguments. It'd run further into the code and get the similar kind
of stack trace again. Repeating once more, the problem goes away.
This is using the following julia nightlies:
Julia Version 0.3.0-prerelease+3381
Commit ddf4197* (2014-06-02 13:19 UTC)
Platform Info:
System: Darwin (x86_64-apple-darwin12.5.0)
CPU: Intel(R) Core(TM)2 Duo CPU E7600 @ 3.06GHz
WORD_SIZE: 64
BLAS: libgfortblas
LAPACK: liblapack
LIBM: libopenlibm
typical stack trace:
ERROR: type: subtype: expected Type{T<:Top}, got Symbol
in tchanged at inference.jl:1136 (repeats 2 times)
in typeinf at inference.jl:1436
in typeinf at inference.jl:1526
in abstract_call_gf at inference.jl:697
in abstract_call at inference.jl:757
in abstract_eval_call at inference.jl:888
in abstract_eval at inference.jl:976
in abstract_interpret at inference.jl:1082
in typeinf at inference.jl:1336
in typeinf at inference.jl:1363
in abstract_call_gf at inference.jl:697
in abstract_call at inference.jl:757
in abstract_eval_call at inference.jl:888
in abstract_eval at inference.jl:976
in abstract_interpret at inference.jl:1071
in typeinf at inference.jl:1336
in typeinf at inference.jl:1363
in abstract_call_gf at inference.jl:697
in abstract_call at inference.jl:757
in abstract_eval_call at inference.jl:888
in abstract_eval at inference.jl:976
in abstract_interpret at inference.jl:1082
in typeinf at inference.jl:1336
in typeinf at inference.jl:1363
in abstract_call_gf at inference.jl:697
in abstract_call at inference.jl:757
in abstract_eval_call at inference.jl:888
in abstract_eval at inference.jl:976
in abstract_interpret at inference.jl:1071
in typeinf at inference.jl:1332
in typeinf at inference.jl:1526
in abstract_call_gf at inference.jl:697
in abstract_call at inference.jl:757
in abstract_eval_call at inference.jl:888
in abstract_eval at inference.jl:976
in abstract_interpret at inference.jl:1082
in typeinf at inference.jl:1332
in typeinf at inference.jl:1526
in abstract_call_gf at inference.jl:697
in abstract_call at inference.jl:757
in abstract_eval_call at inference.jl:888
in abstract_eval at inference.jl:976
in abstract_eval_arg at inference.jl:848
in typeinf at inference.jl:1363
in typeinf at inference.jl:1526
in abstract_call_gf at inference.jl:697
in abstract_call at inference.jl:757
in abstract_eval_call at inference.jl:888
in abstract_eval at inference.jl:976
in abstract_interpret at inference.jl:1082
in typeinf at inference.jl:1332
in typeinf at inference.jl:1526
in typeinf_ext at inference.jl:1196
in include at boot.jl:244
while loading /Users/tonyfong/Dropbox/Julia/ICJ/test/xml.jl, in expression
starting on line 62
On Monday, June 2, 2014 9:34:05 PM UTC+7, David Einstein wrote:
>
> Last night I got julia into a state where
>
> julia> typeof([i for i = 1:10])
> Array{Any,1}
>
> restarting julia cured this (it went back to being an Int array).
>
> Does anyone have any idea what would cause this?
>