Skip to content

fd of -1 in ck_device_set_active() #166

Description

@stellarpower

Hi,

I'm on FreeBSD and have been having segfaults and SIGBUS sporadically when changing VTs, and trying to trace this down.

There are several of logs from GLIB on g_close; running in a debugger, I see that the file descriptor here is -1. I will probably file this with the BSD bugtracker, but was just wondering as I'm not familiar with the codebase, if this is indicative of a more serious problem that has origintated elsewhere, or if it's perhaps undesireable and an issue but the field could be considered "nullable" if somehting has gone wrong along the way.

Should a device's file descriptor always be non-negative, or is this an important assumption that shouldn't be broken? I see it'd checked one frame up here, and is reopened on the following line, but wanted to sanity-check before assuming I can ignore it and see what happens if I do that.

Thanks a lot!

No activity

Activity on this issue will appear here.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions