diff --git a/base/client.jl b/base/client.jl index 5e7cd19ea480f..d66933e27e4d1 100644 --- a/base/client.jl +++ b/base/client.jl @@ -246,7 +246,7 @@ function exec_options(opts) # If we're doing a bug report, don't load anything else. We will # spawn a child in which to execute these options. let InteractiveUtils = load_InteractiveUtils() - InteractiveUtils.report_bug(arg) + invokelatest(InteractiveUtils.report_bug, arg) end return nothing else diff --git a/test/cmdlineargs.jl b/test/cmdlineargs.jl index 95d65de0c01f2..fc6016da960c4 100644 --- a/test/cmdlineargs.jl +++ b/test/cmdlineargs.jl @@ -994,3 +994,9 @@ end # Test import from module @test readchomp(`$(Base.julia_cmd()) -e 'module Hello; export main; (@main)(ARGS) = println("hello"); end; using .Hello'`) == "hello" @test readchomp(`$(Base.julia_cmd()) -e 'module Hello; export main; (@main)(ARGS) = println("hello"); end; import .Hello'`) == "" + +# test --bug-report=rr +if Sys.islinux() && Sys.ARCH in (:i686, :x86_64, :aarch64) # rr is only available on these platforms + # TODO: get this to work on CI + @test_skip success(setenv(`$(Base.julia_cmd()) --bug-report=rr-local -e 'exit()'`, "JULIA_RR_RECORD_ARGS" => "-n")) +end