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

EXCEPTION_ACCESS_VIOLATION in FastTransforms tests #48907

Closed
jishnub opened this issue Mar 6, 2023 · 5 comments · Fixed by #50135
Closed

EXCEPTION_ACCESS_VIOLATION in FastTransforms tests #48907

jishnub opened this issue Mar 6, 2023 · 5 comments · Fixed by #50135

Comments

@jishnub
Copy link
Contributor

jishnub commented Mar 6, 2023

See the run https://github.com/JuliaApproximation/FastTransforms.jl/actions/runs/4341886418/jobs/7582033357, the error message is:

Please submit a bug report with steps to reproduce this fault, and any error messages that follow (in their entirety). Thanks.
Exception: EXCEPTION_ACCESS_VIOLATION at 0x77e352b9 -- RtlGetCurrentServiceSessionId at C:\Windows\SYSTEM32\ntdll.dll (unknown line)
in expression starting at D:\a\FastTransforms.jl\FastTransforms.jl\test\libfasttransformstests.jl:5
RtlGetCurrentServiceSessionId at C:\Windows\SYSTEM32\ntdll.dll (unknown line)
RtlConstructCrossVmMutexPath at C:\Windows\SYSTEM32\ntdll.dll (unknown line)
RtlFreeHeap at C:\Windows\SYSTEM32\ntdll.dll (unknown line)
free at C:\Windows\System32\msvcrt.dll (unknown line)
free_team at /workspace/srcdir/gcc-12.1.0/libgomp\team.c:237 [inlined]
gomp_team_end at /workspace/srcdir/gcc-12.1.0/libgomp\team.c:1005
ft_bfmmf at C:\Users\runneradmin\.julia\artifacts\2f4394502c5b9c9863425335a6140d4bfd02153b\bin\libfasttransforms.dll (unknown line)
* at D:\a\FastTransforms.jl\FastTransforms.jl\src\libfasttransforms.jl:892 [inlined]
test_1d_plans at D:\a\FastTransforms.jl\FastTransforms.jl\test\libfasttransformstests.jl:62
jl_fptr_args at C:/workdir/src\gf.c:2138
_jl_invoke at C:/workdir/src\gf.c:2377 [inlined]
ijl_apply_generic at C:/workdir/src\gf.c:2559
jl_apply at C:/workdir/src\julia.h:1843 [inlined]
do_call at C:/workdir/src\interpreter.c:126
eval_value at C:/workdir/src\interpreter.c:215
eval_stmt_value at C:/workdir/src\interpreter.c:166 [inlined]
eval_body at C:/workdir/src\interpreter.c:594
eval_body at C:/workdir/src\interpreter.c:522
eval_body at C:/workdir/src\interpreter.c:522
jl_interpret_toplevel_thunk at C:/workdir/src\interpreter.c:750
jl_toplevel_eval_flex at C:/workdir/src\toplevel.c:906
jl_toplevel_eval_flex at C:/workdir/src\toplevel.c:850
ijl_toplevel_eval at C:/workdir/src\toplevel.c:915 [inlined]
ijl_toplevel_eval_in at C:/workdir/src\toplevel.c:965
eval at .\boot.jl:368 [inlined]
include_string at .\loading.jl:1428
jl_fptr_args at C:/workdir/src\gf.c:2138
_jl_invoke at C:/workdir/src\gf.c:2358 [inlined]
ijl_apply_generic at C:/workdir/src\gf.c:2559
_include at .\loading.jl:1488
include at .\client.jl:476
unknown function (ip: 10660535)
_jl_invoke at C:/workdir/src\gf.c:2358 [inlined]
ijl_apply_generic at C:/workdir/src\gf.c:2559
jl_apply at C:/workdir/src\julia.h:1843 [inlined]
do_call at C:/workdir/src\interpreter.c:126
eval_value at C:/workdir/src\interpreter.c:215
eval_stmt_value at C:/workdir/src\interpreter.c:166 [inlined]
eval_body at C:/workdir/src\interpreter.c:594
jl_interpret_toplevel_thunk at C:/workdir/src\interpreter.c:750
jl_toplevel_eval_flex at C:/workdir/src\toplevel.c:906
jl_toplevel_eval_flex at C:/workdir/src\toplevel.c:850
ijl_toplevel_eval at C:/workdir/src\toplevel.c:915 [inlined]
ijl_toplevel_eval_in at C:/workdir/src\toplevel.c:965
eval at .\boot.jl:368 [inlined]
include_string at .\loading.jl:1428
jl_fptr_args at C:/workdir/src\gf.c:2138
_jl_invoke at C:/workdir/src\gf.c:2358 [inlined]
ijl_apply_generic at C:/workdir/src\gf.c:2559
_include at .\loading.jl:1488
include at .\client.jl:476
unknown function (ip: 10660535)
_jl_invoke at C:/workdir/src\gf.c:2377 [inlined]
ijl_apply_generic at C:/workdir/src\gf.c:2559
jl_apply at C:/workdir/src\julia.h:1843 [inlined]
do_call at C:/workdir/src\interpreter.c:126
eval_value at C:/workdir/src\interpreter.c:215
eval_stmt_value at C:/workdir/src\interpreter.c:166 [inlined]
eval_body at C:/workdir/src\interpreter.c:594
jl_interpret_toplevel_thunk at C:/workdir/src\interpreter.c:750
jl_toplevel_eval_flex at C:/workdir/src\toplevel.c:906
jl_toplevel_eval_flex at C:/workdir/src\toplevel.c:850
ijl_toplevel_eval at C:/workdir/src\toplevel.c:915 [inlined]
ijl_toplevel_eval_in at C:/workdir/src\toplevel.c:965
eval at .\boot.jl:368 [inlined]
exec_options at .\client.jl:276
_start at .\client.jl:522
jfptr__start_41558.clone_1 at C:\hostedtoolcache\windows\julia\1.8.5\x86\lib\julia\sys.dll (unknown line)
_jl_invoke at C:/workdir/src\gf.c:2358 [inlined]
ijl_apply_generic at C:/workdir/src\gf.c:2559
jl_apply at C:/workdir/src\julia.h:1843 [inlined]
true_main at C:/workdir/src\jlapi.c:575
jl_repl_entrypoint at C:/workdir/src\jlapi.c:719
jl_load_repl at C:/workdir/cli\loader_lib.c:471
mainCRTStartup at C:/workdir/cli\loader_exe.c:59
BaseThreadInitThunk at C:\Windows\System32\KERNEL32.DLL (unknown line)
RtlGetFullPathName_UEx at C:\Windows\SYSTEM32\ntdll.dll (unknown line)
RtlGetFullPathName_UEx at C:\Windows\SYSTEM32\ntdll.dll (unknown line)
Allocations: 94885190 (Pool: 94868039; Big: 17151); GC: 137
ERROR: LoadError: Package FastTransforms errored during testing
Stacktrace:
 [1] pkgerror(msg::String)
   @ Pkg.Types C:\hostedtoolcache\windows\julia\1.8.5\x86\share\julia\stdlib\v1.8\Pkg\src\Types.jl:67
 [2] test(ctx::Pkg.Types.Context, pkgs::Vector{Pkg.Types.PackageSpec}; coverage::Bool, julia_args::Cmd, test_args::Cmd, test_fn::Nothing, force_latest_compatible_version::Bool, allow_earlier_backwards_compatible_versions::Bool, allow_reresolve::Bool)
   @ Pkg.Operations C:\hostedtoolcache\windows\julia\1.8.5\x86\share\julia\stdlib\v1.8\Pkg\src\Operations.jl:1813
 [3] test(ctx::Pkg.Types.Context, pkgs::Vector{Pkg.Types.PackageSpec}; coverage::Bool, test_fn::Nothing, julia_args::Vector{String}, test_args::Cmd, force_latest_compatible_version::Bool, allow_earlier_backwards_compatible_versions::Bool, allow_reresolve::Bool, kwargs::Base.Pairs{Symbol, IOContext{Base.PipeEndpoint}, Tuple{Symbol}, NamedTuple{(:io,), Tuple{IOContext{Base.PipeEndpoint}}}})
   @ Pkg.API C:\hostedtoolcache\windows\julia\1.8.5\x86\share\julia\stdlib\v1.8\Pkg\src\API.jl:434
 [4] test(pkgs::Vector{Pkg.Types.PackageSpec}; io::IOContext{Base.PipeEndpoint}, kwargs::Base.Pairs{Symbol, Any, Tuple{Symbol, Symbol, Symbol}, NamedTuple{(:julia_args, :coverage, :force_latest_compatible_version), Tuple{Vector{String}, Bool, Bool}}})
   @ Pkg.API C:\hostedtoolcache\windows\julia\1.8.5\x86\share\julia\stdlib\v1.8\Pkg\src\API.jl:156
 [5] test(; name::Nothing, uuid::Nothing, version::Nothing, url::Nothing, rev::Nothing, path::Nothing, mode::Pkg.Types.PackageMode, subdir::Nothing, kwargs::Base.Pairs{Symbol, Any, Tuple{Symbol, Symbol, Symbol}, NamedTuple{(:julia_args, :coverage, :force_latest_compatible_version), Tuple{Vector{String}, Bool, Bool}}})
   @ Pkg.API C:\hostedtoolcache\windows\julia\1.8.5\x86\share\julia\stdlib\v1.8\Pkg\src\API.jl:171
 [6] top-level scope
   @ D:\a\_actions\julia-actions\julia-runtest\latest\test_harness.jl:15
 [7] include(fname::String)
   @ Base.MainInclude .\client.jl:476
 [8] top-level scope
   @ none:1
