protonscr

HL1/CS: Segmentation fault on start

steamclosed wontfixreviewedMOVED: Half-Life 1
ValveSoftware/steam-for-linux#863 · opened 2013-01-25 by skanx · updated 2013-01-29 · 16 comments · github
Sskanx 2013-01-25 github

When starting HL1, I either get a black background for half a second, or a "gordon" background for the same time.

Launching it from the terminal, I get this:

[skanx@po-sr-nm Half-Life]$ LD_LIBRARY_PATH=$LD_LIBRARY_PATH:. ./hl_linux
Using breakpad crash handler
Setting breakpad minidump AppID = 70
Forcing breakpad minidump interfaces to load
Looking up breakpad interfaces from steamclient
Calling BreakpadMiniDumpSystemInit
Looking up breakpad interfaces from steamclient
Calling BreakpadMiniDumpSystemInit
Steam_SetMinidumpSteamID:  Caching Steam ID:  76561197970548196 [API loaded yes]
Steam_SetMinidumpSteamID:  Setting Steam ID:  76561197970548196
ARB Multitexture extensions found.

4 texture units.  Detail texture supported.

[0125/205430:ERROR:resource_bundle.cc(411)] Failed to load /home/skanx/Steam/SteamApps/common/Half-Life/cef_gtk.pak
Some features may not be available.
[0125/205430:WARNING:proxy_service.cc(646)] PAC support disabled because there is no system implementation
ILocalize::AddFile() failed to load file "resource/hl_l_english.txt".
Platform config directory: platform/config
0:Initializing platform...
Segmentation fault

System information:

Processor Information:
    Vendor:  GenuineIntel
    Speed: 2001 Mhz
    8 logical processors
    4 physical processors
    HyperThreading:  Supported
    FCMOV:  Supported
    SSE2:  Supported
    SSE3:  Supported
    SSSE3:  Supported
    SSE4a:  Unsupported
    SSE41:  Supported
    SSE42:  Supported

Network Information:
    Network Speed:  

Operating System Version:
    "Fedora release 18 (Spherical Cow)" (64 bit)
    Kernel Name:  Linux
    Kernel Version:  3.7.2-204.fc18.x86_64
    X Server vendor:  Fedora Project
    X Server release:  11301000

Video Card:
    Driver:  NVIDIA Corporation Quadro 1000M/PCIe/SSE2

    Driver Version:  4.3.0 NVIDIA 313.18
    Desktop Color Depth: 24 bits per pixel
    Monitor Refresh Rate: 60 Hz
    VendorID:  0x10de
    DeviceID:  0xdfa
    Number of Monitors:  1
    Number of Logical Video Cards:  1
    Primary Display Resolution:  1920 x 1080
    Desktop Resolution: 1920 x 1080
    Primary Display Size: 13.54" x 7.60"  (15.51" diag)
                                        34.4cm x 19.3cm  (39.4cm diag)
    Primary Bus: PCI Express 16x
    Primary VRAM: 2048 MB
    Supported MSAA Modes:  2x 4x 8x 16x 

Sound card:
    Audio device: IDT 92HD81B1X5

Memory:
    RAM:  7937 Mb

Miscellaneous:
    UI Language:  English
    LANG:  en_US.UTF-8
    Microphone:  Not set
    Total Hard Disk Space Available:  146293 Mb
    Largest Free Hard Disk Block:  12069 Mb

Installed software:

Recent Failure Reports:
    Fri Jan 25 19:23:52 2013 GMT: file ''/tmp/dumps/crash_20130125202344_1.dmp'', upload yes: ''CrashID=bp-0ebbd69b-2f0e-438c-9bf6-60a7b2130125''
Jjohndrinkwater 2013-01-25 github

Related to #833 maybe?

Sskanx 2013-01-25 github

Maybe, can't say.

I already use en_US.UTF-8 locale, so the workarounds cited in #833 don't help.
The game won't start, also, #833 doesn't mention a segmentation fault.

Additional information, here are my locales:

$ locale
LANG=en_US.UTF-8
LC_CTYPE="en_US.UTF-8"
LC_NUMERIC="en_US.UTF-8"
LC_TIME="en_US.UTF-8"
LC_COLLATE="en_US.UTF-8"
LC_MONETARY="en_US.UTF-8"
LC_MESSAGES="en_US.UTF-8"
LC_PAPER="en_US.UTF-8"
LC_NAME="en_US.UTF-8"
LC_ADDRESS="en_US.UTF-8"
LC_TELEPHONE="en_US.UTF-8"
LC_MEASUREMENT="en_US.UTF-8"
LC_IDENTIFICATION="en_US.UTF-8"
LC_ALL=en_US.UTF-8
Aalfred-valve maintainer 2013-01-26 github

Add "-sw" to the games launch options and tell me if that fixes it. (-sw means start windowed).

Aalfred-valve maintainer 2013-01-26 github

Fixed by tonights update I believe, re-open if not.

Sskanx 2013-01-26 github

Hi Alfred, thank you for looking at this bug. I'm sorry to say it doesn't seem to be fixed. HL1 still crashes with a segmentation fault, just a second after starting it.

When starting it with the -sw switch, it still throws a segmentation fault:

[skanx@po-sr-nm Half-Life]$ LD_LIBRARY_PATH=$LD_LIBRARY_PATH:. ./hl_linux -sw
Using breakpad crash handler
Setting breakpad minidump AppID = 70
Forcing breakpad minidump interfaces to load
Looking up breakpad interfaces from steamclient
Calling BreakpadMiniDumpSystemInit
Looking up breakpad interfaces from steamclient
Calling BreakpadMiniDumpSystemInit
Steam_SetMinidumpSteamID:  Caching Steam ID:  76561197970548196 [API loaded yes]
Steam_SetMinidumpSteamID:  Setting Steam ID:  76561197970548196
ARB Multitexture extensions found.

4 texture units.  Detail texture supported.

[0126/132522:ERROR:resource_bundle.cc(411)] Failed to load /home/skanx/Steam/SteamApps/common/Half-Life/cef_gtk.pak
Some features may not be available.
[0126/132522:WARNING:proxy_service.cc(646)] PAC support disabled because there is no system implementation
ILocalize::AddFile() failed to load file "resource/hl_l_english.txt".
Platform config directory: platform/config
0:Initializing platform...
Segmentation fault

How can I provide more debug info? I looked for a log file but could not find one.

I wonder, do I have to suscribe to the SteamPipe beta channel to get yesterdays update?

Sskanx 2013-01-26 github

How can one reopen a closed issue on GitHub?
edit: thanks johndrinkwater!

Sskanx 2013-01-26 github

Updated the issue's title, since I have the same problem with CS:

[skanx@po-sr-nm Half-Life]$ LD_LIBRARY_PATH=$LD_LIBRARY_PATH:. ./hl_linux -game cstrike -sw
Using breakpad crash handler
Setting breakpad minidump AppID = 10
Forcing breakpad minidump interfaces to load
Looking up breakpad interfaces from steamclient
Calling BreakpadMiniDumpSystemInit
Looking up breakpad interfaces from steamclient
Calling BreakpadMiniDumpSystemInit
Steam_SetMinidumpSteamID:  Caching Steam ID:  76561197970548196 [API loaded yes]
Steam_SetMinidumpSteamID:  Setting Steam ID:  76561197970548196
ARB Multitexture extensions found.

4 texture units.  Detail texture supported.

[0126/135229:ERROR:resource_bundle.cc(411)] Failed to load /home/skanx/Steam/SteamApps/common/Half-Life/cef_gtk.pak
Some features may not be available.
[0126/135229:WARNING:proxy_service.cc(646)] PAC support disabled because there is no system implementation
Platform config directory: platform/config
0:Initializing platform...
Segmentation fault
?ghost 2013-01-27 github

I have the exact same issue. Fedora 18 64-bit on Intel graphics driver. Launching Half-Life:

Failed to load installscript /home/alex/.local/share/Steam/SteamApps/common/Half-Life/installscript.vdf
Game update: AppID 70 "Half-Life (Beta)", ProcID 13792, IP 0.0.0.0:0
ERROR: ld.so: object 'gameoverlayrenderer.so' from LD_PRELOAD cannot be preloaded: ignored.
ERROR: ld.so: object 'gameoverlayrenderer.so' from LD_PRELOAD cannot be preloaded: ignored.
ERROR: ld.so: object 'gameoverlayrenderer.so' from LD_PRELOAD cannot be preloaded: ignored.
Using breakpad crash handler
ERROR: ld.so: object 'gameoverlayrenderer.so' from LD_PRELOAD cannot be preloaded: ignored.
ERROR: ld.so: object 'gameoverlayrenderer.so' from LD_PRELOAD cannot be preloaded: ignored.
Setting breakpad minidump AppID = 70
Forcing breakpad minidump interfaces to load
Looking up breakpad interfaces from steamclient
Calling BreakpadMiniDumpSystemInit
Looking up breakpad interfaces from steamclient
Calling BreakpadMiniDumpSystemInit
Steam_SetMinidumpSteamID: Caching Steam ID: 76561198074396932 [API loaded yes]
Steam_SetMinidumpSteamID: Setting Steam ID: 76561198074396932
scandir failed:/home/alex/.local/share/Steam/SteamApps/common/Half-Life/platform/SAVE
ARB Multitexture extensions found.

8 texture units. Detail texture supported.

Installing breakpad exception handler for appid(gameoverlayui)/version(20130125215807_client)
Installing breakpad exception handler for appid(gameoverlayui)/version(1.0_client)
Installing breakpad exception handler for appid(gameoverlayui)/version(1.0_client)

(hl_linux:13795): Gtk-WARNING **: Unable to locate theme engine in module_path: "adwaita",
Gtk-Message: Failed to load module "pk-gtk-module"
Gtk-Message: Failed to load module "canberra-gtk-module"
[0127/142431:ERROR:resource_bundle.cc(411)] Failed to load /home/alex/.local/share/Steam/SteamApps/common/Half-Life/cef_gtk.pak
Some features may not be available.
[0127/142431:WARNING:proxy_service.cc(646)] PAC support disabled because there is no system implementation

(gameoverlayui:13798): Gtk-WARNING **: Unable to locate theme engine in module_path: "adwaita",
Gtk-Message: Failed to load module "pk-gtk-module"
Gtk-Message: Failed to load module "canberra-gtk-module"
Platform config directory: platform/config
Installing breakpad exception handler for appid(gameoverlayui)/version(1.0_client)
0:Initializing platform...
[0127/142431:WARNING:proxy_service.cc(646)] PAC support disabled because there is no system implementation
/home/alex/.local/share/Steam/SteamApps/common/Half-Life/hl.sh: line 38: 13795 Segmentation fault (core dumped) ${DEBUGGER} "${GAMEROOT}"/${GAMEEXE} $@
Game removed: AppID 70 "Half-Life (Beta)", ProcID 13795
saving roaming config store to 'sharedconfig.vdf'
roaming config store 2 saved successfully

Wwpoely86 2013-01-27 github

Exactly the same issue, Fedora 18 with a radeon r620 (galluim3d driver)

?ghost 2013-01-28 github

I have fixed this on my machine. It's Fedoras SELinux blocking hl_linux from using execheap with writable and readable memory. You have to add an exception policy just like SELinux tells you to.

Valve developers needs to stop using insecure API's i guess. Or the Fedora devs need to add an exception to SELinux.

?ghost 2013-01-28 github

Game runs perfectly without any issues at all after fixing SELinux.

Sskanx 2013-01-28 github

I confirm that this bug is due to selinux blocking execheap.
Here is the output from sealert: https://gist.github.com/4658406
Somehow auditd was not running on my system (upgraded from f17), and I did not catch the error...

Eeda-- 2013-01-28 github

Similiar problem here:

Failed to load installscript /home/eda/.local/share/Steam/SteamApps/common/Half-Life/installscript.vdf
Game update: AppID 10 "Counter-Strike (Beta)", ProcID 5965, IP 0.0.0.0:0
Using breakpad crash handler
dlopen failed trying to load:
/home/eda/.steam/sdk32/steamclient.so
with error:
/home/eda/.steam/sdk32/steamclient.so: cannot open shared object file: No such file or directory
[S_API FAIL] SteamAPI_Init() failed; Sys_LoadModule failed to load: /home/eda/.steam/sdk32/steamclient.so
[S_API FAIL] SteamAPI_Init() failed; unable to locate a running instance of Steam, or a local steamclient.dll.
Failed to initalize authentication interface. Exiting...

Segmentation fault
Game removed: AppID 10 "Counter-Strike (Beta)", ProcID 5965
saving roaming config store to 'sharedconfig.vdf'
roaming config store 2 saved successfully


System information:
Processor Information:
Vendor: GenuineIntel
Speed: 3601 Mhz
4 logical processors
4 physical processors
HyperThreading: Unsupported
FCMOV: Supported
SSE2: Supported
SSE3: Supported
SSSE3: Supported
SSE4a: Unsupported
SSE41: Supported
SSE42: Supported

Network Information:
Network Speed:

Operating System Version:
Debian GNU/Linux unstable (sid) (32 bit)
Kernel Name: Linux
Kernel Version: 3.2.0-4-686-pae
X Server vendor: The X.Org Foundation
X Server release: 11204000

Video Card:
Driver: NVIDIA Corporation GeForce GTX 650/PCIe/SSE2
Driver Version: 4.3.0 NVIDIA 310.19
Desktop Color Depth: 24 bits per pixel
Monitor Refresh Rate: 59 Hz
VendorID: 0x10de
DeviceID: 0xfc6
Number of Monitors: 1
Number of Logical Video Cards: 1
Primary Display Resolution: 1920 x 1200
Desktop Resolution: 1920 x 1200
Primary Display Size: 20.39" x 12.76" (24.02" diag)
51.8cm x 32.4cm (61.0cm diag)
Primary Bus: PCI Express 16x
Primary VRAM: 1024 MB
Supported MSAA Modes: 2x 4x 8x 16x

Sound card:
Audio device: VIA VT2020

Memory:
RAM: 16208 Mb

Miscellaneous:
UI Language: English
LANG: en_US.UTF-8
Microphone: Not set
Total Hard Disk Space Available: 196860 Mb
Largest Free Hard Disk Block: 1546 Mb

Installed software:

Recent Failure Reports:
Mon Jan 28 20:12:36 2013 GMT: file ''/tmp/dumps/assert_20130128211232_1.dmp'', upload yes: ''CrashID=bp-43edfed0-cc91-45b5-9831-219582130128''

Aalfred-valve maintainer 2013-01-28 github

eda, your steam client is too old, you need to update it before Half-Life or CS 1.6 will run correctly.

Eeda-- 2013-01-28 github

alfred-valve: sorry than, I'll try, thanks.

EDIT: new steam client solved my problem, thanks for help.

Aalfred-valve maintainer 2013-01-29 github

We have no plans to support SELinux at this time, the work around is to mark the app as allow (as describe above in this bug).

DLLs