NumPy segfault when running tests (2.7, 1.4.1)
This was using the Intel MKL/icc to compile NumPy and also icc to compile Python on a shared cluster, but I don't think that's relevant given where the segmentation fault occurs... gpc-f104n084-$ gdb python GNU gdb Fedora (6.8-27.el5) Copyright (C) 2008 Free Software Foundation, Inc. License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html> This is free software: you are free to change and redistribute it. There is NO WARRANTY, to the extent permitted by law. Type "show copying" and "show warranty" for details. This GDB was configured as "x86_64-redhat-linux-gnu"... (gdb) (gdb) run Starting program: /home/dwf/pkg/bin/python [Thread debugging using libthread_db enabled] Python 2.7 (r27:82500, Aug 3 2010, 15:33:51) [GCC Intel(R) C++ gcc 4.1 mode] on linux2 Type "help", "copyright", "credits" or "license" for more information. [New Thread 0x2b76149111a0 (LWP 23034)]
import numpy numpy>>> numpy.test() Running unit tests for numpy NumPy version 1.4.1 NumPy is installed in /home/dwf/pkg/lib/python2.7/site-packages/numpy Python version 2.7 (r27:82500, Aug 3 2010, 15:33:51) [GCC Intel(R) C++ gcc 4.1 mode] nose version 0.11.4 ................................................................................................................................... Program received signal SIGSEGV, Segmentation fault. 0x0000000000500916 in PyErr_WarnEx (category=0x11eb6c54, text=0x5f90c0 "PyOS_ascii_strtod and PyOS_ascii_atof are deprecated. Use PyOS_string_to_double instead.", stack_level=0) at Python/_warnings.c:719 719 res = do_warn(message, category, stack_level); (gdb)
Tue, 03 Aug 2010 15:52:55 -0400, David Warde-Farley wrote: [clip]
in PyErr_WarnEx (category=0x11eb6c54, text=0x5f90c0 "PyOS_ascii_strtod and PyOS_ascii_atof are deprecated. Use PyOS_string_to_double instead.", stack_level=0) at Python/_warnings.c:719 719 res = do_warn(message, category, stack_level); (gdb)
That was probably fixed in r8394 in trunk. But to be sure, can you supply the whole stack trace (type "bt" in the gdb prompt). -- Pauli Virtanen
On 2010-08-03, at 4:09 PM, Pauli Virtanen wrote:
Tue, 03 Aug 2010 15:52:55 -0400, David Warde-Farley wrote: [clip]
in PyErr_WarnEx (category=0x11eb6c54, text=0x5f90c0 "PyOS_ascii_strtod and PyOS_ascii_atof are deprecated. Use PyOS_string_to_double instead.", stack_level=0) at Python/_warnings.c:719 719 res = do_warn(message, category, stack_level); (gdb)
That was probably fixed in r8394 in trunk.
But to be sure, can you supply the whole stack trace (type "bt" in the gdb prompt).
Thanks Pauli, it does seem to be fixed in 1.5.0b1. I didn't get the memo somehow that 2.7 breaks NumPy 1.4.x. Now I just have to chase down ugly MKL problems... David
participants (2)
-
David Warde-Farley
-
Pauli Virtanen