Skip to content

NativeClosureProxy - Callable is null #180

@PhBastiani

Description

@PhBastiani

Hi,

What is wrong with this code ?

    POSIX posix = POSIXFactory.getPOSIX();
    posix.signal(Signal.SIGUSR1, new SignalHandler() {
      @Override
      public void handle(int i) {
        System.out.println("handle: " + i);
        }
    });

kill -s USR1 <PID> gives me a nullPointerException during the call of NativeClosureProxy.getCallable()

Tested on : Operating System: Red Hat Enterprise Linux Server 7.4 (Maipo)
CPE OS Name: cpe:/o:redhat:enterprise_linux:7.4:GA:server
Kernel: Linux 3.10.0-693.el7.x86_64
Architecture: x86-64

jnr.posix 3.0.29 (and 3.1.15')

Note : same exception with LibC part of jnr

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