This is the mail archive of the
ecos-bugs@sources.redhat.com
mailing list for the eCos project.
[Bug 1000184] Ecos kernel data corrupted
- From: bugzilla at ecoscentric dot com
- To: ecos-bugs at sources dot redhat dot com
- Date: Mon, 27 Jun 2005 05:33:14 +0100 (BST)
- Subject: [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.