protonscr

HL1 segfault on launch (f18-x86_64)

steamclosed reviewedMOVED: Half-Life 1
ValveSoftware/steam-for-linux#946 · opened 2013-01-26 by kaydeethree · updated 2019-07-18 · 8 comments · github
Kkaydeethree 2013-01-26 github

F18 x86_64 up-to-date (for real this time) - steam updated as of 5 minutes ago. Syslog says:

hl_linux[4582]: segfault at 8d32710 ip 0000000008d32710 sp 00000000fffa533c error 15

Please let me know what more info I can attach to help diagnose this.

Steam system info

Processor Information:
    Vendor:  GenuineIntel
    Speed: 3801 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:
    "Fedora release 18 (Spherical Cow)" (64 bit)
    Kernel Name:  Linux
    Kernel Version:  3.7.4-204.fc18.x86_64
    X Server vendor:  Fedora Project
    X Server release:  11301000

Video Card:
    Driver:  NVIDIA Corporation GeForce 8600 GT/PCIe/SSE2

    Driver Version:  3.3.0 NVIDIA 304.64
    Desktop Color Depth: 24 bits per pixel
    Monitor Refresh Rate: 60 Hz
    VendorID:  0x10de
    DeviceID:  0x402
    Number of Monitors:  2
    Number of Logical Video Cards:  2
    Primary Display Resolution:  1920 x 1080
    Desktop Resolution: 3840 x 1080
    Primary Display Size: 20.08" x 11.42"  (23.07" diag)
                                            51.0cm x 29.0cm  (58.6cm diag)
    Primary Bus: PCI Express 16x
    Primary VRAM: 256 MB
    Supported MSAA Modes:  2x 4x 8x 16x 

Sound card:
    Audio device: VIA VT2020

Memory:
    RAM:  16008 Mb

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

Installed software:

Recent Failure Reports:

?ghost 2013-01-27 github

I had similar problem (also f18-64x) and it was selinux related.

After the crash, try (as root):

grep steam /var/log/audit/audit.log | audit2allow -M mypol
semodule -i mypol.pp

and restart steam.

Now it works for me without any problems.

Iinstabilis 2013-01-27 github

Oddly I'm also running F18 x86_64, and haven't had this problem with Half-Life 1

Kkaydeethree 2013-01-27 github

Ah, SELinux. Why didn't I think of that? hl_linux wants an executable heap, which is denied by default. From the audit.log

type=AVC msg=audit(1359244146.352:92): avc: denied { execheap } for pid=2354 comm="hl_linux" scontext=unconfined_u:unconfined_r:unconfined_t:s0-s0:c0.c1023 tcontext=unconfined_u:unconfined_r:unconfined_t:s0-s0:c0.c1023 tclass=process

Rather than creating my own policy, the command setsebool selinuxuser_execheap true will work, though this is ill-advised for security purposes.

Ggdrewb-valve maintainer 2013-01-29 github

Just for information, supposedly the Miles audio support has a JIT. The Steam overlay hosts WebKit which can JIT for JavaScript. HL1, Source and other Valve code does not do any jitting.

Jjohndrinkwater 2013-01-29 github

While looking at this to persuade the selinux maintainers to not mark it as wontfix, I see half‐life/goldsrc has its own libcef & libMiles which it loads without the overlay enabled; I assume both can JIT, or am I wrong there?

Ggdrewb-valve maintainer 2013-01-29 github

Yes, both of those can JIT. WebKit (in CEF) won't JIT unless it's running JavaScript for web pages so it's not an issue until the overlay is opened and web browsing occurs. Miles can JIT as soon as audio is used, so it's the more likely culprit.

Iinstabilis 2013-01-29 github

I'm not sure if this is related, but does Miles handle the main menu music in Team Fortress 2?

For me SELinux would alert about hl2_linux "preventing hl2_linux from using the execheap access on a process" and ask if I think hl2_linux "should need to map heap memory that is both writable and executable", when starting up TF2. However the game would load up and be playable with all sound effects.

After allowing hl2_linux to do execheap access the only noticeable difference was that there was now music playing on the main menu screen.

Aalfred-valve maintainer 2013-01-29 github

Closing out as this is a SELinux config issue, not something we will address in the game at this time.

Nothing extracted yet.