Skip to content

Linux SIGSEGV #110

@Ryssiaczrk

Description

@Ryssiaczrk
rysiu@desktop ~/h/source2gen (main)> ./scripts/run.sh ~/.local/share/Steam/steamapps/common/Counter-Strike\ Global\ Offensive/
setting LD_LIBRARY_PATH to /home/rysiu/.local/share/Steam/steamapps/common/Counter-Strike Global Offensive//game/bin/linuxsteamrt64/:/home/rysiu/.local/share/Steam/steamapps/common/Counter-Strike Global Offensive/game/csgo/bin/linuxsteamrt64:
+ '[' -z '' ']'
+ /home/rysiu/hack/source2gen/scripts/..//build/Release/bin/source2gen
Dump: Loading libclient.so
Dump: Loading libengine2.so
Dump: Loading libschemasystem.so
Dump: Loading libtier0.so
Dump: Loading libmatchmaking.so
Dump: Loading libanimationsystem.so
Dump: Loading libhost.so
Dump: Loading libmaterialsystem2.so
Dump: Loading libmeshsystem.so
Dump: Loading libnetworksystem.so
Dump: Loading libpanorama.so
Dump: Loading libparticles.so
Dump: Loading libpulse_system.so
Dump: Loading libresourcesystem.so
Dump: Loading libscenefilecache.so
Dump: Loading libscenesystem.so
Dump: Loading libserver.so
Dump: Loading libsoundsystem.so
Dump: Loading libvphysics2.so
Dump: Loading libworldrenderer.so
Dump: Starting
./scripts/run.sh: line 58: 30868 Segmentation fault         "${BINARY}" "${@}"
rysiu@desktop ~/h/source2gen (main) [SIGSEGV]>

What am I doing wrong?

bt with debug:

(gdb) bt
#0  sdk::GetInterfaces(char const*)::{lambda(auto:1)#1}::operator()<unsigned long>(unsigned long) const::{lambda()#1}::operator()() const (__closure=0x7fffffffda98) at /home/rysiu/hack/source2gen/source2gen/include/sdk/interfaceregs.h:37
#1  0x000055555559b3a9 in sdk::GetInterfaces(char const*)::{lambda(auto:1)#1}::operator()<unsigned long>(unsigned long) const (
    __closure=0x7fffffffdbd7, createinterface_symbol=140737257178048)
    at /home/rysiu/hack/source2gen/source2gen/include/sdk/interfaceregs.h:39
#2  0x000055555559f2b9 in std::__invoke_impl<sdk::InterfaceReg*, sdk::GetInterfaces(char const*)::{lambda(auto:1)#1}, unsigned long const&>(std::__invoke_other, sdk::GetInterfaces(char const*)::{lambda(auto:1)#1}&&, unsigned long const&) (__f=...)
    at /usr/include/c++/14.2/bits/invoke.h:61
#3  0x000055555559c9ce in std::__invoke<sdk::GetInterfaces(char const*)::{lambda(auto:1)#1}, unsigned long const&>(sdk::GetInterfaces(char const*)::{lambda(auto:1)#1}&&, unsigned long const&) (__fn=...) at /usr/include/c++/14.2/bits/invoke.h:96
#4  0x000055555559b44c in std::expected<unsigned long, loader::ModuleLookupError>::transform<sdk::GetInterfaces(char const*)::{lambda(auto:1)#1}>(sdk::GetInterfaces(char const*)::{lambda(auto:1)#1}&&) const &::{lambda()#1}::operator()() const (__closure=0x7fffffffdb90)
    at /usr/include/c++/14.2/expected:1013
#5  0x000055555559c9f8 in std::expected<sdk::InterfaceReg*, loader::ModuleLookupError>::expected<std::expected<unsigned long, loader::ModuleLookupError>::transform<sdk::GetInterfaces(char const*)::{lambda(auto:1)#1}>(sdk::GetInterfaces(char const*)::{lambda(auto:1)#1}&&)
const &::{lambda()#1}>(std::__expected::__in_place_inv, sdk::GetInterfaces(char const*)::{lambda(auto:1)#1}&&) (this=0x7fffffffde00,
    __fn=...) at /usr/include/c++/14.2/expected:1219
#6  0x000055555559b4a8 in std::expected<unsigned long, loader::ModuleLookupError>::transform<sdk::GetInterfaces(char const*)::{lambda(auto:1)#1}>(sdk::GetInterfaces(char const*)::{lambda(auto:1)#1}&&) const & (this=0x7fffffffdbf0, __f=...)
    at /usr/include/c++/14.2/expected:1015
#7  0x000055555559b5d9 in sdk::GetInterfaces (library=0x5555559eef10 "libschemasystem.so")
    at /home/rysiu/hack/source2gen/source2gen/include/sdk/interfaceregs.h:29
#8  0x000055555559cabc in sdk::GetInterface<CSchemaSystem> (library=0x5555559eef10 "libschemasystem.so",
    partial_version=0x5555555f1ffd "SchemaSystem_0") at /home/rysiu/hack/source2gen/source2gen/include/sdk/interfaceregs.h:48
#9  0x000055555559b765 in CSchemaSystem::GetInstance ()
    at /home/rysiu/hack/source2gen/source2gen/include/sdk/interfaces/schemasystem/schema.h:1090
#10 0x0000555555597e90 in source2_gen::Dump (options=...) at /home/rysiu/hack/source2gen/source2gen/src/startup/startup.cpp:215
#11 0x000055555555c95a in main (argc=1, argv=0x7fffffffea28) at /home/rysiu/hack/source2gen/source2gen/src/main.cpp:13
(gdb)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions