Bug 1212392 - [Build 20230615-1] openQA test fails in steamcmd, `steamcmd +login anonymous +app_update 90 validate +quit` command fails
Summary: [Build 20230615-1] openQA test fails in steamcmd, `steamcmd +login anonymous ...
Status: RESOLVED FIXED
Alias: None
Product: openSUSE Distribution
Classification: openSUSE
Component: Basesystem (show other bugs)
Version: Leap 15.5
Hardware: x86-64 openSUSE Leap 15.5
: P5 - None : Normal (vote)
Target Milestone: ---
Assignee: Dirk Stoecker
QA Contact: E-mail List
URL: https://openqa.opensuse.org/tests/335...
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2023-06-15 04:05 UTC by Richard Fan
Modified: 2023-07-04 13:30 UTC (History)
0 users

See Also:
Found By: openQA
Services Priority:
Business Priority:
Blocker: Yes
Marketing QA Status: ---
IT Deployment: ---


Attachments
dmp file (201.17 KB, application/vnd.tcpdump.pcap)
2023-06-15 04:11 UTC, Richard Fan
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Richard Fan 2023-06-15 04:05:44 UTC
Bug description:

With new version 1686781763 test fails, but seems it passed at 1685487853:
https://openqa.opensuse.org/tests/3357591#step/steamcmd/8

I can see `/usr/bin/steamcmd +login anonymous +app_update 90 validate +quit` command core dump recently. 

# /usr/bin/steamcmd +login anonymous +app_update 90 validate +quit
Redirecting stderr to '/root/Steam/logs/stderr.txt'
[  0%] Checking for available updates...
[----] Verifying installation...
Steam Console Client (c) Valve Corporation - version 1686781763
-- type 'quit' to exit --
Loading Steam API...dlmopen steamservice.so failed: steamservice.so: cannot open shared object file: No such file or directory
dlmopen libSDL3.so.0 failed: libSDL3.so.0: cannot open shared object file: No such file or directory
OK

Connecting anonymously to Steam Public...OK
Waiting for client config...OK
Waiting for user info...OK
 Update state (0x5) verifying install, progress: 12.80 (12582912 / 98310834)
Success! App '90' fully installed.
/usr/lib/steamcmd/steamcmd.sh: line 39: 23793 Segmentation fault      (core dumped) $DEBUGGER "$STEAMEXE" "$@"


#cat /root/Steam/logs/stderr.txt
crash_20230614235221_20.dmp[23814]: Uploading dump (out-of-process)
/tmp/dumps/crash_20230614235221_20.dmp
crash_20230614235221_20.dmp[23814]: Finished uploading minidump (out-of-process): success = no
crash_20230614235221_20.dmp[23814]: error: libcurl.so: cannot open shared object file: No such file or directory
crash_20230614235221_20.dmp[23814]: file ''/tmp/dumps/crash_20230614235221_20.dmp'', upload no: ''libcurl.so: cannot open shared object file: No such file or directory''


## Steps to reproduce the issue:

1. Install steamcmd pkg:

# rpm -qi steamcmd
Name        : steamcmd
Version     : 0.20180105
Release     : lp155.2.4
Architecture: x86_64
Install Date: Wed 14 Jun 2023 11:24:46 PM EDT
Group       : Amusements/Games/Other
Size        : 4865288
License     : SUSE-Freeware
Signature   : RSA/SHA512, Wed 17 May 2023 09:53:24 AM EDT, Key ID 35a2f86e29b700a4
Source RPM  : steamcmd-0.20180105-lp155.2.4.src.rpm
Build Date  : Wed 17 May 2023 09:53:17 AM EDT
Build Host  : cloud136
Relocations : (not relocatable)
Packager    : https://bugs.opensuse.org
Vendor      : openSUSE
URL         : https://developer.valvesoftware.com/wiki/SteamCMD
Summary     : Command-line version of the Steam client
Description :
The Steam Console Client or SteamCMD is a command-line version of the Steam client.
Its primary use is to install and update various dedicated servers available on
Steam using a command-line interface. It works with games that use the SteamPipe
content system.
Distribution: openSUSE:Leap:15.5:NonFree


2. Run  `/usr/bin/steamcmd +login anonymous +app_update 90 validate +quit`

3. Please refer to attached file for dump log.

#####################################################################################
Automation run can reproduce the issue as well:

## Observation

openQA test in scenario opensuse-15.5-DVD-Updates-x86_64-extra_tests_textmode@64bit fails in
[steamcmd](https://openqa.opensuse.org/tests/3358372/modules/steamcmd/steps/7)

## Test suite description
Maintainer: slindomansilla@suse.de.
Mainly post-installation console extra tests.


## Reproducible

Fails since (at least) Build [20230614-2](https://openqa.opensuse.org/tests/3357340)


## Expected result

Last good: [20230613-2](https://openqa.opensuse.org/tests/3354775) (or more recent)


## Further details

Always latest result in this scenario: [latest](https://openqa.opensuse.org/tests/latest?arch=x86_64&distri=opensuse&flavor=DVD-Updates&machine=64bit&test=extra_tests_textmode&version=15.5)
Comment 1 Richard Fan 2023-06-15 04:11:10 UTC
Created attachment 867586 [details]
dmp file
Comment 2 Richard Fan 2023-06-15 04:15:56 UTC
More update,

If I tried to install package `libSDL-devel` and then re-run the command, it can pass even I can still see some error messages:

susetest:~ # zypper in libSDL-devel
Loading repository data...
Reading installed packages...
Resolving package dependencies...

The following NEW package is going to be installed:
  libSDL-devel

1 new package to install.
Overall download size: 331.7 KiB. Already cached: 0 B. After the operation, additional 1.5 MiB will be used.
Continue? [y/n/v/...? shows all options] (y): 
Retrieving: libSDL-devel-1.2.15-150000.3.19.1.x86_64 (Main Repository)                                                                                                                                                    (1/1), 331.7 KiB    
Retrieving: libSDL-devel-1.2.15-150000.3.19.1.x86_64.rpm ...................................................................................................................................................................[done (2.1 MiB/s)]

Checking for file conflicts: ...........................................................................................................................................................................................................[done]
(1/1) Installing: libSDL-devel-1.2.15-150000.3.19.1.x86_64 .............................................................................................................................................................................[done]
susetest:~ # /usr/bin/steamcmd +login anonymous +app_update 90 validate +quit
Redirecting stderr to '/root/Steam/logs/stderr.txt'
Looks like steam didn't shutdown cleanly, scheduling immediate update check
[  0%] Checking for available updates...
[----] Verifying installation...
Steam Console Client (c) Valve Corporation - version 1686781763
-- type 'quit' to exit --
Loading Steam API...dlmopen steamservice.so failed: steamservice.so: cannot open shared object file: No such file or directory
dlmopen libSDL3.so.0 failed: libSDL3.so.0: cannot open shared object file: No such file or directory
OK

Connecting anonymously to Steam Public...OK
Waiting for client config...OK
Waiting for user info...OK
 Update state (0x5) verifying install, progress: 9.60 (9437184 / 98310834)
Success! App '90' fully installed.

===
Hello Dirk, can you please help take a look at this issue? 

I fails to find any packages which provide libSDL3.so.0. is it a new bug or by design?
Comment 3 Dirk Stoecker 2023-06-16 20:23:47 UTC
I assume you need SDL3-devel and not libSDL-devel (from games repo). Thought that doesn't come from steamcmd, but somewhere else. steamcmd doesn't contain any libSDL3 strings.
Comment 4 Richard Fan 2023-06-19 01:48:03 UTC
(In reply to Dirk Stoecker from comment #3)
> I assume you need SDL3-devel and not libSDL-devel (from games repo). Thought
> that doesn't come from steamcmd, but somewhere else. steamcmd doesn't
> contain any libSDL3 strings.

Thank you Dirk, I failed to find the SDL3-devel package for leap15.5.

However, good news is that the issue is gone with the latest run at version 1686128896 
https://openqa.opensuse.org/tests/3364096#step/steamcmd/8

Even I can still see the messages below:

Loading Steam API...dlmopen steamservice.so failed: steamservice.so: cannot open shared object file: No such file or directory
dlmopen libSDL3.so.0 failed: libSDL3.so.0: cannot open shared object file: No such file or directory
Comment 5 Dirk Stoecker 2023-06-19 06:02:13 UTC
CLosing.
Comment 6 Marcus Meissner 2023-07-04 13:30:02 UTC
fwiw still happening in 15.5.