On Tue, 05 Nov 2013 23:20:45 +0500, Jaime Fernández del Río <jaime.frio@gmail.com> wrote:

On Tue, Nov 5, 2013 at 10:10 AM, Sergey Petrov <qweqwegod@yahoo.com> wrote:
Rather stupid question here, but I can't figure out by myself:
Why does the following c program segfaults? And how can I avoid it?

You need to call import_array before using the C-API, see here:

Thank you, Jaime, that solved my issue.