Boost logo

Boost Testing :

From: John Pavel (jrp_at_[hidden])
Date: 2007-11-18 06:57:27


When building the Python regression tests on OS X 10.5 (and 10.5.1) the
process hangs.

It seems to hang running process Python. So far as I can tell from the
trace below, the hang happens when trying to _PyImport_LoadDynamicModule

The trace below that is a re-run of the attempt to build the andeas_beyer
tests. It includes some configuration data.

Suggestions for how to proceed?

John

Sampling process 581 for 3 seconds with 1 millisecond of run time between
samples
Sampling completed, processing symbols...
Analysis of sampling Python (pid 581) every 1 millisecond
Call graph:
    2248 Thread_2503
      2248 0x1fca
        2248 Py_Main
          2248 PyRun_SimpleFileExFlags
            2248 PyRun_FileExFlags
              2248 PyErr_Display
                2248 PyEval_EvalCode
                  2248 PyEval_EvalCodeEx
                    2248 PyEval_EvalFrameEx
                      2248 PyEval_EvalCodeEx
                        2248 PyEval_EvalFrameEx
                          2248 PyEval_EvalCodeEx
                            2248 PyEval_EvalFrameEx
                              2248 PyEval_EvalCodeEx
                                2248 PyEval_EvalFrameEx
                                  2248 PyObject_Call
                                    2248 PyInstance_New
                                      2248 PyEval_CallObjectWithKeywords
                                        2248 PyObject_Call
                                          2248 PyMethod_New
                                            2248 PyObject_Call
                                              2248 PyFunction_SetClosure
                                                2248 PyEval_EvalCodeEx
                                                  2248 PyEval_EvalFrameEx
                                                    2248 PyObject_Call
                                                      2248 PyMethod_New
                                                        2248 PyObject_Call
                                                          2248
PyFunction_SetClosure
                                                            2248
PyEval_EvalCodeEx
                                                              2248
PyEval_EvalFrameEx
                                                                2248
PyEval_CallObjectWithKeywords
                                                                  2248
PyObject_Call
                                                                    2248
PyAST_FromNode
                                                                      2248
PyImport_ImportModuleLevel
                                                                        2248
PyImport_ReloadModule
 
2248 PyImport_ReloadModule
 
2248 PyImport_ReloadModule
 
2248 PyImport_ExecCodeModule
 
2248 _PyImport_LoadDynamicModule
 
2248 initreadline
 
2248 rl_initialize
 
2248 el_init
 
2248 tty_init
 
2248 ioctl
 
2248 ioctl

Total number in stack (recursive counted multiple, when >=5):
        6 PyEval_EvalCodeEx
        6 PyEval_EvalFrameEx
        6 PyObject_Call

Sort by top of stack, same collapsed (when >= 5):
        ioctl 2248
Sample analysis of process 581 written to file /dev/stdout

macbook-pro:test jrp$ ~/boost/regression/tools_bjam/bin.macosxx86/bjam -d+2
--debug-configuration --debug-building --debug-generator andreas_beyer
notice: found boost-build.jam at
/Users/jrp/boost/regression/boost/boost-build.jam
notice: loading Boost.Build from
/Users/jrp/boost/regression/boost/tools/build/v2
notice: searching "/etc" "/Users/jrp"
"/Users/jrp/boost/regression/boost/tools/build/v2" "/usr/share/boost-build"
"/Users/jrp/boost/regression/boost/tools/build/v2/kernel"
"/Users/jrp/boost/regression/boost/tools/build/v2/util"
"/Users/jrp/boost/regression/boost/tools/build/v2/build"
"/Users/jrp/boost/regression/boost/tools/build/v2/tools"
"/Users/jrp/boost/regression/boost/tools/build/v2/new"
"/Users/jrp/boost/regression/boost/tools/build/v2/." for "site-config.jam"
notice: loading site-config.jam from
/Users/jrp/boost/regression/boost/tools/build/v2/site-config.jam
notice: searching "/Users/jrp"
"/Users/jrp/boost/regression/boost/tools/build/v2" "/usr/share/boost-build"
"/Users/jrp/boost/regression/boost/tools/build/v2/kernel"
"/Users/jrp/boost/regression/boost/tools/build/v2/util"
"/Users/jrp/boost/regression/boost/tools/build/v2/build"
"/Users/jrp/boost/regression/boost/tools/build/v2/tools"
"/Users/jrp/boost/regression/boost/tools/build/v2/new"
"/Users/jrp/boost/regression/boost/tools/build/v2/." for "user-config.jam"
notice: loading user-config.jam from /Users/jrp/user-config.jam
notice: will use 'g++' for darwin, condition <toolset>darwin
notice: [python-cfg] Configuring python...
notice: [python-cfg] user-specified version: "2.5"
notice: [python-cfg] user-specified cmd-or-prefix:
"/System/Library/Frameworks/Python.framework/Versions/2.5"
notice: [python-cfg] Checking interpreter command
"/System/Library/Frameworks/Python.framework/Versions/2.5/bin/python"...
notice: [python-cfg] running command
'/System/Library/Frameworks/Python.framework/Versions/2.5/bin/python -c
"from sys import *; print
'version=%d.%d\nplatform=%s\nprefix=%s\nexec_prefix=%s\nexecutable=%s' %
(version_info[0],version_info[1],platform,prefix,exec_prefix,executable)"
2>&1'
notice: [python-cfg] ...requested configuration matched!
notice: [python-cfg] Details of this Python configuration:
notice: [python-cfg] interpreter command:
"/System/Library/Frameworks/Python.framework/Versions/2.5/bin/python"
notice: [python-cfg] include path:
"/System/Library/Frameworks/Python.framework/Versions/2.5/include/python2.5"
notice: [python-cfg] library path:
"/System/Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/conf
ig" "/System/Library/Frameworks/Python.framework/Versions/2.5/lib"
notice: [python-cfg] no framework directory found; using library path
warning: Graph library does not contain optional GraphML reader.
note: to enable GraphML support, set EXPAT_INCLUDE and EXPAT_LIBPATH to the
note: directories containing the Expat headers and libraries, respectively.
notice: iostreams: using prebuilt zlib
notice: iostreams: using prebuilt bzip2
warning: skipping optional Message Passing Interface (MPI) library.
note: to enable MPI support, add "using mpi ;" to user-config.jam.
note: to suppress this message, pass "--without-mpi" to bjam.
note: otherwise, you can safely ignore this message.
Building Boost.Regex with the optional Unicode/ICU support disabled.
Please refer to the Boost.Regex documentation for more information
(don't panic: this is a strictly optional feature).

Building target './andreas_beyer'
     Build request: <debug-symbols>on <inlining>off <optimization>off
<runtime-debugging>on <variant>debug
     Command line free features:
     Target requirements:
<conditional>@Jamfile</Users/jrp/boost/regression/boost>%Jamfile</Users/jrp/
boost/regression/boost>.handle-static-runtime <define>BOOST_ALL_NO_LIB=1
<include>../../.. <location-prefix>andreas_beyer.test
<tag>@Jamfile</Users/jrp/boost/regression/boost>%Jamfile</Users/jrp/boost/re
gression/boost>.tag

     Common properties: <asynch-exceptions>off
<conditional>@Jamfile</Users/jrp/boost/regression/boost>%Jamfile</Users/jrp/
boost/regression/boost>.handle-static-runtime <debug-symbols>on
<define>BOOST_ALL_NO_LIB=1 <exception-handling>on <extern-c-nothrow>off
<hardcode-dll-paths>true <host-os>darwin <include>../../.. <inlining>off
<install-dependencies>off <link>shared <location-prefix>andreas_beyer.test
<optimization>off <os>MACOSX <pch>on <profiling>off <python-debugging>off
<python>2.5 <rtti>on <runtime-debugging>on <runtime-link>shared
<stdlib>native <suppress-import-lib>false <symlink-location>project-relative
<tag>@Jamfile</Users/jrp/boost/regression/boost>%Jamfile</Users/jrp/boost/re
gression/boost>.tag <target-os>darwin <threadapi>pthread <threading>single
<toolset>darwin <user-interface>console <variant>debug
<warnings-as-errors>off <warnings>on

     Building target '../../../libs/python/build/boost_python'
         Build request: <asynch-exceptions>off <debug-symbols>on
<exception-handling>on <extern-c-nothrow>off <inlining>off <link>shared
<optimization>off <os>MACOSX <pch>on <profiling>off <python-debugging>off
<python>2.5 <rtti>on <runtime-debugging>on <runtime-link>shared
<stdlib>native <target-os>darwin <threadapi>pthread <threading>single
<toolset>darwin <variant>debug <warnings-as-errors>off <warnings>on
         Command line free features:
         Target requirements:
<conditional>@Jamfile</Users/jrp/boost/regression/boost>%Jamfile</Users/jrp/
boost/regression/boost>.handle-static-runtime <define>BOOST_ALL_NO_LIB=1
<define>BOOST_PYTHON_SOURCE <include>../../..
<library>/python//python_for_extensions
<link>static:<define>BOOST_PYTHON_STATIC_LIB
<python-debugging>on:<define>BOOST_DEBUG_PYTHON
<tag>@Jamfile</Users/jrp/boost/regression/boost>%Jamfile</Users/jrp/boost/re
gression/boost>.tag

         Common properties: <asynch-exceptions>off
<conditional>@Jamfile</Users/jrp/boost/regression/boost>%Jamfile</Users/jrp/
boost/regression/boost>.handle-static-runtime <debug-symbols>on
<define>BOOST_ALL_NO_LIB=1 <define>BOOST_PYTHON_SOURCE
<exception-handling>on <extern-c-nothrow>off <hardcode-dll-paths>true
<host-os>darwin <include>../../.. <inlining>off <install-dependencies>off
<library>/python//python_for_extensions <link>shared <optimization>off
<os>MACOSX <pch>on <profiling>off <python-debugging>off <python>2.5 <rtti>on
<runtime-debugging>on <runtime-link>shared <stdlib>native
<suppress-import-lib>false <symlink-location>project-relative
<tag>@Jamfile</Users/jrp/boost/regression/boost>%Jamfile</Users/jrp/boost/re
gression/boost>.tag <target-os>darwin <threadapi>pthread <threading>single
<toolset>darwin <user-interface>console <variant>debug
<warnings-as-errors>off <warnings>on

         Building target '/python_for_extensions'
             Build request: <asynch-exceptions>off <debug-symbols>on
<exception-handling>on <extern-c-nothrow>off <inlining>off <link>shared
<optimization>off <os>MACOSX <pch>on <profiling>off <python-debugging>off
<python>2.5 <rtti>on <runtime-debugging>on <runtime-link>shared
<stdlib>native <target-os>darwin <threadapi>pthread <threading>single
<toolset>darwin <variant>debug <warnings-as-errors>off <warnings>on
             Command line free features:
             Target requirements: <python>2.5 <target-os>darwin

             Common properties: <asynch-exceptions>off <debug-symbols>on
<exception-handling>on <extern-c-nothrow>off <hardcode-dll-paths>true
<host-os>darwin <inlining>off <install-dependencies>off <link>shared
<optimization>off <os>MACOSX <pch>on <profiling>off <python-debugging>off
<python>2.5 <rtti>on <runtime-debugging>on <runtime-link>shared
<stdlib>native <suppress-import-lib>false <symlink-location>project-relative
<target-os>darwin <threadapi>pthread <threading>single <toolset>darwin
<user-interface>console <variant>debug <warnings-as-errors>off <warnings>on

             Building target '/python'
                 Build request: <asynch-exceptions>off <debug-symbols>on
<exception-handling>on <extern-c-nothrow>off <inlining>off <link>shared
<optimization>off <os>MACOSX <pch>on <profiling>off <python-debugging>off
<python>2.5 <rtti>on <runtime-debugging>on <runtime-link>shared
<stdlib>native <target-os>darwin <threadapi>pthread <threading>single
<toolset>darwin <variant>debug <warnings-as-errors>off <warnings>on
                 Command line free features:
                 Target requirements: <python>2.5 <target-os>darwin

                 Common properties: <asynch-exceptions>off <debug-symbols>on
<exception-handling>on <extern-c-nothrow>off <hardcode-dll-paths>true
<host-os>darwin <inlining>off <install-dependencies>off <link>shared
<optimization>off <os>MACOSX <pch>on <profiling>off <python-debugging>off
<python>2.5 <rtti>on <runtime-debugging>on <runtime-link>shared
<stdlib>native <suppress-import-lib>false <symlink-location>project-relative
<target-os>darwin <threadapi>pthread <threading>single <toolset>darwin
<user-interface>console <variant>debug <warnings-as-errors>off <warnings>on

                 Usage requirements for python are
                 Build properties: <asynch-exceptions>off <debug-symbols>on
<exception-handling>on <extern-c-nothrow>off <hardcode-dll-paths>true
<host-os>darwin <inlining>off <install-dependencies>off <link>shared
<optimization>off <os>MACOSX <pch>on <profiling>off <python-debugging>off
<python>2.5 <rtti>on <runtime-debugging>on <runtime-link>shared
<stdlib>native <suppress-import-lib>false <symlink-location>project-relative
<target-os>darwin <threadapi>pthread <threading>single <toolset>darwin
<user-interface>console <variant>debug <warnings-as-errors>off <warnings>on

                 Building target '/python.lib'
                     Build request: <asynch-exceptions>off
<debug-symbols>on <exception-handling>on <extern-c-nothrow>off <inlining>off
<link>shared <optimization>off <os>MACOSX <pch>on <profiling>off
<python-debugging>off <python>2.5 <rtti>on <runtime-debugging>on
<runtime-link>shared <stdlib>native <target-os>darwin <threadapi>pthread
<threading>single <toolset>darwin <variant>debug <warnings-as-errors>off
<warnings>on
                     Command line free features:
                     Target requirements: <name>python2.5 <python>2.5
<target-os>darwin

                     Common properties: <asynch-exceptions>off
<debug-symbols>on <exception-handling>on <extern-c-nothrow>off
<hardcode-dll-paths>true <host-os>darwin <inlining>off
<install-dependencies>off <link>shared <name>python2.5 <optimization>off
<os>MACOSX <pch>on <profiling>off <python-debugging>off <python>2.5 <rtti>on
<runtime-debugging>on <runtime-link>shared <stdlib>native
<suppress-import-lib>false <symlink-location>project-relative
<target-os>darwin <threadapi>pthread <threading>single <toolset>darwin
<user-interface>console <variant>debug <warnings-as-errors>off <warnings>on

                     Usage requirements for python.lib are
                     Build properties: <asynch-exceptions>off
<debug-symbols>on <exception-handling>on <extern-c-nothrow>off
<hardcode-dll-paths>true <host-os>darwin <inlining>off
<install-dependencies>off <link>shared <name>python2.5 <optimization>off
<os>MACOSX <pch>on <profiling>off <python-debugging>off <python>2.5 <rtti>on
<runtime-debugging>on <runtime-link>shared <stdlib>native
<suppress-import-lib>false <symlink-location>project-relative
<target-os>darwin <threadapi>pthread <threading>single <toolset>darwin
<user-interface>console <variant>debug <warnings-as-errors>off <warnings>on
                     Usage requirements from python.lib are
                 Usage requirements from python are
<dll-path>/System/Library/Frameworks/Python.framework/Versions/2.5/lib
<dll-path>/System/Library/Frameworks/Python.framework/Versions/2.5/lib/pytho
n2.5/config
<include>/System/Library/Frameworks/Python.framework/Versions/2.5/include/py
thon2.5
<library-path>/System/Library/Frameworks/Python.framework/Versions/2.5/lib
<library-path>/System/Library/Frameworks/Python.framework/Versions/2.5/lib/p
ython2.5/config <library>object(searched-lib-target)@712
<python.interpreter>/System/Library/Frameworks/Python.framework/Versions/2.5
/bin/python

             Usage requirements for python_for_extensions are
<dll-path>/System/Library/Frameworks/Python.framework/Versions/2.5/lib
<dll-path>/System/Library/Frameworks/Python.framework/Versions/2.5/lib/pytho
n2.5/config
<include>/System/Library/Frameworks/Python.framework/Versions/2.5/include/py
thon2.5
<library-path>/System/Library/Frameworks/Python.framework/Versions/2.5/lib
<library-path>/System/Library/Frameworks/Python.framework/Versions/2.5/lib/p
ython2.5/config <library>object(searched-lib-target)@712
<python.interpreter>/System/Library/Frameworks/Python.framework/Versions/2.5
/bin/python
             Build properties: <asynch-exceptions>off <debug-symbols>on
<dll-path>/System/Library/Frameworks/Python.framework/Versions/2.5/lib
<dll-path>/System/Library/Frameworks/Python.framework/Versions/2.5/lib/pytho
n2.5/config <exception-handling>on <extern-c-nothrow>off
<hardcode-dll-paths>true <host-os>darwin
<include>/System/Library/Frameworks/Python.framework/Versions/2.5/include/py
thon2.5 <inlining>off <install-dependencies>off
<library-path>/System/Library/Frameworks/Python.framework/Versions/2.5/lib
<library-path>/System/Library/Frameworks/Python.framework/Versions/2.5/lib/p
ython2.5/config <library>object(searched-lib-target)@712 <link>shared
<optimization>off <os>MACOSX <pch>on <profiling>off <python-debugging>off
<python.interpreter>/System/Library/Frameworks/Python.framework/Versions/2.5
/bin/python <python>2.5 <rtti>on <runtime-debugging>on <runtime-link>shared
<stdlib>native <suppress-import-lib>false <symlink-location>project-relative
<target-os>darwin <threadapi>pthread <threading>single <toolset>darwin
<user-interface>console <variant>debug <warnings-as-errors>off <warnings>on
             Usage requirements from python_for_extensions are
<dll-path>/System/Library/Frameworks/Python.framework/Versions/2.5/lib
<dll-path>/System/Library/Frameworks/Python.framework/Versions/2.5/lib/pytho
n2.5/config
<include>/System/Library/Frameworks/Python.framework/Versions/2.5/include/py
thon2.5
<library-path>/System/Library/Frameworks/Python.framework/Versions/2.5/lib
<library-path>/System/Library/Frameworks/Python.framework/Versions/2.5/lib/p
ython2.5/config <library>object(searched-lib-target)@712
<python.interpreter>/System/Library/Frameworks/Python.framework/Versions/2.5
/bin/python

         Usage requirements for boost_python are
<dll-path>/System/Library/Frameworks/Python.framework/Versions/2.5/lib
<dll-path>/System/Library/Frameworks/Python.framework/Versions/2.5/lib/pytho
n2.5/config
<include>/System/Library/Frameworks/Python.framework/Versions/2.5/include/py
thon2.5
<library-path>/System/Library/Frameworks/Python.framework/Versions/2.5/lib
<library-path>/System/Library/Frameworks/Python.framework/Versions/2.5/lib/p
ython2.5/config <library>object(searched-lib-target)@712
<python.interpreter>/System/Library/Frameworks/Python.framework/Versions/2.5
/bin/python
         Build properties: <asynch-exceptions>off
<conditional>@Jamfile</Users/jrp/boost/regression/boost>%Jamfile</Users/jrp/
boost/regression/boost>.handle-static-runtime <debug-symbols>on
<define>BOOST_ALL_NO_LIB=1 <define>BOOST_PYTHON_SOURCE
<dll-path>/System/Library/Frameworks/Python.framework/Versions/2.5/lib
<dll-path>/System/Library/Frameworks/Python.framework/Versions/2.5/lib/pytho
n2.5/config <exception-handling>on <extern-c-nothrow>off
<hardcode-dll-paths>true <host-os>darwin <include>../../..
<include>/System/Library/Frameworks/Python.framework/Versions/2.5/include/py
thon2.5 <inlining>off <install-dependencies>off
<library-path>/System/Library/Frameworks/Python.framework/Versions/2.5/lib
<library-path>/System/Library/Frameworks/Python.framework/Versions/2.5/lib/p
ython2.5/config <library>object(searched-lib-target)@712 <link>shared
<optimization>off <os>MACOSX <pch>on <profiling>off <python-debugging>off
<python.interpreter>/System/Library/Frameworks/Python.framework/Versions/2.5
/bin/python <python>2.5 <rtti>on <runtime-debugging>on <runtime-link>shared
<stdlib>native <suppress-import-lib>false <symlink-location>project-relative
<tag>@Jamfile</Users/jrp/boost/regression/boost>%Jamfile</Users/jrp/boost/re
gression/boost>.tag <target-os>darwin <threadapi>pthread <threading>single
<toolset>darwin <user-interface>console <variant>debug
<warnings-as-errors>off <warnings>on
         Usage requirements from boost_python are
<dll-path>/System/Library/Frameworks/Python.framework/Versions/2.5/lib
<dll-path>/System/Library/Frameworks/Python.framework/Versions/2.5/lib/pytho
n2.5/config <include>../../..
<include>/System/Library/Frameworks/Python.framework/Versions/2.5/include/py
thon2.5
<library-path>/System/Library/Frameworks/Python.framework/Versions/2.5/lib
<library-path>/System/Library/Frameworks/Python.framework/Versions/2.5/lib/p
ython2.5/config <library>object(searched-lib-target)@712
<python.interpreter>/System/Library/Frameworks/Python.framework/Versions/2.5
/bin/python
<xdll-path>/Users/jrp/boost/regression/boost/bin.v2/libs/python/build/darwin
/debug

     Usage requirements for andreas_beyer are
<dll-path>/System/Library/Frameworks/Python.framework/Versions/2.5/lib
<dll-path>/System/Library/Frameworks/Python.framework/Versions/2.5/lib/pytho
n2.5/config <include>../../..
<include>/System/Library/Frameworks/Python.framework/Versions/2.5/include/py
thon2.5
<library-path>/System/Library/Frameworks/Python.framework/Versions/2.5/lib
<library-path>/System/Library/Frameworks/Python.framework/Versions/2.5/lib/p
ython2.5/config <library>object(searched-lib-target)@712
<python.interpreter>/System/Library/Frameworks/Python.framework/Versions/2.5
/bin/python
<xdll-path>/Users/jrp/boost/regression/boost/bin.v2/libs/python/build/darwin
/debug
     Build properties: <asynch-exceptions>off
<conditional>@Jamfile</Users/jrp/boost/regression/boost>%Jamfile</Users/jrp/
boost/regression/boost>.handle-static-runtime <debug-symbols>on
<define>BOOST_ALL_NO_LIB=1
<dll-path>/System/Library/Frameworks/Python.framework/Versions/2.5/lib
<dll-path>/System/Library/Frameworks/Python.framework/Versions/2.5/lib/pytho
n2.5/config <exception-handling>on <extern-c-nothrow>off
<hardcode-dll-paths>true <host-os>darwin <include>../../..
<include>/System/Library/Frameworks/Python.framework/Versions/2.5/include/py
thon2.5 <inlining>off <install-dependencies>off
<library-path>/System/Library/Frameworks/Python.framework/Versions/2.5/lib
<library-path>/System/Library/Frameworks/Python.framework/Versions/2.5/lib/p
ython2.5/config <library>object(searched-lib-target)@712 <link>shared
<location-prefix>andreas_beyer.test <optimization>off <os>MACOSX <pch>on
<profiling>off <python-debugging>off
<python.interpreter>/System/Library/Frameworks/Python.framework/Versions/2.5
/bin/python <python>2.5 <rtti>on <runtime-debugging>on <runtime-link>shared
<stdlib>native <suppress-import-lib>false <symlink-location>project-relative
<tag>@Jamfile</Users/jrp/boost/regression/boost>%Jamfile</Users/jrp/boost/re
gression/boost>.tag <target-os>darwin <threadapi>pthread <threading>single
<toolset>darwin <user-interface>console <variant>debug
<warnings-as-errors>off <warnings>on
<xdll-path>/Users/jrp/boost/regression/boost/bin.v2/libs/python/build/darwin
/debug
     Usage requirements from andreas_beyer are
<dll-path>/System/Library/Frameworks/Python.framework/Versions/2.5/lib
<dll-path>/System/Library/Frameworks/Python.framework/Versions/2.5/lib/pytho
n2.5/config <include>../../..
<include>/System/Library/Frameworks/Python.framework/Versions/2.5/include/py
thon2.5
<library-path>/System/Library/Frameworks/Python.framework/Versions/2.5/lib
<library-path>/System/Library/Frameworks/Python.framework/Versions/2.5/lib/p
ython2.5/config <library>object(searched-lib-target)@712
<python.interpreter>/System/Library/Frameworks/Python.framework/Versions/2.5
/bin/python
<xdll-path>/Users/jrp/boost/regression/boost/bin.v2/libs/python/build/darwin
/debug
 
[Hangs]


Boost-testing list run by mbergal at meta-comm.com