[issue12588] test_capi.test_subinterps() failed on OpenBSD (powerpc)
Landry Breuil added the comment: Seems something in between fixed it, because it works with 3.4.1. Can test 3.3 if needed. mikey:/usr/obj/tmpfs/ports/Python-3.4.1/Python-3.4.1/ $LD_LIBRARY_PATH=. ./Modules/_testembed --- Pass 0 --- interp 0xac003e00, thread state 0xb4380f80: id(modules) = 2813069072 interp 0xa84b8480, thread state 0xa897cd00: id(modules) = 2840181576 interp 0xa84b8dc0, thread state 0xb1a0b700: id(modules) = 2840181696 interp 0xb1efb540, thread state 0xaec09880: id(modules) = 2929755640 interp 0xac003e00, thread state 0xb4380f80: id(modules) = 2813069072 --- Pass 1 --- interp 0xab4f1780, thread state 0xaec09000: id(modules) = 2813071072 interp 0xac0035c0, thread state 0xaae20080: id(modules) = 2981253808 interp 0xb2bd6e00, thread state 0xaac10a00: id(modules) = 2981254728 interp 0xab4f1880, thread state 0xb0f31d00: id(modules) = 2862169464 interp 0xab4f1780, thread state 0xaec09000: id(modules) = 2813071072 --- Pass 2 --- interp 0xb3731e00, thread state 0xb3a6be00: id(modules) = 2812938720 interp 0xa8842e40, thread state 0xaac10c80: id(modules) = 2981325640 interp 0xab4f1500, thread state 0xaec09a80: id(modules) = 2981325160 interp 0xb3731b00, thread state 0xaec06580: id(modules) = 3039539968 interp 0xb3731e00, thread state 0xb3a6be00: id(modules) = 2812938720 -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue12588 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue12589] test_long.test_nan_inf() failed on OpenBSD (powerpc)
Landry Breuil lan...@openbsd.org added the comment: floatobject.c is compiled with cc -pthread -c -fno-strict-aliasing -O2 -pipe -Wall -DTHREAD_STACK_SIZE=0x2 -fPIC -O2 -pipe -Wall -I. -IInclude -I./Include -fPIC -DPy_BUILD_CORE -o Objects/floatobject.o Objects/floatobject.c -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue12589 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue12589] test_long.test_nan_inf() failed on OpenBSD (powerpc)
Changes by Landry Breuil lan...@openbsd.org: Added file: http://bugs.python.org/file22854/pyconfig.h ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue12589 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue12589] test_long.test_nan_inf() failed on OpenBSD (powerpc)
Changes by Landry Breuil lan...@openbsd.org: Added file: http://bugs.python.org/file22855/math.h ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue12589 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue12589] test_long.test_nan_inf() failed on OpenBSD (powerpc)
Landry Breuil lan...@openbsd.org added the comment: Interestingly, after an update of the system i can't build python 3.2.1 anymore : /usr/include/util.h:102: error: conflicting types for 'openpty' Include/pyport.h:634: error: previous declaration of 'openpty' was here /usr/include/util.h:105: error: conflicting types for 'forkpty' Include/pyport.h:635: error: previous declaration of 'forkpty' was here ./Modules/posixmodule.c: In function 'posix_lstat': ./Modules/posixmodule.c:5155: error: 'lstat' undeclared (first use in this function) ./Modules/posixmodule.c:5155: error: (Each undeclared identifier is reported only once ./Modules/posixmodule.c:5155: error: for each function it appears in.) Relevant lines of configure output (so those seem to come from systemwide config.site) : checking for lstat... (cached) yes checking for openpty... (cached) no checking for openpty in -lutil... (cached) yes checking for forkpty... yes I'm attaching the generated pyconfig.h and the build log, but now that seems to be a different issue.. as pyconfig.h clearly contains wrong defs. Don't count on me too much for that issue, i have honestly no interest in python and lost enough time on that... i trust remi to pick up on it :) -- Added file: http://bugs.python.org/file22856/pyconfig.h.wrong ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue12589 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue12589] test_long.test_nan_inf() failed on OpenBSD (powerpc)
Changes by Landry Breuil lan...@openbsd.org: Added file: http://bugs.python.org/file22857/build-macppc.log ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue12589 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue12589] test_long.test_nan_inf() failed on OpenBSD (powerpc)
Landry Breuil lan...@openbsd.org added the comment: $grep -r '#define Py_IS_INF' . PC/pyconfig.h:#define Py_IS_INFINITY(X) (!_finite(X) !_isnan(X)) isinf(float('inf')) Breakpoint 2, __isinf (d=1.0604798301039825e-314) at /usr/src/lib/libc/gen/isinf.c:30 30 in /usr/src/lib/libc/gen/isinf.c (gdb) bt #0 __isinf (d=1.0604798301039825e-314) at /usr/src/lib/libc/gen/isinf.c:30 #1 0x8fe528d8 in ffi_call_SYSV () from /usr/local/lib/libffi.so.0.0 -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue12589 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue12589] test_long.test_nan_inf() failed on OpenBSD (powerpc)
Landry Breuil lan...@openbsd.org added the comment: Py_IS_INFINITY is defined as #ifndef Py_IS_INFINITY # if defined HAVE_DECL_ISINF HAVE_DECL_ISINF == 1 #define Py_IS_INFINITY(X) isinf(X) # else #define Py_IS_INFINITY(X) ((X)\ (Py_FORCE_DOUBLE(X)*0.5 == Py_FORCE_DOUBLE(X))) # endif #endif The test still fails when built --with-pydebug. (gdb) b isinf Function isinf not defined. Make breakpoint pending on future shared library load? (y or [n]) y Breakpoint 1 (isinf) pending. (gdb) r Starting program: /usr/obj/ports/Python-3.2.1/Python-3.2.1/python Breakpoint 2 at 0x852786d4: file /usr/src/lib/libc/gen/isinf.c, line 27. Pending breakpoint isinf resolved Python 3.2.1 (default, Jul 22 2011, 17:34:54) [GCC 4.2.1 20070719 ] on openbsd4 Type help, copyright, credits or license for more information. int(float('inf')) 0 [56408 refs] isinf is #defined in math.h to #define isinf(x) \ ((sizeof (x) == sizeof (float)) ? \ __isinff(x) \ : (sizeof (x) == sizeof (double)) ? \ __isinf(x) \ : __isinfl(x)) but setting a bkp on it changes nothing. Starting program: /usr/obj/ports/Python-3.2.1/Python-3.2.1/python Breakpoint 2 at 0x89b4f708: file /usr/src/lib/libc/gen/isinf.c, line 36. Pending breakpoint __isinff resolved Python 3.2.1 (default, Jul 22 2011, 17:34:54) [GCC 4.2.1 20070719 ] on openbsd4 Type help, copyright, credits or license for more information. int(float('inf')) 0 Setting a bkp on PyLong_FromDouble() shows that it's not called. Sorry, this doesnt make sense to me... -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue12589 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue12589] test_long.test_nan_inf() failed on OpenBSD (powerpc)
Landry Breuil lan...@openbsd.org added the comment: import struct struct.pack(d, float(inf)) b'\x7f\xf0\x00\x00\x00\x00\x00\x00' struct.pack(f, float(inf)) b'\x7f\x80\x00\x00' And yes, HAVE_DECL_ISINF is defined to 1 in pyconfig.h -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue12589 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue12589] test_long.test_nan_inf() failed on OpenBSD (powerpc)
Landry Breuil lan...@openbsd.org added the comment: Python 3.2.1 (default, Jul 18 2011, 10:56:33) [GCC 4.2.1 20070719 ] on openbsd4 Type help, copyright, credits or license for more information. import ctypes import ctypes.util libc = ctypes.cdll.LoadLibrary(ctypes.util.find_library('c')) isinf = libc.isinf isinf.argtypes = (ctypes.c_double,) isinf(0.0) 0 isinf(float('inf')) 1 -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue12589 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue12589] test_long.test_nan_inf() failed on OpenBSD (powerpc)
Landry Breuil lan...@openbsd.org added the comment: $python3.2 Python 3.2.1 (default, Jul 18 2011, 10:56:33) [GCC 4.2.1 20070719 ] on openbsd4 int(float('inf')) 0 $sysctl hw hw.machine=macppc -- nosy: +landry ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue12589 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue12588] test_capi.test_subinterps() failed on OpenBSD (powerpc)
Landry Breuil lan...@openbsd.org added the comment: (gdb) r Starting program: /usr/obj/ports/Python-3.2.1/Python-3.2.1/Modules/_testembed --- Pass 0 --- interp 0x90ae7300, thread state 0x87b48a00: id(modules) = 2363177552 interp 0x90ae7a40, thread state 0x87b48a80: id(modules) = 2243881408 interp 0x90ae7cc0, thread state 0x87b48100: id(modules) = 2216467744 interp 0x90ae7ec0, thread state 0x87b48180: id(modules) = 2221503376 interp 0x90ae7300, thread state 0x87b48a00: id(modules) = 2363177552 --- Pass 1 --- interp 0x0, thread state 0x87b48a00: Program received signal SIGSEGV, Segmentation fault. 0x8cb70094 in PyImport_GetModuleDict () from /usr/local/lib/libpython3.2m.so.1.0 (gdb) bt #0 0x8cb70094 in PyImport_GetModuleDict () from /usr/local/lib/libpython3.2m.so.1.0 #1 0x8cb70070 in PyImport_GetModuleDict () from /usr/local/lib/libpython3.2m.so.1.0 #2 0x8cb70070 in PyImport_GetModuleDict () from /usr/local/lib/libpython3.2m.so.1.0 #3 0x8cb70070 in PyImport_GetModuleDict () from /usr/local/lib/libpython3.2m.so.1.0 #4 0x8cb70070 in PyImport_GetModuleDict () from /usr/local/lib/libpython3.2m.so.1.0 #5 0x8cb70070 in PyImport_GetModuleDict () from /usr/local/lib/libpython3.2m.so.1.0 #6 0x8cb70070 in PyImport_GetModuleDict () from /usr/local/lib/libpython3.2m.so.1.0 Previous frame inner to this frame (corrupt stack?) -- nosy: +landry ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue12588 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue12588] test_capi.test_subinterps() failed on OpenBSD (powerpc)
Landry Breuil lan...@openbsd.org added the comment: You get the same issue : [23:08] mikey:/usr/obj/ports/Python-3.2.1/Python-3.2.1/ $cp Modules/_testembed . [23:08] mikey:/usr/obj/ports/Python-3.2.1/Python-3.2.1/ $LD_LIBRARY_PATH=. gdb _testembed 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 powerpc-unknown-openbsd4.9...(no debugging symbols found) (gdb) r Starting program: /usr/obj/ports/Python-3.2.1/Python-3.2.1/_testembed --- Pass 0 --- interp 0x90d4a440, thread state 0x81855380: id(modules) = 2201418320 interp 0x90d4a580, thread state 0x81855600: id(modules) = 2259298752 interp 0x90d4a880, thread state 0x81855480: id(modules) = 2246904544 interp 0x90d4acc0, thread state 0x81855500: id(modules) = 2328741616 interp 0x90d4a440, thread state 0x81855380: id(modules) = 2201418320 --- Pass 1 --- interp 0x0, thread state 0x81855380: Program received signal SIGSEGV, Segmentation fault. 0x8eb95094 in PyImport_GetModuleDict () from ./libpython3.2m.so.1.0 (gdb) bt #0 0x8eb95094 in PyImport_GetModuleDict () from ./libpython3.2m.so.1.0 #1 0x8eb95070 in PyImport_GetModuleDict () from ./libpython3.2m.so.1.0 #2 0x8eb95070 in PyImport_GetModuleDict () from ./libpython3.2m.so.1.0 #3 0x8eb95070 in PyImport_GetModuleDict () from ./libpython3.2m.so.1.0 #4 0x8eb95070 in PyImport_GetModuleDict () from ./libpython3.2m.so.1.0 #5 0x8eb95070 in PyImport_GetModuleDict () from ./libpython3.2m.so.1.0 #6 0x8eb95070 in PyImport_GetModuleDict () from ./libpython3.2m.so.1.0 Previous frame inner to this frame (corrupt stack?) -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue12588 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com