[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Discuss-gnuradio] Rational Resampler throws double free or corrupti
From: |
Marcus Müller |
Subject: |
Re: [Discuss-gnuradio] Rational Resampler throws double free or corruption error |
Date: |
Fri, 15 Nov 2013 12:53:43 +0100 |
User-agent: |
Mozilla/5.0 (X11; Linux x86_64; rv:24.0) Gecko/20100101 Thunderbird/24.1.0 |
Hi Frederik, hi rest,
this is an interesting error. You might want to report it.
The interesting part of your backtrace is
#8 ~vector (this=0xbee7c59c, __in_chrg=<optimized out>)
at /usr/include/c++/4.6/bits/stl_vector.h:350
#9 gr::filter::firdes::low_pass (gain=<optimized out>,
sampling_freq=<optimized out>, cutoff_freq=0.45000000000000001,
transition_width=<optimized out>, window_type=<optimized out>,
beta=<optimized out>) at /home/pi/gnuradio/gr-filter/lib/firdes.cc:136
firdes.cc:136 is the closing bracket of the for loop that iterates over
both the taps vector and the window vector.
sadly, gdb doesn't tell us whether the w or the taps vector's destructor
is being called.
As a wild guess, the compiler realised w is not being used after the
last iteration of the loop in the low_pass function.
Proposal:
do a
gdb --args python top_block.py #or whatever your file is called
gdb>break /home/pi/gnuradio/gr-filter/lib/firdes.cc:136
gdb>run
##at some point, the breakpoint will be reached.
and check if it crashes on the first run, on the last or whenever.
Basically: It's a curious thing that this happens. I do not rule out
strange and wilde and generally untame things happening in memory here!
Greetings, and look out for memory grues,
Marcus
On 15.11.2013 12:13, Frederik Wing wrote:
Hi everyone,
I am using the latest GNU Radio version compiled and running on a
Raspberry Pi with Raspbian Wheezy.
Most of the blocks seem to work. But the Rational Resampler makes problems.
Here is my sample python script generated by GNU Radio Companion:
http://pastebin.com/R0Z21MfU
Running it throws the error:
*** glibc detected *** /usr/bin/python2: double free or corruption
(!prev): 0x02bee190 ***
Debugging it with gdb gives the output here: http://pastebin.com/rXqtkZVG
Any ideas how to solve this?
Yours,
Frederik
_______________________________________________
Discuss-gnuradio mailing list
address@hidden
https://lists.gnu.org/mailman/listinfo/discuss-gnuradio
- [Discuss-gnuradio] Rational Resampler throws double free or corruption error, Frederik Wing, 2013/11/15
- Re: [Discuss-gnuradio] Rational Resampler throws double free or corruption error,
Marcus Müller <=
- Re: [Discuss-gnuradio] Rational Resampler throws double free or corruption error, Frederik Wing, 2013/11/15
- Re: [Discuss-gnuradio] Rational Resampler throws double free or corruption error, Frederik Wing, 2013/11/17
- Re: [Discuss-gnuradio] Rational Resampler throws double free or corruption error, Tom Rondeau, 2013/11/17
- Re: [Discuss-gnuradio] Rational Resampler throws double free or corruption error, Frederik Wing, 2013/11/18
- Re: [Discuss-gnuradio] Rational Resampler throws double free or corruption error, Martin Braun (CEL), 2013/11/18
- Re: [Discuss-gnuradio] Rational Resampler throws double free or corruption error, Tom Rondeau, 2013/11/18
- Re: [Discuss-gnuradio] Rational Resampler throws double free or corruption error, Frederik Wing, 2013/11/18
- Re: [Discuss-gnuradio] Rational Resampler throws double free or corruption error, Tom Rondeau, 2013/11/18
- Re: [Discuss-gnuradio] Rational Resampler throws double free or corruption error, Tom Rondeau, 2013/11/18
- Re: [Discuss-gnuradio] Rational Resampler throws double free or corruption error, Frederik Wing, 2013/11/19