This is the mail archive of the
ecos-discuss@sourceware.org
mailing list for the eCos project.
Re: malloc limit?
- From: "Stefan Sommerfeld" <sommerfeld at mikrom dot de>
- To: <ecos-discuss at ecos dot sourceware dot org>
- Date: Thu, 18 Aug 2005 14:43:12 +0200
- Subject: Re: [ECOS] malloc limit?
- References: <008d01c5a3e1$2b3a0940$152ca8c0@nullnullsix>
Hi,
I'm using an eCos system with posix extension. I allocated 30 MB via
malloc und will it with data. Now i start some threads which seem to
overwrite some data in my 30MB block. Could it be possible that malloc
not allocated the whole 30MB? Inside the overwritten block i see this:
"V4.pthread.00000C01" besides some other data. Could there be a conflict
with malloc and posix? Maybe it has something todo with my eCos system
config. Any tips would be helpfull.
Found it.... stupid mistake ....the stack pointer was incorrect. pthread
needs the end of stack as input, so &stack[sizeof(stack)] will fail if the
array is not a byte array.
Bye...
--
Before posting, please read the FAQ: http://ecos.sourceware.org/fom/ecos
and search the list archive: http://ecos.sourceware.org/ml/ecos-discuss