discuss-gnuradio
[Top][All Lists]
Advanced

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

Re: [Discuss-gnuradio] Problems with buffer allocation


From: Eric Blossom
Subject: Re: [Discuss-gnuradio] Problems with buffer allocation
Date: Wed, 28 Jan 2009 10:52:48 -0800
User-agent: Mutt/1.5.18 (2008-05-17)

On Wed, Jan 28, 2009 at 02:53:25PM +0000, Alvaro Palomo wrote:
> Hello,
>
> continuing with my attempt of building a block that manages two vectors  
> in the input ports (one of 30 char and another one of 432 char), and one  
> vector in the output of 510 char, I get the error  message that I attach  
> at the bottom of the email when I run the complete waveform where it is  
> included.
>
> I have taken a look into gr_buffer.h but I don't really understand what  
> it is going on.
>
> Does anybody recognise this problem or had it before?
>
> Thank you in advance.
>
> Alvaro Palomo
>
>
> gr_buffer::allocate_buffer: warning: tried to allocate
>   75 items of size 432. Due to alignment requirements
>   256 were allocated.  If this isn't OK, consider padding
>   your structure to a power-of-two bytes.
>   On this platform, our allocation granularity is 4096 bytes.
> gr_buffer::allocate_buffer: warning: tried to allocate
>   64 items of size 510. Due to alignment requirements
>   2048 were allocated.  If this isn't OK, consider padding
>   your structure to a power-of-two bytes.
>   On this platform, our allocation granularity is 4096 bytes.

These are normal...

> *** stack smashing detected ***: python terminated

This indicates that some code, 99% probability your new block, wrote
beyond the bounds of a stack allocated object.

When you compile your new code are there _any_ warnings emitted by the
compiler?  If so, make them go away.

Eric


> ======= Backtrace: =========
> /lib/tls/i686/cmov/libc.so.6(__fortify_fail+0x48)[0xb7eb4558]
> /lib/tls/i686/cmov/libc.so.6(__fortify_fail+0x0)[0xb7eb4510]
> /usr/local/lib/libgnuradio-core.so.0[0xb7bf2674]
> /usr/local/lib/libgnuradio-core.so.0[0xb7b75ea7]
> /usr/local/lib/libgnuradio-core.so.0(_ZN13gr_sync_block12general_workEiRSt6vectorIiSaIiEERS0_IPKvSaIS5_EERS0_IPvSaIS9_EE+0x3a)[0xb7be999a]
> /usr/local/lib/libgnuradio-core.so.0(_ZN28gr_single_threaded_scheduler9main_loopEv+0x13c6)[0xb7be8226]
> /usr/local/lib/libgnuradio-core.so.0(_ZN28gr_single_threaded_scheduler3runEv+0x1d)[0xb7be862d]
> /usr/local/lib/libgnuradio-core.so.0(_ZN19gr_scheduler_thread14run_undetachedEPv+0xb2)[0xb7be63a2]
> /usr/local/lib/libgromnithread.so.0(omni_thread_wrapper+0x81)[0xb7a85dc1]
> /lib/tls/i686/cmov/libpthread.so.0[0xb7f4d50f]
> /lib/tls/i686/cmov/libc.so.6(clone+0x5e)[0xb7e9b7ee]




reply via email to

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