Skip to content

[Bug] 多个线程处于running状态 #10713

@meng-plus

Description

@meng-plus

RT-Thread Version

V5.2.2

Hardware Type/Architectures

LC4088

Develop Toolchain

IAR

Describe the bug

系统无操作执行一段时间后 ps日志发现有两个线程同时处于running状态,但其中一个永不执行

msh >ps
thread           pri  status      sp     stack size max used left tick   error  tcb addr   usage count    last time
---------------- ---  ------- ---------- ----------  ------  ---------- ------- ---------- ----- -------- ----------
uart2             18  suspend 0x0000014c 0x00001000    20%   0x0000002d EINTRPT 0xa0049080   0%  904522   8811768
uart4             20  suspend 0x000000a4 0x00001000    07%   0x00000062 EINTRPT 0xa0046828   0%   31865   8811556
uart3             18  suspend 0x00000154 0x00001000    13%   0x00000027 EINTRPT 0xa0043e88   0%  968525   8811767
can_rx            25  suspend 0x000000dc 0x00000800    10%   0x00000005 EINTRPT 0xa0041cc8   0%  672004   8811726
tshell            20  running 0x00000204 0x00001000    15%   0x00000009 OK      0xa0040770   0%     116   8811773
LVGL              20  suspend 0x00000124 0x00002000    38%   0x00000005 EINTRPT 0x10009dc4   4% 2909869   8811773
tidle0            31  ready   0x0000007c 0x00000100    48%   0x00000005 OK      0x10009d0c  95% 4676836   8811767
timer              4  running 0x0000010c 0x00000400    47%   0x00000009 OK      0x10009e7c   0%  398795   7249305
main              10  suspend 0x00000144 0x00000800    25%   0x0000000f EINTRPT 0xa003fc50   0%    8812   8811106
msh >

从日志来看20h左右产生了异常,timer线程再未执行, 目前触发条件不清晰 但是一直有人反馈

https://club.rt-thread.org/ask/question/1fc5e857f9731e3e.html

https://club.rt-thread.org/ask/question/901d3e5a5622219d.html

Other additional context

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugThis PR/issue is a bug in the current code.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions