Page 1 of 1

Bug in chThdRelease()

Posted: Thu Mar 17, 2016 6:59 pm
by lilvinz
Hi Giovanni,

when calling chThdRelease() without CH_CFG_USE_DYNAMIC, chSysUnlock() will be called twice and thus result in a panic with SV#5.

See https://github.com/ChibiOS/ChibiOS/blob ... ads.c#L451

"return;" has to be moved out of the
#if CH_CFG_USE_DYNAMIC == TRUE
block.

Cheers

Vinz

Re: Bug in chThdRelease()

Posted: Thu Mar 17, 2016 8:28 pm
by Giovanni
Thanks, is this on trunk right? still working on dynamic stuff, lot of changes there.

Giovanni

Re: Bug in chThdRelease()

Posted: Thu Mar 17, 2016 8:31 pm
by lilvinz
Yes, its on trunk.

Cheers

Vinz