RTEMS scheduler bug ?
Catalin Demergian
demergian at gmail.com
Tue Apr 2 10:59:15 UTC 2019
Hi,
I was able to reproduce the issue again, but it doesn't look like the
interrupts are enabled
in the functions where you added Asserts in the patch. So, my changes don't
fix the problem.
My analysis would have been correct if the interrupts were enabled, but it
looks it's not the case.
Still, a problem exists somewhere .. _Chain_Append_unprotected fails and
the task starves as a result.
If it's not interrupts, I have to think again what could produce the
failure. (any idea/hint here is welcome :) )
Also, during my tests I even saw a crash (probably not related to this
issue). Call stack looks like this
Thread #1 (Suspended:Signal:SIGINT:Interrupt)
_ARMV7M_Exception_default() at armv7m-exception-default.c:25 0x805aff0
<signal_handler_called>() at 0xfffffffd
_Configuration_Scheduler_priority_dflt() at 0x2400063c
regards,
Catalin
On Mon, Apr 1, 2019 at 5:51 AM Catalin Demergian <demergian at gmail.com>
wrote:
> yes, removing the build dir did the trick :)
> I'll start a test with the assert in and let you know.
> Catalin
>
>
> On Mon, Apr 1, 2019 at 3:31 PM Sebastian Huber <
> sebastian.huber at embedded-brains.de> wrote:
>
>> On 01/04/2019 14:28, Catalin Demergian wrote:
>> > Yes, I made a test, _ISR_Get_level() can be used on my CPU.
>>
>> Ok, good.
>>
>> >
>> > About --enable-rtems-debug .. it doesn't seem to enable the
>> > RTEMS_DEBUG flag in the code, I tried --enable-rtems-debug=yes as well
>> ..
>> > is there maybe a combination of options to enable RTEMS_DEBUG in the
>> > code ? I'm afraid I will run for nothing without it, it seems the
>> > Assert is defined to nothing if this is not set right.
>>
>> You have to remove the build tree and configure again:
>>
>> configure --target=arm-rtems5 --enable-maintainer-mode
>> --enable-rtems-debug ...
>>
>> --
>> Sebastian Huber, embedded brains GmbH
>>
>> Address : Dornierstr. 4, D-82178 Puchheim, Germany
>> Phone : +49 89 189 47 41-16
>> Fax : +49 89 189 47 41-09
>> E-Mail : sebastian.huber at embedded-brains.de
>> PGP : Public key available on request.
>>
>> Diese Nachricht ist keine geschäftliche Mitteilung im Sinne des EHUG.
>>
>>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.rtems.org/pipermail/users/attachments/20190402/da27def7/attachment-0001.html>
More information about the users
mailing list