-
Notifications
You must be signed in to change notification settings - Fork 52
Open
Labels
bugSomething isn't workingSomething isn't working
Description
Some things are fixed, reference PR-93
All current work and progress can be found on the dev branch of my fork
https://github.com/ImBubbles/source2gen-linuxpatches/tree/dev
./generate.sh
LD_LIBRARY_PATH="$HOME/.steam/steam/steamapps/common/Counter-Strike Global Offensive/game/bin/linuxsteamrt64/:$HOME/.steam/steam/steamapps/common/Counter-Strike Global Offensive/game/csgo/bin/linuxsteamrt64/" \
gdb --args ./build/Release/bin/source2gen --emit-language cpp
Note:
- all the "loading module" and "good module" is because I was trying to fix this myself but this is probably beyond my skill level
- the "Library passed" is literally just std::cout of the library passed in GetInterfaces()
- the
--emit-language cppoption has not had an effect with or without (though idk if cpp is the default)
Main error:
Program received signal SIGSEGV, Segmentation fault.
0x000055555558aa80 in sdk::GetInterfaces(char const*) ()
Console dump:
[bubbles@arch tmp-source2gen]$ ./generate.sh
GNU gdb (GDB) 16.3
Copyright (C) 2024 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.
Type "show copying" and "show warranty" for details.
This GDB was configured as "x86_64-pc-linux-gnu".
Type "show configuration" for configuration details.
For bug reporting instructions, please see:
<https://www.gnu.org/software/gdb/bugs/>.
Find the GDB manual and other documentation resources online at:
<http://www.gnu.org/software/gdb/documentation/>.
For help, type "help".
Type "apropos word" to search for commands related to "word"...
Reading symbols from ./build/Release/bin/source2gen...
This GDB supports auto-downloading debuginfo from the following URLs:
<https://debuginfod.archlinux.org>
Enable debuginfod for this session? (y or [n]) y
Debuginfod has been enabled.
To make this setting permanent, add 'set debuginfod enabled on' to .gdbinit.
(No debugging symbols found in ./build/Release/bin/source2gen)
(gdb) run
Starting program: /home/bubbles/CLionProjects/tmp-source2gen/build/Release/bin/source2gen
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/usr/lib/libthread_db.so.1".
Dump: Loading libclient.so
loading module libclient.so
good module libclient.so
at 0x555,555,5d6,f20
Dump: Loading libengine2.so
loading module libengine2.so
[Detaching after vfork from child process 61853]
good module libengine2.so
at 0x555,555,73c,f10
Dump: Loading libschemasystem.so
loading module libschemasystem.so
good module libschemasystem.so
at 0x555,555,764,a00
Dump: Loading libtier0.so
loading module libtier0.so
good module libtier0.so
at 0x555,555,5d7,a70
Dump: Loading libmatchmaking.so
loading module libmatchmaking.so
good module libmatchmaking.so
at 0x555,555,764,f00
Dump: Loading libanimationsystem.so
loading module libanimationsystem.so
good module libanimationsystem.so
at 0x555,555,756,4e0
Dump: Loading libhost.so
loading module libhost.so
good module libhost.so
at 0x555,555,7d5,be0
Dump: Loading libmaterialsystem2.so
loading module libmaterialsystem2.so
good module libmaterialsystem2.so
at 0x555,555,7e1,5f0
Dump: Loading libmeshsystem.so
loading module libmeshsystem.so
good module libmeshsystem.so
at 0x555,555,7d7,c80
Dump: Loading libnetworksystem.so
loading module libnetworksystem.so
good module libnetworksystem.so
at 0x555,555,7d8,5a0
Dump: Loading libpanorama.so
loading module libpanorama.so
good module libpanorama.so
at 0x555,555,82b,380
Dump: Loading libparticles.so
loading module libparticles.so
good module libparticles.so
at 0x555,555,82f,710
Dump: Loading libpulse_system.so
loading module libpulse_system.so
good module libpulse_system.so
at 0x555,555,826,2d0
Dump: Loading libresourcesystem.so
loading module libresourcesystem.so
good module libresourcesystem.so
at 0x555,555,896,9e0
Dump: Loading libscenefilecache.so
loading module libscenefilecache.so
good module libscenefilecache.so
at 0x555,555,8ae,170
Dump: Loading libscenesystem.so
loading module libscenesystem.so
good module libscenesystem.so
at 0x555,555,8c0,680
Dump: Loading libserver.so
loading module libserver.so
good module libserver.so
at 0x555,555,8ed,bb0
Dump: Loading libsoundsystem.so
loading module libsoundsystem.so
good module libsoundsystem.so
at 0x555,555,9bd,080
Dump: Loading libvphysics2.so
loading module libvphysics2.so
good module libvphysics2.so
at 0x555,555,9dc,370
Dump: Loading libworldrenderer.so
loading module libworldrenderer.so
good module libworldrenderer.so
at 0x555,555,9f3,af0
Dump: Starting
Library passed libschemasystem.so
Program received signal SIGSEGV, Segmentation fault.
0x000055555558aa80 in sdk::GetInterfaces(char const*) ()
(gdb) bt
#0 0x000055555558aa80 in sdk::GetInterfaces(char const*) ()
#1 0x000055555558ad26 in CSchemaSystem* sdk::GetInterface<CSchemaSystem>(char const*, char const*) ()
#2 0x0000555555589994 in source2_gen::Dump(source2_gen::Options) ()
#3 0x000055555555e752 in main ()
Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't working