discuss-gnuradio
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Discuss-gnuradio] core dumps when using gr.firdes


From: Johnathan Corgan
Subject: Re: [Discuss-gnuradio] core dumps when using gr.firdes
Date: Sun, 27 May 2007 22:39:41 -0700
User-agent: Thunderbird 1.5.0.10 (X11/20070403)

Josh Blum wrote:

> I am having core dumps when using the taps generators in the gr.firdes
> package. The core dumps happen when I give the functions invalid
> arguments. Example:
> 
>>>> gr.firdes.complex_band_pass(0, 0, 0, 0, 0)
> terminate called after throwing an instance of 'std::out_of_range'
>   what():  gr_firdes check failed: sampling_freq > 0
> Aborted (core dumped)
> 
> Although I should obviously not be doing that: I am trying to add the
> taps generating functions to the math expression parser in GRC. However,
> if a user enters a bad argument, I should be able to catch the error,
> but currently, the entire program will crash!

This will need to be fixed in the SWIG wrapper(s) for gnuradio-core, to
have the check for these exceptions and pass them up to Python instead
of aborting.  Please file a Trac bug.

-- 
Johnathan Corgan
Corgan Enterprises LLC
http://corganenterprises.com




reply via email to

[Prev in Thread] Current Thread [Next in Thread]