JuliaDebug / Gallium.jl

The Julia debugger
Other
174 stars 23 forks source link

Tests fail on v0.5 #145

Closed ranjanan closed 8 years ago

ranjanan commented 8 years ago

Pkg.test("Gallium") (the latest tagged version and after checking out JuliaParser) gives:

ERROR: LoadError: LoadError: AssertionError: data != nothing
 in retrieve_obj_data(::Gallium.LocalSession, ::UInt64) at /Users/ranjan/.julia/v0.5/Gallium/src/modules.jl:253
 in find_module(::Gallium.LocalSession, ::Gallium.LazyJITModules, ::UInt64) at /Users/ranjan/.julia/v0.5/Gallium/src/modules.jl:267
 in #unwind_step#11(::Bool, ::Bool, ::Function, ::Gallium.LocalSession, ::Gallium.LazyJITModules, ::Gallium.X86_64.BasicRegs, ::Void) at /Users/ranjan/.julia/v0.5/Gallium/src/unwind.jl:247
 in (::Gallium.Unwinder.#kw##unwind_step)(::Array{Any,1}, ::Gallium.Unwinder.#unwind_step, ::Gallium.LocalSession, ::Gallium.LazyJITModules, ::Gallium.X86_64.BasicRegs, ::Void) at ./<missing>:0
 in #rec_backtrace#47(::Bool, ::Function, ::Gallium.##45#46{Array{UInt64,1}}, ::Gallium.X86_64.BasicRegs, ::Gallium.LocalSession, ::Gallium.LazyJITModules, ::Bool, ::Void) at /Users/ranjan/.julia/v0.5/Gallium/src/Gallium.jl:264
 in rec_backtrace(::Gallium.X86_64.BasicRegs) at /Users/ranjan/.julia/v0.5/Gallium/src/Gallium.jl:256
 in (::##5#6)(::Gallium.Hooking.Hook, ::Gallium.X86_64.BasicRegs) at /Users/ranjan/.julia/v0.5/Gallium/test/Hooking.jl:29
 in _callback(::Ptr{Void}) at /Users/ranjan/.julia/v0.5/Gallium/src/Hooking/Hooking.jl:272
 in callback(::Ptr{Void}) at /Users/ranjan/.julia/v0.5/Gallium/src/Hooking/Hooking.jl:299
 in bigfib(::Int64) at /Users/ranjan/.julia/v0.5/Gallium/test/Hooking.jl:0
 in include_from_node1(::String) at ./loading.jl:426 (repeats 2 times)
 in process_options(::Base.JLOptions) at ./client.jl:262
 in _start() at ./client.jl:318
while loading /Users/ranjan/.julia/v0.5/Gallium/test/Hooking.jl, in expression starting on line 35
while loading /Users/ranjan/.julia/v0.5/Gallium/test/runtests.jl, in expression starting on line 2

versioninfo():

Julia Version 0.5.0-rc0+155
Commit a1101ec* (2016-08-04 05:49 UTC)
Platform Info:
  System: Darwin (x86_64-apple-darwin15.4.0)
  CPU: Intel(R) Core(TM) i5-5257U CPU @ 2.70GHz
  WORD_SIZE: 64
  BLAS: libopenblas (USE64BITINT DYNAMIC_ARCH NO_AFFINITY Haswell)
  LAPACK: libopenblas64_
  LIBM: libopenlibm
  LLVM: libLLVM-3.7.1 (ORCJIT, broadwell)
ranjanan commented 8 years ago

using Gallium on the latest Gallium master gives:

ERROR: InitError: MethodError: Cannot `convert` an object of type UInt64 to an object of type Gallium.RemotePtr{Void}
This may have arisen from a call to the constructor Gallium.RemotePtr{Void}(...),
since type constructors fall back to convert methods.
 in setindex!(::Dict{Gallium.RemotePtr{Void},Any}, ::Gallium.Module{MachO.MachOHandle{Base.AbstractIOBuffer{Array{UInt8,1}}},MachO.SectionRef{MachO.MachOHandle{Base.AbstractIOBuffer{Array{UInt8,1}}},MachO.section_64}}, ::UInt64) at ./dict.jl:611
 in update_module!(::Gallium.LocalSession, ::Gallium.LazyJITModules{Dict{Gallium.RemotePtr{Void},Any}}, ::UInt64, ::String) at /Users/ranjan/.julia/v0.5/Gallium/src/modules.jl:192
 in update_shlibs!(::Gallium.LocalSession, ::Gallium.LazyJITModules{Dict{Gallium.RemotePtr{Void},Any}}) at /Users/ranjan/.julia/v0.5/Gallium/src/modules.jl:213
 in __init__() at /Users/ranjan/.julia/v0.5/Gallium/src/Gallium.jl:874
 in _require_from_serialized(::Int64, ::Symbol, ::String, ::Bool) at ./loading.jl:174
 in _require_from_serialized(::Int64, ::Symbol, ::Bool) at ./loading.jl:202
 in require(::Symbol) at ./loading.jl:332
during initialization of module Gallium
Keno commented 8 years ago

Mac error is fixed in the latest commit.