Martysama v5.7yi freebsd 13.2 ile build aldım sorunsuz biçimde ve oyunu başlattığımda direk game.core düşüyor ve game.core gdb ile kontrol ettim breakpoint koyup kontrol ettiğimde aşağıdaki sonuç çıktı ve buna bir çözüm yolu üretemedim
Durum güncellemesi yapmak istiyorum bir yerde bellek sızıntısı olduğunu belirtiyor fakat belirtmiş olduğu yer desc_manager.cpp isValidIP fonksiyonu fakat fark edemedim mi acaba diyerek farklı dosyalar ile karşılaştırdım problem görünmüyor hata ayıklama sonucu hata bu şekilde
Program terminated with signal SIGSEGV, Segmentation fault.
Invalid permissions for mapped object.
Kod:
(gdb) core game_r41025.core
[New LWP 100201]
warning: Could not load shared library symbols for [vdso].
Do you need "set solib-search-path" or "set sysroot"?
warning: File "/usr/local/lib/gcc10/libstdc++.so.6.0.28-gdb.py" auto-loading has been declined by your `auto-load safe-path' set to "$debugdir:$datadir/auto-load".
To enable execution of this file add
add-auto-load-safe-path /usr/local/lib/gcc10/libstdc++.so.6.0.28-gdb.py
line to your configuration file "/root/.config/gdb/gdbinit".
To completely disable this security protection add
set auto-load safe-path /
line to your configuration file "/root/.config/gdb/gdbinit".
For more information about this security protection see the
"Auto-loading safe path" section in the GDB manual. E.g., run from the shell:
info "(gdb)Auto-loading safe path"
Core was generated by `./srv1-ch1-core1'.
Program terminated with signal SIGSEGV, Segmentation fault.
Invalid permissions for mapped object.
#0 0x000000082e5aec78 in vtable for __cxxabiv1::__si_class_type_info () from /lib/libcxxrt.so.1
(gdb) bt full
#0 0x000000082e5aec78 in vtable for __cxxabiv1::__si_class_type_info () from /lib/libcxxrt.so.1
No symbol table info available.
#1 0x000000082751b96a in __dynamic_cast () from /usr/local/lib/gcc10/libstdc++.so.6
No symbol table info available.
#2 0x00000008275a1c86 in bool std::has_facet<std::ctype<char> >(std::locale const&) () from /usr/local/lib/gcc10/libstdc++.so.6
No symbol table info available.
#3 0x0000000827593a15 in std::basic_ios<char, std::char_traits<char> >::_M_cache_locale(std::locale const&) ()
from /usr/local/lib/gcc10/libstdc++.so.6
No symbol table info available.
#4 0x0000000827593ec1 in std::basic_ios<char, std::char_traits<char> >::init(std::basic_streambuf<char, std::char_traits<char> >*) () from /usr/local/lib/gcc10/libstdc++.so.6
No symbol table info available.
#5 0x000000082752ffeb in std::ios_base::Init::Init() () from /usr/local/lib/gcc10/libstdc++.so.6
No symbol table info available.
#6 0x0000000000426c43 in __static_initialization_and_destruction_0 (__initialize_p=1, __priority=65535)
at /usr/local/lib/gcc10/include/c++/iostream:74
No locals.
#7 _GLOBAL__sub_I__Z9IsValidIPP8valid_ipPKc () at desc_manager.cpp:553
No locals.
#8 0x0000399015d9d0ad in ?? () from /libexec/ld-elf.so.1
No symbol table info available.
#9 0x0000000820f7e9a0 in ?? ()
No symbol table info available.
--Type <RET> for more, q to quit, c to continue without paging--
#10 0x0000399015d9f465 in ?? () from /libexec/ld-elf.so.1
No symbol table info available.
#11 0x0000000000000000 in ?? ()
No symbol table info available.
(gdb) break _GLOBAL__sub_I__Z9IsValidIPP8valid_ipPKc
Breakpoint 1 at 0x426b90: file desc_manager.cpp, line 553.
(gdb) break _GLOBAL__sub_I__Z9IsValidIPP8valid_ipPKc()
Note: breakpoint 1 also set at pc 0x426b90.
Breakpoint 2 at 0x426b90: file desc_manager.cpp, line 553.
(gdb) r
Starting program: /usr/home/Game/main/srv1/chan/ch1/core1/srv1-ch1-core1
warning: Could not load shared library symbols for [vdso].
Do you need "set solib-search-path" or "set sysroot"?
warning: File "/usr/local/lib/gcc10/libstdc++.so.6.0.28-gdb.py" auto-loading has been declined by your `auto-load safe-path' set to "$debugdir:$datadir/auto-load".
Breakpoint 1, _GLOBAL__sub_I__Z9IsValidIPP8valid_ipPKc () at desc_manager.cpp:553
553 }
(gdb) n
Program received signal SIGSEGV, Segmentation fault.
Invalid permissions for mapped object.
0x0000000801a29c78 in vtable for __cxxabiv1::__si_class_type_info () from /lib/libcxxrt.so.1
(gdb) n
Durum güncellemesi yapmak istiyorum bir yerde bellek sızıntısı olduğunu belirtiyor fakat belirtmiş olduğu yer desc_manager.cpp isValidIP fonksiyonu fakat fark edemedim mi acaba diyerek farklı dosyalar ile karşılaştırdım problem görünmüyor hata ayıklama sonucu hata bu şekilde
Program terminated with signal SIGSEGV, Segmentation fault.
Invalid permissions for mapped object.
Son düzenleme: