You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Have I written custom code (as opposed to using a stock example script provided in TensorFlow): yes
OS Platform and Distribution (e.g., Linux Ubuntu 16.04):
macOS 10.13.3
JRE version: Java(TM) SE Runtime Environment (8.0_121-b13) (build 1.8.0_121-b13)
TensorFlow installed from (source or binary): maven
GCC/Compiler version (if compiling from source): N/A
CUDA/cuDNN version: N/A
GPU model and memory: N/A
Exact command to reproduce:
// JUnit test casepublicvoidtestSigSegv() {
byte[][] bb = newbyte[3][]; // note: new byte[3][1] doesn't crash, presumably it is initialized by the compilebb[0] = newbyte[] { 0 };
bb[1] = newbyte[] { 1 };
// no bb[2]// next line sigsegv'sTensors.create(bb);
}
Describe the problem
Using Tensors.create to get a Tensor<String> from an uninitialized 2D byte array (byte[][]) results in a SIGSEGV from JNI. See full log below.
Source code / logs
When running the above test case, I get the following output.
#
# A fatal error has been detected by the Java Runtime Environment:
#
# SIGSEGV (0xb) at pc=0x000000010571f0b3, pid=30179, tid=0x0000000000001a03
#
# JRE version: Java(TM) SE Runtime Environment (8.0_121-b13) (build 1.8.0_121-b13)
# Java VM: Java HotSpot(TM) 64-Bit Server VM (25.121-b13 mixed mode bsd-amd64 compressed oops)
# Problematic frame:
# V [libjvm.dylib+0x31f0b3]
#
# Failed to write core dump. Core dumps have been disabled. To enable core dumping, try "ulimit -c unlimited" before starting Java again
#
# An error report file with more information is saved as:
# /Users/ben/AGLabs/nfl/JavaProjects/nlp/hs_err_pid30179.log
#
# If you would like to submit a bug report, please visit:
# http://bugreport.java.com/bugreport/crash.jsp
#
Process finished with exit code 134 (interrupted by signal 6: SIGABRT)
I'm not familiar enough with JNI in general to know if I'm expecting too much. I won't be surprised if you mark this wontfix, I was just surprised to be able to crash the process with a segfault given some bad data. Easy enough to work around (I will size/init my arrays more carefully) but thought you might want to know.
Cheers! Thanks so much for this library!
The text was updated successfully, but these errors were encountered:
System information
macOS 10.13.3
JRE version: Java(TM) SE Runtime Environment (8.0_121-b13) (build 1.8.0_121-b13)
Describe the problem
Using
Tensors.create
to get aTensor<String>
from an uninitialized 2Dbyte
array (byte[][]
) results in aSIGSEGV
from JNI. See full log below.Source code / logs
When running the above test case, I get the following output.
I'm not familiar enough with JNI in general to know if I'm expecting too much. I won't be surprised if you mark this
wontfix
, I was just surprised to be able to crash the process with a segfault given some bad data. Easy enough to work around (I will size/init my arrays more carefully) but thought you might want to know.Cheers! Thanks so much for this library!
The text was updated successfully, but these errors were encountered: