discuss-gnuradio
[Top][All Lists]
Advanced

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

Re: [Discuss-gnuradio] top block segfaults


From: Eric Blossom
Subject: Re: [Discuss-gnuradio] top block segfaults
Date: Thu, 17 Jan 2008 10:05:39 -0800
User-agent: Mutt/1.5.17 (2007-11-01)

On Thu, Jan 17, 2008 at 12:36:38AM -0700, beezle bub wrote:
> 
> Hey there again,
> 

> Usually when I get segfaults, it's because my own C++ code does
> something stupid.  When I run it through the debugger, it always
> lets me know where the problem is in the C++ code (that's how I know
> it's the C++ code causing the problem).  Imagine my surprise as I
> got something to segfault in Python.
> 
> For some reason the top block code is causing a segfault for me, and
> I don't know why.  Is there anything in top block that could cause
> this?  Or, is it more likely likely a problem with my own python
> code?
> 
> Here's the debug output:
> 
> -> tb.run()
> (Pdb) step
> --Call--
> > /usr/local/lib/python2.5/site-packages/gnuradio/gr/top_block.py(50)run()
> -> def run(self):
> (Pdb) step
> > /usr/local/lib/python2.5/site-packages/gnuradio/gr/top_block.py(51)run()
> -> top_block_run_unlocked(self._tb)
> (Pdb) step
> --Call--
> > /usr/local/lib/python2.5/site-packages/gnuradio/gr/gnuradio_swig_py_runtime.py(1577)top_block_run_unlocked()
> -> def top_block_run_unlocked(*args):
> (Pdb) step
> > /usr/local/lib/python2.5/site-packages/gnuradio/gr/gnuradio_swig_py_runtime.py(1579)top_block_run_unlocked()
> -> return _gnuradio_swig_py_runtime.top_block_run_unlocked(*args)
> (Pdb) step
> Segmentation fault (core dumped)
> 
> Any help you could give me would be greatly appreciated.
> 
> -Ben


Ben,

it would be easier to figure out if you let us know the code
you're trying to run, and what it looks like from the command line.
This could be the "failing to trap exception problem", but from what
you're showing us I can't tell.

Also, GDB does a better job on our mixed C++/python code than pdb.
Directions on running it in
http://www.gnu.org/software/gnuradio/doc/howto-write-a-block.html#debugging

Eric




reply via email to

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