troubleshooting/README.md
This directory contains comprehensive guides for debugging and troubleshooting libnd4j, particularly focusing on crashes, hangs, and build-related issues.
Covers the core debugging build flags for libnd4j including:
libnd4j.calltrace for function call tracinglibnd4j.printmath for debugging numerical operationslibnd4j.printindices for array bounds checkingComprehensive guide for debugging hanging Java processes, including:
Detailed guide for using the preprocessor debugging capabilities:
libnd4j.preprocess flag# Enable all debugging flags
mvn -Dlibnd4j.calltrace=ON -Dlibnd4j.printmath=ON -Dlibnd4j.printindices=ON clean install
# Attach to hanging process
sudo gdb -p <process-id>
thread apply all bt
# Generate preprocessor output
mvn clean install -Dlibnd4j.preprocess=ON
Debugging Crashes
Investigating Hangs
Build/Macro Problems
When adding new troubleshooting documentation: