Skip to content

Instantly share code, notes, and snippets.

@lzamparo
Created April 3, 2013 16:08
Show Gist options
  • Save lzamparo/5302602 to your computer and use it in GitHub Desktop.
Save lzamparo/5302602 to your computer and use it in GitHub Desktop.
Rop example segfault in call to theano.function on arc01
In [1]: import theano.tensor as T
Using gpu device 0: Tesla M2070
In [2]: W = T.dmatrix('W')
In [3]: V = T.dmatrix('V')
In [4]: x = T.dvector('x')
In [5]: y = T.dot(x,W)
In [6]: JV = T.Rop(y,W,V)
In [7]: from theano import function
In [8]: f = function([W,V,x], JV)
In [9]: f([[1,1], [1,1]], [[2,2], [2,2]], [0,1])
[arc01:23117] *** Process received signal ***
[arc01:23117] Signal: Segmentation fault (11)
[arc01:23117] Signal code: Invalid permissions (2)
[arc01:23117] Failing at address: 0x809de75e8
[arc01:23117] [ 0] /lib64/libpthread.so.0(+0xf4a0) [0x7fda81fd34a0]
[arc01:23117] [ 1] /scinet/gpc/intel/ics/composer_xe_2011_sp1.9.293/mkl/lib/intel64/libmkl_def.so(mkl_blas_xdgemv+0x29cd) [0x7fda706e154d]
[arc01:23117] [ 2] /scinet/gpc/intel/ics/composer_xe_2011_sp1.9.293/mkl/lib/intel64/libmkl_core.so(mkl_blas_xdgemv+0x58) [0x7fda72024578]
[arc01:23117] [ 3] /scinet/gpc/intel/ics/composer_xe_2011_sp1.9.293/mkl/lib/intel64/libmkl_intel_thread.so(mkl_blas_dgemv+0x14a) [0x7fda730c499a]
[arc01:23117] [ 4] /scinet/gpc/intel/ics/composer_xe_2011_sp1.9.293/mkl/lib/intel64/libmkl_intel_ilp64.so(dgemv+0x75) [0x7fda579ac1c5]
[arc01:23117] [ 5] /scratch/z/zhaolei/lzamparo/theano_compiledir/compiledir_Linux-2.6.32-220.7.1.el6.x86_64-x86_64-with-centos-6.2-Final-x86_64-2.7.2/tmpDEtOWs/a555b35b71f890f9709a187f3bde8c49.so(_ZN53__struct_compiled_op_a555b35b71f890f9709a187f3bde8c493runEv+0x142e) [0x7fda58054ade]
[arc01:23117] [ 6] /scratch/z/zhaolei/lzamparo/theano_compiledir/compiledir_Linux-2.6.32-220.7.1.el6.x86_64-x86_64-with-centos-6.2-Final-x86_64-2.7.2/lazylinker_ext/lazylinker_ext.so(+0x34d9) [0x7fda6de9e4d9]
[arc01:23117] [ 7] /scratch/z/zhaolei/lzamparo/theano_compiledir/compiledir_Linux-2.6.32-220.7.1.el6.x86_64-x86_64-with-centos-6.2-Final-x86_64-2.7.2/lazylinker_ext/lazylinker_ext.so(+0x3eca) [0x7fda6de9eeca]
[arc01:23117] [ 8] /scratch/z/zhaolei/lzamparo/theano_compiledir/compiledir_Linux-2.6.32-220.7.1.el6.x86_64-x86_64-with-centos-6.2-Final-x86_64-2.7.2/lazylinker_ext/lazylinker_ext.so(_Z16CLazyLinker_callP7_objectS0_S0_+0x2c9) [0x7fda6de9f588]
[arc01:23117] [ 9] /scinet/gpc/tools/Python/Python272-shared/lib/libpython2.7.so.1.0(PyObject_Call+0x6b) [0x7fda82229f4b]
[arc01:23117] [10] /scinet/gpc/tools/Python/Python272-shared/lib/libpython2.7.so.1.0(+0x11fe7b) [0x7fda822ffe7b]
[arc01:23117] [11] /scinet/gpc/tools/Python/Python272-shared/lib/libpython2.7.so.1.0(PyEval_EvalFrameEx+0xb2e) [0x7fda822f815e]
[arc01:23117] [12] /scinet/gpc/tools/Python/Python272-shared/lib/libpython2.7.so.1.0(PyEval_EvalCodeEx+0x765) [0x7fda822fe6e5]
[arc01:23117] [13] /scinet/gpc/tools/Python/Python272-shared/lib/libpython2.7.so.1.0(+0x83760) [0x7fda82263760]
[arc01:23117] [14] /scinet/gpc/tools/Python/Python272-shared/lib/libpython2.7.so.1.0(PyObject_Call+0x6b) [0x7fda82229f4b]
[arc01:23117] [15] /scinet/gpc/tools/Python/Python272-shared/lib/libpython2.7.so.1.0(+0x6ae35) [0x7fda8224ae35]
[arc01:23117] [16] /scinet/gpc/tools/Python/Python272-shared/lib/libpython2.7.so.1.0(PyObject_Call+0x6b) [0x7fda82229f4b]
[arc01:23117] [17] /scinet/gpc/tools/Python/Python272-shared/lib/libpython2.7.so.1.0(+0xd1c5b) [0x7fda822b1c5b]
[arc01:23117] [18] /scinet/gpc/tools/Python/Python272-shared/lib/libpython2.7.so.1.0(PyObject_Call+0x6b) [0x7fda82229f4b]
[arc01:23117] [19] /scinet/gpc/tools/Python/Python272-shared/lib/libpython2.7.so.1.0(+0x11fe7b) [0x7fda822ffe7b]
[arc01:23117] [20] /scinet/gpc/tools/Python/Python272-shared/lib/libpython2.7.so.1.0(PyEval_EvalFrameEx+0xb2e) [0x7fda822f815e]
[arc01:23117] [21] /scinet/gpc/tools/Python/Python272-shared/lib/libpython2.7.so.1.0(PyEval_EvalCodeEx+0x765) [0x7fda822fe6e5]
[arc01:23117] [22] /scinet/gpc/tools/Python/Python272-shared/lib/libpython2.7.so.1.0(PyEval_EvalCode+0x19) [0x7fda822fdf79]
[arc01:23117] [23] /scinet/gpc/tools/Python/Python272-shared/lib/libpython2.7.so.1.0(PyEval_EvalFrameEx+0x53bf) [0x7fda822fc9ef]
[arc01:23117] [24] /scinet/gpc/tools/Python/Python272-shared/lib/libpython2.7.so.1.0(PyEval_EvalCodeEx+0x765) [0x7fda822fe6e5]
[arc01:23117] [25] /scinet/gpc/tools/Python/Python272-shared/lib/libpython2.7.so.1.0(+0x120198) [0x7fda82300198]
[arc01:23117] [26] /scinet/gpc/tools/Python/Python272-shared/lib/libpython2.7.so.1.0(PyEval_EvalFrameEx+0xb2e) [0x7fda822f815e]
[arc01:23117] [27] /scinet/gpc/tools/Python/Python272-shared/lib/libpython2.7.so.1.0(PyEval_EvalCodeEx+0x765) [0x7fda822fe6e5]
[arc01:23117] [28] /scinet/gpc/tools/Python/Python272-shared/lib/libpython2.7.so.1.0(+0x120198) [0x7fda82300198]
[arc01:23117] [29] /scinet/gpc/tools/Python/Python272-shared/lib/libpython2.7.so.1.0(PyEval_EvalFrameEx+0xb2e) [0x7fda822f815e]
[arc01:23117] *** End of error message ***
Segmentation fault
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment