Apache NuttX is a mature, real-time embedded operating system (RTOS)
Go to file
zhangshoukui 0b084308ba Fix Multiple close fd when SMP enable
task1:
The refs is 0 but the inode has not been released
task2:
Executing files_duplist, get filep with refs is zero, but the inode has not yet released.

[    0.530600] [CPU1] [ 6] [ ALERT] [ap] sched_dumpstack: backtrace:
[    0.530800] [CPU1] [ 6] [ ALERT] [ap] sched_dumpstack: [ 6] [<0x4045172>] backtrace_unwind+0x241/0x244
[    0.531200] [CPU1] [ 6] [ ALERT] [ap] sched_dumpstack: [ 6] [<0x4009150>] sched_backtrace+0x27/0x4c
[    0.531500] [CPU1] [ 6] [ ALERT] [ap] sched_dumpstack: [ 6] [<0x402f0fa>] sched_dumpstack+0x3d/0xa0
[    0.531700] [CPU1] [ 6] [ ALERT] [ap] sched_dumpstack: [ 6] [<0x4002c90>] _assert+0x1e3/0x564
[    0.532000] [CPU1] [ 6] [ ALERT] [ap] sched_dumpstack: [ 6] [<0x40221f6>] __assert+0x19/0x24
[    0.532200] [CPU1] [ 6] [ ALERT] [ap] sched_dumpstack: [ 6] [<0x41fe376>] tcp_stop_monitor+0x61/0x6c
[    0.532500] [CPU1] [ 6] [ ALERT] [ap] sched_dumpstack: [ 6] [<0x41fe19e>] tcp_close+0xad/0xdc
[    0.532700] [CPU1] [ 6] [ ALERT] [ap] sched_dumpstack: [ 6] [<0x41ecc18>] inet_close+0x7b/0x8c
[    0.533000] [CPU1] [ 6] [ ALERT] [ap] sched_dumpstack: [ 6] [<0x41ec374>] psock_close+0x27/0x70
[    0.533300] [CPU1] [ 6] [ ALERT] [ap] sched_dumpstack: [ 6] [<0x420b68e>] sock_file_close+0x15/0x3c
[    0.533500] [CPU1] [ 6] [ ALERT] [ap] sched_dumpstack: [ 6] [<0x4206704>] file_close+0x1f/0x80
[    0.533800] [CPU1] [ 6] [ ALERT] [ap] sched_dumpstack: [ 6] [<0x4205278>] files_duplist+0x39f/0x45c
[    0.534100] [CPU1] [ 6] [ ALERT] [ap] sched_dumpstack: [ 6] [<0x4000e3c>] group_setuptaskfiles+0x57/0xc0
[    0.534300] [CPU1] [ 6] [ ALERT] [ap] sched_dumpstack: [ 6] [<0x400bc6c>] nxtask_init+0x5b/0x13c

Signed-off-by: zhangshoukui <zhangshoukui@xiaomi.com>
2024-09-17 12:01:53 +08:00
.github
Documentation driver/pinctl: add pinctrl framework 2024-09-17 02:25:47 +08:00
arch arch/x86_64: add basic support for R_X86_64_REX_GOTPCRELX relocation 2024-09-17 03:20:03 +08:00
audio vfs/file: add reference counting to prevent accidental close during reading writing... 2024-09-17 12:01:53 +08:00
binfmt fix two typos 2024-09-16 11:25:10 -03:00
boards boards/esp32s3: add support to esp32s3-lhcbit board 2024-09-17 01:30:44 +08:00
cmake
crypto Revert "build depend:Revert Make.dep intermediate ddc file" 2024-09-15 19:29:47 +08:00
drivers vfs/file: add reference counting to prevent accidental close during reading writing... 2024-09-17 12:01:53 +08:00
dummy
fs Fix Multiple close fd when SMP enable 2024-09-17 12:01:53 +08:00
graphics Revert "build depend:Revert Make.dep intermediate ddc file" 2024-09-15 19:29:47 +08:00
include vfs/file: add reference counting to prevent accidental close during reading writing... 2024-09-17 12:01:53 +08:00
libs libs/libc/obstack: revert invalid null byte append to obstack_vprintf 2024-09-17 11:32:48 +08:00
mm Revert "build depend:Revert Make.dep intermediate ddc file" 2024-09-15 19:29:47 +08:00
net vfs/file: add reference counting to prevent accidental close during reading writing... 2024-09-17 12:01:53 +08:00
openamp Revert "build depend:Revert Make.dep intermediate ddc file" 2024-09-15 19:29:47 +08:00
pass1 Revert "build depend:Revert Make.dep intermediate ddc file" 2024-09-15 19:29:47 +08:00
sched vfs/file: add reference counting to prevent accidental close during reading writing... 2024-09-17 12:01:53 +08:00
syscall Revert "build depend:Revert Make.dep intermediate ddc file" 2024-09-15 19:29:47 +08:00
tools Revert "build depend:Revert Make.dep intermediate ddc file" 2024-09-15 19:29:47 +08:00
video Revert "build depend:Revert Make.dep intermediate ddc file" 2024-09-15 19:29:47 +08:00
wireless Revert "build depend:Revert Make.dep intermediate ddc file" 2024-09-15 19:29:47 +08:00
.asf.yaml
.gitignore
.pre-commit-config.yaml
.yamllint
AUTHORS
CMakeLists.txt
CONTRIBUTING.md
INVIOLABLES.md
Kconfig
LICENSE
Makefile
NOTICE
README.md
ReleaseNotes

README.md

POSIX Badge License Issues Tracking Badge Contributors GitHub Build Badge Documentation Badge

Apache NuttX is a real-time operating system (RTOS) with an emphasis on standards compliance and small footprint. Scalable from 8-bit to 64-bit microcontroller environments, the primary governing standards in NuttX are POSIX and ANSI standards. Additional standard APIs from Unix and other common RTOSs (such as VxWorks) are adopted for functionality not available under these standards, or for functionality that is not appropriate for deeply-embedded environments (such as fork()).

For brevity, many parts of the documentation will refer to Apache NuttX as simply NuttX.

Getting Started

First time on NuttX? Read the Getting Started guide! If you don't have a board available, NuttX has its own simulator that you can run on terminal.

Documentation

You can find the current NuttX documentation on the Documentation Page.

Alternatively, you can build the documentation yourself by following the Documentation Build Instructions.

The old NuttX documentation is still available in the Apache wiki.

Supported Boards

NuttX supports a wide variety of platforms. See the full list on the Supported Platforms page.

Contributing

If you wish to contribute to the NuttX project, read the Contributing guidelines for information on Git usage, coding standard, workflow and the NuttX principles.

License

The code in this repository is under either the Apache 2 license, or a license compatible with the Apache 2 license. See the License Page for more information.