Skip to content

xpp::connection segfaults when there is a problem connecting to X #32

@zybreak

Description

@zybreak

I have identified 2 possible scenarios so far. #1 is when we create a connection and specify extensions, then the segfault seems to happen in the extension.

dispatcher(const xpp::shape::extension & extension)
      : dispatcher(extension->first_error)  <--- this line
    {}

If no extensions are specified, the segfault happens because the connection objects tries to fetch the root screen, without checking for a successful connection first.

The second segfault is pretty simple to fix, but the first one requires more c++ skills than I currently have :)

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