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

Segmentation fault while running test_caffe_main #25

Open
iamant92 opened this issue Nov 15, 2017 · 1 comment
Open

Segmentation fault while running test_caffe_main #25

iamant92 opened this issue Nov 15, 2017 · 1 comment

Comments

@iamant92
Copy link

iamant92 commented Nov 15, 2017

Issue summary

attaching backtrace file
gdb-test_caffe_main.txt

odroid@odroid:~/CaffeOnACL/unit_tests$ ./test_caffe_main 
[==========] Running 29 tests from 6 test cases.
[----------] Global test environment set-up.
setting up testbed resource
[----------] 8 tests from PoolingLayerTest/0, where TypeParam = caffe::CPUDevice<float>
[ RUN      ] PoolingLayerTest/0.TestSetup
[       OK ] PoolingLayerTest/0.TestSetup (45 ms)
[ RUN      ] PoolingLayerTest/0.TestSetupPadded
[       OK ] PoolingLayerTest/0.TestSetupPadded (0 ms)
[ RUN      ] PoolingLayerTest/0.TestSetupGlobalPooling
[       OK ] PoolingLayerTest/0.TestSetupGlobalPooling (0 ms)
[ RUN      ] PoolingLayerTest/0.TestForwardMax
[       OK ] PoolingLayerTest/0.TestForwardMax (11 ms)
[ RUN      ] PoolingLayerTest/0.TestForwardMaxTopMask
[       OK ] PoolingLayerTest/0.TestForwardMaxTopMask (0 ms)
[ RUN      ] PoolingLayerTest/0.TestForwardMaxPadded
[       OK ] PoolingLayerTest/0.TestForwardMaxPadded (0 ms)
[ RUN      ] PoolingLayerTest/0.TestMax
[       OK ] PoolingLayerTest/0.TestMax (1688 ms)
[ RUN      ] PoolingLayerTest/0.TestForwardAve
[       OK ] PoolingLayerTest/0.TestForwardAve (0 ms)
[----------] 8 tests from PoolingLayerTest/0 (1745 ms total)

[----------] 1 test from SoftmaxLayerTest/0, where TypeParam = caffe::CPUDevice<float>
[ RUN      ] SoftmaxLayerTest/0.TestForward
[       OK ] SoftmaxLayerTest/0.TestForward (3 ms)
[----------] 1 test from SoftmaxLayerTest/0 (3 ms total)

[----------] 6 tests from InnerProductLayerTest/0, where TypeParam = caffe::CPUDevice<float>
[ RUN      ] InnerProductLayerTest/0.TestSetUp
[       OK ] InnerProductLayerTest/0.TestSetUp (0 ms)
[ RUN      ] InnerProductLayerTest/0.TestSetUpTransposeFalse
[       OK ] InnerProductLayerTest/0.TestSetUpTransposeFalse (0 ms)
[ RUN      ] InnerProductLayerTest/0.TestSetUpTransposeTrue
[       OK ] InnerProductLayerTest/0.TestSetUpTransposeTrue (0 ms)
[ RUN      ] InnerProductLayerTest/0.TestForward
[       OK ] InnerProductLayerTest/0.TestForward (1 ms)
[ RUN      ] InnerProductLayerTest/0.TestForwardTranspose
[       OK ] InnerProductLayerTest/0.TestForwardTranspose (1 ms)
[ RUN      ] InnerProductLayerTest/0.TestForwardNoBatch
[       OK ] InnerProductLayerTest/0.TestForwardNoBatch (0 ms)
[----------] 6 tests from InnerProductLayerTest/0 (2 ms total)

[----------] 6 tests from NeuronLayerTest/0, where TypeParam = caffe::CPUDevice<float>
[ RUN      ] NeuronLayerTest/0.TestAbsVal
[       OK ] NeuronLayerTest/0.TestAbsVal (0 ms)
[ RUN      ] NeuronLayerTest/0.TestReLU
[       OK ] NeuronLayerTest/0.TestReLU (0 ms)
[ RUN      ] NeuronLayerTest/0.TestReLUWithNegativeSlope
[       OK ] NeuronLayerTest/0.TestReLUWithNegativeSlope (5 ms)
[ RUN      ] NeuronLayerTest/0.TestSigmoid
[       OK ] NeuronLayerTest/0.TestSigmoid (0 ms)
[ RUN      ] NeuronLayerTest/0.TestTanH
[       OK ] NeuronLayerTest/0.TestTanH (1 ms)
[ RUN      ] NeuronLayerTest/0.TestBNLL
[       OK ] NeuronLayerTest/0.TestBNLL (0 ms)
[----------] 6 tests from NeuronLayerTest/0 (6 ms total)

[----------] 5 tests from LRNLayerTest/0, where TypeParam = caffe::CPUDevice<float>
[ RUN      ] LRNLayerTest/0.TestSetupAcrossChannels
[       OK ] LRNLayerTest/0.TestSetupAcrossChannels (0 ms)
[ RUN      ] LRNLayerTest/0.TestForwardAcrossChannels
[       OK ] LRNLayerTest/0.TestForwardAcrossChannels (2 ms)
[ RUN      ] LRNLayerTest/0.TestForwardAcrossChannelsLargeRegion
[       OK ] LRNLayerTest/0.TestForwardAcrossChannelsLargeRegion (8 ms)
[ RUN      ] LRNLayerTest/0.TestSetupWithinChannel
[       OK ] LRNLayerTest/0.TestSetupWithinChannel (1 ms)
[ RUN      ] LRNLayerTest/0.TestForwardWithinChannel
[       OK ] LRNLayerTest/0.TestForwardWithinChannel (2 ms)
[----------] 5 tests from LRNLayerTest/0 (13 ms total)

[----------] 3 tests from ConvolutionLayerTest/0, where TypeParam = caffe::CPUDevice<float>
[ RUN      ] ConvolutionLayerTest/0.TestSetup
[       OK ] ConvolutionLayerTest/0.TestSetup (1 ms)
[ RUN      ] ConvolutionLayerTest/0.TestSimpleConvolution
[       OK ] ConvolutionLayerTest/0.TestSimpleConvolution (6 ms)
[ RUN      ] ConvolutionLayerTest/0.Test1x1Convolution
*** Aborted at 1510731087 (unix time) try "date -d @1510731087" if you are using GNU date ***
PC: @ 0xb619f1fa arm_compute::a32_sgemm_8x6()
*** SIGSEGV (@0x4e4000) received by PID 31930 (TID 0xb3a0c000) from PID 5128192; stack trace: ***
    @ 0xb692e270 (unknown)
Segmentation fault

Steps to reproduce

I followed the instruction in the installation.md.
Edited following to make it work in odroid xu4.

arm-linux-gnueabihf-gcc -o build/libOpenCL.so -Iinclude opencl-1.2-stubs/opencl_stubs.c -shared -fPIC

scons werror=1 -j8 debug=0 assert=1 neon=1 opencl=1 embed_kernels=1 os=linux arch=armv7a build=native

and added address to AID directory in make file for building unit test

Your system configuration

Operating system:ubuntu mate 16.04 for odroid xu4
Compiler: make / gcc
CUDA version (if applicable):
CUDNN version (if applicable):
BLAS:
Python or MATLAB version (for pycaffe and matcaffe respectively): python 2.7.12

@joey2014
Copy link

New version can't repro the issue.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants