Skip to content

Segmentation fault when reversing an array enough times (Trac #466) #1064

@numpy-gitbot

Description

@numpy-gitbot

Original ticket http://projects.scipy.org/numpy/ticket/466 on 2007-03-08 by @FrancescAlted, assigned to @dmcooke.

Hi,

I'm getting a consistent seg fault by running this code:

import numpy

print "numpy version-->", numpy.__version__
N = 1000*1000
a = numpy.array([1,2])
for i in xrange(N):
    a = a[::-1]

and the output for my machine:

numpy version--> 1.0.2.dev3546
Violació de segment

I need 1 million of iterations for getting the segfault, but your mileage may vary.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions