This is the mail archive of the ecos-discuss@sourceware.org mailing list for the eCos project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

RE: Ethernet Communication



Andrew,

I looked for what you said and searched for other possible problems but I couldn't find anything. Buffers are large enough and I send only 1 byte each time that means 5x1 byte... I don't know how to check buffer overflow and get rid of this problem. The interesting thing is I send data for 5 times, after that it gives error for 40-50 times, then sends again for 5 times and then again error 40-50 times and so on...

But, big thanks for your advises.

Alperen





> Date: Mon, 12 Nov 2007 14:27:36 +0100
> From: andrew@lunn.ch
> To: a_a_coskunoc@hotmail.com
> CC: ecos-discuss@ecos.sourceware.org
> Subject: Re: [ECOS] Ethernet Communication
>
> On Mon, Nov 12, 2007 at 03:10:32PM +0200, Alperen Coskun wrote:
>>
>>
>> Thanks for your reply,
>>
>> I did what you said and get the following error message:
>>
>> ASSERT FAIL: dlmalloc.cxx [ 771] void Cyg_Mempool_dlmalloc_Implementation::do_check_chunk() (cyg_uint8 *)p + sz <= (cyg_uint8 *)(((mbinptr)((char*)&(av_[2*(0) + 2]) - 2*(sizeof(Cyg_Mempool_dlmalloc_Implementation::Cyg_dlmalloc_size_t))))->fd)
>>
>> What do you suggest me doing?
>
> So your heap is getting corrupted. Look for a buffer overflow, double
> free of a block of memory etc....
>
> Andrew

_________________________________________________________________
News, entertainment and everything you care about at Live.com. Get it now!
http://www.live.com/getstarted.aspx

-- 
Before posting, please read the FAQ: http://ecos.sourceware.org/fom/ecos
and search the list archive: http://ecos.sourceware.org/ml/ecos-discuss


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]