Closed rickhg12hs closed 9 years ago
I think there was a recent patch by @staticfloat on master to not run examples in tests if they are not available, as is the case here, but perhaps needs to be backported to the release-0.3 branch.
Cc: @ivarne @staticfloat
I'll submit a patch lickety-split. @JuliaBackports
Hmmm. Actually, the release-0.3
branch does not need this patch, as it doesn't run test/examples.jl
at all. So this appears to be on the master
branch. What does versioninfo()
say, @rickhg12hs?
Hmm, maybe this is a slightly old nightly image?
Fails even with a recent image:
root@0a6e3117a836:/# julia
_
_ _ _(_)_ | A fresh approach to technical computing
(_) | (_) (_) | Documentation: http://docs.julialang.org
_ _ _| |_ __ _ | Type "help()" for help.
| | | | | | |/ _` | |
| | |_| | | | (_| | | Version 0.3.1 (2014-09-21 21:30 UTC)
_/ |\__'_|_|_|\__'_| | Official http://julialang.org release
|__/ | x86_64-linux-gnu
julia> Base.runtests()
From worker 2: * linalg1
From worker 3: * linalg2
From worker 2: * linalg3
From worker 2: * linalg4
From worker 2: * core
From worker 2: * keywordargs
From worker 2: * numbers
From worker 3: * strings
From worker 3: * collections
From worker 3: * hashing
From worker 3: * remote
From worker 3: * iobuffer
From worker 3: * arrayops
From worker 2: * reduce
From worker 2: * reducedim
From worker 2: * simdloop
From worker 2: * blas
From worker 2: * fft
From worker 3: * dsp
From worker 2: * sparse
From worker 3: * bitarray
From worker 2: * random
From worker 2: * math
From worker 2: * functional
From worker 2: * bigint
From worker 2: * sorting
From worker 2: * statistics
From worker 3: * spawn
From worker 3: [stdio passthrough ok]
From worker 2: * backtrace
From worker 2: * priorityqueue
From worker 3: * arpack
From worker 2: * file
From worker 2: * suitesparse
From worker 3: * version
From worker 3: * resolve
From worker 2: * pollfd
From worker 3: * mpfr
From worker 2: * broadcast
From worker 3: * complex
From worker 3: * socket
From worker 3: * floatapprox
From worker 3: * readdlm
From worker 2: * regex
From worker 2: * float16
From worker 3: * combinatorics
From worker 2: * sysinfo
From worker 2: * rounding
From worker 2: * ranges
From worker 3: * mod2pi
From worker 3: * euler
From worker 3: * show
From worker 3: * lineedit
From worker 3: * replcompletions
From worker 3: * repl
From worker 3: * test
From worker 3: * examples
exception on 1: ERROR: opening file /usr/share/julia/examples/bubblesort.jl: No such file or directory
in open at ./iostream.jl:117
in open at ./iostream.jl:135
in readall at io.jl:247
in anonymous at multi.jl:855
in run_work_thunk at multi.jl:621
in anonymous at task.jl:855
exception on 3: ERROR: `include_string` has no method matching include_string(::SystemError, ::ASCIIString)
in include_from_node1 at ./loading.jl:131
in runtests at /usr/share/julia/test/testdefs.jl:5
in anonymous at multi.jl:855
in run_work_thunk at multi.jl:621
in anonymous at task.jl:855
while loading examples.jl, in expression starting on line 1
ERROR: `include_string` has no method matching include_string(::SystemError, ::ASCIIString)
in anonymous at task.jl:1367
while loading examples.jl, in expression starting on line 1
while loading /usr/share/julia/test/runtests.jl, in expression starting on line 35
ERROR: A test has failed. Please submit a bug report including error messages
above and the output of versioninfo():
Julia Version 0.3.1
Commit c03f413 (2014-09-21 21:30 UTC)
Platform Info:
System: Linux (x86_64-linux-gnu)
CPU: Intel(R) Xeon(R) CPU E5-2670 v2 @ 2.50GHz
WORD_SIZE: 64
BLAS: libopenblas (NO_LAPACK NO_LAPACKE DYNAMIC_ARCH NO_AFFINITY Sandybridge)
LAPACK: liblapack.so.3
LIBM: libopenlibm
LLVM: libLLVM-3.3
in error at error.jl:21
in runtests at interactiveutil.jl:362
in runtests at interactiveutil.jl:351
Any clues?
This might be a good clue? https://github.com/JuliaLang/julia/commit/0df9fd97dbec0df2f82c2b45a8e3ad7ac03f5bef
I have not tracked down everything, but it seems like release-0.3 runs the examples as part of the testsuite if it is available (contrary to what @staticfloat is claiming). I'm somewhat confused with regards to the relationship between test/Makefile
and test/runtests.jl
, but it seems like that has been fixed on master, so I don't really care.
I think this problem will go away when 0.3.2 is tagged and introduced into JuliaBox. As a temporary measure you might include the examples directory in JuliaBox so that the tests work.
Looking back at this again, I have no idea why I thought examples
wasn't
getting run.
-E
On Sat, Oct 4, 2014 at 8:03 AM, Ivar Nesje notifications@github.com wrote:
This might be a good clue? JuliaLang/julia@0df9fd9 https://github.com/JuliaLang/julia/commit/0df9fd97dbec0df2f82c2b45a8e3ad7ac03f5bef
I have not tracked down everything, but it seems like release-0.3 runs the examples as part of the testsuite if it is available (contrary to what @staticfloat https://github.com/staticfloat is claiming). I'm somewhat confused with regards to the relationship between test/Makefile and test/runtests.jl, but it seems like that has been fixed on master, so I don't really care.
I think this problem will go away when 0.3.2 is tagged and introduced into JuliaBox. As a temporary measure you might include the examples directory in JuliaBox so that the tests work.
— Reply to this email directly or view it on GitHub https://github.com/JuliaLang/JuliaBox/issues/111#issuecomment-57908155.
Running this recently, everything seems to pass except socket
, which never seems to return. I.e., you see this forever.
julia> Base.runtests("socket")
* socket
However, this seems to work?
julia> include("/usr/share/julia/test/testdefs.jl")
2-element Array{Union(ASCIIString,UTF8String),1}:
"/usr/local/share/julia/site/v0.3"
"/usr/share/julia/site/v0.3"
julia> include("/usr/share/julia/test/socket.jl")
Same behavior is seen on SageMathCloud (SMC).
Bump. Is this any better now?
Base.runtests("socket")
still never returns.
On SMC, blas
fails.
julia> Base.runtests("blas")
* blas
exception on 1: ERROR: test failed: all(triu(BLAS.herk('U','N',U4)) .== triu(BLAS.gemm('N','T',U4,U4)))
in error at error.jl:21
in default_handler at test.jl:19
in do_test at test.jl:39
in anonymous at no file:73
in runtests at /usr/share/julia/test/testdefs.jl:5
in anonymous at multi.jl:660
in run_work_thunk at multi.jl:621
in remotecall_fetch at multi.jl:694
in remotecall_fetch at multi.jl:709
in anonymous at task.jl:1365
while loading blas.jl, in expression starting on line 3
ERROR: test failed: all(triu(BLAS.herk('U','N',U4)) .== triu(BLAS.gemm('N','T',U4,U4)))
in error at error.jl:21
in default_handler at test.jl:19
in do_test at test.jl:39
in anonymous at no file:73
in runtests at /usr/share/julia/test/testdefs.jl:5
in anonymous at multi.jl:660
in run_work_thunk at multi.jl:621
in remotecall_fetch at multi.jl:694
in remotecall_fetch at multi.jl:709
in anonymous at task.jl:1365
while loading blas.jl, in expression starting on line 3
while loading /usr/share/julia/test/runtests.jl, in expression starting on line 39
ERROR: A test has failed. Please submit a bug report including error messages
above and the output of versioninfo():
Julia Version 0.3.3
Commit 21d5433* (2014-10-21 20:18 UTC)
Platform Info:
System: Linux (x86_64-linux-gnu)
CPU: Intel(R) Xeon(R) CPU @ 2.60GHz
WORD_SIZE: 64
BLAS: libblas.so.3
LAPACK: liblapack.so.3
LIBM: libopenlibm
LLVM: libLLVM-3.3
in error at error.jl:21
in runtests at interactiveutil.jl:370
in runtests at interactiveutil.jl:359
julia>
Fails even harder now (segfault):
juser@juliabox:~$ julia
Warning: using Base.Graphics in module Main conflicts with an existing identifier.
_
_ _ _(_)_ | A fresh approach to technical computing
(_) | (_) (_) | Documentation: http://docs.julialang.org
_ _ _| |_ __ _ | Type "help()" for help.
| | | | | | |/ _` | |
| | |_| | | | (_| | | Version 0.3.6 (2015-01-08 22:33 UTC)
_/ |\__'_|_|_|\__'_| | Official http://julialang.org release
|__/ | x86_64-linux-gnu
julia> versioninfo()
Julia Version 0.3.6
Commit a05f87b* (2015-01-08 22:33 UTC)
Platform Info:
System: Linux (x86_64-linux-gnu)
CPU: Intel(R) Xeon(R) CPU E5-2670 v2 @ 2.50GHz
WORD_SIZE: 64
BLAS: libblas.so.3
LAPACK: liblapack.so.3
LIBM: libopenlibm
LLVM: libLLVM-3.3
julia> Base.runtests()
From worker 2: * linalg1
From worker 3: * linalg2
From worker 4: * linalg3
From worker 6: * linalg/cholmod
From worker 7: * linalg/umfpack
From worker 8: * core
From worker 5: * linalg4
From worker 9: * keywordargs
From worker 6: * numbers
From worker 9: * strings
signal (11): Segmentation fault
unknown function (ip: 1958726397)
unknown function (ip: 1958726765)
unknown function (ip: 1958726765)
unknown function (ip: 1958726765)
unknown function (ip: 1958726765)
unknown function (ip: 1958727110)
unknown function (ip: 1958726765)
unknown function (ip: 1958726875)
unknown function (ip: 1958726765)
unknown function (ip: 1958726765)
unknown function (ip: 1958726765)
unknown function (ip: 1958726765)
unknown function (ip: 1958726765)
unknown function (ip: 1958726643)
unknown function (ip: 1958726765)
unknown function (ip: 1958726875)
unknown function (ip: 1958726765)
unknown function (ip: 1958726765)
unknown function (ip: 1958726643)
unknown function (ip: 1958726765)
unknown function (ip: 1958726643)
unknown function (ip: 1958726765)
unknown function (ip: 1958726765)
unknown function (ip: 1958726765)
unknown function (ip: 1958727110)
unknown function (ip: 1958726765)
unknown function (ip: 1958726765)
unknown function (ip: 1958726765)
unknown function (ip: 1958726765)
unknown function (ip: 1958726765)
unknown function (ip: 1958726643)
unknown function (ip: 1958726765)
unknown function (ip: 1958726643)
unknown function (ip: 1958726875)
unknown function (ip: 1958726765)
unknown function (ip: 1958726765)
unknown function (ip: 1958726765)
unknown function (ip: 1958726765)
unknown function (ip: 1958726765)
unknown function (ip: 1958726765)
unknown function (ip: 1958726765)
unknown function (ip: 1958726643)
unknown function (ip: 1958726765)
unknown function (ip: 1958726765)
unknown function (ip: 1958726765)
unknown function (ip: 1958726643)
unknown function (ip: 1958726765)
unknown function (ip: 1958726643)
unknown function (ip: 1958726765)
unknown function (ip: 1958726643)
unknown function (ip: 1958726643)
unknown function (ip: 1958726765)
unknown function (ip: 1958726765)
unknown function (ip: 1958726765)
unknown function (ip: 1958726643)
unknown function (ip: 1958726765)
unknown function (ip: 1958726765)
unknown function (ip: 1958726765)
unknown function (ip: 1958726643)
unknown function (ip: 1958726765)
unknown function (ip: 1958726875)
unknown function (ip: 1958726765)
unknown function (ip: 1958726765)
unknown function (ip: 1958726765)
unknown function (ip: 1958727110)
unknown function (ip: 1958726765)
unknown function (ip: 1958726765)
unknown function (ip: 1958726643)
unknown function (ip: 1958726875)
unknown function (ip: 1958726765)
unknown function (ip: 1958726765)
unknown function (ip: 1958725959)
unknown function (ip: 1958725946)
jl_gc_collect at /usr/bin/../lib/x86_64-linux-gnu/julia/libjulia.so (unknown line)
allocobj at /usr/bin/../lib/x86_64-linux-gnu/julia/libjulia.so (unknown line)
jl_alloc_tuple_uninit at /usr/bin/../lib/x86_64-linux-gnu/julia/libjulia.so (unknown line)
unknown function (ip: 1958300050)
unknown function (ip: 1958297287)
unknown function (ip: 1958299162)
unknown function (ip: 1958300495)
unknown function (ip: 1958297287)
jl_apply_type at /usr/bin/../lib/x86_64-linux-gnu/julia/libjulia.so (unknown line)
unknown function (ip: 1958176677)
unknown function (ip: 1958325882)
unknown function (ip: 1958176595)
unknown function (ip: 1958329521)
unknown function (ip: 1958330996)
unknown function (ip: 1958333898)
unknown function (ip: 1958335262)
unknown function (ip: 1958347677)
jl_matching_methods at /usr/bin/../lib/x86_64-linux-gnu/julia/libjulia.so (unknown line)
_methods at ./reflection.jl:99
jlcall__methods_4631 at /usr/bin/../lib/x86_64-linux-gnu/julia/sys.so (unknown line)
jl_apply_generic at /usr/bin/../lib/x86_64-linux-gnu/julia/libjulia.so (unknown line)
_methods at ./reflection.jl:116
jlcall__methods_4631 at /usr/bin/../lib/x86_64-linux-gnu/julia/sys.so (unknown line)
jl_apply_generic at /usr/bin/../lib/x86_64-linux-gnu/julia/libjulia.so (unknown line)
_methods at ./reflection.jl:116
jlcall__methods_4631 at /usr/bin/../lib/x86_64-linux-gnu/julia/sys.so (unknown line)
jl_apply_generic at /usr/bin/../lib/x86_64-linux-gnu/julia/libjulia.so (unknown line)
inlineable at ./inference.jl:2076
jl_apply_generic at /usr/bin/../lib/x86_64-linux-gnu/julia/libjulia.so (unknown line)
inlining_pass at ./inference.jl:2656
inlining_pass at ./inference.jl:2590
inlining_pass at ./inference.jl:2590
jl_apply_generic at /usr/bin/../lib/x86_64-linux-gnu/julia/libjulia.so (unknown line)
inlining_pass at ./inference.jl:2553
jl_apply_generic at /usr/bin/../lib/x86_64-linux-gnu/julia/libjulia.so (unknown line)
typeinf at ./inference.jl:1544
jlcall_typeinf_4857 at /usr/bin/../lib/x86_64-linux-gnu/julia/sys.so (unknown line)
jl_apply_generic at /usr/bin/../lib/x86_64-linux-gnu/julia/libjulia.so (unknown line)
abstract_call_gf at ./inference.jl:726
jl_apply_generic at /usr/bin/../lib/x86_64-linux-gnu/julia/libjulia.so (unknown line)
abstract_eval_call at ./inference.jl:900
abstract_eval at ./inference.jl:935
jl_apply_generic at /usr/bin/../lib/x86_64-linux-gnu/julia/libjulia.so (unknown line)
abstract_eval_arg at ./inference.jl:866
jl_apply_generic at /usr/bin/../lib/x86_64-linux-gnu/julia/libjulia.so (unknown line)
typeinf at ./inference.jl:1472
jlcall_typeinf_4857 at /usr/bin/../lib/x86_64-linux-gnu/julia/sys.so (unknown line)
jl_apply_generic at /usr/bin/../lib/x86_64-linux-gnu/julia/libjulia.so (unknown line)
typeinf_ext at ./inference.jl:1216
jl_apply_generic at /usr/bin/../lib/x86_64-linux-gnu/julia/libjulia.so (unknown line)
unknown function (ip: 1958357256)
unknown function (ip: 1958360731)
jl_apply_generic at /usr/bin/../lib/x86_64-linux-gnu/julia/libjulia.so (unknown line)
julia_sortperm_20215 at (unknown line)
getindex_general at sparse/sparsematrix.jl:1066
getindex at sparse/sparsematrix.jl:1138
jl_apply_generic at /usr/bin/../lib/x86_64-linux-gnu/julia/libjulia.so (unknown line)
anonymous at no file:18
unknown function (ip: 1958704140)
unknown function (ip: 1958706637)
jl_load at /usr/bin/../lib/x86_64-linux-gnu/julia/libjulia.so (unknown line)
runtests at /usr/share/julia/test/testdefs.jl:5
jlcall_runtests_19934 at (unknown line)
jl_apply_generic at /usr/bin/../lib/x86_64-linux-gnu/julia/libjulia.so (unknown line)
jl_f_apply at /usr/bin/../lib/x86_64-linux-gnu/julia/libjulia.so (unknown line)
anonymous at multi.jl:855
run_work_thunk at multi.jl:621
jl_apply_generic at /usr/bin/../lib/x86_64-linux-gnu/julia/libjulia.so (unknown line)
anonymous at task.jl:855
jl_handle_stack_switch at /usr/bin/../lib/x86_64-linux-gnu/julia/libjulia.so (unknown line)
julia_trampoline at /usr/bin/../lib/x86_64-linux-gnu/julia/libjulia.so (unknown line)
unknown function (ip: 4199613)
__libc_start_main at /lib/x86_64-linux-gnu/libc.so.6 (unknown line)
unknown function (ip: 4199667)
unknown function (ip: 0)
Worker 7 terminated.
signal (11): Segmentation fault
unknown function (ip: 1051433725)
unknown function (ip: 1051434093)
unknown function (ip: 1051434093)
unknown function (ip: 1051434093)
unknown function (ip: 1051434093)
unknown function (ip: 1051434438)
unknown function (ip: 1051434093)
unknown function (ip: 1051434203)
unknown function (ip: 1051434093)
unknown function (ip: 1051434093)
unknown function (ip: 1051434093)
unknown function (ip: 1051434093)
unknown function (ip: 1051434093)
unknown function (ip: 1051433971)
unknown function (ip: 1051434093)
unknown function (ip: 1051434203)
unknown function (ip: 1051434093)
unknown function (ip: 1051434093)
unknown function (ip: 1051433971)
unknown function (ip: 1051434093)
unknown function (ip: 1051433971)
unknown function (ip: 1051434093)
unknown function (ip: 1051433971)
unknown function (ip: 1051434093)
unknown function (ip: 1051434203)
unknown function (ip: 1051434093)
unknown function (ip: 1051434093)
unknown function (ip: 1051434093)
unknown function (ip: 1051434093)
unknown function (ip: 1051434093)
unknown function (ip: 1051433971)
unknown function (ip: 1051434093)
unknown function (ip: 1051433971)
unknown function (ip: 1051434093)
unknown function (ip: 1051434093)
unknown function (ip: 1051434093)
unknown function (ip: 1051434438)
unknown function (ip: 1051434093)
unknown function (ip: 1051434093)
unknown function (ip: 1051434093)
unknown function (ip: 1051434093)
unknown function (ip: 1051434093)
unknown function (ip: 1051433971)
unknown function (ip: 1051434093)
unknown function (ip: 1051433971)
unknown function (ip: 1051434203)
unknown function (ip: 1051434093)
unknown function (ip: 1051434093)
unknown function (ip: 1051434093)
unknown function (ip: 1051434093)
unknown function (ip: 1051434093)
unknown function (ip: 1051434093)
unknown function (ip: 1051434093)
unknown function (ip: 1051433971)
unknown function (ip: 1051434093)
unknown function (ip: 1051434093)
unknown function (ip: 1051434093)
unknown function (ip: 1051433971)
unknown function (ip: 1051434093)
unknown function (ip: 1051433971)
unknown function (ip: 1051434093)
unknown function (ip: 1051433971)
unknown function (ip: 1051433971)
unknown function (ip: 1051434093)
unknown function (ip: 1051434093)
unknown function (ip: 1051434093)
unknown function (ip: 1051433971)
unknown function (ip: 1051434093)
unknown function (ip: 1051434093)
unknown function (ip: 1051434093)
unknown function (ip: 1051433971)
unknown function (ip: 1051434093)
unknown function (ip: 1051434203)
unknown function (ip: 1051434093)
unknown function (ip: 1051434093)
unknown function (ip: 1051433971)
unknown function (ip: 1051434093)
unknown function (ip: 1051434438)
unknown function (ip: 1051434093)
unknown function (ip: 1051434093)
unknown function (ip: 1051433971)
unknown function (ip: 1051434203)
unknown function (ip: 1051434093)
unknown function (ip: 1051434093)
unknown function (ip: 1051433287)
unknown function (ip: 1051433274)
jl_gc_collect at /usr/bin/../lib/x86_64-linux-gnu/julia/libjulia.so (unknown line)
alloc_4w at /usr/bin/../lib/x86_64-linux-gnu/julia/libjulia.so (unknown line)
unknown function (ip: 1051361115)
jl_copy_ast at /usr/bin/../lib/x86_64-linux-gnu/julia/libjulia.so (unknown line)
jl_copy_ast at /usr/bin/../lib/x86_64-linux-gnu/julia/libjulia.so (unknown line)
anonymous at no file:761
unknown function (ip: 1051411468)
unknown function (ip: 1051413965)
jl_load at /usr/bin/../lib/x86_64-linux-gnu/julia/libjulia.so (unknown line)
runtests at /usr/share/julia/test/testdefs.jl:5
jlcall_runtests_19934 at (unknown line)
jl_apply_generic at /usr/bin/../lib/x86_64-linux-gnu/julia/libjulia.so (unknown line)
jl_f_apply at /usr/bin/../lib/x86_64-linux-gnu/julia/libjulia.so (unknown line)
anonymous at multi.jl:855
run_work_thunk at multi.jl:621
jl_apply_generic at /usr/bin/../lib/x86_64-linux-gnu/julia/libjulia.so (unknown line)
anonymous at task.jl:855
jl_handle_stack_switch at /usr/bin/../lib/x86_64-linux-gnu/julia/libjulia.so (unknown line)
julia_trampoline at /usr/bin/../lib/x86_64-linux-gnu/julia/libjulia.so (unknown line)
unknown function (ip: 4199613)
__libc_start_main at /lib/x86_64-linux-gnu/libc.so.6 (unknown line)
unknown function (ip: 4199667)
unknown function (ip: 0)
Worker 6 terminated.
ERROR: ProcessExitedException()
in wait at ./task.jl:284
in wait at ./task.jl:194
in wait_full at ./multi.jl:602
in remotecall_fetch at multi.jl:704
in remotecall_fetch at multi.jl:709
in anonymous at task.jl:1365
while loading /usr/share/julia/test/runtests.jl, in expression starting on line 39
ERROR: A test has failed. Please submit a bug report including error messages
above and the output of versioninfo():
Julia Version 0.3.6
Commit a05f87b* (2015-01-08 22:33 UTC)
Platform Info:
System: Linux (x86_64-linux-gnu)
CPU: Intel(R) Xeon(R) CPU E5-2670 v2 @ 2.50GHz
WORD_SIZE: 64
BLAS: libblas.so.3
LAPACK: liblapack.so.3
LIBM: libopenlibm
LLVM: libLLVM-3.3
in error at error.jl:21
in runtests at interactiveutil.jl:370
in runtests at interactiveutil.jl:359
julia>
Closing this as not relevant anymore.
Also, Base.runtests
is considerably heavy now and the resources available in the VM may be inadequate for some tests.
It will however be useful to point out individual tests here that fail in the JuliaBox environment but run successfully elsewhere.