Sunday, July 07, 2024

Python numpy Floating point exception in latest snapshot

Hi,

I see this error in latest snapshot:

$ python3.11 -c 'import numpy'
Floating point exception (core dumped)

I installed debug-python package to debug, but I have no idea how to
debug it:

$ gdb -- /usr/local/bin/python3.11
GNU gdb 6.3
Copyright 2004 Free Software Foundation, Inc.
GDB is free software, covered by the GNU General Public License, and you are
welcome to change it and/or distribute copies of it under certain conditions.
Type "show copying" to see the conditions.
There is absolutely no warranty for GDB. Type "show warranty" for details.
This GDB was configured as "amd64-unknown-openbsd7.5"...
(gdb) run -c 'import numpy'
Starting program: /usr/local/bin/python3.11 -c 'import numpy'
Error while reading shared library symbols:
Dwarf Error: wrong version in compilation unit header (is 4, should be 2) [in module /usr/libexec/ld.so]
Error while reading shared library symbols:
Dwarf Error: wrong version in compilation unit header (is 4, should be 2) [in module /usr/libexec/ld.so]
Error while reading shared library symbols:
Dwarf Error: wrong version in compilation unit header (is 4, should be 2) [in module /usr/libexec/ld.so]
Error while reading shared library symbols:
Dwarf Error: wrong version in compilation unit header (is 4, should be 2) [in module /usr/libexec/ld.so]
Error while reading shared library symbols:
Dwarf Error: wrong version in compilation unit header (is 4, should be 2) [in module /usr/libexec/ld.so]
warning: no loadable sections found in added symbol-file /usr/local/lib/python3.11/site-packages/numpy/core/_multiarray_umath.cpython-311.so

Program received signal SIGFPE, Arithmetic exception.
0x0000030e5995dc35 in ?? () from /usr/libexec/ld.so
(gdb) bt
#0 0x0000030e5995dc35 in ?? () from /usr/libexec/ld.so
#1 0x0000030f0f124b30 in ?? ()
#2 0x0000000000000000 in ?? ()
(gdb) list
5 python.c: No such file or directory.
in python.c

No comments:

Post a Comment