Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Steam segfaults when "remember my password" is checked #3415

Open
Shished opened this issue Jul 28, 2014 · 50 comments
Open

Steam segfaults when "remember my password" is checked #3415

Shished opened this issue Jul 28, 2014 · 50 comments

Comments

@Shished
Copy link

Shished commented Jul 28, 2014

Uploading dump (out-of-process) [proxy ''] /tmp/dumps/assert_20140728135302_1.dmp /home/yuri/.local/share/Steam/steam.sh: line 730: 21801 Segmentation fault $STEAM_DEBUGGER "$STEAMROOT/$STEAMEXEPATH" "$@"

PC specs and crash dumps:
https://gist.github.com/Shished/73b218d1f55ee72dd0a5

@gdrewb-valve
Copy link
Contributor

Valve note: crashdumps show

Assert( Assertion Failed: Error while parsing text KeyValues for resource /home/yuri/.local/share/Steam/steamapps/appmanifest_17390.acf ):KeyValues.cpp:2521

called as part of reading app state for PopulateInstalledAppsFromDisk.

@Shished
Copy link
Author

Shished commented Jul 28, 2014

Is this related? I have this message in stable Steam which is working.
28.07.2014 22:57 пользователь "Drew Bliss" [email protected]
написал:

Valve note: crashdumps show

Assert( Assertion Failed: Error while parsing text KeyValues for resource
/home/yuri/.local/share/Steam/steamapps/appmanifest_17390.acf
):KeyValues.cpp:2521

called as part of reading app state for PopulateInstalledAppsFromDisk.


Reply to this email directly or view it on GitHub
#3415 (comment)
.

@Shished
Copy link
Author

Shished commented Jul 29, 2014

I removed listed appmanifest files and Steam stopped creating new crash dumps.
Steam beta still crashes, updated crash dump: CrashID=bp-e839cb42-8de9-404d-8212-9d48f2140729

@gdrewb-valve
Copy link
Contributor

There are multiple problems. Your latest crash dump is for /home/yuri/.local/share/Steam/steamapps/appmanifest_217200.acf.

@Shished
Copy link
Author

Shished commented Jul 29, 2014

There was 4 or so problematic files. According to steamdb.info, they was related to games that has no linux versions. So i removed them all and Steam stopped complaining.

It seems that steam doesn't uploads needed crash dump. There is only assert_20140729211230_1.dmp, uploaded dumps should be named "crash_*.dmp" and system info shows no crashes.
How can i send this crash dump?

@gdrewb-valve
Copy link
Contributor

That means Steam isn't catching the crash so no crash dump was produced. This can happen when the crash is in non-Steam code and it definitely makes it more difficult to track down the issue. Are you familiar at all with gdb? You can run 'DEBUGGER=gdb steam.sh' from the Steam binary directory to run the Steam client under gdb and it may catch the segfault, then you can 'bt' to get a stack and that may give an idea of where the segfault is.

@Shished
Copy link
Author

Shished commented Jul 29, 2014

Program received signal SIGSEGV, Segmentation fault.
[Switching to Thread 0xee654b40 (LWP 10772)]
0xf0861046 in dbus_connection_ref ()
   from /home/yuri/.local/share/Steam/ubuntu12_32/steam-runtime/i386/lib/i386-linux-gnu/libdbus-1.so.3
(gdb) bt
#0  0xf0861046 in dbus_connection_ref ()
   from /home/yuri/.local/share/Steam/ubuntu12_32/steam-runtime/i386/lib/i386-linux-gnu/libdbus-1.so.3
#1  0xefea7275 in dbus_g_connection_ref ()
   from /home/yuri/.local/share/Steam/ubuntu12_32/steam-runtime/i386/usr/lib/i386-linux-gnu/libdbus-glib-1.so.2
#2  0xefe71670 in ?? ()
   from /home/yuri/.local/share/Steam/ubuntu12_32/steam-runtime/i386/usr/lib/libnm-glib.so.4
#3  0xf4caf683 in ?? ()
   from /home/yuri/.local/share/Steam/ubuntu12_32/steam-runtime/i386/usr/lib/i386-linux-gnu/libgobject-2.0.so.0
#4  0xefe717a0 in ?? ()
   from /home/yuri/.local/share/Steam/ubuntu12_32/steam-runtime/i386/usr/lib/libnm-glib.so.4
#5  0xefe74294 in ?? ()
   from /home/yuri/.local/share/Steam/ubuntu12_32/steam-runtime/i386/usr/lib/libnm-glib.so.4
#6  0xf4cb0cf9 in g_object_newv ()
   from /home/yuri/.local/share/Steam/ubuntu12_32/steam-runtime/i386/usr/lib/i386-linux-gnu/libgobject-2.0.so.0
#7  0xf4cb1543 in g_object_new_valist ()
   from /home/yuri/.local/share/Steam/ubuntu12_32/steam-runtime/i386/usr/lib/i38---Type <return> to continue, or q <return> to quit---
6-linux-gnu/libgobject-2.0.so.0
#8  0xf4cb17a0 in g_object_new ()
   from /home/yuri/.local/share/Steam/ubuntu12_32/steam-runtime/i386/usr/lib/i386-linux-gnu/libgobject-2.0.so.0
#9  0xeeff8ed1 in ?? ()
   from /home/yuri/.local/share/Steam/ubuntu12_32/steamclient.so
#10 0xeef7b1ef in ?? ()
   from /home/yuri/.local/share/Steam/ubuntu12_32/steamclient.so
#11 0xef04bcc1 in ?? ()
   from /home/yuri/.local/share/Steam/ubuntu12_32/steamclient.so
#12 0xeec68a49 in ?? ()
   from /home/yuri/.local/share/Steam/ubuntu12_32/steamclient.so
#13 0xef04ad5e in ?? ()
   from /home/yuri/.local/share/Steam/ubuntu12_32/steamclient.so
#14 0xeec683d3 in ?? ()
   from /home/yuri/.local/share/Steam/ubuntu12_32/steamclient.so
#15 0xeec6b77b in ?? ()
   from /home/yuri/.local/share/Steam/ubuntu12_32/steamclient.so
#16 0xeec6c398 in ?? ()
   from /home/yuri/.local/share/Steam/ubuntu12_32/steamclient.so
#17 0xf0ef280a in SteamThreadTools::CThread::ThreadExceptionWrapper(void*) ()
   from /home/yuri/.local/share/Steam/ubuntu12_32/libtier0_s.so
#18 0xf0ef0f85 in ?? ()
---Type <return> to continue, or q <return> to quit---
   from /home/yuri/.local/share/Steam/ubuntu12_32/libtier0_s.so
#19 0xf0ef11c3 in CatchAndWriteMiniDumpExForVoidPtrFn ()
   from /home/yuri/.local/share/Steam/ubuntu12_32/libtier0_s.so
#20 0xf0ef1215 in CatchAndWriteMiniDumpForVoidPtrFn ()
   from /home/yuri/.local/share/Steam/ubuntu12_32/libtier0_s.so
#21 0xf0ef46f7 in SteamThreadTools::CThread::ThreadProc(void*) ()
   from /home/yuri/.local/share/Steam/ubuntu12_32/libtier0_s.so
#22 0xf7d1007a in start_thread () from /lib/libpthread.so.0
#23 0xf7c4680e in clone () from /lib/libc.so.6

I renamed /home/yuri/.local/share/Steam/ubuntu12_32/steam-runtime/i386/lib/i386-linux-gnu/libdbus-1.so.3 so steam wont use it and restarted Steam. After that Steam launched without errors.

@gdrewb-valve
Copy link
Contributor

You may have found a Steam runtime incompatibility. Thank you for the information, we'll have to investigate further here.

@Shished
Copy link
Author

Shished commented Jul 29, 2014

Need to move this bug to https://github.com/ValveSoftware/steam-runtime

@gdrewb-valve
Copy link
Contributor

We'll just keep this entry for the moment. It might move as the investigation progresses.

@Plagman
Copy link
Member

Plagman commented Jul 29, 2014

Hi Shished,

Thanks for the report; can you restore the libdbus from the runtime in order to reproduce the crash, and capture the output of /proc/nn/smaps where nn is the PID of the main steam instance?

Thanks,

  • Pierre-Loup

@Shished
Copy link
Author

Shished commented Jul 30, 2014

I launched DEBUGGER=gdb steam and got 2 Steam PIDs. Here is smaps files:
https://gist.github.com/Shished/59260941682be8178e20
https://gist.github.com/Shished/2d61a2214415c76647b2

@Shished
Copy link
Author

Shished commented Jul 31, 2014

Released update doesn't fixes this problem.

@cymerio
Copy link

cymerio commented Aug 14, 2014

Steam told me to update today and bam! got the same error.
Segfault on line 730, same backtrace, OS version, etc.

@Mikachu
Copy link

Mikachu commented Aug 14, 2014

Same here, got the crash in beta so rolled back to release version, and today I can no longer launch steam. I'm using gentoo (64-bit), same result with and without STEAM_RUNTIME set. Moving away the libdbus.so file only results in a different error message (libsteam.so failed to load). The windows version still works in wine.

Somewhat immediately before the crash I also get the following error:
PulseAudio connect failed (used only for Mic Volume Control) with error: Access denied
(which is expected since I don' t use PA)

@Mikachu
Copy link

Mikachu commented Aug 14, 2014

Is there any way to downgrade the steam client if you didn't back up the installation first?

@Plagman
Copy link
Member

Plagman commented Aug 14, 2014

The pulseaudio error should be benign, Steam should still start if pulseaudio is not running or disabled. We don't have a way to downgrade the Steam client, and even if you restored an older version it would most likely just update itself on startup. Do you get a crash dump when that happens?

@Cat-Ion
Copy link

Cat-Ion commented Aug 15, 2014

I'm getting the same crash, here's my dump: http://p.0au.de/9891754b/assert_20140815024415_1.dmp

If I can help you with gdb in any way, I'll be glad to do so.

@Mikachu
Copy link

Mikachu commented Aug 15, 2014

Yeah, and the backtrace is the same as the one previously posted.
/tmp/dumps/assert_20140815025541_1.dmp
Finished uploading minidump (out-of-process): success = yes
response: CrashID=bp-11904c45-f6c7-4ecd-bc3c-5a1642140814

@Mikachu
Copy link

Mikachu commented Aug 15, 2014

I commented out the dbus_connection_ref and unref functions and then get this,
** (steam:25054): WARNING **: constructor: bus connection and path required.

(steam:25054): GLib-GObject-CRITICAL **: g_object_unref: assertion 'G_IS_OBJECT (object)' failed

(steam:25054): GLib-GObject-CRITICAL **: g_object_unref: assertion 'G_IS_OBJECT (object)' failed

(steam:25054): GLib-GObject-CRITICAL **: g_object_unref: assertion 'G_IS_OBJECT (object)' failed

(steam:25054): GLib-GObject-CRITICAL **: Custom constructor for class NMClient returned NULL (which is invalid). Unable to remove object from construction_objects list, so memory was probably just leaked. Please use GInitable instead.

Which appears to be a non-fatal error. However after passing all this, it crashes in libudev instead:
Program received signal SIGSEGV, Segmentation fault.
0xef32f037 in ?? () from /opt/steam-runtime//usr/lib32/libudev.so.0
(gdb) Running Steam on gentoo 64-bit
STEAM_RUNTIME is disabled by the user
bt
#0 0xef32f037 in ?? () from /opt/steam-runtime//usr/lib32/libudev.so.0
#1 0xef32f1f4 in ?? () from /opt/steam-runtime//usr/lib32/libudev.so.0
#2 0xef32e99a in ?? () from /opt/steam-runtime//usr/lib32/libudev.so.0
#3 0xef32e9f9 in udev_set_log_priority () from /opt/steam-runtime//usr/lib32/libudev.so.0
#4 0xedfd9f49 in udev_new () from /lib32/libudev.so.1
#5 0xf044daeb in ?? () from Steam/ubuntu12_32/libSDL2-2.0.so.0
It's probably not a good thing that two different major versions of libudev got mapped there.

@Mikachu
Copy link

Mikachu commented Aug 16, 2014

I reinstalled steam today and it appears to work now.

@cymerio
Copy link

cymerio commented Aug 16, 2014

No, it doesn't work as it should.

If I execute:

  • steam --reset
  • steam

it appears to work. The Steam client loads and games work.

BUT the moment I change some setting, like for example when I click on Remember my password, then log in, then close Steam, the segfault comes again the next time Steam is ran.

So, the only way we can use Steam right now is by keeping all the default settings as they are. You can't even change the client language, or make it remember the password. The moment you change something and close the client, you can't start it again without doing the steps above.

@Mikachu
Copy link

Mikachu commented Aug 16, 2014

Yes, that is what I just found too. Exiting and starting again doesn't work, it only launches as part of the reinstall process.

@ChaosEngine
Copy link

I have very similiar erro on my Gentoo box. After update either on stable or beta I got this:
....local/share/Steam/steam.sh: line 730: 21801 Segmentation fault $STEAM_DEBUGGER "$STEAMROOT/$STEAMEXEPATH" "$@"
Fresh install does not help.

@cymerio
Copy link

cymerio commented Aug 22, 2014

After further experimenting, seems that the only setting that provokes the segfault is having "Remember my password" set.

If you log in without that setting active it let's you change every other setting without problems (language, etc), and let's you play any game.

So, as a workaround, just do "steam --reset && steam" on console, then everytime you log in remember NOT to check "Remember my password". It's an inconvenience, but let's you play normally for now.

@cymerio
Copy link

cymerio commented Aug 22, 2014

Yes, it's a different problem, but happened today when TF2 updated itself.
The problem with 'segfault on line 730' is identical to yours and started to happen when Steam last updated itself (8 days ago).

@koahv
Copy link

koahv commented Aug 22, 2014

This problem appears to exist only when 'Remember Password' is selected at login.

OS is hardened Gentoo 64.

@Shished
Copy link
Author

Shished commented Aug 22, 2014

Steam does not crashes for me when "Remember Password" is checked.
Do you opted in Beta branch? What gdb shows?

@koahv
Copy link

koahv commented Aug 22, 2014

Stable, though I tried beta without difference in error.

gdb shows :

Program received signal SIGSEGV, Segmentation fault.
[Switching to Thread 0xee946b40 (LWP 15662)]
0xf07db046 in dbus_connection_ref () from ~/.local/share/Steam/ubuntu12_32/steam-runtime/i386/lib/i386-linux-gnu/libdbus-1.so.3

@Shished
Copy link
Author

Shished commented Aug 22, 2014

Does it crashes after this library removed? Show the backtrace.

@koahv
Copy link

koahv commented Aug 22, 2014

Starting program: ~/.local/share/Steam/ubuntu12_32/steam 
warning: Could not load shared library symbols for linux-gate.so.1.
Do you need "set solib-search-path" or "set sysroot"?
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/lib64/libthread_db.so.1".
[2014-08-22 18:41:22] Startup - updater built Aug 13 2014 14:16:48
Installing breakpad exception handler for appid(steam)/version(1407966480_client)
Looks like steam didn't shutdown cleanly, scheduling immediate update check
[New Thread 0xf463bb40 (LWP 15719)]
Installing breakpad exception handler for appid(steam)/version(1407966480)
[2014-08-22 18:41:22] Checking for update on startup
[2014-08-22 18:41:22] Checking for available updates...
[New Thread 0xf43ffb40 (LWP 15720)]
Installing breakpad exception handler for appid(steam)/version(1407966480)
[2014-08-22 18:41:23] Download skipped: /client/steam_client_ubuntu12 version 1407966480, installed version 1407966480
[2014-08-22 18:41:23] Nothing to do
[2014-08-22 18:41:23] Verifying installation...
[2014-08-22 18:41:23] Performing checksum verification of executable files
[2014-08-22 18:41:23] Verification complete
Requested Force create but SharedObjectMutex already created
Forced create but already created for SharedObjectEvent
Forced create but already created for SharedObjectEvent
[0822/184124:WARNING:dns_config_service_posix.cc(292)] Failed to read DnsConfig.
Installing breakpad exception handler for appid(steamwebhelper)/version(20140813141634)
Installing breakpad exception handler for appid(steamwebhelper)/version(1407939394)
Installing breakpad exception handler for appid(steamwebhelper)/version(20140813141634)
Installing breakpad exception handler for appid(steamwebhelper)/version(1407939394)
Fontconfig error: "/etc/fonts/conf.d/10-scale-bitmap-fonts.conf", line 70: non-double matrix element
Fontconfig error: "/etc/fonts/conf.d/10-scale-bitmap-fonts.conf", line 70: non-double matrix element
Fontconfig warning: "/etc/fonts/conf.d/10-scale-bitmap-fonts.conf", line 78: saw unknown, expected number
[New Thread 0xee94fb40 (LWP 15741)]
Installing breakpad exception handler for appid(steam)/version(1407966480)
[New Thread 0xee6ffb40 (LWP 15742)]
Installing breakpad exception handler for appid(steam)/version(1407966480)
[New Thread 0xee3ffb40 (LWP 15743)]
Installing breakpad exception handler for appid(steam)/version(1407966480)
[New Thread 0xedf43b40 (LWP 15744)]
Installing breakpad exception handler for appid(steam)/version(1407966480)
[New Thread 0xedcffb40 (LWP 15745)]
[Thread 0xee6ffb40 (LWP 15742) exited]
[New Thread 0xee6ffb40 (LWP 15746)]
Installing breakpad exception handler for appid(steam)/version(1407966480)

Program received signal SIGSEGV, Segmentation fault.
[Switching to Thread 0xee94fb40 (LWP 15741)]
0xf08020a9 in ?? () from /usr/lib32/libdbus-1.so.3

@cymerio
Copy link

cymerio commented Aug 22, 2014

Playing TF2 seems to work now. I haven't done anything.

@Shished
Copy link
Author

Shished commented Aug 22, 2014

i found that my system libdbus-1.so.3 has version 3.8.2 while Steam-Runtime has version 3.5.8. For me Steam loads system lib without problems but your system probably has library with same version thatin the steam-runtime.

@koahv
Copy link

koahv commented Aug 22, 2014

According to /usr/lib I'm using libdbus-1.so.3.8.6

later I will try using this file in the Steam lib folder

@Tele42
Copy link

Tele42 commented Aug 25, 2014

On gentoo linux with the steam runtime disabled, I've hit the same assert in libudev upon plug/unplug of the ac adaptor.

/home/kisak/.local/share/Steam/steam.sh: line 730: 14733 Segmentation fault      $STEAM_DEBUGGER "$STEAMROOT/$STEAMEXEPATH" "$@"
Requested Force create but SharedObjectMutex already created
Forced create but already created for SharedObjectEvent
Forced create but already created for SharedObjectEvent
Finished uploading minidump (out-of-process): success = yes
response: CrashID=bp-8b644904-bade-4987-9e1c-c20cf2140825

Local minidump_stackwalk indicated an assert in libudev.
This system is running =sys-fs/eudev-1.9-r2 (gentoo-maintained udev fork without the systemd bits).

@ChaosEngine
Copy link

[SOLVED] I can confirm, that not saving password fixes solves the crash. However this is still unconvinient

@CommonOddity
Copy link

I can confirm this issue also affects Steam on OpenSuSE 13.1 32-bit. Leaving the 'remember my password' option unchecked circumvents the problem.

I will try and provide some GDB/kernel buffer jargon to help determine the root cause.

@gdrewb-valve gdrewb-valve changed the title Steam Beta segfaults on openSUSE 13.1 x86_64 Steam segfaults when "remember my password" is checked Nov 8, 2014
@ghost ghost mentioned this issue Apr 25, 2015
@fbt
Copy link

fbt commented Jun 12, 2015

This only happens for me if the system-wide dbus instance is not running.

@chriskringel
Copy link

"This only happens for me if the system-wide dbus instance is not running."

@fbt You nailed it, I guess! Happens here, too. Clean Ubuntu 14.04 install.

1.) Dbus is not running + 2.) checked "remember my password"
= crash until Steam reinstall or --reset

@dave-kennedy
Copy link

dave-kennedy commented Jun 18, 2016

The problem occurs on my machine even if the system-wide dbus instance is running when the option to remember password is selected.

dave@gentoo:~
$ pgrep -l dbus
2388 dbus-launch
2389 dbus-daemon
2994 dbus-daemon

dave@gentoo:~
$ sudo tail /var/log/messages
Jun 17 20:47:46 gentoo crash_20160617204745_1.dmp[2887]: Uploading dump (out-of-process) /tmp/dumps/crash_20160617204745_1.dmp
Jun 17 20:47:46 gentoo kernel: [  390.564268] CIPCServer::Thr[2875]: segfault at 88 ip 00000000f02c80b6 sp 00000000edfde7c0 error 4 in libdbus-1.so.3.5.8[f02bd000+47000]
Jun 17 20:47:47 gentoo crash_20160617204745_1.dmp[2887]: Finished uploading minidump (out-of-process): success = yes
Jun 17 20:47:47 gentoo crash_20160617204745_1.dmp[2887]: response: CrashID=bp-26959912-affa-4080-a82d-dc4ec2160617
Jun 17 20:47:47 gentoo crash_20160617204745_1.dmp[2887]: file ''/tmp/dumps/crash_20160617204745_1.dmp'', upload yes: ''CrashID=bp-26959912-affa-4080-a82d-dc4ec2160617''

dave@gentoo:~
$ uname -r
4.4.6-gentoo

@Ptolom
Copy link

Ptolom commented Jul 1, 2016

I am also having the issue with or without dbus running. I am also running Gentoo as it happens.

@l29ah
Copy link

l29ah commented Jul 2, 2016

Thank you guys, removing the shipped libdbus and starting the dbus daemon helped // Gentoo

@anko
Copy link

anko commented Feb 27, 2018

Confirming in Void Linux: enabling the dbus service fixes this.

Without the service running, this issue persists at time of writing.


Version information:

$ dbus-daemon --version
D-Bus Message Bus Daemon 1.12.2
Copyright (C) 2002, 2003 Red Hat, Inc., CodeFactory AB, and others
This is free software; see the source for copying conditions.
There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
$ uname --kernel-name --kernel-release --operating-system
Linux 4.14.22_1 GNU/Linux
$ lscpu | egrep '^(Architecture|Model name)'
Architecture:        x86_64
Model name:          AMD Ryzen 7 1800X Eight-Core Processor

SteamHelpAbout:
About Steam window

@mrAndersen

This comment has been minimized.

@kisak-valve

This comment has been minimized.

@mrAndersen

This comment has been minimized.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests