Segmentation Fault or *** glibc detected *** python: double free or corruption (out): 0x0000000002ed

I have a very simple gnuradio python code (file source --> RRC filter
–>
USRPsink)

i run the code, and i get either Segmentation Fault, or I get this long
error:

*** glibc detected *** python: double free or corruption (out):
0x0000000002ed6fb0 ***
======= Backtrace: =========
/lib/x86_64-linux-gnu/libc.so.6(+0x78a96)[0x7f2aa0810a96]
/lib/x86_64-linux-gnu/libc.so.6(cfree+0x6c)[0x7f2aa0814d7c]
/usr/local/lib/libuhd.so.003(+0x1e7a71)[0x7f2a9c3aca71]
/usr/local/lib/libuhd.so.003(+0x62bb9)[0x7f2a9c227bb9]
/usr/local/lib/libuhd.so.003(+0x200c21)[0x7f2a9c3c5c21]
/usr/local/lib/libuhd.so.003(_ZNSt6vectorIN5boost8functionIFvRKN3uhd11time_spec_tEEEESaIS7_EED1Ev+0x3e)[0x7f2a9c3c76be]
/usr/local/lib/libuhd.so.003(+0x1f1a98)[0x7f2a9c3b6a98]
/usr/local/lib/libuhd.so.003(_ZNSt10_List_baseISt4pairISsN18property_tree_impl9node_typeEESaIS3_EED2Ev+0x1a4)[0x7f2a9c4767d4]
/usr/local/lib/libuhd.so.003(_ZNSt10_List_baseISt4pairISsN18property_tree_impl9node_typeEESaIS3_EED2Ev+0xb9)[0x7f2a9c4766e9]
/usr/local/lib/libuhd.so.003(+0x2b1b3a)[0x7f2a9c476b3a]
/usr/local/lib/libuhd.so.003(+0x2b15fa)[0x7f2a9c4765fa]
/usr/local/lib/libuhd.so.003(+0xccb12)[0x7f2a9c291b12]
/usr/local/lib/libuhd.so.003(+0x62bb9)[0x7f2a9c227bb9]
/usr/local/lib/libuhd.so.003(+0x11e9d2)[0x7f2a9c2e39d2]
/usr/local/lib/libuhd.so.003(+0xd32cc)[0x7f2a9c2982cc]
/usr/local/lib/libuhd.so.003(+0xd8ab2)[0x7f2a9c29dab2]
/usr/local/lib/libuhd.so.003(+0x62bb9)[0x7f2a9c227bb9]
/usr/local/lib/libuhd.so.003(+0x200d07)[0x7f2a9c3c5d07]
/usr/local/lib/libuhd.so.003(+0x1ef510)[0x7f2a9c3b4510]
/usr/local/lib/libuhd.so.003(+0x200fc2)[0x7f2a9c3c5fc2]
/usr/local/lib/libuhd.so.003(+0x62bb9)[0x7f2a9c227bb9]
/usr/local/lib/libuhd.so.003(+0xe6f8a)[0x7f2a9c2abf8a]
/usr/local/lib/libgnuradio-uhd-3.5.2git.so.0.0.0(+0x1801f)[0x7f2a9c76d01f]
/usr/local/lib/python2.7/dist-packages/gnuradio/uhd/_uhd_swig.so(+0x7ab69)[0x7f2a9c9f1b69]
/usr/local/lib/python2.7/dist-packages/gnuradio/uhd/_uhd_swig.so(+0x48569)[0x7f2a9c9bf569]
python[0x42418c]
python(PyObject_CallFunctionObjArgs+0xac)[0x4274ec]
/usr/local/lib/python2.7/dist-packages/gnuradio/uhd/_uhd_swig.so(+0x191a5)[0x7f2a9c9901a5]
python[0x45e7f9]
python[0x47d986]
python[0x45f0b9]
python(PyDict_SetItem+0x46)[0x460466]
python(_PyModule_Clear+0xee)[0x46372e]
python(PyImport_Cleanup+0x297)[0x4d2ee7]
python(Py_Finalize+0x85)[0x4ddf55]
python(Py_Main+0x2b5)[0x4ee495]
/lib/x86_64-linux-gnu/libc.so.6(__libc_start_main+0xed)[0x7f2aa07b930d]
python[0x41cb69]
======= Memory map: ========
00400000-00633000 r-xp 00000000 07:00 20376
/usr/bin/python2.7
00832000-00833000 r–p 00232000 07:00 20376
/usr/bin/python2.7
00833000-0089c000 rw-p 00233000 07:00 20376
/usr/bin/python2.7
0089c000-008ae000 rw-p 00000000 00:00 0
01e0a000-02f18000 rw-p 00000000 00:00 0
[heap]
7f2a90000000-7f2a90021000 rw-p 00000000 00:00 0
7f2a90021000-7f2a94000000 —p 00000000 00:00 0
7f2a94553000-7f2a94554000 —p 00000000 00:00 0
7f2a94554000-7f2a94d54000 rw-p 00000000 00:00 0
7f2a94d54000-7f2a94d55000 —p 00000000 00:00 0
7f2a94d55000-7f2a95555000 rw-p 00000000 00:00 0
7f2a96557000-7f2a96558000 —p 00000000 00:00 0
7f2a96558000-7f2a96d58000 rw-p 00000000 00:00 0
7f2a96d58000-7f2a96d59000 —p 00000000 00:00 0
7f2a96d59000-7f2a97559000 rw-p 00000000 00:00 0
7f2a97559000-7f2a9757d000 r-xp 00000000 07:00 70372
/usr/lib/x86_64-linux-gnu/libjpeg.so.62.0.0
7f2a9757d000-7f2a9777c000 —p 00024000 07:00 70372
/usr/lib/x86_64-linux-gnu/libjpeg.so.62.0.0
7f2a9777c000-7f2a9777d000 r–p 00023000 07:00 70372
/usr/lib/x86_64-linux-gnu/libjpeg.so.62.0.0
7f2a9777d000-7f2a9777e000 rw-p 00024000 07:00 70372
/usr/lib/x86_64-linux-gnu/libjpeg.so.62.0.0
7f2a9777e000-7f2a977ba000 r-xp 00000000 07:00 249510
/usr/lib/python2.7/dist-packages/PIL/_imaging.so
7f2a977ba000-7f2a979b9000 —p 0003c000 07:00 249510
/usr/lib/python2.7/dist-packages/PIL/_imaging.so
7f2a979b9000-7f2a979bc000 r–p 0003b000 07:00 249510
/usr/lib/python2.7/dist-packages/PIL/_imaging.so
7f2a979bc000-7f2a979bf000 rw-p 0003e000 07:00 249510
/usr/lib/python2.7/dist-packages/PIL/_imaging.so
7f2a979bf000-7f2a979de000 r-xp 00000000 07:00 237285
/usr/lib/python2.7/lib-dynload/_ctypes.so
7f2a979de000-7f2a97bde000 —p 0001f000 07:00 237285
/usr/lib/python2.7/lib-dynload/_ctypes.so
7f2a97bde000-7f2a97bdf000 r–p 0001f000 07:00 237285
/usr/lib/python2.7/lib-dynload/_ctypes.so
7f2a97bdf000-7f2a97be3000 rw-p 00020000 07:00 237285
/usr/lib/python2.7/lib-dynload/_ctypes.so
7f2a97be3000-7f2a97be4000 rw-p 00000000 00:00 0
7f2a97be4000-7f2a97c2d000 r-xp 00000000 07:00 490724
/usr/lib/pyshared/python2.7/numpy/random/mtrand.so
7f2a97c2d000-7f2a97e2d000 —p 00049000 07:00 490724
/usr/lib/pyshared/python2.7/numpy/random/mtrand.so
7f2a97e2d000-7f2a97e2e000 r–p 00049000 07:00 490724
/usr/lib/pyshared/python2.7/numpy/random/mtrand.so
7f2a97e2e000-7f2a97e4a000 rw-p 0004a000 07:00 490724
/usr/lib/pyshared/python2.7/numpy/random/mtrand.so
7f2a97e4a000-7f2a97e4b000 rw-p 00000000 00:00 0
7f2a97e4b000-7f2a97e54000 r-xp 00000000 07:00 490722
/usr/lib/pyshared/python2.7/numpy/fft/fftpack_lite.so
7f2a97e54000-7f2a98053000 —p 00009000 07:00 490722
/usr/lib/pyshared/python2.7/numpy/fft/fftpack_lite.so
7f2a98053000-7f2a98054000 r–p 00008000 07:00 490722
/usr/lib/pyshared/python2.7/numpy/fft/fftpack_lite.so
7f2a98054000-7f2a98055000 rw-p 00009000 07:00 490722
/usr/lib/pyshared/python2.7/numpy/fft/fftpack_lite.so
7f2a98055000-7f2a9808a000 r-xp 00000000 07:00 69938
/usr/lib/x86_64-linux-gnu/libquadmath.so.0.0.0
7f2a9808a000-7f2a98289000 —p 00035000 07:00 69938
/usr/lib/x86_64-linux-gnu/libquadmath.so.0.0.0
7f2a98289000-7f2a9828a000 r–p 00034000 07:00 69938
/usr/lib/x86_64-linux-gnu/libquadmath.so.0.0.0
7f2a9828a000-7f2a9828b000 rw-p 00035000 07:00 69938
/usr/lib/x86_64-linux-gnu/libquadmath.so.0.0.0
7f2a9828b000-7f2a9839f000 r-xp 00000000 07:00 913416
/usr/lib/x86_64-linux-gnu/libgfortran.so.3.0.0
7f2a9839f000-7f2a9859e000 —p 00114000 07:00 913416
/usr/lib/x86_64-linux-gnu/libgfortran.so.3.0.0
7f2a9859e000-7f2a9859f000 r–p 00113000 07:00 913416
/usr/lib/x86_64-linux-gnu/libgfortran.so.3.0.0
7f2a9859f000-7f2a985a1000 rw-p 00114000 07:00 913416
/usr/lib/x86_64-linux-gnu/libgfortran.so.3.0.0
7f2a985a1000-7f2a98e86000 r-xp 00000000 07:00 455730
/usr/lib/lapack/liblapack.so.3gf.0
7f2a98e86000-7f2a99085000 —p 008e5000 07:00 455730
/usr/lib/lapack/liblapack.so.3gf.0
7f2a99085000-7f2a99086000 r–p 008e4000 07:00 455730
/usr/lib/lapack/liblapack.so.3gf.0
7f2a99086000-7f2a9908a000 rw-p 008e5000 07:00 455730
/usr/lib/lapack/liblapack.so.3gf.0
7f2a9908a000-7f2a99197000 rw-p 00000000 00:00 0
7f2a99197000-7f2a9919c000 r-xp 00000000 07:00 490720
/usr/lib/pyshared/python2.7/numpy/linalg/lapack_lite.so
7f2a9919c000-7f2a9939c000 —p 00005000 07:00 490720
/usr/lib/pyshared/python2.7/numpy/linalg/lapack_lite.so
7f2a9939c000-7f2a9939d000 r–p 00005000 07:00 490720
/usr/lib/pyshared/python2.7/numpy/linalg/lapack_lite.so
7f2a9939d000-7f2a9939e000 rw-p 00006000 07:00 490720
/usr/lib/pyshared/python2.7/numpy/linalg/lapack_lite.so
7f2a9939e000-7f2a993a2000 r-xp 00000000 07:00 490718
/usr/lib/pyshared/python2.7/numpy/lib/_compiled_base.so
7f2a993a2000-7f2a995a1000 —p 00004000 07:00 490718
/usr/lib/pyshared/python2.7/numpy/lib/_compiled_base.so
7f2a995a1000-7f2a995a2000 r–p 00003000 07:00 490718
/usr/lib/pyshared/python2.7/numpy/lib/_compiled_base.so
7f2a995a2000-7f2a995a3000 rw-p 00004000 07:00 490718
/usr/lib/pyshared/python2.7/numpy/lib/_compiled_base.so
7f2a995a3000-7f2a995c9000 r-xp 00000000 07:00 490708
/usr/lib/pyshared/python2.7/numpy/core/scalarmath.so
7f2a995c9000-7f2a997c8000 —p 00026000 07:00 490708
/usr/lib/pyshared/python2.7/numpy/core/scalarmath.so
7f2a997c8000-7f2a997c9000 r–p 00025000 07:00 490708
/usr/lib/pyshared/python2.7/numpy/core/scalarmath.so
7f2a997c9000-7f2a997cb000 rw-p 00026000 07:00 490708
/usr/lib/pyshared/python2.7/numpy/core/scalarmath.so
7f2a997cb000-7f2a99864000 r-xp 00000000 07:00 417979
/usr/lib/libblas/libblas.so.3gf.0
7f2a99864000-7f2a99a63000 —p 00099000 07:00 417979
/usr/lib/libblas/libblas.so.3gf.0
7f2a99a63000-7f2a99a64000 r–p 00098000 07:00 417979
/usr/lib/libblas/libblas.so.3gf.0
7f2a99a64000-7f2a99a65000 rw-p 00099000 07:00 417979
/usr/lib/libblas/libblas.so.3gf.0
7f2a99a65000-7f2a99a6a000 r-xp 00000000 07:00 490713
/usr/lib/pyshared/python2.7/numpy/core/_dotblas.so
7f2a99a6a000-7f2a99c69000 —p 00005000 07:00 490713
/usr/lib/pyshared/python2.7/numpy/core/_dotblas.so
7f2a99c69000-7f2a99c6a000 r–p 00004000 07:00 490713
/usr/lib/pyshared/python2.7/numpy/core/_dotblas.so
7f2a99c6a000-7f2a99c6b000 rw-p 00005000 07:00 490713
/usr/lib/pyshared/python2.7/numpy/core/_dotblas.so
7f2a99c6b000-7f2a99c80000 r-xp 00000000 07:00 490711
/usr/lib/pyshared/python2.7/numpy/core/_sort.so
7f2a99c80000-7f2a99e7f000 —p 00015000 07:00 490711
/usr/lib/pyshared/python2.7/numpy/core/_sort.so
7f2a99e7f000-7f2a99e80000 r–p 00014000 07:00 490711
/usr/lib/pyshared/python2.7/numpy/core/_sort.so
7f2a99e80000-7f2a99e81000 rw-p 00015000 07:00 490711
/usr/lib/pyshared/python2.7/numpy/core/_sort.so
7f2a99e81000-7f2a99ecd000 r-xp 00000000 07:00 490710
/usr/lib/pyshared/python2.7/numpy/core/umath.so
7f2a99ecd000-7f2a9a0cc000 —p 0004c000 07:00 490710
/usr/lib/pyshared/python2.7/numpy/core/umath.so
7f2a9a0cc000-7f2a9a0cd000 r–p 0004b000 07:00 490710
/usr/lib/pyshared/python2.7/numpy/core/umath.so
7f2a9a0cd000-7f2a9a0d1000 rw-p 0004c000 07:00 490710
/usr/lib/pyshared/python2.7/numpy/core/umath.so
7f2a9a0d1000-7f2a9a0d3000 rw-p 00000000 00:00 0
7f2a9a0d3000-7f2a9a159000 r-xp 00000000 07:00 490714
/usr/lib/pyshared/python2.7/numpy/core/multiarray.so
7f2a9a159000-7f2a9a358000 —p 00086000 07:00 490714
/usr/lib/pyshared/python2.7/numpy/core/multiarray.so
7f2a9a358000-7f2a9a359000 r–p 00085000 07:00 490714
/usr/lib/pyshared/python2.7/numpy/core/multiarray.so
7f2a9a359000-7f2a9a364000 rw-p 00086000 07:00 490714
/usr/lib/pyshared/python2.7/numpy/core/multiarray.so
7f2a9a364000-7f2a9a366000 rw-p 00000000 00:00 0
7f2a9a366000-7f2a9b1a6000 r–p 00000000 07:00 1029246
/usr/lib/libicudata.so.44.2
7f2a9b1a6000-7f2a9b3a5000 —p 00e40000 07:00 1029246
/usr/lib/libicudata.so.44.2
7f2a9b3a5000-7f2a9b3a6000 rw-p 00e3f000 07:00 1029246
/usr/lib/libicudata.so.44.2
7f2a9b3a6000-7f2a9b551000 r-xp 00000000 07:00 1029248
/usr/lib/libicui18n.so.44.2
7f2a9b551000-7f2a9b750000 —p 001ab000 07:00 1029248
/usr/lib/libicui18n.so.44.2
7f2a9b750000-7f2a9b75b000 r–p 001aa000 07:00 1029248
/usr/lib/libicui18n.so.44.2
7f2a9b75b000-7f2a9b75c000 rw-p 001b5000 07:00 1029248
/usr/lib/libicui18n.so.44.2
7f2a9b75c000-7f2a9b75d000 rw-p 00000000 00:00 0
7f2a9b75d000-7f2a9b891000 r-xp 00000000 07:00 1029251
/usr/lib/libicuuc.so.44.2
7f2a9b891000-7f2a9ba90000 —p 00134000 07:00 1029251
/usr/lib/libicuuc.so.44.2
7f2a9ba90000-7f2a9ba9f000 r–p 00133000 07:00 1029251
/usr/lib/libicuuc.so.44.2
7f2a9ba9f000-7f2a9baa0000 rw-p 00142000 07:00 1029251
/usr/lib/libicuuc.so.44.2
7f2a9baa0000-7f2a9baa4000 rw-p 00000000 00:00 0
7f2a9baa4000-7f2a9bab1000 r-xp 00000000 07:00 2176
/lib/x86_64-linux-gnu/libusb-1.0.so.0.0.0
7f2a9bab1000-7f2a9bcb0000 —p 0000d000 07:00 2176
/lib/x86_64-linux-gnu/libusb-1.0.so.0.0.0
7f2a9bcb0000-7f2a9bcb1000 r–p 0000c000 07:00 2176
/lib/x86_64-linux-gnu/libusb-1.0.so.0.0.0
7f2a9bcb1000-7f2a9bcb2000 rw-p 0000d000 07:00 2176
/lib/x86_64-linux-gnu/libusb-1.0.so.0.0.0
7f2a9bcb2000-7f2a9bdad000 r-xp 00000000 07:00 1029255
/usr/lib/libboost_regex.so.1.46.1
7f2a9bdad000-7f2a9bfac000 —p 000fb000 07:00 1029255
/usr/lib/libboost_regex.so.1.46.1
7f2a9bfac000-7f2a9bfb1000 r–p 000fa000 07:00 1029255
/usr/lib/libboost_regex.so.1.46.1
7f2a9bfb1000-7f2a9bfb3000 rw-p 000ff000 07:00 1029255
/usr/lib/libboost_regex.so.1.46.1
7f2a9bfb3000-7f2a9bfb4000 rw-p 00000000 00:00 0
7f2a9bfb4000-7f2a9bfc3000 r-xp 00000000 07:00 1029203
/usr/lib/libboost_date_time.so.1.46.1
7f2a9bfc3000-7f2a9c1c3000 —p 0000f000 07:00 1029203
/usr/lib/libboost_date_time.so.1.46.1
7f2a9c1c3000-7f2a9c1c4000 r–p 0000f000 07:00 1029203
/usr/lib/libboost_date_time.so.1.46.1
7f2a9c1c4000-7f2a9c1c5000 rw-p 00010000 07:00 1029203
/usr/lib/libboost_date_time.so.1.46.1
7f2a9c1c5000-7f2a9c53b000 r-xp 00000000 07:00 1123329
/usr/local/lib/libuhd.so.003.004
7f2a9c53b000-7f2a9c73a000 —p 00376000 07:00 1123329
/usr/local/lib/libuhd.so.003.004
7f2a9c73a000-7f2a9c751000 r–p 00375000 07:00 1123329
/usr/local/lib/libuhd.so.003.004
7f2a9c751000-7f2a9c754000 rw-p 0038c000 07:00 1123329
/usr/local/lib/libuhd.so.003.004
7f2a9c754000-7f2a9c755000 rw-p 00000000 00:00 0
7f2a9c755000-7f2a9c774000 r-xp 00000000 07:00 1123370
/usr/local/lib/libgnuradio-uhd-3.5.2git.so.0.0.0
7f2a9c774000-7f2a9c974000 —p 0001f000 07:00 1123370
/usr/local/lib/libgnuradio-uhd-3.5.2git.so.0.0.0
7f2a9c974000-7f2a9c976000 r–p 0001f000 07:00 1123370
/usr/local/lib/libgnuradio-uhd-3.5.2git.so.0.0.0
7f2a9c976000-7f2a9c977000 rw-p 00021000 07:00 1123370
/usr/local/lib/libgnuradio-uhd-3.5.2git.so.0.0.0
7f2a9c977000-7f2a9ca48000 r-xp 00000000 07:00 663555
/usr/local/lib/python2.7/dist-packages/gnuradio/uhd/_uhd_swig.so
7f2a9ca48000-7f2a9cc47000 —p 000d1000 07:00 663555
/usr/local/lib/python2.7/dist-packages/gnuradio/uhd/_uhd_swig.soAborted

MY GNURADIO CODE:

from gnuradio import gr, uhd
import numpy

samplerate=4*106
symbolrate=10
6
sampersym=samplerate/symbolrate

tx=gr.top_block()

snk0=uhd.usrp_sink(‘serial=1R24XAU1’,uhd.io_type.COMPLEX_FLOAT32,1)
snk0.set_samp_rate(samplerate)
snk0.set_center_freq(2.44*10**9)

src0= gr.file_source(gr.sizeof_gr_complex,‘msgtxd.dat’,False)
tapval=gr.firdes_root_raised_cosine(sampersym,
samplerate,symbolrate,
0.35,sampersym*11)

fil = gr.interp_fir_filter_ccf(int(sampersym),
tapval)
tx.connect(src0,fil,snk0)
tx.run()
print ‘done’

Please help.

View this message in context:
http://old.nabble.com/Segmentation-Fault-or-***-glibc-detected-***-python%3A-double-free-or-corruption-(out)%3A-0x0000000002ed6fb0-***-%3D%3D%3D%3D%3D%3D%3D-Backtrace%3A-%3D%3D%3D%3D%3D%3D%3D%3D%3D-tp33531330p33531330.html
Sent from the GnuRadio mailing list archive at Nabble.com.

On Mon, Mar 19, 2012 at 9:04 AM, UB [email protected] wrote:

I have a very simple gnuradio python code (file source --> RRC filter -->
USRPsink)

What version of GNU Radio are you using? What’s your hardware
(processor)?

And, you can follow this to help nail down where the segfault is
occurring:
http://gnuradio.org/redmine/projects/gnuradio/wiki/FAQ#How-do-I-debug-GNU-Radio-in-Python

Tom

This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs