Skip to content

Crash in PfDivCeil #217

@eleventeen

Description

@eleventeen

Branch develop (e8e6a39).
Compiled with VKFFT_BACKEND=3.

The config:

  VkFFTConfiguration config{};
  config.device = ...;
  config.context = ...;
  config.buffer = ...;
  config.commandQueue = ...;
  config.FFTdim = 2;
  config.size[0] = size.width;
  config.size[1] = size.height;
  config.performR2C = 1;
  config.normalize = 1;
  if (size.width == 2048 && size.height == 1536) {
    config.fixMinRaderPrimeMult = 2;
  }

causes:

AddressSanitizer:DEADLYSIGNAL
=================================================================
==1016413==ERROR: AddressSanitizer: FPE on unknown address 0x776485fb42e0 (pc 0x776485fb42e0 bp 0x7ffcfd229e70 sp 0x7ffcfd229e40 T0)
    #0 0x776485fb42e0 in PfDivCeil VkFFT/vkFFT/vkFFT/vkFFT_CodeGen/vkFFT_MathUtils/vkFFT_MathUtils.h:2882
    #1 0x7764860a77d0 in appendRadixStageNonStrided VkFFT/vkFFT/vkFFT/vkFFT_CodeGen/vkFFT_KernelsLevel1/vkFFT_RadixStage.h:58
    #2 0x7764860b04a3 in appendRadixStage VkFFT/vkFFT/vkFFT/vkFFT_CodeGen/vkFFT_KernelsLevel1/vkFFT_RadixStage.h:588
    #3 0x7764860bf043 in shaderGen_FFT VkFFT/vkFFT/vkFFT/vkFFT_CodeGen/vkFFT_KernelsLevel2/vkFFT_FFT.h:176
    #4 0x7764860d04f1 in VkFFTPlanAxis VkFFT/vkFFT/vkFFT/vkFFT_PlanManagement/vkFFT_Plans/vkFFT_Plan_FFT.h:841
    #5 0x7764860e8cea in initializeVkFFT VkFFT/vkFFT/vkFFT/vkFFT_AppManagement/vkFFT_InitializeApp.h:2005

I see the problem only when setting fixMinRaderPrimeMult = 2.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions