Send USRP-users mailing list submissions to
[email protected]
To subscribe or unsubscribe via the World Wide Web, visit
http://lists.ettus.com/mailman/listinfo/usrp-users_lists.ettus.com
or, via email, send a message with subject or body 'help' to
[email protected]
You can reach the person managing the list at
[email protected]
When replying, please edit your Subject line so it is more specific
than "Re: Contents of USRP-users digest..."
Today's Topics:
1. Re: segmentation fault (in lib-uhd) simple flowgraph (Josh Blum)
2. Re: segmentation fault (in lib-uhd) simple flowgraph (Uzair Baig)
3. Re: segmentation fault (in lib-uhd) simple flowgraph (Josh Blum)
4. Building From Source (MSVC 2010 32bit) Run Time Errors
([email protected])
----------------------------------------------------------------------
Message: 1
Date: Thu, 29 Mar 2012 11:44:38 -0700
From: Josh Blum <[email protected]>
To: Uzair Baig <[email protected]>
Cc: [email protected]
Subject: Re: [USRP-users] segmentation fault (in lib-uhd) simple
flowgraph
Message-ID: <[email protected]>
Content-Type: text/plain; charset=ISO-8859-1
On 03/28/2012 05:32 AM, Uzair Baig wrote:
> Yes, I believe the same. As the last command, after tx.run() gets printed
> ("done") and then dies.
>
> linux; GNU C++ version 4.6.1; Boost_104601; UHD_003.004.000-3ddbcb6
> Please advise, on how to resolve.
>
I believe that this patch will fix the deconstructor issue. Do you mind
trying it? http://pastebin.com/vdaqz5t3
-josh
> Uzair
>
> On Wed, Mar 28, 2012 at 3:19 AM, Josh Blum <[email protected]> wrote:
>
>> From the backtrace, it looks like the usrp1 deconstructor is segfalting.
>> Possibly there is a race condition with a thread.
>>
>> Which means that the app is running to completion, and then dies at the
>> end when python does garbage collection. Can you confirm?
>>
>> Also, what version of uhd? The first line of uhd_usrp_probe will tell.
>>
>> -josh
>>
>> On 03/27/2012 09:19 AM, Uzair Baig wrote:
>>>>
>>>> I have a very simple gnuradio python code (file source --> RRC filter
>> -->
>>>> USRPsink)
>>>>
>>>
>>> and this is my code:
>>>
>>> from gnuradio import gr, uhd
>>> import numpy
>>>
>>> samplerate=4*10**6
>>> 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'
>>> --------------------------------------------------------------
>>>
>>> I get a segmentation fault, I used gdb, run the backtrace, and this is
>>> output:
>>>
>>>
>> ------------------------------------------------------------------------------------------------------------------------
>>>
>>> (gdb) continue
>>> Continuing.
>>> [New Thread 0x7f3673f33700 (LWP 2187)]
>>> [New Thread 0x7f3673732700 (LWP 2188)]
>>> [New Thread 0x7f3672f31700 (LWP 2189)]
>>> [New Thread 0x7f3672730700 (LWP 2190)]
>>> [New Thread 0x7f3671f2f700 (LWP 2191)]
>>> [New Thread 0x7f367172e700 (LWP 2192)]
>>> [Thread 0x7f3672f31700 (LWP 2189) exited]
>>> [Thread 0x7f3672730700 (LWP 2190) exited]
>>> [Thread 0x7f3671f2f700 (LWP 2191) exited]
>>> [Thread 0x7f367172e700 (LWP 2192) exited]
>>> [Thread 0x7f3673732700 (LWP 2188) exited]
>>> [Thread 0x7f3673f33700 (LWP 2187) exited]
>>>
>>> Program received signal SIGSEGV, Segmentation fault.
>>> 0x00007f367d734d49 in free () from /lib/x86_64-linux-gnu/libc.so.6
>>> (gdb) bt
>>> #0 0x00007f367d734d49 in free () from /lib/x86_64-linux-gnu/libc.so.6
>>> #1 0x00007f36792cca71 in
>>> boost::detail::sp_counted_impl_p<soft_time_ctrl_impl>::dispose() () from
>>> /usr/local/lib/libuhd.so.003
>>> #2 0x00007f3679147bb9 in boost::detail::shared_count::~shared_count() ()
>>> from /usr/local/lib/libuhd.so.003
>>> #3 0x00007f36792e5c21 in
>>> boost::detail::function::functor_manager<boost::_bi::bind_t<void,
>>> boost::_mfi::mf1<void, uhd::usrp::soft_time_ctrl, uhd::time_spec_t
>> const&>,
>>>
>> boost::_bi::list2<boost::_bi::value<boost::shared_ptr<uhd::usrp::soft_time_ctrl>
>>>> , boost::arg<1> > > >::manage(boost::detail::function::function_buffer
>>> const&, boost::detail::function::function_buffer&,
>>> boost::detail::function::functor_manager_operation_type) () from
>>> /usr/local/lib/libuhd.so.003
>>> #4 0x00007f36792e76be in std::vector<boost::function<void
>>> (uhd::time_spec_t const&)>, std::allocator<boost::function<void
>>> (uhd::time_spec_t const&)> > >::~vector() () from
>>> /usr/local/lib/libuhd.so.003
>>> #5 0x00007f36792d6a98 in
>> boost::detail::sp_counted_impl_p<uhd::(anonymous
>>> namespace)::property_impl<uhd::time_spec_t> >::dispose() ()
>>> from /usr/local/lib/libuhd.so.003
>>> #6 0x00007f36793967d4 in std::_List_base<std::pair<std::string,
>>> property_tree_impl::node_type>, std::allocator<std::pair<std::string,
>>> property_tree_impl::node_type> > >::~_List_base() () from
>>> /usr/local/lib/libuhd.so.003
>>> #7 0x00007f36793966e9 in std::_List_base<std::pair<std::string,
>>> property_tree_impl::node_type>, std::allocator<std::pair<std::string,
>>> property_tree_impl::node_type> > >::~_List_base() () from
>>> /usr/local/lib/libuhd.so.003
>>> ---Type <return> to continue, or q <return> to quit---
>>> #8 0x00007f3679396b3a in
>>> boost::detail::sp_counted_impl_pd<property_tree_impl::tree_guts_type*,
>>> boost::detail::sp_ms_deleter<property_tree_impl::tree_guts_type>
>>>> ::dispose() () from /usr/local/lib/libuhd.so.003
>>> #9 0x00007f36793965fa in
>>> boost::detail::sp_counted_impl_p<property_tree_impl>::dispose() () from
>>> /usr/local/lib/libuhd.so.003
>>> #10 0x00007f36791b1b12 in
>>> boost::detail::sp_counted_impl_p<uhd::usrp::dboard_base::impl>::dispose()
>>> () from /usr/local/lib/libuhd.so.003
>>> #11 0x00007f3679147bb9 in boost::detail::shared_count::~shared_count() ()
>>> from /usr/local/lib/libuhd.so.003
>>> #12 0x00007f36792039d2 in
>>> boost::detail::sp_counted_impl_p<rfx_xcvr>::dispose()
>>> () from /usr/local/lib/libuhd.so.003
>>> #13 0x00007f36791b82cc in dboard_manager_impl::~dboard_manager_impl() ()
>>> from /usr/local/lib/libuhd.so.003
>>> #14 0x00007f36791bdab2 in
>>> boost::detail::sp_counted_impl_p<dboard_manager_impl>::dispose() () from
>>> /usr/local/lib/libuhd.so.003
>>> #15 0x00007f3679147bb9 in boost::detail::shared_count::~shared_count() ()
>>> from /usr/local/lib/libuhd.so.003
>>> #16 0x00007f36792e5d07 in uhd::dict<std::string,
>>> usrp1_impl::db_container_type>::~dict() () from
>> /usr/local/lib/libuhd.so.003
>>> #17 0x00007f36792d4510 in usrp1_impl::~usrp1_impl() ()
>>> from /usr/local/lib/libuhd.so.003
>>> #18 0x00007f36792e5fc2 in
>>> boost::detail::sp_counted_impl_p<usrp1_impl>::dispose() () from
>>> /usr/local/lib/libuhd.so.003
>>> ---Type <return> to continue, or q <return> to quit---
>>> #19 0x00007f3679147bb9 in boost::detail::shared_count::~shared_count() ()
>>> from /usr/local/lib/libuhd.so.003
>>> #20 0x00007f36791cbf8a in
>>> boost::detail::sp_counted_impl_p<multi_usrp_impl>::dispose() () from
>>> /usr/local/lib/libuhd.so.003
>>> #21 0x00007f367968d01f in uhd_usrp_sink_impl::~uhd_usrp_sink_impl() ()
>>> from /usr/local/lib/libgnuradio-uhd-3.5.2git.so.0.0.0
>>> #22 0x00007f3679911b69 in boost::detail::shared_count::~shared_count() ()
>>> from /usr/local/lib/python2.7/dist-packages/gnuradio/uhd/_uhd_swig.so
>>> #23 0x00007f36798df569 in _wrap_delete_uhd_usrp_sink_sptr ()
>>> from /usr/local/lib/python2.7/dist-packages/gnuradio/uhd/_uhd_swig.so
>>> #24 0x000000000042418c in ?? ()
>>> #25 0x00000000004274ec in PyObject_CallFunctionObjArgs ()
>>> #26 0x00007f36798b01a5 in SwigPyObject_dealloc ()
>>> from /usr/local/lib/python2.7/dist-packages/gnuradio/uhd/_uhd_swig.so
>>> #27 0x000000000045e7f9 in ?? ()
>>> #28 0x000000000047d986 in ?? ()
>>> #29 0x000000000045f0b9 in ?? ()
>>> #30 0x0000000000460466 in PyDict_SetItem ()
>>> #31 0x000000000046372e in _PyModule_Clear ()
>>> #32 0x00000000004d2ee7 in PyImport_Cleanup ()
>>> #33 0x00000000004ddf55 in Py_Finalize ()
>>> #34 0x00000000004ee495 in Py_Main ()
>>> #35 0x00007f367d6d930d in __libc_start_main ()
>>> ---Type <return> to continue, or q <return> to quit---
>>> from /lib/x86_64-linux-gnu/libc.so.6
>>> #36 0x000000000041cb69 in _start ()
>>>
>> -------------------------------------------------------------------------------------------------------------------
>>> Tom (Tom Rondeau) at GnuRadio forums, advised me to contact here, to get
>>> help, with this segmentation fault.
>>>
>>> GNURADIO VERSION IS:
>>>
>>> MAJOR_VERSION=3
>>> API_COMPAT=5
>>> MINOR_VERSION=2
>>> MAINT_VERSION=git
>>>
>>> My Processor:
>>>
>>> 2.2GHz Core 2 Duo T7500 processor
>>> DELL XPS M1530 machine
>>>
>>> Please advise.
>>>
>>> Uzair Baig
>>>
>>>
>>>
>>>
>>> _______________________________________________
>>> USRP-users mailing list
>>> [email protected]
>>> http://lists.ettus.com/mailman/listinfo/usrp-users_lists.ettus.com
>>
>> _______________________________________________
>> USRP-users mailing list
>> [email protected]
>> http://lists.ettus.com/mailman/listinfo/usrp-users_lists.ettus.com
>>
>
------------------------------
Message: 2
Date: Thu, 29 Mar 2012 23:48:20 +0500
From: Uzair Baig <[email protected]>
To: [email protected], [email protected]
Subject: Re: [USRP-users] segmentation fault (in lib-uhd) simple
flowgraph
Message-ID:
<cadcgo4oq_r4f5o1wwdpckm+1o1yxdjferffksiyzohqaefu...@mail.gmail.com>
Content-Type: text/plain; charset="iso-8859-1"
dear josh,
i don't mind trying. but i am newbie in gnuradio, and i dont know much how
to include such patches, please guide me, or else can you tell whether i
need to update my installation, to get the best release. all the backtrace
information on how to generate, Tom R. helped me.
regards,
uzair baig
On Thu, Mar 29, 2012 at 11:44 PM, Josh Blum <[email protected]> wrote:
>
>
> On 03/28/2012 05:32 AM, Uzair Baig wrote:
> > Yes, I believe the same. As the last command, after tx.run() gets printed
> > ("done") and then dies.
> >
> > linux; GNU C++ version 4.6.1; Boost_104601; UHD_003.004.000-3ddbcb6
> > Please advise, on how to resolve.
> >
>
> I believe that this patch will fix the deconstructor issue. Do you mind
> trying it? http://pastebin.com/vdaqz5t3
>
> -josh
>
> > Uzair
> >
> > On Wed, Mar 28, 2012 at 3:19 AM, Josh Blum <[email protected]> wrote:
> >
> >> From the backtrace, it looks like the usrp1 deconstructor is segfalting.
> >> Possibly there is a race condition with a thread.
> >>
> >> Which means that the app is running to completion, and then dies at the
> >> end when python does garbage collection. Can you confirm?
> >>
> >> Also, what version of uhd? The first line of uhd_usrp_probe will tell.
> >>
> >> -josh
> >>
> >> On 03/27/2012 09:19 AM, Uzair Baig wrote:
> >>>>
> >>>> I have a very simple gnuradio python code (file source --> RRC filter
> >> -->
> >>>> USRPsink)
> >>>>
> >>>
> >>> and this is my code:
> >>>
> >>> from gnuradio import gr, uhd
> >>> import numpy
> >>>
> >>> samplerate=4*10**6
> >>> 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'
> >>> --------------------------------------------------------------
> >>>
> >>> I get a segmentation fault, I used gdb, run the backtrace, and this is
> >>> output:
> >>>
> >>>
> >>
> ------------------------------------------------------------------------------------------------------------------------
> >>>
> >>> (gdb) continue
> >>> Continuing.
> >>> [New Thread 0x7f3673f33700 (LWP 2187)]
> >>> [New Thread 0x7f3673732700 (LWP 2188)]
> >>> [New Thread 0x7f3672f31700 (LWP 2189)]
> >>> [New Thread 0x7f3672730700 (LWP 2190)]
> >>> [New Thread 0x7f3671f2f700 (LWP 2191)]
> >>> [New Thread 0x7f367172e700 (LWP 2192)]
> >>> [Thread 0x7f3672f31700 (LWP 2189) exited]
> >>> [Thread 0x7f3672730700 (LWP 2190) exited]
> >>> [Thread 0x7f3671f2f700 (LWP 2191) exited]
> >>> [Thread 0x7f367172e700 (LWP 2192) exited]
> >>> [Thread 0x7f3673732700 (LWP 2188) exited]
> >>> [Thread 0x7f3673f33700 (LWP 2187) exited]
> >>>
> >>> Program received signal SIGSEGV, Segmentation fault.
> >>> 0x00007f367d734d49 in free () from /lib/x86_64-linux-gnu/libc.so.6
> >>> (gdb) bt
> >>> #0 0x00007f367d734d49 in free () from /lib/x86_64-linux-gnu/libc.so.6
> >>> #1 0x00007f36792cca71 in
> >>> boost::detail::sp_counted_impl_p<soft_time_ctrl_impl>::dispose() ()
> from
> >>> /usr/local/lib/libuhd.so.003
> >>> #2 0x00007f3679147bb9 in boost::detail::shared_count::~shared_count()
> ()
> >>> from /usr/local/lib/libuhd.so.003
> >>> #3 0x00007f36792e5c21 in
> >>> boost::detail::function::functor_manager<boost::_bi::bind_t<void,
> >>> boost::_mfi::mf1<void, uhd::usrp::soft_time_ctrl, uhd::time_spec_t
> >> const&>,
> >>>
> >>
> boost::_bi::list2<boost::_bi::value<boost::shared_ptr<uhd::usrp::soft_time_ctrl>
> >>>> , boost::arg<1> > > >::manage(boost::detail::function::function_buffer
> >>> const&, boost::detail::function::function_buffer&,
> >>> boost::detail::function::functor_manager_operation_type) () from
> >>> /usr/local/lib/libuhd.so.003
> >>> #4 0x00007f36792e76be in std::vector<boost::function<void
> >>> (uhd::time_spec_t const&)>, std::allocator<boost::function<void
> >>> (uhd::time_spec_t const&)> > >::~vector() () from
> >>> /usr/local/lib/libuhd.so.003
> >>> #5 0x00007f36792d6a98 in
> >> boost::detail::sp_counted_impl_p<uhd::(anonymous
> >>> namespace)::property_impl<uhd::time_spec_t> >::dispose() ()
> >>> from /usr/local/lib/libuhd.so.003
> >>> #6 0x00007f36793967d4 in std::_List_base<std::pair<std::string,
> >>> property_tree_impl::node_type>, std::allocator<std::pair<std::string,
> >>> property_tree_impl::node_type> > >::~_List_base() () from
> >>> /usr/local/lib/libuhd.so.003
> >>> #7 0x00007f36793966e9 in std::_List_base<std::pair<std::string,
> >>> property_tree_impl::node_type>, std::allocator<std::pair<std::string,
> >>> property_tree_impl::node_type> > >::~_List_base() () from
> >>> /usr/local/lib/libuhd.so.003
> >>> ---Type <return> to continue, or q <return> to quit---
> >>> #8 0x00007f3679396b3a in
> >>> boost::detail::sp_counted_impl_pd<property_tree_impl::tree_guts_type*,
> >>> boost::detail::sp_ms_deleter<property_tree_impl::tree_guts_type>
> >>>> ::dispose() () from /usr/local/lib/libuhd.so.003
> >>> #9 0x00007f36793965fa in
> >>> boost::detail::sp_counted_impl_p<property_tree_impl>::dispose() () from
> >>> /usr/local/lib/libuhd.so.003
> >>> #10 0x00007f36791b1b12 in
> >>>
> boost::detail::sp_counted_impl_p<uhd::usrp::dboard_base::impl>::dispose()
> >>> () from /usr/local/lib/libuhd.so.003
> >>> #11 0x00007f3679147bb9 in boost::detail::shared_count::~shared_count()
> ()
> >>> from /usr/local/lib/libuhd.so.003
> >>> #12 0x00007f36792039d2 in
> >>> boost::detail::sp_counted_impl_p<rfx_xcvr>::dispose()
> >>> () from /usr/local/lib/libuhd.so.003
> >>> #13 0x00007f36791b82cc in dboard_manager_impl::~dboard_manager_impl()
> ()
> >>> from /usr/local/lib/libuhd.so.003
> >>> #14 0x00007f36791bdab2 in
> >>> boost::detail::sp_counted_impl_p<dboard_manager_impl>::dispose() ()
> from
> >>> /usr/local/lib/libuhd.so.003
> >>> #15 0x00007f3679147bb9 in boost::detail::shared_count::~shared_count()
> ()
> >>> from /usr/local/lib/libuhd.so.003
> >>> #16 0x00007f36792e5d07 in uhd::dict<std::string,
> >>> usrp1_impl::db_container_type>::~dict() () from
> >> /usr/local/lib/libuhd.so.003
> >>> #17 0x00007f36792d4510 in usrp1_impl::~usrp1_impl() ()
> >>> from /usr/local/lib/libuhd.so.003
> >>> #18 0x00007f36792e5fc2 in
> >>> boost::detail::sp_counted_impl_p<usrp1_impl>::dispose() () from
> >>> /usr/local/lib/libuhd.so.003
> >>> ---Type <return> to continue, or q <return> to quit---
> >>> #19 0x00007f3679147bb9 in boost::detail::shared_count::~shared_count()
> ()
> >>> from /usr/local/lib/libuhd.so.003
> >>> #20 0x00007f36791cbf8a in
> >>> boost::detail::sp_counted_impl_p<multi_usrp_impl>::dispose() () from
> >>> /usr/local/lib/libuhd.so.003
> >>> #21 0x00007f367968d01f in uhd_usrp_sink_impl::~uhd_usrp_sink_impl() ()
> >>> from /usr/local/lib/libgnuradio-uhd-3.5.2git.so.0.0.0
> >>> #22 0x00007f3679911b69 in boost::detail::shared_count::~shared_count()
> ()
> >>> from
> /usr/local/lib/python2.7/dist-packages/gnuradio/uhd/_uhd_swig.so
> >>> #23 0x00007f36798df569 in _wrap_delete_uhd_usrp_sink_sptr ()
> >>> from
> /usr/local/lib/python2.7/dist-packages/gnuradio/uhd/_uhd_swig.so
> >>> #24 0x000000000042418c in ?? ()
> >>> #25 0x00000000004274ec in PyObject_CallFunctionObjArgs ()
> >>> #26 0x00007f36798b01a5 in SwigPyObject_dealloc ()
> >>> from
> /usr/local/lib/python2.7/dist-packages/gnuradio/uhd/_uhd_swig.so
> >>> #27 0x000000000045e7f9 in ?? ()
> >>> #28 0x000000000047d986 in ?? ()
> >>> #29 0x000000000045f0b9 in ?? ()
> >>> #30 0x0000000000460466 in PyDict_SetItem ()
> >>> #31 0x000000000046372e in _PyModule_Clear ()
> >>> #32 0x00000000004d2ee7 in PyImport_Cleanup ()
> >>> #33 0x00000000004ddf55 in Py_Finalize ()
> >>> #34 0x00000000004ee495 in Py_Main ()
> >>> #35 0x00007f367d6d930d in __libc_start_main ()
> >>> ---Type <return> to continue, or q <return> to quit---
> >>> from /lib/x86_64-linux-gnu/libc.so.6
> >>> #36 0x000000000041cb69 in _start ()
> >>>
> >>
> -------------------------------------------------------------------------------------------------------------------
> >>> Tom (Tom Rondeau) at GnuRadio forums, advised me to contact here, to
> get
> >>> help, with this segmentation fault.
> >>>
> >>> GNURADIO VERSION IS:
> >>>
> >>> MAJOR_VERSION=3
> >>> API_COMPAT=5
> >>> MINOR_VERSION=2
> >>> MAINT_VERSION=git
> >>>
> >>> My Processor:
> >>>
> >>> 2.2GHz Core 2 Duo T7500 processor
> >>> DELL XPS M1530 machine
> >>>
> >>> Please advise.
> >>>
> >>> Uzair Baig
> >>>
> >>>
> >>>
> >>>
> >>> _______________________________________________
> >>> USRP-users mailing list
> >>> [email protected]
> >>> http://lists.ettus.com/mailman/listinfo/usrp-users_lists.ettus.com
> >>
> >> _______________________________________________
> >> USRP-users mailing list
> >> [email protected]
> >> http://lists.ettus.com/mailman/listinfo/usrp-users_lists.ettus.com
> >>
> >
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL:
<http://lists.ettus.com/pipermail/usrp-users_lists.ettus.com/attachments/20120329/5305c8fa/attachment-0001.html>
------------------------------
Message: 3
Date: Thu, 29 Mar 2012 12:04:51 -0700
From: Josh Blum <[email protected]>
To: Uzair Baig <[email protected]>
Cc: [email protected]
Subject: Re: [USRP-users] segmentation fault (in lib-uhd) simple
flowgraph
Message-ID: <[email protected]>
Content-Type: text/plain; charset=ISO-8859-1
On 03/29/2012 11:48 AM, Uzair Baig wrote:
> dear josh,
>
> i don't mind trying. but i am newbie in gnuradio, and i dont know much how
> to include such patches, please guide me, or else can you tell whether i
> need to update my installation, to get the best release. all the backtrace
> information on how to generate, Tom R. helped me.
>
Don't worry about. I think I understand the problem. I fix will be
pushed later today to the maint and master branches. Just update your
source tree and rebuild uhd. Or if you used the build-gnuradio script,
just re-run that script.
-josh
> regards,
>
> uzair baig
>
>
>
> On Thu, Mar 29, 2012 at 11:44 PM, Josh Blum <[email protected]> wrote:
>
>>
>>
>> On 03/28/2012 05:32 AM, Uzair Baig wrote:
>>> Yes, I believe the same. As the last command, after tx.run() gets printed
>>> ("done") and then dies.
>>>
>>> linux; GNU C++ version 4.6.1; Boost_104601; UHD_003.004.000-3ddbcb6
>>> Please advise, on how to resolve.
>>>
>>
>> I believe that this patch will fix the deconstructor issue. Do you mind
>> trying it? http://pastebin.com/vdaqz5t3
>>
>> -josh
>>
>>> Uzair
>>>
>>> On Wed, Mar 28, 2012 at 3:19 AM, Josh Blum <[email protected]> wrote:
>>>
>>>> From the backtrace, it looks like the usrp1 deconstructor is segfalting.
>>>> Possibly there is a race condition with a thread.
>>>>
>>>> Which means that the app is running to completion, and then dies at the
>>>> end when python does garbage collection. Can you confirm?
>>>>
>>>> Also, what version of uhd? The first line of uhd_usrp_probe will tell.
>>>>
>>>> -josh
>>>>
>>>> On 03/27/2012 09:19 AM, Uzair Baig wrote:
>>>>>>
>>>>>> I have a very simple gnuradio python code (file source --> RRC filter
>>>> -->
>>>>>> USRPsink)
>>>>>>
>>>>>
>>>>> and this is my code:
>>>>>
>>>>> from gnuradio import gr, uhd
>>>>> import numpy
>>>>>
>>>>> samplerate=4*10**6
>>>>> 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'
>>>>> --------------------------------------------------------------
>>>>>
>>>>> I get a segmentation fault, I used gdb, run the backtrace, and this is
>>>>> output:
>>>>>
>>>>>
>>>>
>> ------------------------------------------------------------------------------------------------------------------------
>>>>>
>>>>> (gdb) continue
>>>>> Continuing.
>>>>> [New Thread 0x7f3673f33700 (LWP 2187)]
>>>>> [New Thread 0x7f3673732700 (LWP 2188)]
>>>>> [New Thread 0x7f3672f31700 (LWP 2189)]
>>>>> [New Thread 0x7f3672730700 (LWP 2190)]
>>>>> [New Thread 0x7f3671f2f700 (LWP 2191)]
>>>>> [New Thread 0x7f367172e700 (LWP 2192)]
>>>>> [Thread 0x7f3672f31700 (LWP 2189) exited]
>>>>> [Thread 0x7f3672730700 (LWP 2190) exited]
>>>>> [Thread 0x7f3671f2f700 (LWP 2191) exited]
>>>>> [Thread 0x7f367172e700 (LWP 2192) exited]
>>>>> [Thread 0x7f3673732700 (LWP 2188) exited]
>>>>> [Thread 0x7f3673f33700 (LWP 2187) exited]
>>>>>
>>>>> Program received signal SIGSEGV, Segmentation fault.
>>>>> 0x00007f367d734d49 in free () from /lib/x86_64-linux-gnu/libc.so.6
>>>>> (gdb) bt
>>>>> #0 0x00007f367d734d49 in free () from /lib/x86_64-linux-gnu/libc.so.6
>>>>> #1 0x00007f36792cca71 in
>>>>> boost::detail::sp_counted_impl_p<soft_time_ctrl_impl>::dispose() ()
>> from
>>>>> /usr/local/lib/libuhd.so.003
>>>>> #2 0x00007f3679147bb9 in boost::detail::shared_count::~shared_count()
>> ()
>>>>> from /usr/local/lib/libuhd.so.003
>>>>> #3 0x00007f36792e5c21 in
>>>>> boost::detail::function::functor_manager<boost::_bi::bind_t<void,
>>>>> boost::_mfi::mf1<void, uhd::usrp::soft_time_ctrl, uhd::time_spec_t
>>>> const&>,
>>>>>
>>>>
>> boost::_bi::list2<boost::_bi::value<boost::shared_ptr<uhd::usrp::soft_time_ctrl>
>>>>>> , boost::arg<1> > > >::manage(boost::detail::function::function_buffer
>>>>> const&, boost::detail::function::function_buffer&,
>>>>> boost::detail::function::functor_manager_operation_type) () from
>>>>> /usr/local/lib/libuhd.so.003
>>>>> #4 0x00007f36792e76be in std::vector<boost::function<void
>>>>> (uhd::time_spec_t const&)>, std::allocator<boost::function<void
>>>>> (uhd::time_spec_t const&)> > >::~vector() () from
>>>>> /usr/local/lib/libuhd.so.003
>>>>> #5 0x00007f36792d6a98 in
>>>> boost::detail::sp_counted_impl_p<uhd::(anonymous
>>>>> namespace)::property_impl<uhd::time_spec_t> >::dispose() ()
>>>>> from /usr/local/lib/libuhd.so.003
>>>>> #6 0x00007f36793967d4 in std::_List_base<std::pair<std::string,
>>>>> property_tree_impl::node_type>, std::allocator<std::pair<std::string,
>>>>> property_tree_impl::node_type> > >::~_List_base() () from
>>>>> /usr/local/lib/libuhd.so.003
>>>>> #7 0x00007f36793966e9 in std::_List_base<std::pair<std::string,
>>>>> property_tree_impl::node_type>, std::allocator<std::pair<std::string,
>>>>> property_tree_impl::node_type> > >::~_List_base() () from
>>>>> /usr/local/lib/libuhd.so.003
>>>>> ---Type <return> to continue, or q <return> to quit---
>>>>> #8 0x00007f3679396b3a in
>>>>> boost::detail::sp_counted_impl_pd<property_tree_impl::tree_guts_type*,
>>>>> boost::detail::sp_ms_deleter<property_tree_impl::tree_guts_type>
>>>>>> ::dispose() () from /usr/local/lib/libuhd.so.003
>>>>> #9 0x00007f36793965fa in
>>>>> boost::detail::sp_counted_impl_p<property_tree_impl>::dispose() () from
>>>>> /usr/local/lib/libuhd.so.003
>>>>> #10 0x00007f36791b1b12 in
>>>>>
>> boost::detail::sp_counted_impl_p<uhd::usrp::dboard_base::impl>::dispose()
>>>>> () from /usr/local/lib/libuhd.so.003
>>>>> #11 0x00007f3679147bb9 in boost::detail::shared_count::~shared_count()
>> ()
>>>>> from /usr/local/lib/libuhd.so.003
>>>>> #12 0x00007f36792039d2 in
>>>>> boost::detail::sp_counted_impl_p<rfx_xcvr>::dispose()
>>>>> () from /usr/local/lib/libuhd.so.003
>>>>> #13 0x00007f36791b82cc in dboard_manager_impl::~dboard_manager_impl()
>> ()
>>>>> from /usr/local/lib/libuhd.so.003
>>>>> #14 0x00007f36791bdab2 in
>>>>> boost::detail::sp_counted_impl_p<dboard_manager_impl>::dispose() ()
>> from
>>>>> /usr/local/lib/libuhd.so.003
>>>>> #15 0x00007f3679147bb9 in boost::detail::shared_count::~shared_count()
>> ()
>>>>> from /usr/local/lib/libuhd.so.003
>>>>> #16 0x00007f36792e5d07 in uhd::dict<std::string,
>>>>> usrp1_impl::db_container_type>::~dict() () from
>>>> /usr/local/lib/libuhd.so.003
>>>>> #17 0x00007f36792d4510 in usrp1_impl::~usrp1_impl() ()
>>>>> from /usr/local/lib/libuhd.so.003
>>>>> #18 0x00007f36792e5fc2 in
>>>>> boost::detail::sp_counted_impl_p<usrp1_impl>::dispose() () from
>>>>> /usr/local/lib/libuhd.so.003
>>>>> ---Type <return> to continue, or q <return> to quit---
>>>>> #19 0x00007f3679147bb9 in boost::detail::shared_count::~shared_count()
>> ()
>>>>> from /usr/local/lib/libuhd.so.003
>>>>> #20 0x00007f36791cbf8a in
>>>>> boost::detail::sp_counted_impl_p<multi_usrp_impl>::dispose() () from
>>>>> /usr/local/lib/libuhd.so.003
>>>>> #21 0x00007f367968d01f in uhd_usrp_sink_impl::~uhd_usrp_sink_impl() ()
>>>>> from /usr/local/lib/libgnuradio-uhd-3.5.2git.so.0.0.0
>>>>> #22 0x00007f3679911b69 in boost::detail::shared_count::~shared_count()
>> ()
>>>>> from
>> /usr/local/lib/python2.7/dist-packages/gnuradio/uhd/_uhd_swig.so
>>>>> #23 0x00007f36798df569 in _wrap_delete_uhd_usrp_sink_sptr ()
>>>>> from
>> /usr/local/lib/python2.7/dist-packages/gnuradio/uhd/_uhd_swig.so
>>>>> #24 0x000000000042418c in ?? ()
>>>>> #25 0x00000000004274ec in PyObject_CallFunctionObjArgs ()
>>>>> #26 0x00007f36798b01a5 in SwigPyObject_dealloc ()
>>>>> from
>> /usr/local/lib/python2.7/dist-packages/gnuradio/uhd/_uhd_swig.so
>>>>> #27 0x000000000045e7f9 in ?? ()
>>>>> #28 0x000000000047d986 in ?? ()
>>>>> #29 0x000000000045f0b9 in ?? ()
>>>>> #30 0x0000000000460466 in PyDict_SetItem ()
>>>>> #31 0x000000000046372e in _PyModule_Clear ()
>>>>> #32 0x00000000004d2ee7 in PyImport_Cleanup ()
>>>>> #33 0x00000000004ddf55 in Py_Finalize ()
>>>>> #34 0x00000000004ee495 in Py_Main ()
>>>>> #35 0x00007f367d6d930d in __libc_start_main ()
>>>>> ---Type <return> to continue, or q <return> to quit---
>>>>> from /lib/x86_64-linux-gnu/libc.so.6
>>>>> #36 0x000000000041cb69 in _start ()
>>>>>
>>>>
>> -------------------------------------------------------------------------------------------------------------------
>>>>> Tom (Tom Rondeau) at GnuRadio forums, advised me to contact here, to
>> get
>>>>> help, with this segmentation fault.
>>>>>
>>>>> GNURADIO VERSION IS:
>>>>>
>>>>> MAJOR_VERSION=3
>>>>> API_COMPAT=5
>>>>> MINOR_VERSION=2
>>>>> MAINT_VERSION=git
>>>>>
>>>>> My Processor:
>>>>>
>>>>> 2.2GHz Core 2 Duo T7500 processor
>>>>> DELL XPS M1530 machine
>>>>>
>>>>> Please advise.
>>>>>
>>>>> Uzair Baig
>>>>>
>>>>>
>>>>>
>>>>>
>>>>> _______________________________________________
>>>>> USRP-users mailing list
>>>>> [email protected]
>>>>> http://lists.ettus.com/mailman/listinfo/usrp-users_lists.ettus.com
>>>>
>>>> _______________________________________________
>>>> USRP-users mailing list
>>>> [email protected]
>>>> http://lists.ettus.com/mailman/listinfo/usrp-users_lists.ettus.com
>>>>
>>>
>>
>
------------------------------
Message: 4
Date: Fri, 30 Mar 2012 14:57:23 +0000
From: <[email protected]>
To: <[email protected]>
Subject: [USRP-users] Building From Source (MSVC 2010 32bit) Run Time
Errors
Message-ID:
<4b5c436558dc844f812ed62cdb7689690f7f9...@exchmbx03.fed.cclrc.ac.uk>
Content-Type: text/plain; charset="us-ascii"
Hello
I keep getting runtime errors with the example .exe files built in release mode
from source. However, if I build the files in debug mode then they work without
error.
I am using microsft visual studio 2010 on windows xp (32 bit) to build the
master branch from the git repo. for my N200 device.
I have followed the instrucitons in your build guide (installed dependies etc)
and have tried assembling the msvc UHD.sln file using the CMake options as
shown in http://dl.dropbox.com/u/56452610/CMake%20Options%201.PNG and
http://dl.dropbox.com/u/56452610/CMake%20Options%202.PNG .
The log from configuring and generating the files is here
http://dl.dropbox.com/u/56452610/CMake%20Log.txt.
When I then set the mode to release and build I get the following log:
http://dl.dropbox.com/u/56452610/MSVC%20build%20log.txt
Taking tx_bursts.exe as an example, when I run it the console gets as far as
"Creating the usrp device with:.." and then I get a debug assertion error
(http://dl.dropbox.com/u/56452610/Assertion%20Error.PNG ).
Other example .exe's just go straight to the standard windows "xxxxx has
encouterd a problem" message.
Any help would be much appreciated.
Cheers
John
--
Scanned by iCritical.
-------------- next part --------------
An HTML attachment was scrubbed...
URL:
<http://lists.ettus.com/pipermail/usrp-users_lists.ettus.com/attachments/20120330/b6f53796/attachment-0001.html>
------------------------------
_______________________________________________
USRP-users mailing list
[email protected]
http://lists.ettus.com/mailman/listinfo/usrp-users_lists.ettus.com
End of USRP-users Digest, Vol 19, Issue 30
******************************************