-
Notifications
You must be signed in to change notification settings - Fork 203
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
volk_free causes Segmentation fault #88
Comments
A few more observations: They both occur on the line of code which says 'volk_free(...)'. I checked and the array in question does not get free'd twice or such. Also, it would happen with the next array if I commented this one out. This whole error only occurs during Python unittests. Not while the flowgraph is running normally and then exited. |
It seems like I misused volk_malloc after all. |
👍 |
@jdemel , your lack of formatting code as code has led to your |
I generated a new GR block in an OOT module which is a 'noblock'.
I instantiate it inside a sync block with a
boost::shared_ptr
, do signal processing and destruct the flowgraph.OS: Ubuntu 16.04 in a VirtualBox
VOLK version: 1.2.2, commit f1c4b55
During destruction, I get a SegFault. That's the gdb output
First I thought it might be a general problem. But that's not the case. I can 'volk_free' ~4 aligned arrays. (I do have 9 in total). But if I try to properly free 5 or more, I get this SegFault. I hope it helps to track this thing down.
That's the backtrace
(gdb) bt
at malloc.c:4015
at /usr/include/boost/smart_ptr/detail/sp_counted_base_gcc_x86.hpp:146
at /usr/include/c++/5/bits/stl_construct.h:93
at /usr/include/c++/5/bits/stl_construct.h:103
at /usr/include/c++/5/bits/stl_construct.h:126
at /usr/include/c++/5/bits/stl_construct.h:151
at /usr/include/c++/5/bits/stl_vector.h:1438
at /usr/include/c++/5/bits/stl_vector.h:1212
at [prefix]/src/gnuradio/gnuradio-runtime/lib/flowgraph.cc:128
at [prefix]/src/gnuradio/gnuradio-runtime/lib/hier_block2_detail.cc:518
at [prefix]/src/gnuradio/gnuradio-runtime/lib/hier_block2.cc:140
at [prefix]/src/gnuradio/gnuradio-runtime/lib/hier_block2.cc:60
at [prefix]/src/gnuradio/gnuradio-runtime/lib/top_block.cc:57
at /usr/include/boost/smart_ptr/detail/sp_counted_base_gcc_x86.hpp:146
at [prefix]/src/gnuradio/build/gnuradio-runtime/swig/runtime_swigPYTHON_wrap.cxx:46736
at /usr/include/boost/smart_ptr/detail/shared_count.hpp:443
at /usr/include/boost/smart_ptr/shared_ptr.hpp:323
at [prefix]/src/gnuradio/build/gnuradio-runtime/swig/runtime_swigPYTHON_wrap.cxx:46723
at [prefix]/src/gnuradio/build/gnuradio-runtime/swig/runtime_swigPYTHON_wrap.cxx:1677
The text was updated successfully, but these errors were encountered: