This is a read only copy without any forum functionality of the old Modcraft forum.
If there is anything that you would like to have removed, message me on Discord via Kaev#5208.
Big thanks to Alastor for making this copy!

Menu

Author Topic: [C++] [WotLk] Strange Bug  (Read 773 times)

pallam

  • Registred Member
  • GM Isle Explorer
  • *****
  • Posts: 20
    • View Profile
[C++] [WotLk] Strange Bug
« on: December 10, 2016, 10:26:27 pm »
Hi there!
I got a problem - I bought a new server machine and tried to install my server on it. It compiles, but if u try to use any command - get crash.
Crash log in [attachment=0:206sgsjw]attachment[/attachment:206sgsjw].

Anybody know, how to cure this?
« Last Edit: January 01, 1970, 01:00:00 am by Admin »

schlumpf

  • Administrator
  • Creator of Worlds
  • *****
  • Posts: 2967
    • View Profile
Re: [C++] [WotLk] Strange Bug
« Reply #1 on: December 10, 2016, 11:04:47 pm »
From the backtrace it seems to be a bug in the code, likely caused by bad initialization of a static variable. Make sure to report this in the emulator bug tracker, together with the OS and compiler versions (gcc --version). The reason it was fine on your old machine is likely one of
• different malloc implementation
• different emulator version with an unstable change added recently
• different compiler version which now defaults to the cxx11 abi and thus triggers a bug that previously didn't surface
where I suspect the last one.

If it is the last one, you can try adding "-D_GLIBCXX_USE_CXX11_ABI=0" to the compile definitions.

Feel free to quote this post in your bug report.
« Last Edit: January 01, 1970, 01:00:00 am by Admin »

pallam

  • Registred Member
  • GM Isle Explorer
  • *****
  • Posts: 20
    • View Profile
Re: [C++] [WotLk] Strange Bug
« Reply #2 on: December 11, 2016, 10:36:29 am »
I tried a lot of diff ways to compile this shit.
After CXX flag it scream about boost ref errors, like this
Code: [Select]
[ 35%] Linking CXX executable authserver
CMakeFiles/authserver.dir/Main.cpp.o: In function `GetConsoleArguments(int, char**, std::string&, std::string&)':
/home/gameserver_2/source/src/server/authserver/Main.cpp:266: undefined reference to `boost::program_options::options_description::options_description(std::string const&, unsigned int, unsigned int)'
CMakeFiles/authserver.dir/Main.cpp.o: In function `boost::program_options::typed_value<std::string, char>::xparse(boost::any&, std::vector<std::string, std::allocator<std::string> > const&) const':
/usr/include/boost/program_options/detail/value_semantic.hpp:167: undefined reference to `boost::program_options::validate(boost::any&, std::vector<std::string, std::allocator<std::string> > const&, std::string*, int)'
CMakeFiles/authserver.dir/Main.cpp.o: In function `std::vector<std::string, std::allocator<std::string> > boost::program_options::to_internal<std::string>(std::vector<std::string, std::allocator<std::string> > const&)':
/usr/include/boost/program_options/detail/convert.hpp:79: undefined reference to `boost::program_options::to_internal(std::string const&)'
CMakeFiles/authserver.dir/Main.cpp.o: In function `boost::program_options::basic_command_line_parser<char>::basic_command_line_parser(int, char const* const*)':
/usr/include/boost/program_options/detail/parsers.hpp:43: undefined reference to `boost::program_options::detail::cmdline::cmdline(std::vector<std::string, std::allocator<std::string> > const&)'
CMakeFiles/authserver.dir/Main.cpp.o: In function `boost::program_options::typed_value<std::string, char>::name() const':
/usr/include/boost/program_options/detail/value_semantic.hpp:19: undefined reference to `boost::program_options::arg'
CMakeFiles/authserver.dir/Main.cpp.o:(.rodata._ZTVN5boost15program_options11typed_valueISscEE[_ZTVN5boost15program_options11typed_valueISscEE]+0x38): undefined reference to `boost::program_options::value_semantic_codecvt_helper<char>::parse(boost::any&, std::vector<std::string, std::allocator<std::string> > const&, bool) const'
« Last Edit: January 01, 1970, 01:00:00 am by Admin »