Skip to content
This repository was archived by the owner on Feb 13, 2024. It is now read-only.
This repository was archived by the owner on Feb 13, 2024. It is now read-only.

README example fails: "no method matching copy(::Void)" #52

@StefanKarpinski

Description

@StefanKarpinski
julia> using Gallium
WARNING: module Lexer should explicitly import  from Base

julia> include(Pkg.dir("Gallium/examples/testprograms/misc.jl"))
inaloop (generic function with 1 method)

julia> Gallium.breakpoint(sinthesin,Tuple{Int64})
Hooking.Hook(Ptr{Void} @0x0000000319e72000,UInt8[0x55,0x48,0x89,0xe5,0x53,0x50,0x48,0xbb,0xe0,0xcb,0xe5,0x19,0x03,0x00,0x00,0x00],Gallium.breakpoint_hit)

julia> inaloop(2)
ERROR: MethodError: no method matching copy(::Void)
 in (::Gallium.##5#6)(::Array{UInt8,1}) at /Users/stefan/.julia/v0.5/Gallium/src/Gallium.jl:142
 in rec_backtrace(::Gallium.##5#6, ::Hooking.RegisterContext) at /Users/stefan/.julia/v0.5/Hooking/src/backtraces.jl:54
 in stackwalk(::Hooking.RegisterContext) at /Users/stefan/.julia/v0.5/Gallium/src/Gallium.jl:134
 in breakpoint_hit(::Hooking.Hook, ::Hooking.RegisterContext) at /Users/stefan/.julia/v0.5/Gallium/src/Gallium.jl:224
 in _callback(::Ptr{Void}) at /Users/stefan/.julia/v0.5/Hooking/src/Hooking.jl:129
 in callback(::Ptr{Void}) at /Users/stefan/.julia/v0.5/Hooking/src/Hooking.jl:160
 in sinthesin(::Int64) at /Users/stefan/.julia/v0.5/Gallium/examples/testprograms/misc.jl:0
 in eval(::Module, ::Any) at ./boot.jl:243

julia> versioninfo()
Julia Version 0.5.0-dev+3192
Commit fdbcdf7 (2016-03-17 14:33 UTC)
Platform Info:
  System: Darwin (x86_64-apple-darwin15.3.0)
  CPU: Intel(R) Core(TM) i7-3770 CPU @ 3.40GHz
  WORD_SIZE: 64
  BLAS: libopenblas (USE64BITINT DYNAMIC_ARCH NO_AFFINITY Sandybridge)
  LAPACK: libopenblas64_
  LIBM: libopenlibm
  LLVM: libLLVM-3.7.1 (ORCJIT, ivybridge)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions