Hi,
I’m new to SDR and gnuradio and trying to get started with an USRP B200
and gnuradio on ubuntu 14.04.
I’m using pybombs (up-to-date) for building. Building succeeds but i get
a segfault when running uhd_fft.
The backtrace is below.
I checked if the correct libuhd was being used (with ldd),instead of an
old version from an ubuntu package.
I also tried uhd_find_devices (which uses pure uhd if i’m correct,
without gnuradio?), this works fine.
Running “pybombs verify gnuradio” results in:
The following tests FAILED:
183 - qa_uhd (Failed)
192 - qa_fcd (Failed)
Errors while running CT
Running gnuradio/gr-uhd/python/uhd/qa_uhd.py in gdb segfaults with a
similar backtrace as well.
Finally, i tried changing the gnuradio recipe to use the maint branch
instead of master.
Rebuilding (after cleaning the build dir) results in the same situation
however.
I don’t know where to look next. Did anyone experience the same problem?
Thanks for any pointers!
(gdb) bt
#0 0x000000000001e626 in ?? ()
#1 0x00007ffff079d3a0 in strstr (__needle=0x7ffff082bfca "swig_ptr: ",
__haystack=0xd9398 <error: Cannot access memory at address 0xd9398>) at
/usr/include/string.h:337
#2 SWIG_Python_FixMethods (methods=0x7ffff0a57380 ,
const_table=0x7ffff0a5d920 <swig_const_table>, types=0x7ffff0a5d980
<swig_types>,
types_initial=0x7ffff0a55a20 <swig_type_initial>) at
/home/glenn/projects/pybombs/src/gnuradio/build/gr-uhd/swig/uhd_swigPYTHON_wrap.cxx:47200
#3 init_uhd_swig () at
/home/glenn/projects/pybombs/src/gnuradio/build/gr-uhd/swig/uhd_swigPYTHON_wrap.cxx:47321
#4 0x00000000004268bc in _PyImport_LoadDynamicModule
(name=0x7ffff1cccd74 “_uhd_swig”,
pathname=0x7fffed3fa48c
“/home/glenn/bin/gnuradio/lib/python2.7/dist-packages/gnuradio/uhd/_uhd_swig.so”,
fp=) at …/Python/importdl.c:53
#5 0x00000000005b75d1 in load_module.39237 (name=,
fp=, pathname=, type=,
loader=loader@entry=0x0)
at …/Python/import.c:1915
#6 0x000000000046232a in imp_load_module.39244 (self=,
args=) at …/Python/import.c:3182
#7 0x000000000052c6d5 in call_function (oparg=,
pp_stack=0x7fffffffc170) at …/Python/ceval.c:4020
#8 PyEval_EvalFrameEx (f=f@entry=
Frame 0x7ffff2182a50, for file
/home/glenn/bin/gnuradio/lib/python2.7/dist-packages/gnuradio/uhd/uhd_swig.py,
line 24, in swig_import_helper (dirname=<function at remote
0x7ffff7f0f578>, imp=<module at remote 0x7ffff6b519f0>, fp=<file at
remote 0x7ffff0aa1f60>,
pathname=‘/home/glenn/bin/gnuradio/lib/python2.7/dist-packages/gnuradio/uhd/_uhd_swig.so’,
description=(‘.so’, ‘rb’, 3)), throwflag=throwflag@entry=0) at
…/Python/ceval.c:2666
#9 0x000000000052cf32 in fast_function (nk=,
na=, n=0, pp_stack=0x7fffffffc2b0, func=<function at
remote 0x7fffed3fa398>)
at …/Python/ceval.c:4106
#10 call_function (oparg=, pp_stack=0x7fffffffc2b0) at
…/Python/ceval.c:4041
#11 PyEval_EvalFrameEx (f=f@entry=Frame 0x7ffff1c73b00, for file
/home/glenn/bin/gnuradio/lib/python2.7/dist-packages/gnuradio/uhd/uhd_swig.py,
line 28, in (),
throwflag=throwflag@entry=0) at …/Python/ceval.c:2666
#12 0x000000000055c594 in PyEval_EvalCodeEx (co=0x7fffed40a9b0,
globals=, locals=, args=,
argcount=,
kws=, kwcount=0, defs=0x0, defcount=0, closure=0x0)
at …/Python/ceval.c:3252
#13 0x00000000005b7392 in PyEval_EvalCode (co=,
globals=, locals=) at
…/Python/ceval.c:667
#14 0x00000000005b744a in PyImport_ExecCodeModuleEx
(name=name@entry=0xdf9060 “gnuradio.uhd.uhd_swig”, co=co@entry=<code at
remote 0x7fffed40a9b0>,
pathname=pathname@entry=0xa0f170
“/home/glenn/bin/gnuradio/lib/python2.7/dist-packages/gnuradio/uhd/uhd_swig.pyc”)
at …/Python/import.c:709
#15 0x0000000000579f0f in load_source_module.39194
(name=name@entry=0xdf9060 “gnuradio.uhd.uhd_swig”,
pathname=0xa0f170
“/home/glenn/bin/gnuradio/lib/python2.7/dist-packages/gnuradio/uhd/uhd_swig.pyc”,
pathname@entry=0xa72300
“/home/glenn/bin/gnuradio/lib/python2.7/dist-packages/gnuradio/uhd/uhd_swig.py”,
fp=) at …/Python/import.c:1099
#16 0x00000000005b7541 in load_module.39237 (name=name@entry=0xdf9060
“gnuradio.uhd.uhd_swig”, fp=,
pathname=pathname@entry=0xa72300
“/home/glenn/bin/gnuradio/lib/python2.7/dist-packages/gnuradio/uhd/uhd_swig.py”,
type=, loader=)
at …/Python/import.c:1906
#17 0x000000000055d3a3 in import_submodule.39248 (mod=mod@entry=<module
at remote 0x7ffff1c8aa98>, subname=subname@entry=0xdf906d “uhd_swig”,
fullname=0xdf9060 “gnuradio.uhd.uhd_swig”) at
…/Python/import.c:2700
#18 0x000000000055d77c in load_next (mod=<module at remote
0x7ffff1c8aa98>, altmod=None, p_name=p_name@entry=0x7fffffffc650,
buf=buf@entry=0xdf9060 “gnuradio.uhd.uhd_swig”,
p_buflen=p_buflen@entry=0x7fffffffc660) at …/Python/import.c:2515
#19 0x000000000055db37 in import_module_level.isra.3 (level=-1,
fromlist=None, globals=, name=0x0) at
…/Python/import.c:2224
#20 PyImport_ImportModuleLevel (name=, globals=, locals=, fromlist=None, level=-1) at
…/Python/import.c:2288
#21 0x00000000004755e7 in builtin___import__.32997 (self=, args=, kwds=) at
…/Python/bltinmodule.c:49
#22 0x00000000004da20b in PyObject_Call (kw=0x0,
arg=(‘uhd_swig’, {‘_prepare_uhd_swig’: <function at remote
0x7ffff0adf2a8>, ‘builtins’: {‘bytearray’: <type at remote
0x9166a0>, ‘IndexError’: <type at remote 0x919900>, ‘all’: , ‘help’: <_Helper at remote 0x7ffff7e7d290>, ‘vars’:
, ‘SyntaxError’: <type at remote 0x91b9e0>,
‘unicode’: <type at remote 0x91dc80>, ‘UnicodeDecodeError’: <type at
remote 0x91a920>, ‘memoryview’: <type at remote 0x90dae0>, ‘isinstance’:
, ‘copyright’:
<_Printer(_Printer__data=‘Copyright (c) 2001-2014 Python Software
Foundation.\nAll Rights Reserved.\n\nCopyright (c) 2000 BeOpen.com.\nAll
Rights Reserved.\n\nCopyright (c) 1995-2001 Corporation for National
Research Initiatives.\nAll Rights Reserved.\n\nCopyright (c) 1991-1995
Stichting Mathematisch Centrum, Amsterdam.\nAll Rights Reserved.’,
_Printer__lines=None, _Printer__name=‘copyright’, _Printer__dirs=(),
_Printer__files=(…)) at remote 0x7ffff7e7d590>, ‘NameError’: <type at
remote 0x91bd20>, ‘BytesWarn…(truncated), func=) at …/Objects/abstract.c:2529
#23 PyEval_CallObjectWithKeywords (func=func@entry=,
arg=arg@entry=(‘uhd_swig’, {’_prepare_uhd_swig’: <function at
remote 0x7ffff0adf2a8>, ‘builtins’: {‘bytearray’: <type at remote
0x9166a0>, ‘IndexError’: <type at remote 0x919900>, ‘all’: , ‘help’: <_Helper at remote 0x7ffff7e7d290>, ‘vars’:
, ‘SyntaxError’: <type at remote 0x91b9e0>,
‘unicode’: <type at remote 0x91dc80>, ‘UnicodeDecodeError’: <type at
remote 0x91a920>, ‘memoryview’: <type at remote 0x90dae0>, ‘isinstance’:
, ‘copyright’:
<_Printer(_Printer__data=‘Copyright (c) 2001-2014 Python Software
Foundation.\nAll Rights Reserved.\n\nCopyright (c) 2000 BeOpen.com.\nAll
Rights Reserved.\n\nCopyright (c) 1995-2001 Corporation for National
Research Initiatives.\nAll Rights Reserved.\n\nCopyright (c) 1991-1995
Stichting Mathematisch Centrum, Amsterdam.\nAll Rights Reserved.’,
_Printer__lines=None, _Printer__name=‘copyright’, _Printer__dirs=(),
_Printer__files=(…)) at remote 0x7ffff7e7d590>, ‘NameError’: <type at
remote