Skip to content

SIGSEGV in Java_com_fazecast_jSerialComm_SerialPort_setEventListeningStatus+0x4 #625

@HanyzPAPU

Description

@HanyzPAPU

Called from Thread.run() in SerialPortEventListener.startListening().

setEventListeningStatus(portHandle, false);

Looks like there's a race with closing the port or shutting down, that the portHandle is set to 0 before the native code is called.
The native code then dereferences the null pointer here:

port->eventListenerRunning = eventListenerRunning;

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions