On Mon, Aug 3, 2015 at 9:09 AM, <[email protected]> wrote: > hello everyone, > i'm trying to understand a decimator block and how to write such a block > by myself. for testing and learning purposes only i have written a simple > block. the c++-code you can see in "cpp_code.png" and the python qa-code > you can see in "qa_python.png". there is an input vector > (1,4,3,9,5,2,4,1,6) and it should calculate the sum of every three numbers > (1+4+3=8, 9+5+2=16, ...) > everytime i get a segmentation fault error message. do anybody know why? > > thanks for your help! > > > alphonso >
The best thing to do is put debug points or print out information about your block's work function. See what you values of noutput_items, i, and k are through the loop, and see where it crashes on you. Generally, these problems comes from a mishandling of the buffer boundary conditions. Tom
_______________________________________________ Discuss-gnuradio mailing list [email protected] https://lists.gnu.org/mailman/listinfo/discuss-gnuradio
