Bug in chThdRelease()

ChibiOS public support forum for all topics not covered by a specific support forum.

Moderators: RoccoMarco, lbednarz, tfAteba

Post Reply
User avatar
lilvinz
Posts: 130
Joined: Sat Dec 21, 2013 2:56 pm
Has thanked: 1 time
Been thanked: 6 times

Bug in chThdRelease()

Post 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
User avatar
Giovanni
Site Admin
Posts: 14895
Joined: Wed May 27, 2009 8:48 am
Has thanked: 1202 times
Been thanked: 997 times

Re: Bug in chThdRelease()

Post by Giovanni »

Thanks, is this on trunk right? still working on dynamic stuff, lot of changes there.

Giovanni
User avatar
lilvinz
Posts: 130
Joined: Sat Dec 21, 2013 2:56 pm
Has thanked: 1 time
Been thanked: 6 times

Re: Bug in chThdRelease()

Post by lilvinz »

Yes, its on trunk.

Cheers

Vinz
Post Reply