JState icon indicating copy to clipboard operation
JState copied to clipboard

Fatal Signal SIGSEGV

Open fraVerryns opened this issue 7 years ago • 1 comments

Hello,

with the new version 3.0 when I have in the code a sequence

esm.onSequence(list012, new SequenceHandler<State>() {

           @Override
           public void onMatch(List<State> pattern) {
                Log.d(TAG, "onMatch: 0-1-2 -----> "+pattern.size());
          }
});

I have this error : A/libc: Fatal signal 11 (SIGSEGV), code 1, fault addr 0x68 in tid 9168 (atemachinestest), pid 9168 (atemachinestest)

If I have any transition such as esm.transition(State.Zero); the error is : A/libc: Fatal signal 11 (SIGSEGV), code 1, fault addr 0x68 in tid 9616 (atemachinestest), pid 9616 (atemachinestest)

Thanks Francesco

fraVerryns avatar Jul 31 '18 11:07 fraVerryns

Hello. These errors are very low level, lower even than the code which this library provides. The error is in the C code for Java, so possibly there is some native library you are using which is failing during a transition. There could also be some issue if you are using an alternative JVM, such as the one for Android.

I won't be able to debug an issue like this because it is too low level, so I would try to get a larger thread dump to see what in the C code might be causing the segfault (which is typically a null dereferenced).

UnquietCode avatar Jul 31 '18 16:07 UnquietCode