Hi Nazmul, 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 try it. 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? Cheers, Oleg -- The worst thing about Perl jokes is that next morning you can't understand why they seemed so funny.
signature.asc
Description: PGP signature
_______________________________________________ users mailing list [email protected] https://lists.riot-os.org/mailman/listinfo/users
