luxtorpeda-dev/luxtorpeda

*** stack smashing detected ***: terminated

Maximumtix opened this issue · 12 comments

Linux Distribution

Artix Linux x64 kernel 5.18.5

Luxtorpeda Version

55.0.0.r348.2a81c60-1 (from AUR)

Bug description

I updated my rust version with rustup update then installed the AUR version. Booted up steam, selected luxtorpeda as a compatibility tool and tried to launch wolfenstein 3d but nothing happens.

Steps To Reproduce

  1. Installed through AUR
  2. Chose luxtorpeda as compatibility tool.
  3. Launched game
  4. Nothing happens.

Expected Behavior

The game should launch.

Additional Context

At first I tried release version 55, but the same error occurred.
*** stack smashing detected ***: terminated I thought it may be because of this specific binary and cleared folders and tried it with release 54. Then compiled it with AUR to no avail. I tried steam --reset command as well
Also tried Return to Castle Wolfenstein, but same error occurs.

Relevant log output

GameAction [AppID 2270, ActionID 2] : LaunchApp changed task to ProcessingInstallScript with ""

(pressure-vessel-wrap:23590): pressure-vessel-WARNING **: Binding directories that are located under "/usr/" is not supported!
13:05:27 [INFO] setup_logging success
Error: Custom { kind: Other, error: "iscriptevaluator ignoring" }
GameAction [AppID 2270, ActionID 2] : LaunchApp changed task to SynchronizingCloud with ""
GameAction [AppID 2270, ActionID 2] : LaunchApp changed task to SynchronizingControllerConfig with ""
GameAction [AppID 2270, ActionID 2] : LaunchApp changed task to SiteLicenseSeatCheckout with ""
GameAction [AppID 2270, ActionID 2] : LaunchApp changed task to CreatingProcess with ""
GameAction [AppID 2270, ActionID 2] : LaunchApp waiting for user response to CreatingProcess ""
GameAction [AppID 2270, ActionID 2] : LaunchApp continues with user response "CreatingProcess"
/bin/sh\0-c\0/home/maximumtix/.local/share/Steam/ubuntu12_32/reaper SteamLaunch AppId=2270 -- '/home/maximumtix/.local/share/Steam/steamapps/common/SteamLinuxRuntime_soldier'/_v2-entry-point --verb=waitforexitandrun -- '/usr/share/steam/compatibilitytools.d/luxtorpeda'/luxtorpeda.sh waitforexitandrun  '/home/maximumtix/.local/share/Steam/steamapps/common/Wolfenstein 3D/base/dosbox.exe' base\\Wolf3d.exe -conf base\\wolf3d.conf -fullscreen -exit\0
Game process added : AppID 2270 "/home/maximumtix/.local/share/Steam/ubuntu12_32/reaper SteamLaunch AppId=2270 -- '/home/maximumtix/.local/share/Steam/steamapps/common/SteamLinuxRuntime_soldier'/_v2-entry-point --verb=waitforexitandrun -- '/usr/share/steam/compatibilitytools.d/luxtorpeda'/luxtorpeda.sh waitforexitandrun  '/home/maximumtix/.local/share/Steam/steamapps/common/Wolfenstein 3D/base/dosbox.exe' base\\Wolf3d.exe -conf base\\wolf3d.conf -fullscreen -exit", ProcID 24079, IP 0.0.0.0:0
chdir /home/maximumtix/.local/share/Steam/steamapps/common/Wolfenstein 3D
ERROR: ld.so: object '/home/maximumtix/.local/share/Steam/ubuntu12_32/gameoverlayrenderer.so' from LD_PRELOAD cannot be preloaded (wrong ELF class: ELFCLASS32): ignored.
GameAction [AppID 2270, ActionID 2] : LaunchApp changed task to WaitingGameWindow with ""
ERROR: ld.so: object '/home/maximumtix/.local/share/Steam/ubuntu12_64/gameoverlayrenderer.so' from LD_PRELOAD cannot be preloaded (wrong ELF class: ELFCLASS64): ignored.
GameAction [AppID 2270, ActionID 2] : LaunchApp changed task to Completed with ""
ERROR: ld.so: object '/home/maximumtix/.local/share/Steam/ubuntu12_32/gameoverlayrenderer.so' from LD_PRELOAD cannot be preloaded (wrong ELF class: ELFCLASS32): ignored.
ERROR: ld.so: object '/home/maximumtix/.local/share/Steam/ubuntu12_32/gameoverlayrenderer.so' from LD_PRELOAD cannot be preloaded (wrong ELF class: ELFCLASS32): ignored.
ERROR: ld.so: object '/home/maximumtix/.local/share/Steam/ubuntu12_32/gameoverlayrenderer.so' from LD_PRELOAD cannot be preloaded (wrong ELF class: ELFCLASS32): ignored.
pid 24086 != 24083, skipping destruction (fork without exec?)

(pressure-vessel-wrap:24083): pressure-vessel-WARNING **: Binding directories that are located under "/usr/" is not supported!
LD_PRELOAD found with /tmp/pressure-vessel-libs-RNX6O1/${PLATFORM}/gameoverlayrenderer.so
pid 24439 != 24435, skipping destruction (fork without exec?)
13:05:30 [INFO] setup_logging success
13:05:31 [INFO] update_packages_json. found hash: 66ed0421530adc930943bcc0f2e2ca1d8de3a46d
13:05:31 [INFO] update_packages_json. found hash and remote hash: 66ed0421530adc930943bcc0f2e2ca1d8de3a46d 66ed0421530adc930943bcc0f2e2ca1d8de3a46d
13:05:31 [INFO] luxtorpeda version: 55.0.0
13:05:31 [INFO] steam_app_id: "2270"
13:05:31 [INFO] original command: ["/home/maximumtix/.local/share/Steam/steamapps/common/Wolfenstein 3D/base/dosbox.exe", "base\\Wolf3d.exe", "-conf", "base\\wolf3d.conf", "-fullscreen", "-exit"]
13:05:31 [INFO] working dir: Ok("/home/maximumtix/.local/share/Steam/steamapps/common/Wolfenstein 3D")
13:05:31 [INFO] tool dir: "/usr/share/steam/compatibilitytools.d/luxtorpeda"
13:05:31 [INFO] user_packages_file not found
13:05:31 [INFO] user_packages_file not found
13:05:31 [INFO] starting download on: 0 ecwolf
13:05:31 [INFO] download target: "https://github.com/luxtorpeda-dev/packages/releases/download/ecwolf-5/ecwolf-common-5.tar.xz"
13:05:31 [INFO] window is on display_index: 0 on_steam_deck: false steam_deck_gaming_mode: false
13:05:31 [INFO] found dpi: (100.91241, 100.861626, 101.07357) using dpi: 101.07357
13:05:31 [INFO] using dpi scaling of 1.3160621
*** stack smashing detected ***: terminated
/usr/share/steam/compatibilitytools.d/luxtorpeda/luxtorpeda.sh: line 11: 24441 Aborted                 "$DIR/luxtorpeda" "$@"
Game process removed: AppID 2270 "/home/maximumtix/.local/share/Steam/ubuntu12_32/reaper SteamLaunch AppId=2270 -- '/home/maximumtix/.local/share/Steam/steamapps/common/SteamLinuxRuntime_soldier'/_v2-entry-point --verb=waitforexitandrun -- '/usr/share/steam/compatibilitytools.d/luxtorpeda'/luxtorpeda.sh waitforexitandrun  '/home/maximumtix/.local/share/Steam/steamapps/common/Wolfenstein 3D/base/dosbox.exe' base\\Wolf3d.exe -conf base\\wolf3d.conf -fullscreen -exit", ProcID 24079 
ThreadGetProcessExitCode: no such process 24435
ThreadGetProcessExitCode: no such process 24084
ThreadGetProcessExitCode: no such process 24083
Uploaded AppInterfaceStats to Steam

@Maximumtix you are seeing this with both the official release binaries here on github and with you compiling the aur on your system?

How much free memory do you have and what version of rust is installed on your system?

@Maximumtix you are seeing this with both the official release binaries here on github and with you compiling the aur on your system?

Yes, that's the case.

I have 6 GB system memory and 6 GB swap(SSD). At the time of testing this, I used 1 GB system memory and 500 MB swap.
info: The currently active rustc version is rustc 1.64.0-nightly (46b8c23f3 2022-07-01)

@Maximumtix When you install the official binaries, where are you putting them? In the /usr directory or in the local user steam directory?

~/.steam/root/compatibilitytools.d/

@Maximumtix Can you try again with it installed there and send another log?

You mean in the /usr directory? Because I tried both .local/share/Steam/compatibilitytools.d/ and .steam/root/compatibilitytools.d/ It shouldn't matter since they are linked directories.

@Maximumtix The user directory (~/.local) not /usr, if that makes sense.

Complete steam terminal log:

steam.sh[7134]: Running Steam on artix rolling 64-bit
steam.sh[7134]: STEAM_RUNTIME is enabled automatically
setup.sh[7264]: Steam runtime environment up-to-date!
steam.sh[7134]: Steam client's requirements are satisfied
[2022-07-06 21:57:54] Startup - updater built Jun  7 2022 03:18:19
Installing breakpad exception handler for appid(steam)/version(1654574690)
[2022-07-06 21:57:54] Loading cached metrics from disk (/home/maximumtix/.local/share/Steam/package/steam_client_metrics.bin)
[2022-07-06 21:57:54] Using the following download hosts for Public, Realm steamglobal
[2022-07-06 21:57:54] 1. https://cdn.akamai.steamstatic.com, /client/, Realm 'steamglobal', weight was 100, source = 'update_hosts_cached.vdf'
[2022-07-06 21:57:54] 2. https://cdn.cloudflare.steamstatic.com, /client/, Realm 'steamglobal', weight was 100, source = 'update_hosts_cached.vdf'
[2022-07-06 21:57:54] 3. http://media.steampowered.com, /client/, Realm 'steamglobal', weight was 1, source = 'baked in'
Installing breakpad exception handler for appid(steam)/version(1654574690)
[2022-07-06 21:57:54] Verifying installation...
[2022-07-06 21:57:54] Verification complete
Loaded SDL version 2.0.22-7215337

(steam:7642): Gtk-WARNING **: 21:57:55.291: Unable to locate theme engine in module_path: "adwaita",
/home/maximumtix/.themes/Fleon/gtk-2.0/main.rc:789: error: unexpected identifier 'direction', expected character '}'

(steam:7642): Gtk-WARNING **: 21:57:55.295: Unable to locate theme engine in module_path: "adwaita",
/home/maximumtix/.themes/Fleon/gtk-2.0/hacks.rc:28: error: invalid string constant "normal_entry", expected valid string constant
ComputeStartupMode: found registry default startup mode: 0steamwebhelper.sh[7777]: Runtime for steamwebhelper: defaulting to /home/maximumtix/.local/share/Steam/ubuntu12_64/steam-runtime-heavy
Installing breakpad exception handler for appid(steam)/version(1654574690)
steamwebhelper.sh[7777]: glibc >= 2.34, partially disabling sandbox until CEF supports clone3()
Installing breakpad exception handler for appid(steam)/version(1654574690)
Installing breakpad exception handler for appid(steam)/version(1654574690)
Installing breakpad exception handler for appid(steam)/version(1654574690)
Installing breakpad exception handler for appid(steam)/version(1654574690)
Installing breakpad exception handler for appid(steam)/version(1654574690)
Installing breakpad exception handler for appid(steam)/version(1654574690)
Installing breakpad exception handler for appid(steam)/version(1654574690)
Installing breakpad exception handler for appid(steam)/version(1654574690)
Installing breakpad exception handler for appid(steam)/version(1654574690)
Installing breakpad exception handler for appid(steam)/version(1654574690)
Installing breakpad exception handler for appid(steam)/version(1654574690)
Installing breakpad exception handler for appid(steam)/version(1654574690)
Installing breakpad exception handler for appid(steam)/version(1654574690)
Installing breakpad exception handler for appid(steam)/version(1654574690)
Installing breakpad exception handler for appid(steam)/version(1654574690)
Installing breakpad exception handler for appid(steam)/version(1654574690)
Installing breakpad exception handler for appid(steam)/version(1654574690)
CAppInfoCacheReadFromDiskThread took 343 milliseconds to initialize
Installing breakpad exception handler for appid(steam)/version(1654574690)
Installing breakpad exception handler for appid(steam)/version(1654574690)
Installing breakpad exception handler for appid(steam)/version(1654574690)

(steam:7642): Gtk-WARNING **: 21:57:57.709: gtk_disable_setlocale() must be called before gtk_init()
local (potentially out of sync) copy of roaming config loaded - 2645 bytes.
vkEnumeratePhysicalDevices failed, unable to init and enumerate GPUs with Vulkan.
BInit - Unable to initialize Vulkan!
Installing breakpad exception handler for appid(steam)/version(1654574690)
Installing breakpad exception handler for appid(steam)/version(1654574690)
vkEnumeratePhysicalDevices failed, unable to init and enumerate GPUs with Vulkan.
BInit - Unable to initialize Vulkan!
roaming config store loaded successfully - 2645 bytes.
migrating temporary roaming config store
BRefreshApplicationsInLibrary 1: 56ms
Installing breakpad exception handler for appid(steam)/version(1654574690)
Installing breakpad exception handler for appid(steam)/version(1654574690)
Failed to init SteamVR because it isn't installed
ExecCommandLine: "'/home/maximumtix/.local/share/Steam/ubuntu12_32/steam'"
System startup time: 8.23 seconds
BuildCompleteAppOverviewChange: 767
RegisterForAppOverview 1: 209ms
RegisterForAppOverview 2: 210ms
Installing breakpad exception handler for appid(steam)/version(1654574690)
CAPIJobRequestUserStats - Server response failed 2
Installing breakpad exception handler for appid(steam)/version(1654574690)
GameAction [AppID 2270, ActionID 1] : LaunchApp changed task to ProcessingInstallScript with ""
18:58:56 [INFO] setup_logging success
Error: Custom { kind: Other, error: "iscriptevaluator ignoring" }
GameAction [AppID 2270, ActionID 1] : LaunchApp changed task to SynchronizingCloud with ""
GameAction [AppID 2270, ActionID 1] : LaunchApp changed task to SynchronizingControllerConfig with ""
GameAction [AppID 2270, ActionID 1] : LaunchApp changed task to SiteLicenseSeatCheckout with ""
GameAction [AppID 2270, ActionID 1] : LaunchApp changed task to CreatingProcess with ""
GameAction [AppID 2270, ActionID 1] : LaunchApp waiting for user response to CreatingProcess ""
GameAction [AppID 2270, ActionID 1] : LaunchApp continues with user response "CreatingProcess"
/bin/sh\0-c\0/home/maximumtix/.local/share/Steam/ubuntu12_32/reaper SteamLaunch AppId=2270 -- '/home/maximumtix/.local/share/Steam/steamapps/common/SteamLinuxRuntime_soldier'/_v2-entry-point --verb=waitforexitandrun -- '/home/maximumtix/.local/share/Steam/compatibilitytools.d/luxtorpeda'/luxtorpeda.sh waitforexitandrun  '/home/maximumtix/.local/share/Steam/steamapps/common/Wolfenstein 3D/base/dosbox.exe' base\\Wolf3d.exe -conf base\\wolf3d.conf -fullscreen -exit\0
Game process added : AppID 2270 "/home/maximumtix/.local/share/Steam/ubuntu12_32/reaper SteamLaunch AppId=2270 -- '/home/maximumtix/.local/share/Steam/steamapps/common/SteamLinuxRuntime_soldier'/_v2-entry-point --verb=waitforexitandrun -- '/home/maximumtix/.local/share/Steam/compatibilitytools.d/luxtorpeda'/luxtorpeda.sh waitforexitandrun  '/home/maximumtix/.local/share/Steam/steamapps/common/Wolfenstein 3D/base/dosbox.exe' base\\Wolf3d.exe -conf base\\wolf3d.conf -fullscreen -exit", ProcID 16370, IP 0.0.0.0:0
chdir /home/maximumtix/.local/share/Steam/steamapps/common/Wolfenstein 3D
ERROR: ld.so: object '/home/maximumtix/.local/share/Steam/ubuntu12_32/gameoverlayrenderer.so' from LD_PRELOAD cannot be preloaded (wrong ELF class: ELFCLASS32): ignored.
GameAction [AppID 2270, ActionID 1] : LaunchApp changed task to WaitingGameWindow with ""
ERROR: ld.so: object '/home/maximumtix/.local/share/Steam/ubuntu12_64/gameoverlayrenderer.so' from LD_PRELOAD cannot be preloaded (wrong ELF class: ELFCLASS64): ignored.
ERROR: ld.so: object '/home/maximumtix/.local/share/Steam/ubuntu12_32/gameoverlayrenderer.so' from LD_PRELOAD cannot be preloaded (wrong ELF class: ELFCLASS32): ignored.
GameAction [AppID 2270, ActionID 1] : LaunchApp changed task to Completed with ""
ERROR: ld.so: object '/home/maximumtix/.local/share/Steam/ubuntu12_32/gameoverlayrenderer.so' from LD_PRELOAD cannot be preloaded (wrong ELF class: ELFCLASS32): ignored.
ERROR: ld.so: object '/home/maximumtix/.local/share/Steam/ubuntu12_32/gameoverlayrenderer.so' from LD_PRELOAD cannot be preloaded (wrong ELF class: ELFCLASS32): ignored.
pid 16407 != 16385, skipping destruction (fork without exec?)
LD_PRELOAD found with /tmp/pressure-vessel-libs-H6DWO1/${PLATFORM}/gameoverlayrenderer.so
pid 16755 != 16744, skipping destruction (fork without exec?)
18:59:00 [INFO] setup_logging success
18:59:00 [INFO] update_packages_json. found hash: 1671d76baca730fe66bcd9a48688d77296271b73
18:59:00 [INFO] update_packages_json. found hash and remote hash: 1671d76baca730fe66bcd9a48688d77296271b73 69cb20dc64906679f6fd36821d9875ae465901bf
18:59:00 [INFO] update_packages_json. hash does not match. downloading
18:59:00 [INFO] update_packages_json. downloading new packagesruntime.json
18:59:00 [INFO] update_packages_json. new downloaded hash matches
18:59:00 [INFO] luxtorpeda version: 55.0.0
18:59:00 [INFO] steam_app_id: "2270"
18:59:00 [INFO] original command: ["/home/maximumtix/.local/share/Steam/steamapps/common/Wolfenstein 3D/base/dosbox.exe", "base\\Wolf3d.exe", "-conf", "base\\wolf3d.conf", "-fullscreen", "-exit"]
18:59:00 [INFO] working dir: Ok("/home/maximumtix/.local/share/Steam/steamapps/common/Wolfenstein 3D")
18:59:00 [INFO] tool dir: "/home/maximumtix/.local/share/Steam/compatibilitytools.d/luxtorpeda"
18:59:00 [INFO] user_packages_file not found
18:59:00 [INFO] user_packages_file not found
18:59:00 [INFO] starting download on: 0 ecwolf
18:59:00 [INFO] download target: "https://github.com/luxtorpeda-dev/packages/releases/download/ecwolf-5/ecwolf-common-5.tar.xz"
18:59:00 [INFO] window is on display_index: 0 on_steam_deck: false steam_deck_gaming_mode: false
18:59:00 [INFO] found dpi: (100.91241, 100.861626, 101.07357) using dpi: 101.07357
18:59:00 [INFO] using dpi scaling of 1.3160621
*** stack smashing detected ***: terminated
/home/maximumtix/.local/share/Steam/compatibilitytools.d/luxtorpeda/luxtorpeda.sh: line 11: 16761 Aborted                 "$DIR/luxtorpeda" "$@"
Game process removed: AppID 2270 "/home/maximumtix/.local/share/Steam/ubuntu12_32/reaper SteamLaunch AppId=2270 -- '/home/maximumtix/.local/share/Steam/steamapps/common/SteamLinuxRuntime_soldier'/_v2-entry-point --verb=waitforexitandrun -- '/home/maximumtix/.local/share/Steam/compatibilitytools.d/luxtorpeda'/luxtorpeda.sh waitforexitandrun  '/home/maximumtix/.local/share/Steam/steamapps/common/Wolfenstein 3D/base/dosbox.exe' base\\Wolf3d.exe -conf base\\wolf3d.conf -fullscreen -exit", ProcID 16370 
ThreadGetProcessExitCode: no such process 16744
ThreadGetProcessExitCode: no such process 16405
ThreadGetProcessExitCode: no such process 16385
Uploaded AppInterfaceStats to Steam

@Maximumtix what type of graphic card do you have?

Also are you comfortable with using gdb? Would be interested to see where the stack trace shows the error occurs

Nvidia GeForce GT 425M, supports OpenGL 4.6.0 but have no Vulkan support whatsoever.
No, I have no experience using gdb. But I can help you if you guide me. Where can I contact you?

@Maximumtix Here's a link to the discord: https://discord.gg/2xp2dbfa

If you ping me in the luxtorpeda channel, I'll see that and I can see what we can do.

Since it seems to happen to other applications on your system running inside steam, it seems to be an issue there. Feel free to continue communicating on discord or here and I'll do what I can to help.