Project

General

Profile

SIGNAL issues with DSPLink

Added by Steven Hill over 10 years ago

I am trying to use the alarm() function in an application much like DSPHelloWorld. But if you add an alarm the application will crash when it enters the alarm handler. You can reproduce the behaviour very simply by adding an alarm to DSPHelloWorld.
From my research on the net, I suspect that it has something to do with DSPLink handling signals - but I am not sure how to fix the problem - there are details in the wiki showing how to build DSPLink, but not how to make any changes to it.

Can anyone comment on this?


Replies (1)

RE: SIGNAL issues with DSPLink - Added by Steven Hill over 10 years ago

I was able to make the alarm work by modifying CFG_linux.c and rebuilding DSPLink. I tried two methods:
1. turn off signal handling altogether.
2. remove SIGALRM from the list of signals handled by DSPLink.

Either of these methods allows alarm() to work, but they both result in the following method on shutdown of the app:

Assertion failed (ipsEventList [i].eventHandlerCount == 0). File : /home/mitydsp/MDK_2013-05-15/sw/3rdparty/dsplink_linux_1_65_00_03/dsplink/gpp/src/../../gpp/src/ldrv/IPS/ips.c Line : 604

Can anyone comment on the source of this assertion failure?
    (1-1/1)
    Go to top
    Add picture from clipboard (Maximum size: 1 GB)