Skip to content

[BUG] RTCB can't be null since g_readytorun is in bss section #15020

@PetervdPerk-NXP

Description

@PetervdPerk-NXP

Description / Steps to reproduce the issue

https://github.com/apache/nuttx/blob/master/sched/sched/sched_lock.c#L80-L85
Mentions that rtcb may be NULL only during early boot-up phases however RTCB ends up in bss.

20002450 g     O .bss   00000008 g_readytorun

Therefore rtcb is a random value instead of NULL.

Not sure what would be better remove the sched_lock check or initialize g_readytorun as 0.

On which OS does this issue occur?

[OS: Linux]

What is the version of your OS?

Ubuntu

NuttX Version

Master

Issue Architecture

[Arch: arm]

Issue Area

[Area: OS Components]

Verification

  • I have verified before submitting the report.

Metadata

Metadata

Labels

Arch: armIssues related to ARM (32-bit) architectureArea: OS ComponentsOS Components issuesOS: LinuxIssues related to Linux (building system, etc)Type: BugSomething isn't working

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions