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: malloc limit?


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


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