Closed
Description
I am getting a random segfault in the astrophoto denoise module - if I drag the exposure slider around it will crash within a few seconds.
The segfault occurs here:
darktable/src/common/nlmeans_core.c
Line 710 in 22078ab
It looks like the problem is in this line:
__m128 pixel = _mm_load_ps(in+4*col+offset);
_mm_load_ps requires that its operand is aligned to 16 bytes, but in+4*col+offset is not guaranteed to be aligned that way. As a quick test I changed all instances of _mm_load_ps in the file to _mm_loadu_ps which does not have the alignment requirement, and that fixes the crash.
Platform
- darktable version : 4.1.0+577~gafb0ac5c0
- Linux - Distro : Arch Linux
- Memory : 16GB
- Graphics card : GTX 1080
- Graphics driver :
- OpenCL installed : yes
- OpenCL activated : no
- Xorg : 21.1.4
- Desktop : kde
- GTK+ : 3.24.34
- gcc : 12.2.0
- cflags :
- CMAKE_BUILD_TYPE : RelWithDebInfo
Metadata
Assignees
Labels
No labels