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

REPL Completions test failing on CI #27642

Closed
vtjnash opened this issue Jun 18, 2018 · 5 comments
Closed

REPL Completions test failing on CI #27642

vtjnash opened this issue Jun 18, 2018 · 5 comments
Labels
REPL Julia's REPL (Read Eval Print Loop)

Comments

@vtjnash
Copy link
Member

vtjnash commented Jun 18, 2018

https://freebsdci.julialang.org/#/builders/1/builds/10369

Error in testset REPL:
Error During Test at /usr/home/julia/julia-fbsd-buildbot/worker/11rel-amd64/build/test/testdefs.jl:19
  Got exception LoadError("/usr/home/julia/julia-fbsd-buildbot/worker/11rel-amd64/build/usr/share/julia/stdlib/v0.7/REPL/test/runtests.jl", 7, LoadError("/usr/home/julia/julia-fbsd-buildbot/worker/11rel-amd64/build/usr/share/julia/stdlib/v0.7/REPL/test/replcompletions.jl", 593, ErrorException("PCRE.exec error: UTF-8 error: isolated byte with 0x80 bit set"))) outside of a @test
  LoadError: LoadError: PCRE.exec error: UTF-8 error: isolated byte with 0x80 bit set
  Stacktrace:
   [1] error at ./error.jl:33 [inlined]
   [2] exec at ./pcre.jl:137 [inlined]
   [3] findnext(::Regex, ::String, ::Int64) at ./regex.jl:222
   [4] #replace#334(::Int64, ::Function, ::String, ::Pair{Regex,String}) at ./strings/util.jl:450
   [5] replace at ./strings/util.jl:444 [inlined]
   [6] #complete_path#7(::Bool, ::Function, ::String, ::Int64) at /usr/home/julia/julia-fbsd-buildbot/worker/11rel-amd64/build/usr/share/julia/stdlib/v0.7/REPL/src/REPLCompletions.jl:203
   [7] #complete_path at ./int.jl:0 [inlined]
   [8] shell_completions(::String, ::Int64) at /usr/home/julia/julia-fbsd-buildbot/worker/11rel-amd64/build/usr/share/julia/stdlib/v0.7/REPL/src/REPLCompletions.jl:676
   [9] test_scomplete(::String) at /usr/home/julia/julia-fbsd-buildbot/worker/11rel-amd64/build/usr/share/julia/stdlib/v0.7/REPL/test/replcompletions.jl:106
   [10] top-level scope at /usr/home/julia/julia-fbsd-buildbot/worker/11rel-amd64/build/usr/share/julia/stdlib/v0.7/REPL/test/replcompletions.jl:636 [inlined]
   [11] top-level scope at ./<missing>:0
   [12] include at ./boot.jl:317 [inlined]
   [13] include_relative(::Module, ::String) at ./loading.jl:1089
   [14] include at ./sysimg.jl:29 [inlined]
   [15] include(::String) at /usr/home/julia/julia-fbsd-buildbot/worker/11rel-amd64/build/usr/share/julia/stdlib/v0.7/REPL/test/runtests.jl:6
   [16] top-level scope at none:0
   [17] include at ./boot.jl:317 [inlined]
   [18] include_relative(::Module, ::String) at ./loading.jl:1089
   [19] include at ./sysimg.jl:29 [inlined]
   [20] include(::String) at /usr/home/julia/julia-fbsd-buildbot/worker/11rel-amd64/build/test/testdefs.jl:13
   [21] macro expansion at /usr/home/julia/julia-fbsd-buildbot/worker/11rel-amd64/build/test/testdefs.jl:292 [inlined]
   [22] macro expansion at /usr/home/julia/julia-fbsd-buildbot/worker/11rel-amd64/build/usr/share/julia/stdlib/v0.7/Test/src/Test.jl:1080 [inlined]
   [23] macro expansion at /usr/home/julia/julia-fbsd-buildbot/worker/11rel-amd64/build/test/testdefs.jl:21 [inlined]
   [24] macro expansion at ./util.jl:289 [inlined]
   [25] top-level scope at /usr/home/julia/julia-fbsd-buildbot/worker/11rel-amd64/build/test/testdefs.jl:19 [inlined]
   [26] top-level scope at ./<missing>:0
   [27] eval at ./boot.jl:319 [inlined]
   [28] #runtests#3(::UInt128, ::Function, ::String, ::String, ::Bool) at /usr/home/julia/julia-fbsd-buildbot/worker/11rel-amd64/build/test/testdefs.jl:25
   [29] #runtests at ./none:0 [inlined] (repeats 2 times)
   [30] (::getfield(Distributed, Symbol("##112#114")){Distributed.CallMsg{:call_fetch}})() at /usr/home/julia/julia-fbsd-buildbot/worker/11rel-amd64/build/usr/share/julia/stdlib/v0.7/Distributed/src/process_messages.jl:269
   [31] run_work_thunk(::getfield(Distributed, Symbol("##112#114")){Distributed.CallMsg{:call_fetch}}, ::Bool) at /usr/home/julia/julia-fbsd-buildbot/worker/11rel-amd64/build/usr/share/julia/stdlib/v0.7/Distributed/src/process_messages.jl:56
   [32] macro expansion at /usr/home/julia/julia-fbsd-buildbot/worker/11rel-amd64/build/usr/share/julia/stdlib/v0.7/Distributed/src/process_messages.jl:270 [inlined]
   [33] (::getfield(Distributed, Symbol("##111#113")){Distributed.CallMsg{:call_fetch},Distributed.MsgHeader,Sockets.TCPSocket})() at ./task.jl:257
  in expression starting at /usr/home/julia/julia-fbsd-buildbot/worker/11rel-amd64/build/usr/share/julia/stdlib/v0.7/REPL/test/replcompletions.jl:593
  in expression starting at /usr/home/julia/julia-fbsd-buildbot/worker/11rel-amd64/build/usr/share/julia/stdlib/v0.7/REPL/test/runtests.jl:7
ERROR: LoadError: Test run finished with errors
in expression starting at /usr/home/julia/julia-fbsd-buildbot/worker/11rel-amd64/build/test/runtests.jl:59
@vtjnash vtjnash added the REPL Julia's REPL (Read Eval Print Loop) label Jun 18, 2018
@iblislin
Copy link
Member

iblislin commented Jun 19, 2018

well, sorry that my worker generated something weird in /tmp and the test failed.
I removed the problematic file already.

Steps to reproduce:

First, in the shell.

$ touch /path/to/$'\244'$'\270'$'\244'

In REPL:

julia> using REPL.REPLCompletions

julia> test_scomplete(s) = shell_completions(s,lastindex(s))
test_scomplete (generic function with 1 method)

julia> s = "/path/to/"
"/path/to/"

julia> c, r = test_scomplete(s)
ERROR: PCRE.exec error: UTF-8 error: isolated byte with 0x80 bit set
Stacktrace:
 [1] error at ./error.jl:33 [inlined]
 [2] exec at ./pcre.jl:137 [inlined]
 [3] findnext(::Regex, ::String, ::Int64) at ./regex.jl:222
 [4] #replace#334(::Int64, ::Function, ::String, ::Pair{Regex,String}) at ./strings/util.jl:442
 [5] replace at ./strings/util.jl:436 [inlined]
 [6] #complete_path#7(::Bool, ::Function, ::String, ::Int64) at /data/iblis/git/julia/usr/share/julia/stdlib/v0.7/REPL/src/REPLCompletions.jl:203
 [7] (::getfield(REPL.REPLCompletions, Symbol("#kw##complete_path")))(::NamedTuple{(:use_envpath,),Tuple{Bool}}, ::typeof(REPL.REPLCompletions.complete_path), ::String, ::Int64) at ./none:0
 [8] shell_completions(::String, ::Int64) at /data/iblis/git/julia/usr/share/julia/stdlib/v0.7/REPL/src/REPLCompletions.jl:676
 [9] test_scomplete(::String) at ./REPL[5]:1
 [10] top-level scope at none:0

@iblislin
Copy link
Member

I tried to hit my tab key in REPL in both master and 0.6.3.
The master build gave me exception but 0.6 not.

@KristofferC
Copy link
Member

Dup of #25816 I think.

@iblislin
Copy link
Member

iblislin commented Aug 3, 2018

well, I don't think it's dup.
The REPL raised UTF-8 error in this case.

@KristofferC KristofferC reopened this Aug 3, 2018
@KristofferC
Copy link
Member

Doesn't seem to happen anymore.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
REPL Julia's REPL (Read Eval Print Loop)
Projects
None yet
Development

No branches or pull requests

3 participants