Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

operator Conv is crashing likely because of invalid memory read. #105

Open
srohit0 opened this issue Nov 13, 2019 · 0 comments
Open

operator Conv is crashing likely because of invalid memory read. #105

srohit0 opened this issue Nov 13, 2019 · 0 comments
Assignees
Labels
bug Something isn't working

Comments

@srohit0
Copy link
Member

srohit0 commented Nov 13, 2019

Test may not crash on internal machines, it consistently crashes on google colab - a platform we support.

how to reproduce on Colab

!sudo apt-get update
!sudo apt-get install build-essential python3.6-dev python3-pip swig doxygen clang-format clang clang-8 llvm-8 llvm-8-dev
!sudo pip3 install numpy onnx
!git clone https://github.com/ai-techsystems/dnnCompiler
import os
os.chdir('/content/dnnCompiler/')
!make clean; make
os.chdir('/content/dnnCompiler/test')
!python3 run_one.py Conv.py

How to profile using valgrind

make DEBUG=y
cd test
valgrind --tool=memcheck --leak-check=yes --show-reachable=yes --num-callers=20 --track-fds=yes python run_one.py Conv.py | & tee val.log

Inspect val.log to find

==26696== Conditional jump or move depends on uninitialised value(s)
...
==26696== Invalid read of size 4

Fixing these leaks locally will likely fix the crash in colab too.

@srohit0 srohit0 added the bug Something isn't working label Nov 13, 2019
@srohit0 srohit0 self-assigned this Nov 13, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant