Search found 5 matches

by craig.sacco
Mon Oct 02, 2017 6:40 am
Forum: Bug Reports
Topic: Dynamic thread creation when using PORT_ENABLE_GUARD_PAGES may fail
Replies: 4
Views: 4435

Re: Dynamic thread creation when using PORT_ENABLE_GUARD_PAGES may fail

The fix looks good - memory allocated from the heap to be used for threads are now aligned to 32 bytes.
by craig.sacco
Sun Oct 01, 2017 10:17 pm
Forum: Bug Reports
Topic: Dynamic thread creation when using PORT_ENABLE_GUARD_PAGES may fail
Replies: 4
Views: 4435

Re: Dynamic thread creation when using PORT_ENABLE_GUARD_PAGES may fail

I can try the fix later this afternoon (Melbourne time)
by craig.sacco
Sun Oct 01, 2017 4:28 am
Forum: Bug Reports
Topic: Dynamic thread creation when using PORT_ENABLE_GUARD_PAGES may fail
Replies: 4
Views: 4435

Dynamic thread creation when using PORT_ENABLE_GUARD_PAGES may fail

Given the following:

⋅ Micro is an STM32F407
⋅ CH_DBG_ENABLE_CHECKS is TRUE
⋅ CH_DBG_ENABLE_ASSERTS is TRUE
⋅ CH_DBG_ENABLE_STACK_CHECK is TRUE
⋅ PORT_ENABLE_GUARD_PAGES is TRUE

When trying to use the dynamic thread creation ...
by craig.sacco
Mon Jul 17, 2017 10:21 pm
Forum: Bug Reports
Topic: chSemSignal assertion
Replies: 5
Views: 6316

Re: chSemSignal assertion

Hi Giovanni,

It may be worthwhile performing an audit through the kernel code to look for other issues like this - a similar issue exists in the chSemSignalWait() function.

Regards,
Craig
by craig.sacco
Mon Jul 17, 2017 2:35 am
Forum: Bug Reports
Topic: chSemSignal assertion
Replies: 5
Views: 6316

chSemSignal assertion

Hi,

I've been attempting to track down the cause of the following assertion in chSemSignal() in version 2.6.0 of ChibiOS:

void chSemSignal(Semaphore *sp) {

chDbgCheck(sp != NULL, "chSemSignal");
chDbgAssert(((sp->s_cnt >= 0) && isempty(&sp->s_queue)&#41 ...