Theano/Theano — pull request #1087 by abalkin (2012-11-22 05:37:16+00:00)
Title: Fixed a crash when rank greated than numpy.MAXDIMS is requested in dimshuffle.

```python
>>> from theano.tensor import dscalar
>>> x = dscalar()
>>> y = x.dimshuffle(('x',)*40)
>>> y.eval({x: 0})
Segmentation fault (core dumped)
```