[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Openexr-devel] Segmentation fault on imath import
From: |
Piotr Stanczyk |
Subject: |
Re: [Openexr-devel] Segmentation fault on imath import |
Date: |
Wed, 19 Feb 2014 08:57:53 -0800 |
Hey,
In what context are you importing? Is it from the application or does
this happen from a vanilla python interpreter?
Piotr
On 18/02/2014, Ben Hall <address@hidden> wrote:
> Hi,
>
> I have compiled openexr, ilmbase and pyilmbase 2.1.0 with gcc 4.4.3
> (ubuntu 10.04).
>
> I can import iex without issue but when I import imath it segfaults.
>
> This occurs with python 2.6.4 and python 2.7.3 in conjunction with boost
> 1.46.1 and 1.51.0.
>
> The same problem does not occur when I compile pyilmbase with gcc 4.6
> but I need to use gcc 4.4 for compatibility with a closed source
> application.
>
> The gdb backtrace is as follows:
>
> Program received signal SIGSEGV, Segmentation fault.
> 0x00007ffff3851ff8 in std::basic_string<char, std::char_traits<char>,
> std::allocator<char> >::basic_string(std::string const&) () from
> /usr/lib/libstdc++.so.6
> (gdb) bt
> #0 0x00007ffff3851ff8 in std::basic_string<char,
> std::char_traits<char>, std::allocator<char> >::basic_string(std::string
> const&) () from /usr/lib/libstdc++.so.6
> #1 0x00007ffff634dc11 in void PyIex::registerExc<Imath_2_1::NullVecExc,
> Iex_2_1::MathExc>(std::string const&, std::string const&) ()
> from
> /vol/apps/python/2.7/ext_modules/pyilmbase/2.1.0/boost/1.46.1/gcc-4.4/lib/python2.7/site-packages/imath.so
> #2 0x00007ffff6301259 in init_module_imath() () from
> /vol/apps/python/2.7/ext_modules/pyilmbase/2.1.0/boost/1.46.1/gcc-4.4/lib/python2.7/site-packages/imath.so
> #3 0x00007ffff3af6f33 in boost::python::handle_exception_impl () from
> /vol/apps/libraries/boost/1.46.1/gcc-4.4/lib/libboost_python-PY27.so.1.46.1
> #4 0x00007ffff3af7c70 in boost::python::detail::init_module () from
> /vol/apps/libraries/boost/1.46.1/gcc-4.4/lib/libboost_python-PY27.so.1.46.1
> #5 0x00007ffff7b15e18 in _PyImport_LoadDynamicModule
> (name=0x7fffffff7310 "imath", pathname=
> 0x7fffffff6240
> "/vol/apps/python/2.7/ext_modules/pyilmbase/2.1.0/boost/1.46.1/gcc-4.4/lib/python2.7/site-packages/imath.so",
>
> fp=<value optimized out>) at ./Python/importdl.c:53
> #6 0x00007ffff7b143c5 in import_submodule (mod=None,
> subname=0x7fffffff7310 "imath", fullname=0x7fffffff7310 "imath") at
> Python/import.c:2595
> #7 0x00007ffff7b1463f in load_next (mod=None, altmod=<value optimized
> out>, p_name=<value optimized out>, buf=0x7fffffff7310 "imath",
> p_buflen=<value optimized out>) at Python/import.c:2415
> #8 0x00007ffff7b14ca5 in import_module_level (name=0x0,
> globals={'__builtins__': <module at remote 0x7ffff7f7ead0>, '__name__':
> '__main__', '__doc__': None, '__package__': None},
> locals=<value optimized out>, fromlist=None, level=<value optimized
> out>) at Python/import.c:2136
> #9 0x00007ffff7b15204 in PyImport_ImportModuleLevel (name=0x765444
> "imath", globals={'__builtins__': <module at remote 0x7ffff7f7ead0>,
> '__name__': '__main__', '__doc__': None, '__package__': None},
> locals={'__builtins__': <module at remote 0x7ffff7f7ead0>,
> '__name__': '__main__', '__doc__': None, '__package__': None},
> fromlist=None, level=<value optimized out>) at Python/import.c:2188
> #10 0x00007ffff7af6d5f in builtin___import__ (self=<value optimized
> out>, args=<value optimized out>, kwds=<value optimized out>) at
> Python/bltinmodule.c:49
> #11 0x00007ffff7a4c8a3 in PyObject_Call (func=<built-in function
> __import__>, arg=<unknown at remote 0x8>, kw=< at remote 0x7d9cf0>) at
> Objects/abstract.c:2529
> #12 0x00007ffff7af7223 in PyEval_CallObjectWithKeywords (func=<built-in
> function __import__>, arg=
> ('imath', {'__builtins__': <module at remote 0x7ffff7f7ead0>,
> '__name__': '__main__', '__doc__': None, '__package__': None}, {...},
> None), kw=< at remote 0x7d9cf0>) at Python/ceval.c:3890
> #13 0x00007ffff7afac8d in PyEval_EvalFrameEx (f=Frame 0x7cd240, for file
> <stdin>, line 1, in <module> (), throwflag=<value optimized out>) at
> Python/ceval.c:2333
> #14 0x00007ffff7aff528 in PyEval_EvalCodeEx (co=0x6f7cb0, globals=<value
> optimized out>, locals=<value optimized out>, args=0x0, argcount=<value
> optimized out>, kws=<value optimized out>, kwcount=0, defs=
> 0x0, defcount=0, closure=0x0) at Python/ceval.c:3253
> #15 0x00007ffff7aff642 in PyEval_EvalCode (co=0x7fffffff2a10,
> globals=<unknown at remote 0x8>, locals=< at remote 0x7d9cf0>) at
> Python/ceval.c:667
> #16 0x00007ffff7b1f355 in run_mod (fp=<value optimized out>,
> filename=0x7ffff7b685ff "<stdin>", flags=0x7fffffff8860) at
> Python/pythonrun.c:1353
> #17 PyRun_InteractiveOneFlags (fp=<value optimized out>,
> filename=0x7ffff7b685ff "<stdin>", flags=0x7fffffff8860) at
> Python/pythonrun.c:852
> #18 0x00007ffff7b1f57e in PyRun_InteractiveLoopFlags (fp=0x7ffff71566a0,
> filename=0x7ffff7b685ff "<stdin>", flags=0x7fffffff8860) at
> Python/pythonrun.c:772
> #19 0x00007ffff7b1fc8c in PyRun_AnyFileExFlags (fp=0x7ffff71566a0,
> filename=0x7ffff7b685ff "<stdin>", closeit=0, flags=0x7fffffff8860) at
> Python/pythonrun.c:741
> #20 0x00007ffff7b33d6e in Py_Main (argc=0, argv=<value optimized out>)
> at Modules/main.c:639
> #21 0x00007ffff6df7c4d in __libc_start_main (main=<value optimized out>,
> argc=<value optimized out>, ubp_av=<value optimized out>, init=<value
> optimized out>, fini=<value optimized out>,
> rtld_fini=<value optimized out>, stack_end=0x7fffffff8978) at
> libc-start.c:226
> #22 0x00000000004006d9 in _start ()
>
> Thanks for any assistance.
>
> --
> Ben
>
>
> _______________________________________________
> Openexr-devel mailing list
> address@hidden
> https://lists.nongnu.org/mailman/listinfo/openexr-devel
>