Skip to content

[BUG] Framebuffer driver is sent unknown IOCTL causing error message if graphics debug enabled #16020

Open
@TimJTi

Description

@TimJTi

Description / Steps to reproduce the issue

I enabled graphics debug while developing a new example NuttX App and find that the framebuffer driver (drivers/video/fb.c) is receiving an unsupported IOCTL (with value 778 which I think is FIONBIO) during the spawning of nsh.

I don't understand why it would be sent this and/or if fb.c should just gracefully accept this ioctl and ignore it with no error?

Call stack is:

fb_ioctl@0x2002ab7c (nuttx/drivers/video/fb.c:1159)
file_vioctl@0x200452e8 (nuttx/fs/vfs/fs_ioctl.c:70)
file_ioctl@0x20045650 (nuttx/fs/vfs/fs_ioctl.c:227)
file_dup3@0x20045190 (nuttx/fs/vfs/fs_dup2.c:148)
file_dup2@0x20045214 (nuttx/fs/vfs/fs_dup2.c:198)
files_duplist@0x2004416c (nuttx/fs/inode/fs_files.c:726)
group_setuptaskfiles@0x20014080 (nuttx/sched/group/group_setuptaskfiles.c:86)
nxtask_init@0x20010b90 (nuttx/sched/task/task_init.c:143)
exec_module@0x2006962c (nuttx/binfmt/binfmt_execmodule.c:319)
exec_internal@0x20068e24 (nuttx/binfmt/binfmt_exec.c:146)
exec_spawn@0x20068ee4 (nuttx/nuttx/binfmt/binfmt_exec.c:225)
nxposix_spawn_exec@0x2005259c (nuttx/sched/task/task_posixspawn.c:109)
posix_spawn@0x2005263c (nuttx/sched/task/task_posixspawn.c:223)
fbcon_main@0x2004338c (nuttx/apps/examples/fbcon/fbcon_main.c:2618)
nxtask_startup@0x2002e08c (nuttx/libs/libc/sched/task_startup.c:72)
nxtask_start@0x200119fc (nuttx/sched/task/task_start.c:116)

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: Drivers]

Host information

No response

Verification

  • I have verified before submitting the report.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Arch: armIssues related to ARM (32-bit) architectureArea: DriversDrivers 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