Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save agibsonccc/a0fa8568cb70f8fca84094a6f64f097f to your computer and use it in GitHub Desktop.
Save agibsonccc/a0fa8568cb70f8fca84094a6f64f097f to your computer and use it in GitHub Desktop.
In [43]: a.ctypes.data_as(ctypes.POINTER(ctypes.c_longlong)).contents
Out[43]: c_long(4607182418800017408)
In [44]: nd4j_arr = nd4j.createFromNpyPointer(native_ops.pointerForAddress(4607182418800017408))
#
# A fatal error has been detected by the Java Runtime Environment:
#
# SIGSEGV (0xb) at pc=0x00007f842d2346fa, pid=2617, tid=0x00007f842e682780
#
# JRE version: Java(TM) SE Runtime Environment (8.0_111-b14) (build 1.8.0_111-b14)
# Java VM: Java HotSpot(TM) 64-Bit Server VM (25.111-b14 mixed mode linux-amd64 compressed oops)
# Problematic frame:
# C [libc.so.6+0x8a6fa] strlen+0x2a
#
# 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:
# /home/agibsonccc/code/nd4jjcc/hs_err_pid2617.log
#
# If you would like to submit a bug report, please visit:
# http://bugreport.java.com/bugreport/crash.jsp
# The crash happened outside the Java Virtual Machine in native code.
# See problematic frame for where to report the bug.
#
Aborted (core dumped)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment