[riot-users] ccnx-lite-relay example crashing in native board
oliver.hahm at inria.fr
Wed Aug 31 11:23:28 CEST 2016
On Tue, Aug 30, 2016 at 11:50:20PM +0000, Nazmul Alam wrote:
> The issue previously mentioned was due to same signature of two different
> types of malloc/free function.
> The malloc/free used by printf was causing the crash as it was trying to
> use the malloc/free defined from tlsf library, causing the call to
> search_suitable_block() before actually allocating memory by the library.
> It can be solved by adding following define in the Makefile to specify any
> prefix for the tlsf specific malloc/free
> CFLAGS += -DTLSF_MALLOC_PREFIX=mytlsf_
> this will make tlsf malloc to become mytlsf_malloc/mytlsf_free and then the
> printf will use the correct malloc/free function.
I'm not sure I understand the problem.
First of all, the ccn-lite-relay example works perfectly fine on native when I
Second, it is supposed to use tlsf for malloc instead of the host system's
malloc implementation. TLSF works fine on native and other 32 bit platforms
that I tested.
Have you made sure that you have created at least on tap device?
The worst thing about Perl jokes is that next morning you can't understand why
they seemed so funny.
-------------- next part --------------
A non-text attachment was scrubbed...
Size: 801 bytes
Desc: not available
More information about the users