Menu

#2757 simgear/nasal/cppbind/Ghost.hxx:773:38: internal compiler error: Segmentation fault

None
Invalid
nobody
Low
2024-10-24
2022-08-22
Megaf
No

FlightGear Next Failing to Build, seg faulting the compiler.

From https://gitlab.com/flightgear/simgear
   8febf6b9..e002a481  next       -> origin/next
Updating 8febf6b9..e002a481
From https://gitlab.com/flightgear/flightgear
   199adf90d..ee12883eb  next       -> origin/next
Updating 199adf90d..ee12883eb
[ 54%] Building CXX object CMakeFiles/fgfsObjects.dir/src/GUI/MouseCursor.cxx.o
[ 54%] Building CXX object CMakeFiles/fgfsObjects.dir/src/GUI/MessageBox.cxx.o
In file included from /home/reglnx/FGDC/Sources/FG/src/GUI/FileDialog.cxx:27:
/home/reglnx/FGDC/FlightGear-Next/include/simgear/nasal/cppbind/Ghost.hxx: In substitution of template<class _Result, class _Func, class ... _BoundArgs> typename std::_Bindres_helper<_Result, _Func, _BoundArgs>::type std::bind(_Func&&, _BoundArgs&& ...) [with _Result = <missing>; _Func = <missing>; _BoundArgs = <missing>]:
/home/reglnx/FGDC/FlightGear-Next/include/simgear/nasal/cppbind/Ghost.hxx:773:38:   required from nasal::Ghost<T, typename std::enable_if<nasal::is_strong_ref<T>::value, void>::type>& nasal::Ghost<T, typename std::enable_if<nasal::is_strong_ref<T>::value, void>::type>::method(const string&, const std::function<Ret(typename T::element_type&, const nasal::CallContext&)>&) [with Ret = void; T = std::shared_ptr<FGFileDialog>; typename std::enable_if<nasal::is_strong_ref<T>::value, void>::type = void; std::string = std::__cxx11::basic_string<char>; typename T::element_type = FGFileDialog]
/home/reglnx/FGDC/FlightGear-Next/include/simgear/nasal/cppbind/Ghost.hxx:813:22:   required from nasal::Ghost<T, typename std::enable_if<nasal::is_strong_ref<T>::value, void>::type>& nasal::Ghost<T, typename std::enable_if<nasal::is_strong_ref<T>::value, void>::type>::method(const string&, Ret (element_type::*)(Args ...)) [with Ret = void; Args = {const nasal::CallContext&}; T = std::shared_ptr<FGFileDialog>; typename std::enable_if<nasal::is_strong_ref<T>::value, void>::type = void; std::string = std::__cxx11::basic_string<char>; typename T::element_type = FGFileDialog; nasal::Ghost<T, typename std::enable_if<nasal::is_strong_ref<T>::value, void>::type>::raw_type = FGFileDialog]
/home/reglnx/FGDC/Sources/FG/src/GUI/FileDialog.cxx:168:63:   required from here
/home/reglnx/FGDC/FlightGear-Next/include/simgear/nasal/cppbind/Ghost.hxx:773:38: internal compiler error: Segmentation fault
  773 |         return method(name, std::bind(method_invoker<Ret>,
      |                             ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~
  774 |                                       func,
      |                                       ~~~~~
  775 |                                       std::placeholders::_1,
      |                                       ~~~~~~~~~~~~~~~~~~~~~~
  776 |                                       std::placeholders::_2));
      |                                       ~~~~~~~~~~~~~~~~~~~~~~
0x7f62b6f84d5f ???
    ./signal/../sysdeps/unix/sysv/linux/x86_64/sigaction.c:0
0x7f62b6f6fd09 __libc_start_main
    ../csu/libc-start.c:308
Please submit a full bug report,
with preprocessed source if appropriate.
Please include the complete backtrace with any bug report.
See <file:///usr/share/doc/gcc-10/README.Bugs> for instructions.
make[2]: *** [CMakeFiles/fgfsObjects.dir/build.make:1460: CMakeFiles/fgfsObjects.dir/src/GUI/FileDialog.cxx.o] Error 1
make[2]: *** Waiting for unfinished jobs....
make[1]: *** [CMakeFiles/Makefile2:1946: CMakeFiles/fgfsObjects.dir/all] Error 2
make: *** [Makefile:182: all] Error 2

Discussion

  • Megaf

    Megaf - 2022-08-22
    [ 14%] Building CXX object CMakeFiles/fgfsObjects.dir/src/Network/generic.cxx.o
    [ 14%] Building CXX object CMakeFiles/fgfsObjects.dir/src/Network/HTTPClient.cxx.o
    In file included from /home/reglnx/FGDC/Sources/FG/src/Network/HTTPClient.cxx:40:
    /home/reglnx/FGDC/FlightGear-Next/include/simgear/nasal/cppbind/Ghost.hxx: In substitution of template<class _Result, class _Func, class ... _BoundArgs> typename std::_Bindres_helper<_Result, _Func, _BoundArgs>::type std::bind(_Func&&, _BoundArgs&& ...) [with _Result = <missing>; _Func = <missing>; _BoundArgs = <missing>]:
    /home/reglnx/FGDC/FlightGear-Next/include/simgear/nasal/cppbind/Ghost.hxx:794:52:   required from nasal::Ghost<T, typename std::enable_if<nasal::is_strong_ref<T>::value, void>::type>& nasal::Ghost<T, typename std::enable_if<nasal::is_strong_ref<T>::value, void>::type>::method(const string&, nasal::Ghost<T, typename std::enable_if<nasal::is_strong_ref<T>::value, void>::type>::method_variadic_t<Ret, Args ...>&, std::index_sequence<Indices ...>) [with Ret = void; Args = {bool}; long unsigned int ...Indices = {0}; T = SGSharedPtr<simgear::pkg::Root>; typename std::enable_if<nasal::is_strong_ref<T>::value, void>::type = void; std::string = std::__cxx11::basic_string<char>; nasal::Ghost<T, typename std::enable_if<nasal::is_strong_ref<T>::value, void>::type>::method_variadic_t<Ret, Args ...> = std::function<void(simgear::pkg::Root&, bool)>; std::index_sequence<Indices ...> = std::integer_sequence<long unsigned int, 0>]
    /home/reglnx/FGDC/FlightGear-Next/include/simgear/nasal/cppbind/Ghost.hxx:803:22:   required from nasal::Ghost<T, typename std::enable_if<nasal::is_strong_ref<T>::value, void>::type>& nasal::Ghost<T, typename std::enable_if<nasal::is_strong_ref<T>::value, void>::type>::method(const string&, nasal::Ghost<T, typename std::enable_if<nasal::is_strong_ref<T>::value, void>::type>::method_variadic_t<Ret, Args ...>&) [with Ret = void; Args = {bool}; T = SGSharedPtr<simgear::pkg::Root>; typename std::enable_if<nasal::is_strong_ref<T>::value, void>::type = void; std::string = std::__cxx11::basic_string<char>; nasal::Ghost<T, typename std::enable_if<nasal::is_strong_ref<T>::value, void>::type>::method_variadic_t<Ret, Args ...> = std::function<void(simgear::pkg::Root&, bool)>]
    /home/reglnx/FGDC/FlightGear-Next/include/simgear/nasal/cppbind/Ghost.hxx:813:22:   required from nasal::Ghost<T, typename std::enable_if<nasal::is_strong_ref<T>::value, void>::type>& nasal::Ghost<T, typename std::enable_if<nasal::is_strong_ref<T>::value, void>::type>::method(const string&, Ret (element_type::*)(Args ...)) [with Ret = void; Args = {bool}; T = SGSharedPtr<simgear::pkg::Root>; typename std::enable_if<nasal::is_strong_ref<T>::value, void>::type = void; std::string = std::__cxx11::basic_string<char>; typename T::element_type = simgear::pkg::Root; nasal::Ghost<T, typename std::enable_if<nasal::is_strong_ref<T>::value, void>::type>::raw_type = simgear::pkg::Root]
    /home/reglnx/FGDC/Sources/FG/src/Network/HTTPClient.cxx:257:41:   required from here
    /home/reglnx/FGDC/FlightGear-Next/include/simgear/nasal/cppbind/Ghost.hxx:794:52: internal compiler error: Segmentation fault
      794 |                                           std::bind(&Ghost::arg_from_nasal<Args>,
          |                                           ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
      795 |                                                     std::placeholders::_2,
          |                                                     ~~~~~~~~~~~~~~~~~~~~~~
      796 |                                                     Indices)...)));
          |                                                     ~~~~~~~~
    0x7ff4823a8d5f ???
        ./signal/../sysdeps/unix/sysv/linux/x86_64/sigaction.c:0
    0x7ff482393d09 __libc_start_main
        ../csu/libc-start.c:308
    Please submit a full bug report,
    with preprocessed source if appropriate.
    Please include the complete backtrace with any bug report.
    See <file:///usr/share/doc/gcc-10/README.Bugs> for instructions.
    make[2]: *** [CMakeFiles/fgfsObjects.dir/build.make:3189: CMakeFiles/fgfsObjects.dir/src/Network/HTTPClient.cxx.o] Error 1
    make[1]: *** [CMakeFiles/Makefile2:1946: CMakeFiles/fgfsObjects.dir/all] Error 2
    
     
  • eatdirt

    eatdirt - 2022-09-13

    Hi there,
    "internal compiler error" would suggest the compiler is faulty, and a compiler upgrade could fix it.

    But from past experience, it could also be memory related, you could try a

    make -j1
    

    to force using only one thread to minimize memory usage. It might also be some hardware memory issue, compiling is doing a good job in stressing memory :)

    Good luck!

     
  • James Turner

    James Turner - 2022-09-13

    Good point, it's worth running a memory tester to check this, since non-repeatable or inconsistent compiler errors do occasionaly indicate an unreliable system.

     
  • Gijs

    Gijs - 2024-10-24
    • status: New --> Invalid
     
  • Gijs

    Gijs - 2024-10-24

    As this report was issued two years ago and may have been an unreliable system, I'll close it. Please report back if you can still reproduce it with current next.

     

Log in to post a comment.