This is the mail archive of the ecos-bugs@sources.redhat.com 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]

[Bug 1000184] Ecos kernel data corrupted


http://bugs.ecos.sourceware.org/show_bug.cgi?id=1000184





------- Additional Comments From erik@dd.nec.com.au  2005-27-06 05:33 -------
It may not surprise that mbox writes will overrun the end of the queue if the
file reserving the mbox memory:

#define NMBOXES 1
cyg_mbox mboxes[NMBOXES];
cyg_handle_t mbox_handles[NMBOXES];

lacks the line:
#include <pkgconf/kernel.h>

In the absence of this header inclusion, a default-sized queue is created,
resulting in adjacent memory corruption, since the rest of eCos is aware that
CYG_KERNEL_SYNC_MBOX_QUEUE_SIZE == 50.

Once the header is included, sufficient memory is assigned, and 50 items can be
posted and read back. The OP was not doing this.



------- You are receiving this mail because: -------
You are the QA contact for the bug, or are watching the QA contact.


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