[Numpy-discussion] segfault in np.arange

Dave Hirschfeld dave.hirschfeld at gmail.com
Thu Oct 23 13:21:00 EDT 2014

I accidentally passed a pandas DatetimeIndex to `np.arange` which caused 
it to segfault. It's a pretty dumb thing to do but I don't think it 
should cause a segfault!

Python 2.7.5 |Continuum Analytics, Inc.| (default, Jul  1 2013, 
[MSC v.1500 64 bit (AMD64)] on win32
Type "help", "copyright", "credits" or "license" for more information.
#>>> import faulthandler
#>>> faulthandler.enable()
#>>> import numpy as np
#>>> np.__version__
#>>> import pandas as pd
#>>> pd.__version__
#>>> np.arange(pd.DatetimeIndex([]))
Fatal Python error: Segmentation fault

Current thread 0x00001d18:
  File "<stdin>", line 1 in <module>

The exception dialog which pops up contains the following information:

Unhandled exception at 0x000000000255EB49 (multiarray.pyd) in 
0xC0000005: Access violation reading location 0x0000000000000008.


More information about the NumPy-Discussion mailing list