Jump to content

vtable for __cxxabiv1::__si_class_type_info PROBLEM


Recommended Posts

-- SOLVED --

 

Open your db and game makefiles and add this to the CFLAGS ;
 

-static-libgcc -static-libstdc++

 

-- SOLVED --

 

 

When i start game, i havent get any error but somehow game doesnt start, and thats the what gdb said ;

 

I have FreeBSD 12.1 - GCC10-Devel - x86 FOR Build

 

FreeBSD 12.1 x64 FOR Game Server

 

Core was generated by `game'.
Program terminated with signal SIGSEGV, Segmentation fault.
#0  0x287e450c in vtable for __cxxabiv1::__si_class_type_info () from /usr/lib32/libcxxrt.so.1
(gdb) bt full
#0  0x287e450c in vtable for __cxxabiv1::__si_class_type_info () from /usr/lib32/libcxxrt.so.1
No symbol table info available.
#1  0x28bd4027 in __dynamic_cast () from /usr/lib32/libstdc++.so.6
No symbol table info available.
#2  0x28c5be7a in bool std::has_facet<std::ctype<char> >(std::locale const&) () from /usr/lib32/libstdc++.so.6
No symbol table info available.
#3  0x28c4d3a0 in std::basic_ios<char, std::char_traits<char> >::_M_cache_locale(std::locale const&) () from /usr/lib32/libstdc++.so.6
No symbol table info available.
#4  0x28c4d86c in std::basic_ios<char, std::char_traits<char> >::init(std::basic_streambuf<char, std::char_traits<char> >*) () from /usr/lib32/libstdc++.so.6
No symbol table info available.
#5  0x28be840d in std::ios_base::Init::Init() () from /usr/lib32/libstdc++.so.6
No symbol table info available.
#6  0x0806bd4d in __static_initialization_and_destruction_0 (__initialize_p=1, __priority=65535) at integer.cpp:4901
No locals.
#7  _GLOBAL__sub_I__ZN8CryptoPP17InitializeIntegerC2Ev () at integer.cpp:4901
No locals.
#8  0x28447475 in ?? () from /libexec/ld-elf32.so.1
No symbol table info available.
#9  0x28446459 in ?? () from /libexec/ld-elf32.so.1
No symbol table info available.
#10 0x2844401e in ?? () from /libexec/ld-elf32.so.1
No symbol table info available.

 

While compiling i'm not get any warning or error, game and db linking very well but if i try start game i have this core. ?

 

Edited by Defacer35
  • Love 2
Link to comment
Share on other sites

11 hours ago, Defacer35 said:

When i start game, i havent get any error but somehow game doesnt start, and thats the what gdb said ;

 

I have FreeBSD 12.1 - GCC10-Devel - x86 FOR Build

 

FreeBSD 12.1 x64 FOR Game Server

 

Core was generated by `game'. Program terminated with signal SIGSEGV, Segmentation fault. #0 0x287e450c in vtable for __cxxabiv1::__si_class_type_info () from /usr/lib32/libcxxrt.so.1 (gdb) bt full #0 0x287e450c in vtable for __cxxabiv1::__si_class_type_info () from /usr/lib32/libcxxrt.so.1 No symbol table info available. #1 0x28bd4027 in __dynamic_cast () from /usr/lib32/libstdc++.so.6 No symbol table info available. #2 0x28c5be7a in bool std::has_facet<std::ctype<char> >(std::locale const&) () from /usr/lib32/libstdc++.so.6 No symbol table info available. #3 0x28c4d3a0 in std::basic_ios<char, std::char_traits<char> >::_M_cache_locale(std::locale const&) () from /usr/lib32/libstdc++.so.6 No symbol table info available. #4 0x28c4d86c in std::basic_ios<char, std::char_traits<char> >::init(std::basic_streambuf<char, std::char_traits<char> >*) () from /usr/lib32/libstdc++.so.6 No symbol table info available. #5 0x28be840d in std::ios_base::Init::Init() () from /usr/lib32/libstdc++.so.6 No symbol table info available. #6 0x0806bd4d in __static_initialization_and_destruction_0 (__initialize_p=1, __priority=65535) at integer.cpp:4901 No locals. #7 _GLOBAL__sub_I__ZN8CryptoPP17InitializeIntegerC2Ev () at integer.cpp:4901 No locals. #8 0x28447475 in ?? () from /libexec/ld-elf32.so.1 No symbol table info available. #9 0x28446459 in ?? () from /libexec/ld-elf32.so.1 No symbol table info available. #10 0x2844401e in ?? () from /libexec/ld-elf32.so.1 No symbol table info available.


Core was generated by `game'.
Program terminated with signal SIGSEGV, Segmentation fault.
#0  0x287e450c in vtable for __cxxabiv1::__si_class_type_info () from /usr/lib32/libcxxrt.so.1
(gdb) bt full
#0  0x287e450c in vtable for __cxxabiv1::__si_class_type_info () from /usr/lib32/libcxxrt.so.1
No symbol table info available.
#1  0x28bd4027 in __dynamic_cast () from /usr/lib32/libstdc++.so.6
No symbol table info available.
#2  0x28c5be7a in bool std::has_facet<std::ctype<char> >(std::locale const&) () from /usr/lib32/libstdc++.so.6
No symbol table info available.
#3  0x28c4d3a0 in std::basic_ios<char, std::char_traits<char> >::_M_cache_locale(std::locale const&) () from /usr/lib32/libstdc++.so.6
No symbol table info available.
#4  0x28c4d86c in std::basic_ios<char, std::char_traits<char> >::init(std::basic_streambuf<char, std::char_traits<char> >*) () from /usr/lib32/libstdc++.so.6
No symbol table info available.
#5  0x28be840d in std::ios_base::Init::Init() () from /usr/lib32/libstdc++.so.6
No symbol table info available.
#6  0x0806bd4d in __static_initialization_and_destruction_0 (__initialize_p=1, __priority=65535) at integer.cpp:4901
No locals.
#7  _GLOBAL__sub_I__ZN8CryptoPP17InitializeIntegerC2Ev () at integer.cpp:4901
No locals.
#8  0x28447475 in ?? () from /libexec/ld-elf32.so.1
No symbol table info available.
#9  0x28446459 in ?? () from /libexec/ld-elf32.so.1
No symbol table info available.
#10 0x2844401e in ?? () from /libexec/ld-elf32.so.1
No symbol table info available.

 

While compiling i'm not get any warning or error, game and db linking very well but if i try start game i have this core. ?

 

 

share your game makefile.

Link to comment
Share on other sites

1 hour ago, Denizeri24 said:

 

share your game makefile.

 

Sure.

 

PLATFORM = $(shell file /bin/ls | cut -d' ' -f3 | cut -d'-' -f1)

GAME_VERSION = 40002
P4_VERSION = $(GAME_VERSION)

CC  = g++10

INCDIR =
LIBDIR =
BINDIR = ..
OBJDIR = obj
$(shell if [ ! -d $(OBJDIR) ]; then mkdir $(OBJDIR); fi)

# Standard Setting
LIBS = -pthread -lm -lmd

CFLAGS = -g -Wall -O2 -m32 -pipe -fno-rtti -fno-exceptions -std=gnu++17 -D_THREAD_SAFE -DNDEBUG

CFLAGS += -mtune=i686 -fstack-protector-all

# Boost
INCDIR += -I/usr/local/include/boost

# DevIL
INCDIR += -I/usr/local/include/IL
LIBDIR += -L/usr/local/lib
LIBS += -lpng -ltiff -lmng -llcms -lIL

# MySQL
LIBS += -lmysqlclient -L/usr/local/lib/mysql -lz

# Lzo 2.10
INCDIR += -I/usr/local/include/lzo

# Miscellaneous external libraries
LIBDIR += -L/usr/local/include/lib
LIBS += -lcryptopp

# Project Library
INCDIR += -I../../liblua/include
INCDIR += -I/usr/local/include
INCDIR += -L/usr/local/lib/mysql
LIBDIR += -L../../libthecore/lib -L../../libpoly -L../../libsql -L../../libgame/lib -L../../liblua/lib
LIBS += -lthecore -lpoly -llua -llualib -lsql -lgame
USE_STACKTRACE = 0
ifeq ($(USE_STACKTRACE), 1)
LIBS += /usr/local/lib/libexecinfo.a
endif

TARGET  = $(BINDIR)/game_v$(GAME_VERSION)_$(PLATFORM)

CFILE	= minilzo.c

CPPFILE = BattleArena.cpp FSM.cpp MarkConvert.cpp MarkImage.cpp MarkManager.cpp OXEvent.cpp TrafficProfiler.cpp ani.cpp\
		  arena.cpp banword.cpp battle.cpp blend_item.cpp block_country.cpp buffer_manager.cpp building.cpp castle.cpp\
		  char.cpp char_affect.cpp char_battle.cpp char_change_empire.cpp char_horse.cpp char_item.cpp char_manager.cpp\
		  char_quickslot.cpp char_resist.cpp char_skill.cpp char_state.cpp PetSystem.cpp cmd.cpp cmd_emotion.cpp cmd_general.cpp\
		  cmd_gm.cpp cmd_oxevent.cpp config.cpp constants.cpp crc32.cpp cube.cpp db.cpp desc.cpp\
		  desc_client.cpp desc_manager.cpp desc_p2p.cpp dev_log.cpp dungeon.cpp empire_text_convert.cpp entity.cpp\
		  entity_view.cpp event.cpp event_queue.cpp exchange.cpp file_loader.cpp fishing.cpp gm.cpp guild.cpp\
		  guild_manager.cpp guild_war.cpp horse_rider.cpp horsename_manager.cpp input.cpp input_auth.cpp input_db.cpp\
		  input_login.cpp input_main.cpp input_p2p.cpp input_udp.cpp ip_ban.cpp\
		  item.cpp item_addon.cpp item_attribute.cpp item_manager.cpp item_manager_idrange.cpp locale.cpp\
		  locale_service.cpp log.cpp login_data.cpp lzo_manager.cpp marriage.cpp matrix_card.cpp\
		  messenger_manager.cpp mining.cpp mob_manager.cpp monarch.cpp motion.cpp over9refine.cpp p2p.cpp packet_info.cpp\
		  party.cpp passpod.cpp pcbang.cpp polymorph.cpp priv_manager.cpp pvp.cpp\
		  questevent.cpp questlua.cpp questlua_affect.cpp questlua_arena.cpp questlua_ba.cpp questlua_building.cpp\
		  questlua_danceevent.cpp questlua_dungeon.cpp questlua_forked.cpp questlua_game.cpp questlua_global.cpp\
		  questlua_guild.cpp questlua_horse.cpp questlua_pet.cpp questlua_item.cpp questlua_marriage.cpp questlua_mgmt.cpp\
		  questlua_monarch.cpp questlua_npc.cpp questlua_oxevent.cpp questlua_party.cpp questlua_pc.cpp\
		  questlua_quest.cpp questlua_target.cpp questmanager.cpp questnpc.cpp questpc.cpp\
		  refine.cpp regen.cpp safebox.cpp sectree.cpp sectree_manager.cpp sequence.cpp shop.cpp\
		  skill.cpp start_position.cpp target.cpp text_file_loader.cpp trigger.cpp utils.cpp vector.cpp war_map.cpp\
		  wedding.cpp xmas_event.cpp version.cpp panama.cpp threeway_war.cpp map_location.cpp auth_brazil.cpp\
		  BlueDragon.cpp BlueDragon_Binder.cpp DragonLair.cpp questlua_dragonlair.cpp\
		  skill_power.cpp affect.cpp\
		  ClientPackageCryptInfo.cpp cipher.cpp\
		  buff_on_attributes.cpp dragon_soul_table.cpp DragonSoul.cpp\
		  group_text_parse_tree.cpp char_dragonsoul.cpp questlua_dragonsoul.cpp\
		  shop_manager.cpp shopEx.cpp item_manager_read_tables.cpp


COBJS	= $(CFILE:%.c=$(OBJDIR)/%.o)
CPPOBJS	= $(CPPFILE:%.cpp=$(OBJDIR)/%.o)

MAINOBJ = $(OBJDIR)/main.o
MAINCPP = main.cpp

default: $(TARGET)

$(OBJDIR)/minilzo.o: minilzo.c
	@$(CC) $(CFLAGS) $(INCDIR) -c $< -o $@
	@echo -e "\033[0;32m[GAME]\033[0m \033[0;33mDerleniyor;\033[0m" $<

$(OBJDIR)/version.o: version.cpp
	@$(CC) $(CFLAGS) -D__GAME_VERSION__=\"$(GAME_VERSION)\" -D__P4_VERSION__=\"$(P4_VERSION)\" -c $< -o $@
	@echo -e "\033[0;32m[GAME]\033[0m \033[0;33mDerleniyor;\033[0m" $<

$(OBJDIR)/%.o: %.cpp
	@echo -e "\033[0;32m[GAME]\033[0m \033[0;33mDerleniyor;\033[0m" $<
	@$(CC) $(CFLAGS) $(INCDIR) -c $< -o $@

$(TARGET): $(CPPOBJS) $(COBJS) $(MAINOBJ)
	@echo -e "\033[0;33m[GAME]\033[0m \033[0;31mOlusturuluyor:\033[0m" $(TARGET)
	@$(CC) $(CFLAGS) $(LIBDIR) $(COBJS) $(CPPOBJS) $(MAINOBJ) $(LIBS) -o $(TARGET)

clean:
	@rm -f $(COBJS) $(CPPOBJS) $(MAINOBJ)
	@rm -f $(BINDIR)/game_v*

tag:
	ctags *.cpp *.h *.c

dep:
	makedepend -f Depend $(INCDIR) -I/usr/include/c++/v1 -I/usr/include/c++/4.2 -p$(OBJDIR)/ $(CPPFILE) $(CFILE) $(MAINCPP) 2> /dev/null > Depend

sinclude Depend

 

Link to comment
Share on other sites

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now

Announcements



×
×
  • Create New...

Important Information

Terms of Use / Privacy Policy / Guidelines / We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.