================================================== Initial Symptoms ================================================== koobs-freebsd9 buildbots failing in 'compile' step, when host pythonX.Y is installed. koobs-freebsd10 builds seem not to be failing in the same way. ================================================== Error Output ================================================== ./python -E -S -m sysconfig --generate-posix-vars Bus error (core dumped) *** [pybuilddir.txt] Error code 138 ================================================== Host Configuration ================================================== * Host Pythons are built with --enable-shared (via ports) * Reproducible with Python 2.7, 3.4 ================================================== Isolation: Buildbot configurations ================================================== freebsd9 buildbot: argv: ['./configure', '--with-pydebug', '--with-dtrace'] freebsd10 buildbot: argv: ['./configure', '--with-pydebug', '--enable-shared'] * Both buildbots build --with-pydebug, host Python's do not. * koobs-freebsd10 ./configure's with --enable-shared, koobs-freebsd9 does not. * Seems reverse is also true. Host Python --with-pydebug, building *without* --with-pydebug: ./python -E -S -m sysconfig --generate-posix-vars Bus error (core dumped) *** [pybuilddir.txt] Error code 138 ================================================== Isolation: Buildbot Reproduction Matrix ================================================== Building Python Installed Host Python Not-Installed Host-Python-With-PyDebug freebsd9 python 2.7 NOK - (needed for buildbot) OK freebsd9 python 3.4 NOK OK OK freebsd10 python 2.7 NOK - (needed for buildbot) freebsd10 python 3.4 NOK OK OK ================================================== ISOLATION TEST: Rebuild host Python 2.7 with --with-pydebug ================================================== * Reinstall python 2.7 WITH_DEBUG * Breaks mercurial: ImportError: /usr/local/lib/python2.7/site-packages/mercurial/osutil.so: Undefined symbol "Py_InitModule4_64" * Rebuild mercurial * RESULT: Python build OK! ================================================== TEST: Check linking in buildbot build directory ================================================== ldd /usr/home/buildbot/python/2.7.koobs-freebsd9/build/python ./python: libutil.so.9 => /lib/libutil.so.9 (0x800a01000) libm.so.5 => /lib/libm.so.5 (0x800c14000) libthr.so.3 => /lib/libthr.so.3 (0x800e33000) libc.so.7 => /lib/libc.so.7 (0x801056000) ================================================== /usr/local/bin/python2.7 -c 'import sys; print sys.path ======================================================== Isolation: Check and compare invocations ======================================================== freebsd9 port: LD_LIBRARY_PATH=/usr/ports/lang/python27/work/Python-2.7.8 ./python -E -S -m sysconfig --generate-posix-vars freebsd9 buildbot: ./python -E -S -m sysconfig --generate-posix-vars freebsd10 buildbot: LD_LIBRARY_PATH=/usr/home/buildbot/koobs-freebsd10/3.x.koobs-freebsd10/build ./python -E -S -m sysconfig --generate-posix-vars Makefile.pre.in: $(RUNSHARED) $(PYTHON_FOR_BUILD) -S -m sysconfig --generate-posix-vars * Without --enable-shared results in no LD_LIBRARY_PATH set for RUNSHARED ======================================================== Reproduction Steps ======================================================== * Install python27 or python34 without DEBUG option set * Build Python somewhere else: ./configure --with-pydebug * make -j4 touch all ======================================================== ISOLATION: Verbose ./python invocation ======================================================== [koobs@9-STABLE-amd64:/usr/home/koobs/repos/freebsd/ports/lang/python27/work/Python-2.7.8] ./python -v -E -S -m sysconfig --generate-posix-vars # installing zipimport hook import zipimport # builtin # installed zipimport hook import encodings # directory /mnt/home/koobs/repos/freebsd/ports/lang/python27/work/Python-2.7.8/Lib/encodings # /mnt/home/koobs/repos/freebsd/ports/lang/python27/work/Python-2.7.8/Lib/encodings/__init__.pyc matches /mnt/home/koobs/repos/freebsd/ports/lang/python27/work/Python-2.7.8/Lib/encodings/__init__.py import encodings # precompiled from /mnt/home/koobs/repos/freebsd/ports/lang/python27/work/Python-2.7.8/Lib/encodings/__init__.pyc # /mnt/home/koobs/repos/freebsd/ports/lang/python27/work/Python-2.7.8/Lib/codecs.pyc matches /mnt/home/koobs/repos/freebsd/ports/lang/python27/work/Python-2.7.8/Lib/codecs.py import codecs # precompiled from /mnt/home/koobs/repos/freebsd/ports/lang/python27/work/Python-2.7.8/Lib/codecs.pyc import _codecs # builtin # /mnt/home/koobs/repos/freebsd/ports/lang/python27/work/Python-2.7.8/Lib/encodings/aliases.pyc matches /mnt/home/koobs/repos/freebsd/ports/lang/python27/work/Python-2.7.8/Lib/encodings/aliases.py import encodings.aliases # precompiled from /mnt/home/koobs/repos/freebsd/ports/lang/python27/work/Python-2.7.8/Lib/encodings/aliases.pyc # /mnt/home/koobs/repos/freebsd/ports/lang/python27/work/Python-2.7.8/Lib/encodings/utf_8.pyc matches /mnt/home/koobs/repos/freebsd/ports/lang/python27/work/Python-2.7.8/Lib/encodings/utf_8.py import encodings.utf_8 # precompiled from /mnt/home/koobs/repos/freebsd/ports/lang/python27/work/Python-2.7.8/Lib/encodings/utf_8.pyc Python 2.7.8 (default, Aug 4 2014, 13:50:16) [GCC 4.2.1 20070831 patched [FreeBSD]] on freebsd9 # /mnt/home/koobs/repos/freebsd/ports/lang/python27/work/Python-2.7.8/Lib/runpy.pyc matches /mnt/home/koobs/repos/freebsd/ports/lang/python27/work/Python-2.7.8/Lib/runpy.py import runpy # precompiled from /mnt/home/koobs/repos/freebsd/ports/lang/python27/work/Python-2.7.8/Lib/runpy.pyc import imp # builtin # /mnt/home/koobs/repos/freebsd/ports/lang/python27/work/Python-2.7.8/Lib/pkgutil.pyc matches /mnt/home/koobs/repos/freebsd/ports/lang/python27/work/Python-2.7.8/Lib/pkgutil.py import pkgutil # precompiled from /mnt/home/koobs/repos/freebsd/ports/lang/python27/work/Python-2.7.8/Lib/pkgutil.pyc # /mnt/home/koobs/repos/freebsd/ports/lang/python27/work/Python-2.7.8/Lib/os.pyc matches /mnt/home/koobs/repos/freebsd/ports/lang/python27/work/Python-2.7.8/Lib/os.py import os # precompiled from /mnt/home/koobs/repos/freebsd/ports/lang/python27/work/Python-2.7.8/Lib/os.pyc import errno # builtin import posix # builtin # /mnt/home/koobs/repos/freebsd/ports/lang/python27/work/Python-2.7.8/Lib/posixpath.pyc matches /mnt/home/koobs/repos/freebsd/ports/lang/python27/work/Python-2.7.8/Lib/posixpath.py import posixpath # precompiled from /mnt/home/koobs/repos/freebsd/ports/lang/python27/work/Python-2.7.8/Lib/posixpath.pyc # /mnt/home/koobs/repos/freebsd/ports/lang/python27/work/Python-2.7.8/Lib/stat.pyc matches /mnt/home/koobs/repos/freebsd/ports/lang/python27/work/Python-2.7.8/Lib/stat.py import stat # precompiled from /mnt/home/koobs/repos/freebsd/ports/lang/python27/work/Python-2.7.8/Lib/stat.pyc # /mnt/home/koobs/repos/freebsd/ports/lang/python27/work/Python-2.7.8/Lib/genericpath.pyc matches /mnt/home/koobs/repos/freebsd/ports/lang/python27/work/Python-2.7.8/Lib/genericpath.py import genericpath # precompiled from /mnt/home/koobs/repos/freebsd/ports/lang/python27/work/Python-2.7.8/Lib/genericpath.pyc # /mnt/home/koobs/repos/freebsd/ports/lang/python27/work/Python-2.7.8/Lib/warnings.pyc matches /mnt/home/koobs/repos/freebsd/ports/lang/python27/work/Python-2.7.8/Lib/warnings.py import warnings # precompiled from /mnt/home/koobs/repos/freebsd/ports/lang/python27/work/Python-2.7.8/Lib/warnings.pyc # /mnt/home/koobs/repos/freebsd/ports/lang/python27/work/Python-2.7.8/Lib/linecache.pyc matches /mnt/home/koobs/repos/freebsd/ports/lang/python27/work/Python-2.7.8/Lib/linecache.py import linecache # precompiled from /mnt/home/koobs/repos/freebsd/ports/lang/python27/work/Python-2.7.8/Lib/linecache.pyc # /mnt/home/koobs/repos/freebsd/ports/lang/python27/work/Python-2.7.8/Lib/types.pyc matches /mnt/home/koobs/repos/freebsd/ports/lang/python27/work/Python-2.7.8/Lib/types.py import types # precompiled from /mnt/home/koobs/repos/freebsd/ports/lang/python27/work/Python-2.7.8/Lib/types.pyc # /mnt/home/koobs/repos/freebsd/ports/lang/python27/work/Python-2.7.8/Lib/UserDict.pyc matches /mnt/home/koobs/repos/freebsd/ports/lang/python27/work/Python-2.7.8/Lib/UserDict.py import UserDict # precompiled from /mnt/home/koobs/repos/freebsd/ports/lang/python27/work/Python-2.7.8/Lib/UserDict.pyc # /mnt/home/koobs/repos/freebsd/ports/lang/python27/work/Python-2.7.8/Lib/_abcoll.pyc matches /mnt/home/koobs/repos/freebsd/ports/lang/python27/work/Python-2.7.8/Lib/_abcoll.py import _abcoll # precompiled from /mnt/home/koobs/repos/freebsd/ports/lang/python27/work/Python-2.7.8/Lib/_abcoll.pyc # /mnt/home/koobs/repos/freebsd/ports/lang/python27/work/Python-2.7.8/Lib/abc.pyc matches /mnt/home/koobs/repos/freebsd/ports/lang/python27/work/Python-2.7.8/Lib/abc.py import abc # precompiled from /mnt/home/koobs/repos/freebsd/ports/lang/python27/work/Python-2.7.8/Lib/abc.pyc # /mnt/home/koobs/repos/freebsd/ports/lang/python27/work/Python-2.7.8/Lib/_weakrefset.pyc matches /mnt/home/koobs/repos/freebsd/ports/lang/python27/work/Python-2.7.8/Lib/_weakrefset.py import _weakrefset # precompiled from /mnt/home/koobs/repos/freebsd/ports/lang/python27/work/Python-2.7.8/Lib/_weakrefset.pyc import _weakref # builtin # /mnt/home/koobs/repos/freebsd/ports/lang/python27/work/Python-2.7.8/Lib/copy_reg.pyc matches /mnt/home/koobs/repos/freebsd/ports/lang/python27/work/Python-2.7.8/Lib/copy_reg.py import copy_reg # precompiled from /mnt/home/koobs/repos/freebsd/ports/lang/python27/work/Python-2.7.8/Lib/copy_reg.pyc # /mnt/home/koobs/repos/freebsd/ports/lang/python27/work/Python-2.7.8/Lib/pprint.pyc matches /mnt/home/koobs/repos/freebsd/ports/lang/python27/work/Python-2.7.8/Lib/pprint.py import pprint # precompiled from /mnt/home/koobs/repos/freebsd/ports/lang/python27/work/Python-2.7.8/Lib/pprint.pyc dlopen("/usr/local/lib/python2.7/lib-dynload/cStringIO.so", 2); zsh: bus error (core dumped) ./python -v -E -S -m sysconfig --generate-posix-vars ======================================================== Another Symptom: Cant reinstall host python when switching ABI ======================================================== --- pybuilddir.txt --- LD_LIBRARY_PATH=/usr/ports/lang/python34/work/Python-3.4.1 ./python -E -S -m sysconfig --generate-posix-vars Could not import runpy module Traceback (most recent call last): File "/usr/ports/lang/python34/work/Python-3.4.1/Lib/runpy.py", line 15, in import importlib.util File "/usr/ports/lang/python34/work/Python-3.4.1/Lib/importlib/util.py", line 12, in from contextlib import contextmanager File "/usr/ports/lang/python34/work/Python-3.4.1/Lib/contextlib.py", line 4, in from collections import deque File "/usr/ports/lang/python34/work/Python-3.4.1/Lib/collections/__init__.py", line 14, in import heapq as _heapq File "/usr/ports/lang/python34/work/Python-3.4.1/Lib/heapq.py", line 345, in from _heapq import * SystemError: initialization of _heapq did not return an extension module *** [pybuilddir.txt] Error code 1 ======================================================== ISOLATION TEST: NULL --prefix ======================================================== * ./configure --prefix=/dev/null --with-pydebug * RESULT: Python Build OK! ======================================================== Potentially-related Upstream Issues ======================================================== http://bugs.python.org/issue21536 - extension built with a shared python cannot be loaded with a static python http://bugs.python.org/issue13241 - llvm-gcc-4.2 miscompiles Python (XCode 4.1 on Mac OS 10.7) http://bugs.python.org/issue15298 - _sysconfigdata is generated in srcdir, not builddir ======================================================== GNU Debugger backtrace ======================================================== [koobs@9-STABLE-amd64:~/repos/freebsd/ports/lang/python27/work/Python-2.7.8] gdb python python.core GNU gdb 6.1.1 [FreeBSD] 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-marcel-freebsd"... Core was generated by `python'. Program terminated with signal 10, Bus error. Reading symbols from /lib/libutil.so.9...done. Loaded symbols for /lib/libutil.so.9 Reading symbols from /lib/libm.so.5...done. Loaded symbols for /lib/libm.so.5 Reading symbols from /lib/libthr.so.3...done. Loaded symbols for /lib/libthr.so.3 Reading symbols from /lib/libc.so.7...done. Loaded symbols for /lib/libc.so.7 Reading symbols from /usr/local/lib/python2.7/lib-dynload/cStringIO.so...done. Loaded symbols for /usr/local/lib/python2.7/lib-dynload/cStringIO.so Reading symbols from /usr/local/lib/libpython2.7.so.1...done. Loaded symbols for /usr/local/lib/libpython2.7.so.1 Reading symbols from /usr/local/lib/libintl.so.9...done. Loaded symbols for /usr/local/lib/libintl.so.9 Reading symbols from /usr/local/lib/libiconv.so.3...done. Loaded symbols for /usr/local/lib/libiconv.so.3 Reading symbols from /libexec/ld-elf.so.1...done. Loaded symbols for /libexec/ld-elf.so.1 #0 0x00000008010daebb in strlen () from /lib/libc.so.7 [New Thread 801407400 (LWP 100535/python)] (gdb) bt #0 0x00000008010daebb in strlen () from /lib/libc.so.7 #1 0x000000000045b48b in PyString_FromString (str=0xc3f8894801078348
) at Objects/stringobject.c:121 #2 0x000000000044d4ee in PyDict_GetItemString (v=0x801a04be0, key=) at Objects/dictobject.c:2422 #3 0x000000000046fc36 in PyType_Ready (type=0x801a05060) at Objects/typeobject.c:3584 #4 0x0000000801803649 in initcStringIO () at /usr/ports/lang/python27/work/Python-2.7.8/Modules/cStringIO.c:767 #5 0x00000000004b6ba3 in _PyImport_LoadDynamicModule (name=0x801507f00 "cStringIO", pathname=0x801508400 "/usr/local/lib/python2.7/lib-dynload/cStringIO.so", fp=) at ./Python/importdl.c:53 #6 0x00000000004b4a11 in import_submodule (mod=0x76dc40, subname=0x801507f00 "cStringIO", fullname=0x801507f00 "cStringIO") at Python/import.c:2700 #7 0x00000000004b4eab in load_next (mod=0x76dc40, altmod=0x76dc40, p_name=, buf=0x801507f00 "cStringIO", p_buflen=0x7fffffffd368) at Python/import.c:2515 #8 0x00000000004b581f in PyImport_ImportModuleLevel (name=, globals=0x8008bca28, locals=, fromlist=0x8008b82d0, level=-1) at Python/import.c:2224 #9 0x0000000000496739 in builtin___import__ (self=, args=, kwds=) at Python/bltinmodule.c:49 #10 0x000000000041b6fd in PyObject_Call (func=0x8007e5050, arg=0x8008b9890, kw=0x0) at Objects/abstract.c:2529 #11 0x0000000000496c36 in PyEval_CallObjectWithKeywords (func=0x8007e5050, arg=0x8008b9890, kw=0x0) at Python/ceval.c:3902 #12 0x000000000049a766 in PyEval_EvalFrameEx (f=0x800830d00, throwflag=) at Python/ceval.c:2346 #13 0x000000000049eb4d in PyEval_EvalCodeEx (co=0x8008c58b0, globals=, locals=, args=0x0, argcount=0, kws=0x0, kwcount=0, defs=0x0, defcount=0, closure=0x0) at Python/ceval.c:3265 #14 0x000000000049ec62 in PyEval_EvalCode (co=, globals=, locals=) at Python/ceval.c:673 #15 0x00000000004b3520 in PyImport_ExecCodeModuleEx (name=0x801506100 "pprint", co=0x8008c58b0, pathname=0x801506b00 "/mnt/home/koobs/repos/freebsd/ports/lang/python27/work/Python-2.7.8/Lib/pprint.pyc") at Python/import.c:709 #16 0x00000000004b421a in load_source_module (name=0x801506100 "pprint", pathname=0x801506b00 "/mnt/home/koobs/repos/freebsd/ports/lang/python27/work/Python-2.7.8/Lib/pprint.pyc", fp=) at Python/import.c:1099 #17 0x00000000004b4a11 in import_submodule (mod=0x76dc40, subname=0x801506100 "pprint", fullname=0x801506100 "pprint") at Python/import.c:2700 #18 0x00000000004b4eab in load_next (mod=0x76dc40, altmod=0x76dc40, p_name=, buf=0x801506100 "pprint", p_buflen=0x7fffffffd958) at Python/import.c:2515 #19 0x00000000004b581f in PyImport_ImportModuleLevel (name=, globals=0x8007ff168, locals=, fromlist=0x76dc40, level=-1) at Python/import.c:2224 #20 0x0000000000496739 in builtin___import__ (self=, args=, kwds=) at Python/bltinmodule.c:49 #21 0x000000000041b6fd in PyObject_Call (func=0x8007e5050, arg=0x8008b91b0, kw=0x0) at Objects/abstract.c:2529 #22 0x0000000000496c36 in PyEval_CallObjectWithKeywords (func=0x8007e5050, arg=0x8008b91b0, kw=0x0) at Python/ceval.c:3902 #23 0x000000000049a766 in PyEval_EvalFrameEx (f=0x8016c1c20, throwflag=) at Python/ceval.c:2346 #24 0x000000000049d96e in PyEval_EvalFrameEx (f=0x800869aa0, throwflag=) at Python/ceval.c:4119 #25 0x000000000049d96e in PyEval_EvalFrameEx (f=0x80082cb60, throwflag=) at Python/ceval.c:4119 #26 0x000000000049eb4d in PyEval_EvalCodeEx (co=0x800885eb0, globals=, locals=, args=0x0, argcount=0, kws=0x0, kwcount=0, defs=0x0, defcount=0, closure=0x0) at Python/ceval.c:3265 #27 0x000000000049e056 in PyEval_EvalFrameEx (f=0x8016c1920, throwflag=) at Python/ceval.c:673 #28 0x000000000049eb4d in PyEval_EvalCodeEx (co=0x800818ab0, globals=, locals=, args=0x8015179e8, argcount=7, kws=0x801517a20, kwcount=0, defs=0x800814ba8, defcount=5, closure=0x0) at Python/ceval.c:3265 #29 0x000000000049cd57 in PyEval_EvalFrameEx (f=0x801517820, throwflag=) at Python/ceval.c:4129 #30 0x000000000049eb4d in PyEval_EvalCodeEx (co=0x800818db0, globals=, locals=, args=0x800833e30, argcount=2, kws=0x0, kwcount=0, defs=0x80083a5e8, defcount=1, closure=0x0) at Python/ceval.c:3265 #31 0x0000000000500459 in function_call (func=0x8008a1e60, arg=0x800833e18, kw=0x0) at Objects/funcobject.c:526 #32 0x000000000041b6fd in PyObject_Call (func=0x8008a1e60, arg=0x800833e18, kw=0x0) at Objects/abstract.c:2529 #33 0x0000000000416b18 in RunModule (module=0x801418040 "sysconfig", set_argv0=) at Modules/main.c:192 #34 0x00000000004173bc in Py_Main (argc=, argv=0x7fffffffe9a8) at Modules/main.c:587 #35 0x000000000041698a in main (argc=, argv=) at ./Modules/python.c:23 (gdb) =========================================== THEORY: Landmark detection failing? =========================================== http://hg.python.org/cpython/file/a64806257119/Modules/getpath.c#l46 From ktrace: 68578 python NAMI "/mnt/home/koobs/repos/freebsd/ports/lang/python27/work/Python-2.7.8/Lib/os.py" 68578 python STRU struct stat {dev=347527097, ino=2952997, mode=-rw-r--r-- , nlink=1, uid=1001, gid=1001, rdev=4294967295, atime=0, stime=1404093930, ctime=1407062837.280704327, birthtime=1407062837.280704327, size=25914, blksize=26112, blocks=52, flags=0x0 } 68578 python RET stat 0 68578 python CALL stat(0x835880,0x7fffffffd600) 68578 python NAMI "/mnt/home/koobs/repos/freebsd/ports/lang/python27/work/Python-2.7.8/pybuilddir.txt" 68578 python RET stat -1 errno 2 No such file or directory 68578 python CALL stat(0x835880,0x7fffffffd600) 68578 python NAMI "/mnt/home/koobs/repos/freebsd/ports/lang/python27/work/Python-2.7.8/lib/python2.7/lib-dynload" 68578 python RET stat -1 errno 2 No such file or directory 68578 python CALL stat(0x835880,0x7fffffffd600) 68578 python NAMI "/mnt/home/koobs/repos/freebsd/ports/lang/python27/work/lib/python2.7/lib-dynload" 68578 python RET stat -1 errno 2 No such file or directory 68578 python CALL stat(0x835880,0x7fffffffd600) 68578 python NAMI "/mnt/home/koobs/repos/freebsd/ports/lang/python27/lib/python2.7/lib-dynload" 68578 python RET stat -1 errno 2 No such file or directory 68578 python CALL stat(0x835880,0x7fffffffd600) 68578 python NAMI "/mnt/home/koobs/repos/freebsd/ports/lang/lib/python2.7/lib-dynload" 68578 python RET stat -1 errno 2 No such file or directory 68578 python CALL stat(0x835880,0x7fffffffd600) 68578 python NAMI "/mnt/home/koobs/repos/freebsd/ports/lib/python2.7/lib-dynload" 68578 python RET stat -1 errno 2 No such file or directory 68578 python CALL stat(0x835880,0x7fffffffd600) 68578 python NAMI "/mnt/home/koobs/repos/freebsd/lib/python2.7/lib-dynload" 68578 python RET stat -1 errno 2 No such file or directory 68578 python CALL stat(0x835880,0x7fffffffd600) 68578 python NAMI "/mnt/home/koobs/repos/lib/python2.7/lib-dynload" 68578 python RET stat -1 errno 2 No such file or directory 68578 python CALL stat(0x835880,0x7fffffffd600) 68578 python NAMI "/mnt/home/koobs/lib/python2.7/lib-dynload" 68578 python RET stat -1 errno 2 No such file or directory 68578 python CALL stat(0x835880,0x7fffffffd600) 68578 python NAMI "/mnt/home/lib/python2.7/lib-dynload" 68578 python RET stat -1 errno 2 No such file or directory 68578 python CALL stat(0x835880,0x7fffffffd600) 68578 python NAMI "/mnt/lib/python2.7/lib-dynload" 68578 python RET stat -1 errno 2 No such file or directory 68578 python CALL stat(0x835880,0x7fffffffd600) 68578 python NAMI "/usr/local/lib/python2.7/lib-dynload" 68578 python STRU struct stat {dev=80, ino=47383, mode=drwxr-xr-x , nlink=3, uid=0, gid=0, rdev=192447, atime=1407061600.180839000, stime=1407061637, ctime=1407061637, birthtime=1336849323, size=1536, blksize=32768, blocks=8, flags=0x0 } 68578 python RET stat 0 68578 python CALL sigprocmask(SIG_SETMASK,0x800e46850,0x7fffffffe790) 68578 python RET sigprocmask 0 68578 python CALL sigaction(SIGPIPE,0x7fffffffe7e0,0x7fffffffe7c0) 68578 python RET sigaction 0 68578 python CALL sigprocmask(SIG_SETMASK,0x7fffffffe790,0) 68578 python RET sigprocmask 0 68578 python CALL sigprocmask(SIG_SETMASK,0x800e46850,0x7fffffffe790) 68578 python RET sigprocmask 0 68578 python CALL sigaction(SIGXFSZ,0x7fffffffe7e0,0x7fffffffe7c0) 68578 python RET sigaction 0 68578 python CALL sigprocmask(SIG_SETMASK,0x7fffffffe790,0) 68578 python RET sigprocmask 0 68578 python CALL getpid 68578 python RET getpid 68578/0x10be2 68578 python CALL sigprocmask(SIG_SETMASK,0x800e46850,0x7fffffffe770) 68578 python RET sigprocmask 0 68578 python CALL sigaction(SIGHUP,0,0x7fffffffe7a0) 68578 python RET sigaction 0 68578 python CALL sigprocmask(SIG_SETMASK,0x7fffffffe770,0) 68578 python RET sigprocmask 0 68578 python CALL sigprocmask(SIG_SETMASK,0x800e46850,0x7fffffffe770) 68578 python RET sigprocmask 0 68578 python CALL sigaction(SIGINT,0,0x7fffffffe7a0) 68578 python RET sigaction 0 68578 python CALL sigprocmask(SIG_SETMASK,0x7fffffffe770,0) 68578 python RET sigprocmask 0 68578 python CALL sigprocmask(SIG_SETMASK,0x800e46850,0x7fffffffe770) 68578 python RET sigprocmask 0 68578 python CALL sigaction(SIGQUIT,0,0x7fffffffe7a0) 68578 python RET sigaction 0 68578 python CALL sigprocmask(SIG_SETMASK,0x7fffffffe770,0) 68578 python RET sigprocmask 0 68578 python CALL sigprocmask(SIG_SETMASK,0x800e46850,0x7fffffffe770) 68578 python RET sigprocmask 0 68578 python CALL sigaction(SIGILL,0,0x7fffffffe7a0) 68578 python RET sigaction 0 68578 python CALL sigprocmask(SIG_SETMASK,0x7fffffffe770,0) 68578 python RET sigprocmask 0 68578 python CALL sigprocmask(SIG_SETMASK,0x800e46850,0x7fffffffe770) 68578 python RET sigprocmask 0 68578 python CALL sigaction(SIGTRAP,0,0x7fffffffe7a0) 68578 python RET sigaction 0 68578 python CALL sigprocmask(SIG_SETMASK,0x7fffffffe770,0) 68578 python RET sigprocmask 0 68578 python CALL sigprocmask(SIG_SETMASK,0x800e46850,0x7fffffffe770) 68578 python RET sigprocmask 0 68578 python CALL sigaction(SIGIOT,0,0x7fffffffe7a0) 68578 python RET sigaction 0 68578 python CALL sigprocmask(SIG_SETMASK,0x7fffffffe770,0) 68578 python RET sigprocmask 0 68578 python CALL sigprocmask(SIG_SETMASK,0x800e46850,0x7fffffffe770) 68578 python RET sigprocmask 0 68578 python CALL sigaction(SIGEMT,0,0x7fffffffe7a0) 68578 python RET sigaction 0 68578 python CALL sigprocmask(SIG_SETMASK,0x7fffffffe770,0) 68578 python RET sigprocmask 0 68578 python CALL sigprocmask(SIG_SETMASK,0x800e46850,0x7fffffffe770) 68578 python RET sigprocmask 0 68578 python CALL sigaction(SIGFPE,0,0x7fffffffe7a0) 68578 python RET sigaction 0 68578 python CALL sigprocmask(SIG_SETMASK,0x7fffffffe770,0) 68578 python RET sigprocmask 0 68578 python CALL sigprocmask(SIG_SETMASK,0x800e46850,0x7fffffffe770) 68578 python RET sigprocmask 0 68578 python CALL sigaction(SIGKILL,0,0x7fffffffe7a0) 68578 python RET sigaction 0 68578 python CALL sigprocmask(SIG_SETMASK,0x7fffffffe770,0) 68578 python RET sigprocmask 0 68578 python CALL sigprocmask(SIG_SETMASK,0x800e46850,0x7fffffffe770) 68578 python RET sigprocmask 0 68578 python CALL sigaction(SIGBUS,0,0x7fffffffe7a0) 68578 python RET sigaction 0 ======================================================================== Missing pybuilddir.txt ? ======================================================================== http://hg.python.org/cpython/file/a64806257119/Lib/sysconfig.py#l373 From setup.py eh? Makefile.pre.in: all: build_all build_all: $(BUILDPYTHON) oldsharedmods sharedmods gdbhooks Programs/_testembed python-config ========================================================================= Additional Symptom: ImportError: No module named _sysconfigdata ========================================================================= ./python -E -S -m sysconfig --generate-posix-vars Bus error (core dumped) *** [pybuilddir.txt] Error code 138 make: stopped in /usr/ports/lang/python27/work/Python-2.7.8 1 error make: stopped in /usr/ports/lang/python27/work/Python-2.7.8 koobs@10-STABLE-amd64:/usr/ports/lang/python27/work/Python-2.7.8 % ./python Traceback (most recent call last): File "/usr/ports/lang/python27/work/Python-2.7.8/Lib/site.py", line 548, in main() File "/usr/ports/lang/python27/work/Python-2.7.8/Lib/site.py", line 530, in main known_paths = addusersitepackages(known_paths) File "/usr/ports/lang/python27/work/Python-2.7.8/Lib/site.py", line 266, in addusersitepackages user_site = getusersitepackages() File "/usr/ports/lang/python27/work/Python-2.7.8/Lib/site.py", line 241, in getusersitepackages user_base = getuserbase() # this will also set USER_BASE File "/usr/ports/lang/python27/work/Python-2.7.8/Lib/site.py", line 231, in getuserbase USER_BASE = get_config_var('userbase') File "/usr/ports/lang/python27/work/Python-2.7.8/Lib/sysconfig.py", line 516, in get_config_var return get_config_vars().get(name) File "/usr/ports/lang/python27/work/Python-2.7.8/Lib/sysconfig.py", line 468, in get_config_vars _init_posix(_CONFIG_VARS) File "/usr/ports/lang/python27/work/Python-2.7.8/Lib/sysconfig.py", line 352, in _init_posix from _sysconfigdata import build_time_vars ImportError: No module named _sysconfigdata [15952 refs] ======================================================================== ISOLATION TEST: Bypass fault, set PYTHONHOME (Removing -E arg) ======================================================================== PYTHONHOME=`pwd` ./python -v -S -m sysconfig --generate-posix-vars # installing zipimport hook import zipimport # builtin # installed zipimport hook Python 2.7.8 (default, Aug 5 2014, 19:01:11) [GCC 4.2.1 20070831 patched [FreeBSD]] on freebsd9 Could not import runpy module Possibly related issue: http://bugs.python.org/issue17216 ======================================================================== Other Reports ======================================================================== Jul 2013 - NetBSD / Python 2.7.5 - http://comments.gmane.org/gmane.os.netbsd.devel.pkgsrc.bugs/51182 Mar 2014 - CentOS / Python 2.7.6 - http://stackoverflow.com/questions/22307296/installing-python-on-centos May 2014 - Windows / Python 3.4.0 - https://www.hartmutpfarr.de/cygwin_python_3_4