Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Debug Random #35486

Closed
joaogoliveira1 opened this issue Apr 15, 2020 · 2 comments
Closed

Debug Random #35486

joaogoliveira1 opened this issue Apr 15, 2020 · 2 comments

Comments

@joaogoliveira1
Copy link

Hello,

So here is the issue: I am running a version of the following code:

function bogus(a)
    nsim = 1
    nsim2 = 2
    c = rand(nsim,nsim2) # breakpoint here
end

bogus(3)

At the definition of c, I put a breakpoint. I then run the debugger, and it stops a that point. I then run the line, and it issues the following error message:

ERROR: IOError: stat: unknown error (UNKNOWN) for file "D:\buildbot\worker\package_win64\build\usr\share\julia\stdlib\v1.4\Random\src\Random.jl"
Stacktrace:
[1] stat(::String) at .\stat.jl:69
[2] isfile at .\stat.jl:311 [inlined]
[3] maybe_fixup_stdlib_path at C:\Users\user.julia\packages\CodeTracking\gCUPD\src\utils.jl:112 [inlined]
[4] maybe_fix_path(::String) at C:\Users\user.julia\packages\CodeTracking\gCUPD\src\utils.jl:96
[5] framecode_matches_breakpoint(::JuliaInterpreter.FrameCode, ::JuliaInterpreter.BreakpointFileLocation) at C:\Users\user.julia\packages\JuliaInterpreter\u3T76\src\breakpoints.jl:160
[6] add_breakpoint_if_match!(::JuliaInterpreter.FrameCode, ::JuliaInterpreter.BreakpointFileLocation) at C:\Users\user.julia\packages\JuliaInterpreter\u3T76\src\breakpoints.jl:64
[7] JuliaInterpreter.FrameCode(::Method, ::Core.CodeInfo; generator::Bool, optimize::Bool) at C:\Users\user.julia\packages\JuliaInterpreter\u3T76\src\types.jl:113
[8] prepare_framecode(::Method, ::Any; enter_generated::Bool) at C:\Users\user.julia\packages\JuliaInterpreter\u3T76\src\construct.jl:189
[9] prepare_call(::Any, ::Array{Any,1}; enter_generated::Bool) at C:\Users\user.julia\packages\JuliaInterpreter\u3T76\src\construct.jl:260
[10] get_call_framecode(::Array{Any,1}, ::JuliaInterpreter.FrameCode, ::Int64; enter_generated::Bool) at C:\Users\user.julia\packages\JuliaInterpreter\u3T76\src\localmethtable.jl:63
[11] evaluate_call_recurse!(::Any, ::JuliaInterpreter.Frame, ::Expr; enter_generated::Bool) at C:\Users\user.julia\packages\JuliaInterpreter\u3T76\src\interpret.jl:225
[12] evaluate_call_recurse! at C:\Users\user.julia\packages\JuliaInterpreter\u3T76\src\interpret.jl:202 [inlined]
[13] eval_rhs(::Any, ::JuliaInterpreter.Frame, ::Expr) at C:\Users\user.julia\packages\JuliaInterpreter\u3T76\src\interpret.jl:387
[14] step_expr!(::Any, ::JuliaInterpreter.Frame, ::Any, ::Bool) at C:\Users\user.julia\packages\JuliaInterpreter\u3T76\src\interpret.jl:527
[15] step_expr! at C:\Users\user.julia\packages\JuliaInterpreter\u3T76\src\interpret.jl:566 [inlined]
[16] next_until!(::Any, ::Any, ::JuliaInterpreter.Frame, ::Bool) at C:\Users\user.julia\packages\JuliaInterpreter\u3T76\src\commands.jl:91
[17] next_line!(::Any, ::JuliaInterpreter.Frame, ::Bool) at C:\Users\user.julia\packages\JuliaInterpreter\u3T76\src\commands.jl:173
[18] debug_command(::Any, ::JuliaInterpreter.Frame, ::Symbol, ::Bool; line::Nothing) at C:\Users\user.julia\packages\JuliaInterpreter\u3T76\src\commands.jl:409
[19] debug_command(::Any, ::JuliaInterpreter.Frame, ::Symbol, ::Bool) at C:\Users\user.julia\packages\JuliaInterpreter\u3T76\src\commands.jl:391
[20] (::Atom.JunoDebugger.var"#52#54"{Bool,Bool,Bool})() at C:\Users\user.julia\packages\Atom\wlPiw\src\debugger\stepper.jl:191
[21] evalscope(::Atom.JunoDebugger.var"#52#54"{Bool,Bool,Bool}) at C:\Users\user.julia\packages\Atom\wlPiw\src\debugger\stepper.jl:390
[22] startdebugging(::JuliaInterpreter.Frame, ::Bool; istoplevel::Bool, toggle_ui::Bool) at C:\Users\user.julia\packages\Atom\wlPiw\src\debugger\stepper.jl:149
[23] (::Base.var"#inner#2"{Base.Iterators.Pairs{Symbol,Bool,Tuple{Symbol,Symbol},NamedTuple{(:istoplevel, :toggle_ui),Tuple{Bool,Bool}}},typeof(Atom.JunoDebugger.startdebugging),Tuple{JuliaInterpreter.Frame,Bool}})() at .\essentials.jl:715
[24] invokelatest(::Any, ::Any, ::Vararg{Any,N} where N; kwargs::Base.Iterators.Pairs{Symbol,Bool,Tuple{Symbol,Symbol},NamedTuple{(:istoplevel, :toggle_ui),Tuple{Bool,Bool}}}) at .\essentials.jl:716
[25] (::Atom.JunoDebugger.var"#47#49"{String,String,Bool,Int64})() at C:\Users\user.julia\packages\Atom\wlPiw\src\debugger\stepper.jl:112
[26] hideprompt(::Atom.JunoDebugger.var"#47#49"{String,String,Bool,Int64}) at C:\Users\user.julia\packages\Atom\wlPiw\src\repl.jl:140
[27] debug_file(::String, ::String, ::String, ::Bool, ::Int64) at C:\Users\user.julia\packages\Atom\wlPiw\src\debugger\stepper.jl:83
[28] debug_file(::String, ::String, ::String, ::Bool) at C:\Users\user.julia\packages\Atom\wlPiw\src\debugger\stepper.jl:81
[29] handlemsg(::Dict{String,Any}, ::String, ::Vararg{Any,N} where N) at C:\Users\user.julia\packages\Atom\wlPiw\src\comm.jl:168
[30] (::Atom.var"#19#21"{Array{Any,1}})() at .\task.jl:358

The interesting thing is: when I run this code out of debugger mode, it runs fine. I'm running this code on Juno. This is my version:

Julia Version 1.4.0
Commit b8e9a9e (2020-03-21 16:36 UTC)
Platform Info:
OS: Windows (x86_64-w64-mingw32)
CPU: Intel(R) Core(TM) i7-4710MQ CPU @ 2.50GHz
WORD_SIZE: 64
LIBM: libopenlibm
LLVM: libLLVM-8.0.1 (ORCJIT, haswell)
Environment:
JULIA_EDITOR = "C:\Users\user\AppData\Local\atom\app-1.45.0\atom.exe" -a
JULIA_NUM_THREADS = 4

Anybody come across this? Thanks

@KristofferC
Copy link
Sponsor Member

Please reopen this at https://github.com/JuliaDebug/JuliaInterpreter.jl

Side rand: The fact that isfile can throw is so so annoying.

@StefanKarpinski
Copy link
Sponsor Member

We should probably fix the fact that isfile can throw. Is there an issue for that?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants