shkhln / linuxulator-steam-utils

Steam launcher for FreeBSD
MIT License
129 stars 13 forks source link

segfault on FreeBSD 13.1 current VM #104

Closed h0m3 closed 1 year ago

h0m3 commented 1 year ago

I'm having segfault trying to launch steam under FreeBSD 13.1 current.

Steps to run:

The extraction process started but once finished I end up with a segfault: https://pastebin.com/YW2Wgi8n

Everything installed through pkg except the repo.

shkhln commented 1 year ago
  • Setup linuxlator …
  • set 777 to /compat/linux/dev/shm
  • set steam user as owner of /compat/linux/dev/shm

It's generally better to use sysrc linux_enable=YES. (See https://github.com/freebsd/freebsd-src/blob/753d65a19a5541d532aff3cdd1089246fc5d2b8b/libexec/rc/rc.d/linux.)

process 22496: D-Bus library appears to be incorrectly set up; failed to read machine uuid: Failed to open "/etc/machine-id": No such file or directory

sudo mkdir -p /var/lib/dbus && sudo /usr/local/bin/dbus-uuidgen --ensure (taken from https://github.com/freebsd/freebsd-ports/blob/228fc41cc857ff8f497cd9b95666dc368386998e/devel/dbus/files/dbus.in#L24-L29). I should probably print this from the launch script. (Yes, Steam seems to be totally fine that specific machine-id path.)

Process 22496 failed to shm_open /u1002-ValveIPCSharedObj-Steam

Might have something to do with the mount order. Let's see if that issue persists with linux_enable=YES.

h0m3 commented 1 year ago
  • Setup linuxlator …
  • set 777 to /compat/linux/dev/shm
  • set steam user as owner of /compat/linux/dev/shm

It's generally better to use sysrc linux_enable=YES. (See https://github.com/freebsd/freebsd-src/blob/753d65a19a5541d532aff3cdd1089246fc5d2b8b/libexec/rc/rc.d/linux.)

process 22496: D-Bus library appears to be incorrectly set up; failed to read machine uuid: Failed to open "/etc/machine-id": No such file or directory

sudo mkdir -p /var/lib/dbus && sudo /usr/local/bin/dbus-uuidgen --ensure (taken from https://github.com/freebsd/freebsd-ports/blob/228fc41cc857ff8f497cd9b95666dc368386998e/devel/dbus/files/dbus.in#L24-L29). I should probably print this from the launch script. (Yes, Steam seems to be totally fine that specific machine-id path.)

Process 22496 failed to shm_open /u1002-ValveIPCSharedObj-Steam

Might have something to do with the mount order. Let's see if that issue persists with linux_enable=YES.

Spot on!

Manual mouting order was the issue. Commented on fstab and let linux_enable mount it by itself and steam opens.