in expression starting at D:\a\_actions\julia-actions\julia-runtest\latest\test_harness.jl:7
Error: Process completed with exit code 1.

The tests error only on Windows latest for Julia v1.8.5, and pass on Linux and macOS (although the other tests on Windows get cancelled because of this error). The previous CI run from 3 months back did run successfully on Windows latest (for Julia v1.8.3 and v1.7), so this appears to be a regression. Unfortunately, I don't have access to a Windows system to look into this.

@vchuravy
Copy link
Member

vchuravy commented Mar 6, 2023

This is likely not a Julia issue. Windows will throw this error on a double free.

Since the stacktrace goes through:

ft_bfmmf at C:\Users\runneradmin\.julia\artifacts\2f4394502c5b9c9863425335a6140d4bfd02153b\bin\libfasttransforms.dll (unknown line)

It is likely an issue in the library itself.

@devmotion
Copy link
Contributor

I wonder if it's related to #48187 since these issues also only show up on Windows with Julia > 1.8.3.

@giordano
Copy link
Contributor

Can someone who could reproduce this bug before try again with latest master which includes #50135? Although I'm not sure it's the same as #48187 because as far as I understand the error message is different, although the timeline looks similar.

@jishnub
Copy link
Contributor Author

jishnub commented Jun 12, 2023

I think this is fixed now, tests seem to pass using the latest julia nightly on Windows in the PR JuliaApproximation/FastTransforms.jl#222

Thanks a lot!

Any chance of this being backported to 1.9?

@giordano
Copy link
Contributor

Any chance of this being backported to 1.9?

#50135 is already tagged to be backported to v1.9.

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

Successfully merging a pull request may close this issue.

4 participants