Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Julia interface of Fastsum with Openmp crashes #112

Closed
michaelquellmalz opened this issue Jul 21, 2020 · 0 comments
Closed

Julia interface of Fastsum with Openmp crashes #112

michaelquellmalz opened this issue Jul 21, 2020 · 0 comments
Assignees
Labels
Milestone

Comments

@michaelquellmalz
Copy link
Member

Running julia/fastsum/simple_test.jl in Julia 1.4.2 with enabled OpenMP sometimes (not always) crashes with a Segmentation Fault in the in fftw_destroy_plan inside the fastsum_finalize_kernel function. This happens both in Windows and Linux (64bit).

So far, this problem seems to affect only the Julia interface of Fastsum and only the Openmp version. I could not reproduce it by running the Fastsum executables directly.

The stack trace is as follows:

Exception: EXCEPTION_ACCESS_VIOLATION at 0x70689a78 -- fftw_printer_destroy at D:\msys64\mingw64\bin\libfftw3-3.dll (unknown line)
in expression starting at none:0
fftw_printer_destroy at D:\msys64\mingw64\bin\libfftw3-3.dll (unknown line)
fftw_plan_awake at D:\msys64\mingw64\bin\libfftw3-3.dll (unknown line)
fftw_plan_awake at D:\msys64\mingw64\bin\libfftw3-3.dll (unknown line)
fftw_plan_awake at D:\msys64\mingw64\bin\libfftw3-3.dll (unknown line)
fftw_printer_destroy at D:\msys64\mingw64\bin\libfftw3-3.dll (unknown line)
fftw_plan_awake at D:\msys64\mingw64\bin\libfftw3-3.dll (unknown line)
fftw_destroy_plan at D:\msys64\mingw64\bin\libfftw3-3.dll (unknown line)
fastsum_finalize_kernel at D:\msys64\home\qmi\git\nfft\julia\fastsum\libfastsumjulia.dll (unknown line)
jfastsum_finalize at D:\msys64\home\qmi\git\nfft\julia\fastsum\libfastsumjulia.dll (unknown line)
finalize_plan at D:\msys64\home\qmi\git\nfft\julia\fastsum\fastsum.jl:90
unknown function (ip: 000000002CB164CA)
jl_apply at /cygdrive/d/buildbot/worker/package_win64/build/src\julia.h:1700 [inlined]
run_finalizer at /cygdrive/d/buildbot/worker/package_win64/build/src\gc.c:277
jl_gc_run_finalizers_in_list at /cygdrive/d/buildbot/worker/package_win64/build/src\gc.c:363
run_finalizers at /cygdrive/d/buildbot/worker/package_win64/build/src\gc.c:391 [inlined]
run_finalizers at /cygdrive/d/buildbot/worker/package_win64/build/src\gc.c:370
jl_atexit_hook at /cygdrive/d/buildbot/worker/package_win64/build/src\init.c:254
unknown function (ip: 0000000000401BE1)
unknown function (ip: 00000000004013DE)
unknown function (ip: 000000000040151A)
BaseThreadInitThunk at C:\WINDOWS\System32\KERNEL32.DLL (unknown line)
RtlUserThreadStart at C:\WINDOWS\SYSTEM32\ntdll.dll (unknown line)
Allocations: 3439069 (Pool: 3438175; Big: 894); GC: 4
michaelquellmalz added a commit that referenced this issue Jul 22, 2020
Link fastsum library with threads in Julia
@michaelquellmalz michaelquellmalz added this to the 3.5.2 milestone Jul 22, 2020
michaelquellmalz added a commit that referenced this issue Jul 22, 2020
and link libgomp only if openmp is activated
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants