Community
cancel
Showing results for 
Search instead for 
Did you mean: 
kristinmj
Beginner
122 Views

Segmentation Fault from ippsFIRMRInitAlloc_32fc

When using the ippsFIRMRInitAlloc_32fc function I have found that for large interpolation, decimation and filter length values the function results in a segmentation fault. It seems to me that if there are size limitations, the function should fail more gracefully. I'm wondering if anybody else has encountered this problem or if, perhaps, I'm calling the function wrong or failing to perform certain necessary checks.

The following code snippit reliably fails every time I run it:


//*****************************************************************
#include
#include
#include

using namespace std;

int main() {

// It will also fail for other values of taps_len and for other
// interpolation/decimation values.

int L = 24009;
int M = 22795;

int taps_len = 435123;

int upPhase = 0;
int downPhase = 0;

Ipp32fc* pTaps = new Ipp32fc[taps_len];

Ipp32fc* pDlyLine = NULL;

IppStatus status = ippStsNoErr;

IppsFIRState_32fc* pState;

status = ippsFIRMRInitAlloc_32fc(&pState, pTaps, taps_len, L, upPhase, M, downPhase, pDlyLine);

if(status != ippStsNoErr) cout << "IPP STATUS ERROR!\\n" << flush;

delete[] pTaps;

}
//*************************************************************************


Any comments or suggestions are much appreciated.

Cheers,
-Kristin
0 Kudos
5 Replies
Gennady_F_Intel
Moderator
122 Views

Kristin,
there are no size limitations with this function.I checked your code with version 6.1 u5, win32.
ippsFIRMRInitAlloc_32fc returns ippStsNoErr.
Can you give us more details (OS, architecture, IPP version) for reproducning the problem?
--Gennady
kristinmj
Beginner
122 Views

Gennady,

Thank you for your reply. We are running on Red Hat Linux

Some specifics:

The problem occurs for:
Intel Compiler Suite 12.0.2
IPP 7.0
Kernel: 2.6.18-128.el5PAE

We are able to run the code successfully for:
Intel Compiler Suite 11.1.073
IPP 6.1.6.063 (l_ipp_ia32_p_6.1.6.063)
Kernel: 2.6.18-1.2801.mastodonPAE

-Kristin
Gennady_F_Intel
Moderator
122 Views

Kristin,

Thanks for the update. I reproduced the segmentation.This issue has been submitted to our internal development tracking database for further investigation, we will inform you once a new update becomes available.Here is a bug tracking number for your reference: 200207720.

I will back to you as soon as any update from the owner of the code.

--Gennady

Gennady_F_Intel
Moderator
122 Views

Kristin,
please check the problem with the latest versin of IPP 7.0 update 5 which is now available and let us know the results.
--Gennady
kristinmj
Beginner
122 Views

Gennady,
I installed the updates, ran my test code and the problem is corrected.
Thank you for your help.
-Kristin
Reply