{"action":"opened","issue":{"url":"https://api.github.com/repos/Keno/Gallium.jl/issues/130","repository_url":"https://api.github.com/repos/Keno/Gallium.jl","labels_url":"https://api.github.com/repos/Keno/Gallium.jl/issues/130/labels{/name}","comments_url":"https://api.github.com/repos/Keno/Gallium.jl/issues/130/comments","events_url":"https://api.github.com/repos/Keno/Gallium.jl/issues/130/events","html_url":"https://github.com/Keno/Gallium.jl/issues/130","id":162322435,"number":130,"title":"breakpoint in cfunction?","user":{"login":"lobingera","id":5199059,"avatar_url":"https://avatars.githubusercontent.com/u/5199059?v=3","gravatar_id":"","url":"https://api.github.com/users/lobingera","html_url":"https://github.com/lobingera","followers_url":"https://api.github.com/users/lobingera/followers","following_url":"https://api.github.com/users/lobingera/following{/other_user}","gists_url":"https://api.github.com/users/lobingera/gists{/gist_id}","starred_url":"https://api.github.com/users/lobingera/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lobingera/subscriptions","organizations_url":"https://api.github.com/users/lobingera/orgs","repos_url":"https://api.github.com/users/lobingera/repos","events_url":"https://api.github.com/users/lobingera/events{/privacy}","received_events_url":"https://api.github.com/users/lobingera/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2016-06-26T10:45:00Z","updated_at":"2016-06-26T10:45:00Z","closed_at":null,"body":"handling of cfunctions is not mentioned in the manual, so maybe i was overoptimistic, but still...\r\n(one working cfunction example in Cairo)\r\n```\r\n   _       _ _(_)_     |  A fresh approach to technical computing\r\n  (_)     | (_) (_)    |  Documentation: http://docs.julialang.org\r\n   _ _   _| |_  __ _   |  Type \"?help\" for help.\r\n  | | | | | | |/ _` |  |\r\n  | | |_| | | | (_| |  |  Version 0.5.0-dev+4923 (2016-06-23 21:09 UTC)\r\n _/ |\\__'_|_|_|\\__'_|  |  Commit 26fec34* (2 days old master)\r\n|__/                   |  x86_64-linux-gnu\r\n\r\njulia> using Gallium\r\n\r\njulia> using Cairo\r\n\r\njulia> using Colors\r\n\r\njulia> surf = CairoImageSurface(fill(RGB24(0), 10, 10));\r\n\r\njulia> io = IOBuffer();\r\n\r\njulia> Gallium.breakpoint(Cairo.write_to_stream_callback)\r\nLocations (+: active, -: inactive, *: source):\r\n * Any matching method added to Cairo.#write_to_stream_callback\r\n * Any matching specialization of write_to_stream_callback(s, buf, len) at /home/lobi/.julia/v0.5/Cairo/src/Cairo.jl:90\r\n\r\n\r\njulia> write_to_png(surf,io)\r\nWARNING: Base.UTF8String is deprecated, use String instead.\r\n  likely near no file:0\r\nWARNING: Base.UTF8String is deprecated, use String instead.\r\n  likely near no file:0\r\nWARNING: Base.UTF8String is deprecated, use String instead.\r\n  likely near no file:0\r\nWARNING: Base.UTF8String is deprecated, use String instead.\r\n  likely near no file:0\r\nWARNING: Base.UTF8String is deprecated, use String instead.\r\n  likely near no file:0\r\nERROR: InexactError()\r\n in fetch_cfi_val_value(::Gallium.LocalSession, ::Gallium.X86_64.BasicRegs, ::DWARF.CallFrameInfo.RegState, ::Gallium.RemotePtr{Void}) at /home/lobi/.julia/v0.5/Gallium/src/unwind.jl:212\r\n in fetch_cfi_value(::Gallium.LocalSession, ::Gallium.X86_64.BasicRegs, ::DWARF.CallFrameInfo.RegStates, ::UInt8, ::Gallium.RemotePtr{Void}) at /home/lobi/.julia/v0.5/Gallium/src/unwind.jl:231\r\n in #unwind_step#11(::Bool, ::Bool, ::Function, ::Gallium.LocalSession, ::Gallium.LazyJITModules, ::Gallium.X86_64.BasicRegs, ::Void) at /home/lobi/.julia/v0.5/Gallium/src/unwind.jl:264\r\n in (::Gallium.Unwinder.#kw##unwind_step)(::Array{Any,1}, ::Gallium.Unwinder.#unwind_step, ::Gallium.LocalSession, ::Gallium.LazyJITModules, ::Gallium.X86_64.BasicRegs, ::Void) at ./null:0\r\n in #rec_backtrace#47(::Bool, ::Function, ::Gallium.##55#57{Bool,Bool,Gallium.LocalSession,Gallium.LazyJITModules,Array{Any,1},Array{Any,1}}, ::Gallium.X86_64.BasicRegs, ::Gallium.LocalSession, ::Gallium.LazyJITModules, ::Bool, ::Void) at /home/lobi/.julia/v0.5/Gallium/src/Gallium.jl:270\r\n in (::Gallium.#kw##rec_backtrace)(::Array{Any,1}, ::Gallium.#rec_backtrace, ::Function, ::Gallium.X86_64.BasicRegs, ::Gallium.LocalSession, ::Gallium.LazyJITModules, ::Bool, ::Void) at ./null:0\r\n in rec_backtrace_hook(::Gallium.##55#57{Bool,Bool,Gallium.LocalSession,Gallium.LazyJITModules,Array{Any,1},Array{Any,1}}, ::Gallium.X86_64.BasicRegs, ::Gallium.LocalSession, ::Gallium.LazyJITModules, ::Bool) at /home/lobi/.julia/v0.5/Gallium/src/Gallium.jl:289\r\n in #stackwalk#54(::Bool, ::Bool, ::Bool, ::Bool, ::Function, ::Gallium.X86_64.BasicRegs, ::Gallium.LocalSession, ::Gallium.LazyJITModules) at /home/lobi/.julia/v0.5/Gallium/src/Gallium.jl:401\r\n in (::Gallium.#kw##stackwalk)(::Array{Any,1}, ::Gallium.#stackwalk, ::Gallium.X86_64.BasicRegs, ::Gallium.LocalSession, ::Gallium.LazyJITModules) at ./null:0\r\n in breakpoint_hit(::Gallium.Hooking.Hook, ::Gallium.X86_64.BasicRegs) at /home/lobi/.julia/v0.5/Gallium/src/Gallium.jl:590\r\n in _callback(::Ptr{Void}) at /home/lobi/.julia/v0.5/Gallium/src/Hooking/Hooking.jl:272\r\n in callback(::Ptr{Void}) at /home/lobi/.julia/v0.5/Gallium/src/Hooking/Hooking.jl:299\r\n in write_to_stream_callback(::Base.AbstractIOBuffer{Array{UInt8,1}}, ::Ptr{UInt8}, ::UInt32) at /home/lobi/.julia/v0.5/Cairo/src/Cairo.jl:0\r\n in write_to_png(::Cairo.CairoSurface{ColorTypes.RGB24}, ::Base.AbstractIOBuffer{Array{UInt8,1}}) at /home/lobi/.julia/v0.5/Cairo/src/Cairo.jl:326\r\n in eval(::Module, ::Any) at ./boot.jl:231\r\n in macro expansion at ./REPL.jl:92 [inlined]\r\n in (::Base.REPL.##1#2{Base.REPL.REPLBackend})() at ./event.jl:46\r\n\r\n```\r\n"}}
{"actor":{"display_login":"lobingera"}}