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

[CI] Intermittent cmdlineargs test failure on various platforms #49154

Open
giordano opened this issue Mar 25, 2023 · 1 comment
Open

[CI] Intermittent cmdlineargs test failure on various platforms #49154

giordano opened this issue Mar 25, 2023 · 1 comment
Labels
ci Continuous integration multithreading Base.Threads and related functionality

Comments

@giordano
Copy link
Contributor

Example 1 on aarch64-linux-gnu, example 2 on FreeBSD

Error in testset cmdlineargs:
Error During Test at /cache/build/default-armageddon-4/julialang/julia-master/julia-3b39066447/share/julia/test/cmdlineargs.jl:322
  Test threw exception
  Expression: read(`$exename -e $code`, String) == string(cpu_threads)
  failed process: Process(`/cache/build/default-armageddon-4/julialang/julia-master/julia-3b39066447/bin/julia -Cnative -J/cache/build/default-armageddon-4/julialang/julia-master/julia-3b39066447/lib/julia/sys.so --depwarn=error --check-bounds=yes -g1 --startup-file=no --startup-file=no --color=no -e 'print(Threads.threadpoolsize())'`, ProcessSignaled(11)) [0]
@LilithHafner
Copy link
Member

LilithHafner commented Jun 5, 2023

An example on test x86_64-apple-darwin, 9b27a8f8a5

The global RNG seed was 0x8b72cda8f107fc73fdba59c6ecf8ec65.
Error in testset cmdlineargs:
Test Failed at /Users/julia/.julia/scratchspaces/a66863c6-20e8-4ff4-8a62-49f30b1f605e/agent-cache/default-grannysmith-C07ZM05NJYVY.0/build/default-grannysmith-C07ZM05NJYVY-0/julialang/julia-master/julia-9b27a8f8a5/share/julia/test/cmdlineargs.jl:333
  Expression: read(`$exename -p2 -t2 -e $code`, String) == "6"
   Evaluated: "6      From worker 2:\t\n      From worker 2:\t[50490] signal (11.1): Segmentation fault: 11\n      From worker 2:\tin expression starting at none:0\n" == "6"

https://buildkite.com/julialang/julia-master/builds/24422#01887281-b1dd-4633-9734-8b9732b13826/580-1375

An example on test x86_64-linux-gnu, d912d85c42

The global RNG seed was 0x896331a54d680fdd49c46fb44c48f7c3.
Error in testset cmdlineargs:
Test Failed at /cache/build/default-amdci5-4/julialang/julia-master/julia-d912d85c42/share/julia/test/cmdlineargs.jl:333
  Expression: read(`$exename -p2 -t2 -e $code`, String) == "6"
   Evaluated: "6      From worker 2:\t\n      From worker 2:\t[3523] signal (11.1): Segmentation fault\n      From worker 2:\tin expression starting at none:0\n" == "6"

https://buildkite.com/julialang/julia-master/builds/24393#01886e46-8d99-4353-8ddf-a6a6bda3d402/751-1543

An example on test x86_64-linux-gnuassertrr, 318f0ead95

The global RNG seed was 0x70fcfe2533afec72c766eecdbaf02e5e.
Error in testset cmdlineargs:
Error During Test at /cache/build/default-amdci4-0/julialang/julia-master/julia-318f0ead95/share/julia/test/cmdlineargs.jl:333
  Test threw exception
  Expression: read(`$exename -p2 -t2 -e $code`, String) == "6"
  failed process: Process(`/cache/build/default-amdci4-0/julialang/julia-master/julia-318f0ead95/bin/julia -Cnative -J/cache/build/default-amdci4-0/julialang/julia-master/julia-318f0ead95/lib/julia/sys.so --depwarn=error --check-bounds=yes -g1 --startup-file=no --startup-file=no --color=no -p2 -t2 -e 'print(sum(remotecall_fetch(Threads.threadpoolsize, x) for x in procs()))'`, ProcessExited(1)) [1]
  Stacktrace:
   [1] pipeline_error(proc::Base.Process)
     @ Base ./process.jl:565 [inlined]
   [2] read(cmd::Cmd)
     @ Base ./process.jl:449
   [3] read
     @ Base ./process.jl:458 [inlined]
   [4] macro expansion
     @ Main.Test100Main_cmdlineargs /cache/build/default-amdci4-0/julialang/julia-master/julia-318f0ead95/share/julia/stdlib/v1.10/Test/src/Test.jl:669 [inlined]
   [5] (::Main.Test100Main_cmdlineargs.var"#12#28"{Cmd})()
     @ Main.Test100Main_cmdlineargs /cache/build/default-amdci4-0/julialang/julia-master/julia-318f0ead95/share/julia/test/cmdlineargs.jl:333
Error in testset cmdlineargs:
Test Failed at /cache/build/default-amdci4-0/julialang/julia-master/julia-318f0ead95/share/julia/test/cmdlineargs.jl:340
  Expression: readchomp(`$exename -q -p 2 -e "println(nworkers())"`) == "2"
   Evaluated: "      From worker 2:\tMaster process (id 1) could not connect within 60.0 seconds.\n      From worker 2:\texiting.\n2\n      From worker 3:\tfatal: error thrown and no exception handler available.\n      From worker 3:\tInterruptException()\n      From worker 3:\t_jl_mutex_unlock at /cache/build/default-amdci4-4/julialang/julia-master/src/threading.c:892\n      From worker 3:\tjl_mutex_unlock at /cache/build/default-amdci4-4/julialang/julia-master/src/julia_locks.h:80 [inlined]\n      From worker 3:\tijl_task_get_next at /cache/build/default-amdci4-4/julialang/julia-master/src/partr.c:440\n      From worker 3:\tpoptask at ./task.jl:975\n      From worker 3:\twait at ./task.jl:984\n      From worker 3:\ttask_done_hook at ./task.jl:673\n      From worker 3:\tjfptr_task_done_hook_76835.1 at /cache/build/default-amdci4-0/julialang/julia-master/julia-318f0ead95/lib/julia/sys.so (unknown line)\n      From worker 3:\t_jl_invoke at /cache/build/default-amdci4-4/julialang/julia-master/src/gf.c:2870 [inlined]\n      From worker 3:\tijl_apply_generic at /cache/build/default-amdci4-4/julialang/julia-master/src/gf.c:3071\n      From worker 3:\tjl_apply at /cache/build/default-amdci4-4/julialang/julia-master/src/julia.h:1963 [inlined]\n      From worker 3:\tjl_finish_task at /cache/build/default-amdci4-4/julialang/julia-master/src/task.c:320\n      From worker 3:\tstart_task at /cache/build/default-amdci4-4/julialang/julia-master/src/task.c:1249" == "2"

https://buildkite.com/julialang/julia-master/builds/24392#01886e42-04a0-4b65-aab2-9fcd6587a18e/746-1665

Another example on test x86_64-apple-darwin, 20752db7c1

The global RNG seed was 0xa705c1badfdc92ef5910588385a3f342.
Error in testset cmdlineargs:
Error During Test at /Users/julia/.julia/scratchspaces/a66863c6-20e8-4ff4-8a62-49f30b1f605e/agent-cache/default-grannysmith-C07ZQ07FJYVY.0/build/default-grannysmith-C07ZQ07FJYVY-0/julialang/julia-master/julia-20752db7c1/share/julia/test/cmdlineargs.jl:305
  Test threw exception
  Expression: string(cpu_threads) == read(`$exename --threads auto -e $code`, String) == read(`$exename --threads=auto -e $code`, String) == read(`$exename -tauto -e $code`, String) == read(`$exename -t auto -e $code`, String)
  failed process: Process(`/Users/julia/.julia/scratchspaces/a66863c6-20e8-4ff4-8a62-49f30b1f605e/agent-cache/default-grannysmith-C07ZQ07FJYVY.0/build/default-grannysmith-C07ZQ07FJYVY-0/julialang/julia-master/julia-20752db7c1/bin/julia -Cnative -J/Users/julia/.julia/scratchspaces/a66863c6-20e8-4ff4-8a62-49f30b1f605e/agent-cache/default-grannysmith-C07ZQ07FJYVY.0/build/default-grannysmith-C07ZQ07FJYVY-0/julialang/julia-master/julia-20752db7c1/lib/julia/sys.dylib --depwarn=error --check-bounds=yes -g1 --startup-file=no --startup-file=no --color=no --threads auto -e 'print(Threads.threadpoolsize())'`, ProcessSignaled(11)) [0]
  Stacktrace:
   [1] pipeline_error(proc::Base.Process)
     @ Base ./process.jl:565 [inlined]
   [2] read(cmd::Cmd)
     @ Base ./process.jl:449
   [3] read(cmd::Cmd, ::Type{String})
     @ Base ./process.jl:458
   [4] macro expansion
     @ /Users/julia/.julia/scratchspaces/a66863c6-20e8-4ff4-8a62-49f30b1f605e/agent-cache/default-grannysmith-C07ZQ07FJYVY.0/build/default-grannysmith-C07ZQ07FJYVY-0/julialang/julia-master/julia-20752db7c1/share/julia/stdlib/v1.10/Test/src/Test.jl:669 [inlined]
   [5] top-level scope
     @ /Users/julia/.julia/scratchspaces/a66863c6-20e8-4ff4-8a62-49f30b1f605e/agent-cache/default-grannysmith-C07ZQ07FJYVY.0/build/default-grannysmith-C07ZQ07FJYVY-0/julialang/julia-master/julia-20752db7c1/share/julia/test/cmdlineargs.jl:305
ERROR: LoadError: Test run finished with errors
in expression starting at /Users/julia/.julia/scratchspaces/a66863c6-20e8-4ff4-8a62-49f30b1f605e/agent-cache/default-grannysmith-C07ZQ07FJYVY.0/build/default-grannysmith-C07ZQ07FJYVY-0/julialang/julia-master/julia-20752db7c1/share/julia/test/runtests.jl:94

https://buildkite.com/julialang/julia-master/builds/24377#01886d79-8828-461d-9e03-8e000bf13af0/588-1402

@giordano giordano added the multithreading Base.Threads and related functionality label Jul 14, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
ci Continuous integration multithreading Base.Threads and related functionality
Projects
None yet
Development

No branches or pull requests

2 participants