[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: AW: AW: AW: AW: AW: AW: Import Error "undefined symbol"
From: |
Vasil Velichkov |
Subject: |
Re: AW: AW: AW: AW: AW: AW: Import Error "undefined symbol" |
Date: |
Wed, 29 Mar 2023 15:40:18 +0300 |
User-agent: |
Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.9.0 |
Hi Niklas,
On 29/03/2023 01.35, Beckmann, Niklas wrote:
> this is what I get now when I do backtrace.
> Thread 1 "python" received signal SIGSEGV, Segmentation fault.
> 0x00007fffdaa52c6b in pybind11::detail::same_type (rhs=..., lhs=...)
> at /usr/include/pybind11/detail/internals.h:55
> 55 inline bool same_type(const std::type_info &lhs, const std::type_info
> &rhs) { return lhs == rhs; }
> (gdb) backtrace
> #0 0x00007fffdaa52c6b in pybind11::detail::same_type(std::type_info const&,
> std::type_info const&) (rhs=..., lhs=...) at
> /usr/include/pybind11/detail/internals.h:55
> #1
> pybind11::detail::type_caster_base<gr::digital::packet_header_default>::src_and_type(gr::digital::packet_header_default
> const*)
> (src=0x7fffe3519cf0 <vtable for gr:mymodule::phy_header_impl+96>)
> at /usr/include/pybind11/cast.h:852
> #2
> pybind11::detail::type_caster_base<gr::digital::packet_header_default>::cast_holder(gr::digital::packet_header_default
> const*, void const*)
> (holder=0x7fffffff7cd0, src=0x7fffe3519cf0 <vtable for
> gr::mymodule::phy_header_impl+96>) at /usr/include/pybind11/cast.h:877
> #3
> pybind11::detail::copyable_holder_caster<gr::digital::packet_header_default,
> std::shared_ptr<gr::digital::packet_header_default>
> >::cast(std::shared_ptr<gr::digital::packet_header_default> const&,
> pybind11::return_value_policy, pybind11::handle)
> (src=std::shared_ptr<gr::digital::packet_header_default> (use count
> 25760825, weak count -1) = {...}) at /usr/include/pybind11/cast.h:1466
> #4
> pybind11::cpp_function::initialize<pybind11::cpp_function::initialize<std::shared_ptr<gr::digital::packet_header_default>,
> gr::digital::packet_header_default, , pybind11::name, pybind11::is_method,
> pybind11::sibling, char
> const*>(std::shared_ptr<gr::digital::packet_header_default>
> (gr::digital::packet_header_default::*)(), pybind11::name const&,
> pybind11::is_method const&, pybind11::sibling const&, char const*
> const&)::{lambda(gr::digital::packet_header_default*)#1},
> std::shared_ptr<gr::digital::packet_header_default>,
> gr::digital::packet_header_default*, pybind11::name, pybind11::is_method,
> pybind11::sibling, char
> const*>(pybind11::cpp_function::initialize<std::shared_ptr<gr::digital::packet_header_default>,
> gr::digital::packet_header_default, , pybind11::name,--Type <RET> for more,
> q to quit, c --Type <RET> for more, q to quit, c to continue without paging--
> pybind11::is_method, pybind11::sibling, char
> const*>(std::shared_ptr<gr::digital::packet_header_default>
> (gr::digital::packet_header_default::*)(), pybind11::name const&,
> pybind11::is_method const&, pybind11::sibling const&, char const*
> const&)::{lambda(gr::digital::packet_header_default*)#1}&&,
> std::shared_ptr<gr::digital::packet_header_default>
> (*)(gr::digital::packet_header_default*), pybind11::name const&,
> pybind11::is_method const&, pybind11::sibling const&, char const*
> const&)::{lambda(pybind11::detail::function_call&)#3}::operator()(pybind11::detail::function_call)
> const (call=..., this=0x0)
> at /usr/include/pybind11/pybind11.h:159
> #5
> pybind11::cpp_function::initialize<pybind11::cpp_function::initialize<std::shared_ptr<gr::digital::packet_header_default>,
> gr::digital::packet_header_default, , pybind11::name, pybind11::is_method,
> pybind11::sibling, char
> const*>(std::shared_ptr<gr::digital::packet_header_default>
> (gr::digital::packet_header_default::*)(), pybind11::name const&,
> pybind11::is_method const&, pybind11::sibling const&, char const*
> const&)::{lambda(gr::digital::packet_header_default*)#1},
> std::shared_ptr<gr::digital::packet_header_default>,
> gr::digital::packet_header_default*, pybind11::name, pybind11::is_method,
> pybind11::sibling, char
> const*>(pybind11::cpp_function::initialize<std::shared_ptr<gr::digital::packet_header_default>,
> gr::digital::packet_header_default, , pybind11::name, pybind11::is_method,
> pybind11::sibling, char
> const*>(std::shared_ptr<gr::digital::packet_header_default>
> (gr::digital::packet_header_default::*)(), pybind11::name const&,
> pybind11::is_method const&, pybind11::sibling const&, char const*
> const&)::{lambda(gr::digital::packet_header_default*)#1}&&,
> std::shared_ptr<gr::digital::packet_header_default>
> (*)(gr::digital::packet_header_default*), pybind11::name const&,
> pybind11::is_method const&, pybind11::sibling const&, char const*
> const&)::{lambda(pybind11::detail::function_call&)#3}::_FUN(pybind11::detail::function_call)
> () at /usr/include/pybind11/pybind11.h:137
> #6 0x00007fffda94bfcf in pybind11::cpp_function::dispatcher(_object*,
> _object*, _object*) (self=<optimized out>, args_in=0x7fffd952a1f0,
> kwargs_in=0x0) at /usr/include/pybind11/pybind11.h:624
Cool. Now you have functions and files names and line numbers.
> Does this helps to solve the problem in any way? I tried to go through this,
> but I see, there are many things that I have to learn...
The crash is in the pybind's generated code for gnuradio's digital module. I'm
not very familiar with pybind and can't help much.
> "mymodule.phy_header().formatter()"
In your previous mails you said that the crash is in this code snippet. Can you
share the full source code? What is the type of phy_header - is it a function
or constructor? What is its return value? Does it still crash if you commented
out this line?
P.S.
It's probably a good time to start a new clean mail tread with new appropriate
Subject as the initial problem has been solved and the problem we are currently
trying to solve has noting to do with "undefined symbol"
Regards,
Vasil
- AW: AW: Import Error "undefined symbol", (continued)
- AW: AW: Import Error "undefined symbol", Beckmann, Niklas, 2023/03/20
- Re: Import Error "undefined symbol", Philipp Niedermayer, 2023/03/21
- Re: AW: AW: Import Error "undefined symbol", Vasil Velichkov, 2023/03/21
- AW: AW: AW: Import Error "undefined symbol", Beckmann, Niklas, 2023/03/21
- Re: AW: AW: AW: Import Error "undefined symbol", Vasil Velichkov, 2023/03/21
- AW: AW: AW: AW: Import Error "undefined symbol", Beckmann, Niklas, 2023/03/21
- Re: AW: AW: AW: AW: Import Error "undefined symbol", Vasil Velichkov, 2023/03/22
- AW: AW: AW: AW: AW: Import Error "undefined symbol", Beckmann, Niklas, 2023/03/28
- Re: AW: AW: AW: AW: AW: Import Error "undefined symbol", Vasil Velichkov, 2023/03/28
- AW: AW: AW: AW: AW: AW: Import Error "undefined symbol", Beckmann, Niklas, 2023/03/28
- Re: AW: AW: AW: AW: AW: AW: Import Error "undefined symbol",
Vasil Velichkov <=