View previous topic :: View next topic |
Author |
Message |
djdunn l33t
Joined: 26 Dec 2004 Posts: 810
|
Posted: Tue Jan 02, 2018 2:11 am Post subject: Borderlands 2 steam (fixed) |
|
|
getting this error in /var/log/messages
Code: | Jan 1 20:55:42 Iris kernel: traps: Borderlands2[14657] general protection ip:f782cfc0 sp:ffe177b8 error:0 in libc-2.26.so[f77f8000+1d9000] |
on ~amd64 with AMD cpu, AMD gpu with mesa drivers.
[Moderator edit: added [code] tags to preserve output layout. -Hu]
EDIT and fix: so the problem was with gcc-7.3 and bugs it had, things like the mstackrealign on glibc and others was a workaround, but upgrading and rebuilding with gcc-8 fixed all the bugs for me and everything works great, videos and all. _________________ “Music is a moral law. It gives a soul to the Universe, wings to the mind, flight to the imagination, a charm to sadness, gaiety and life to everything. It is the essence of order, and leads to all that is good and just and beautiful.”
― Plato
Last edited by djdunn on Sat Jun 23, 2018 12:11 am; edited 1 time in total |
|
Back to top |
|
|
Naib Watchman
Joined: 21 May 2004 Posts: 6051 Location: Removed by Neddy
|
Posted: Fri Jan 05, 2018 1:30 pm Post subject: |
|
|
probably downto libstd++ mismatch
have this set in your environment variables: STEAM_RUNTIME_PREFER_HOST_LIBRARIES=1 will force steam to prefer your system libs over the older steam libs _________________
Quote: | Removed by Chiitoo |
|
|
Back to top |
|
|
djdunn l33t
Joined: 26 Dec 2004 Posts: 810
|
Posted: Sun Jan 07, 2018 11:47 pm Post subject: |
|
|
CIPCServer::Thr[14561]: segfault at 1 ip 0000000000000001 sp 00000000e75feddc error 14 in steam[56588000+3f4000]
tried that and got this. _________________ “Music is a moral law. It gives a soul to the Universe, wings to the mind, flight to the imagination, a charm to sadness, gaiety and life to everything. It is the essence of order, and leads to all that is good and just and beautiful.”
― Plato |
|
Back to top |
|
|
Naib Watchman
Joined: 21 May 2004 Posts: 6051 Location: Removed by Neddy
|
Posted: Sun Jan 07, 2018 11:53 pm Post subject: |
|
|
ok, change the launch options (in steam) and add: SSL_CERT_DIR="/etc/ssl/certs" LD_PRELOAD='./libcxxrt.so:/usr/$LIB/libstdc++.so.6' %command% _________________
Quote: | Removed by Chiitoo |
|
|
Back to top |
|
|
djdunn l33t
Joined: 26 Dec 2004 Posts: 810
|
Posted: Mon Jan 08, 2018 1:15 am Post subject: |
|
|
Code: | Jan 7 20:14:24 Iris kernel: [10397.448894] traps: Borderlands2[14377] general protection ip:f7b85172 sp:ffc80b98 error:0 in libpthread-2.26.so[f7b78000+1c000] |
now this one.
[Moderator edit: added [code] tags to preserve output layout. -Hu] _________________ “Music is a moral law. It gives a soul to the Universe, wings to the mind, flight to the imagination, a charm to sadness, gaiety and life to everything. It is the essence of order, and leads to all that is good and just and beautiful.”
― Plato |
|
Back to top |
|
|
djdunn l33t
Joined: 26 Dec 2004 Posts: 810
|
Posted: Mon Jan 08, 2018 1:17 am Post subject: |
|
|
Code: | Jan 7 20:17:04 Iris kernel: [10556.789767] traps: Borderlands2[18405] general protection ip:f7303299 sp:ffcb2668 error:0 in libxcb.so.1.1.0[f72f8000+2a000] |
[Moderator edit: added [code] tags to preserve output layout. -Hu] _________________ “Music is a moral law. It gives a soul to the Universe, wings to the mind, flight to the imagination, a charm to sadness, gaiety and life to everything. It is the essence of order, and leads to all that is good and just and beautiful.”
― Plato |
|
Back to top |
|
|
PuckPoltergeist Apprentice
Joined: 28 Jul 2004 Posts: 189
|
Posted: Tue Mar 13, 2018 7:30 pm Post subject: |
|
|
I've had the same problem on my amdfam10 machine and after some search I found this: https://bugs.archlinux.org/task/54136
Stack alignment is the problem here too. I've identified the following packages need to be build with -mstackrealign:
Code: |
sys-libs/glibc
x11-libs/libxcb
media-libs/openal
media-sound/pulseaudio
|
Unfortunately for glibc this means hacking the eclass. But after recompiling the packages Borderlands2 works again for me. _________________ printk(KERN_CRIT "Whee.. Swapped out page in kernel page table\n");
linux-2.6.6/mm/vmalloc.c |
|
Back to top |
|
|
ziemia n00b
Joined: 21 Sep 2005 Posts: 58
|
Posted: Wed Mar 14, 2018 1:42 pm Post subject: |
|
|
I've had the same problem - amdfam10. For me it was enough to recompile with Code: | -march=opteron-sse3 |
|
|
Back to top |
|
|
mcraeaa n00b
Joined: 29 Aug 2007 Posts: 4
|
Posted: Thu Mar 22, 2018 1:59 am Post subject: |
|
|
Re-compiling the packages PuckPoltergeist mentioned also worked on my Ryzen machine. Thanks! |
|
Back to top |
|
|
djdunn l33t
Joined: 26 Dec 2004 Posts: 810
|
Posted: Sat Mar 31, 2018 4:57 am Post subject: |
|
|
i got it to work compiling only glibc with -mstackrealign _________________ “Music is a moral law. It gives a soul to the Universe, wings to the mind, flight to the imagination, a charm to sadness, gaiety and life to everything. It is the essence of order, and leads to all that is good and just and beautiful.”
― Plato |
|
Back to top |
|
|
Chiitoo Administrator
Joined: 28 Feb 2010 Posts: 2575 Location: Here and Away Again
|
Posted: Sat Mar 31, 2018 1:22 pm Post subject: |
|
|
At least Portal 2 seems to be affected by something similar, as I mentioned here: After profile switch 13.0-17.0 Wine apps stop working
Portal 2 would work just fine until certain audio clips are played (a character start speaking somewhere in the game level).
That's on an Athlon 7750 (amdfam10) stable amd64 testing machine.
On the other hand, I do /not/ see the issue on my main, Ryzen 1700 (znver1) unstable ~amd64 machine. _________________ Kindest of regardses. |
|
Back to top |
|
|
djdunn l33t
Joined: 26 Dec 2004 Posts: 810
|
Posted: Sat Jun 23, 2018 12:10 am Post subject: |
|
|
had to upgrade and rebuild things with gcc-8 to get the bugs ironed out.
likely the bugs with like gcc-7.3 that got fixed in gcc-8
no mstackrealign on glibc or anything else either. _________________ “Music is a moral law. It gives a soul to the Universe, wings to the mind, flight to the imagination, a charm to sadness, gaiety and life to everything. It is the essence of order, and leads to all that is good and just and beautiful.”
― Plato |
|
Back to top |
|
|
The Main Man Veteran
Joined: 27 Nov 2014 Posts: 1166 Location: /run/user/1000
|
Posted: Thu Feb 07, 2019 1:20 pm Post subject: |
|
|
Doesn't launch here, gcc 8.2.0 , znver1
Other games are working fine.
Any clue?
Code: | traps: Borderlands2[25711] general protection fault ip:f7427845 sp:ffbc81a8 error:0 in libxcb.so.1.1.0[f741c000+2c000] |
Edit:
Never mind, found the solution here, if someone needs it in the future here it is:
https://www.gamersonlinux.com/forum/threads/steam-on-non-ubuntu-64bit.2404/ |
|
Back to top |
|
|
Naib Watchman
Joined: 21 May 2004 Posts: 6051 Location: Removed by Neddy
|
Posted: Sat Mar 30, 2019 9:43 am Post subject: |
|
|
old topic but I wanted to restart BL2 and running into this now
gcc-8.3 I have done the recompiling of libxcb but I am facing
Quote: | [ 4618.086849] traps: Borderlands2[15374] general protection fault ip:f7b3d287 sp:ff8bc5d8 error:0 in libpthread-2.28.so[f7b2f000+1e000] |
_________________
Quote: | Removed by Chiitoo |
|
|
Back to top |
|
|
The Main Man Veteran
Joined: 27 Nov 2014 Posts: 1166 Location: /run/user/1000
|
Posted: Sat Mar 30, 2019 3:18 pm Post subject: |
|
|
Old topic but still actual, once I solved the error I had with libxcb.so I was greeted with that libpthread.so error next
Both are solvable with CFLAGS, at least the first one surely is because I tried it, but I didn't wanna mess with glibc and some other libs to solve the second one
I get that error with Kotor2 as well, I just decided not to play those games for now.
In my case altering CFLAGS for glibc wasn't enough. |
|
Back to top |
|
|
Naib Watchman
Joined: 21 May 2004 Posts: 6051 Location: Removed by Neddy
|
Posted: Sat Mar 30, 2019 8:10 pm Post subject: |
|
|
I fixed this by disabling "prefer client libraries" looks like the issue is sort of still there but the steam runtimes are now isolated enough _________________
Quote: | Removed by Chiitoo |
|
|
Back to top |
|
|
Wadlax n00b
Joined: 12 Jan 2008 Posts: 9
|
Posted: Sun Apr 21, 2019 4:16 pm Post subject: |
|
|
Found a simple solution from Gentoo Wiki:
( https://wiki.gentoo.org/wiki/Steam/Games_troubleshooting#Borderlands_2_and_Borderlands:_The_Pre-Sequel )
"try adding -nostartupmovies to the launch options"
So, my current launch options is
Code: | SSL_CERT_DIR="/etc/ssl/certs" %command% -nostartupmovies |
I had an error:
"Borderlands2 general protection fault ip: sp: error:0 in libxcb.so.1.1.0"
and then
"Borderlands2 general protection fault ip: sp: error:0 in libpthread-2.28.so" |
|
Back to top |
|
|
The Main Man Veteran
Joined: 27 Nov 2014 Posts: 1166 Location: /run/user/1000
|
Posted: Mon Apr 22, 2019 10:43 am Post subject: |
|
|
I have the same error but that didn't help.
Maybe video card matters will that help or not, I'm using amdgpu driver |
|
Back to top |
|
|
Wadlax n00b
Joined: 12 Jan 2008 Posts: 9
|
Posted: Fri Apr 26, 2019 2:21 pm Post subject: |
|
|
I use radeonsi
For now i have such changes:
1) In steam - launch options
Code: | SSL_CERT_DIR="/etc/ssl/certs" %command% -nostartupmovies |
2) In /etc/portage/env/x11-libs/libxcb and in /etc/portage/env/sys-libs/glibc
Code: | CFLAGS="-O1 -march=native -pipe"
CXXFLAGS="${CFLAGS}" |
Recompiled these packages of course.
3) Edited willowengine.ini , as mentioned in wiki.
.
First i have added only 2) step - game failed to start with msg
"Borderlands2 general protection fault ip: sp: error:0 in libpthread-2.28.so"
.
May be you should try these step from wiki
"Another solution is to recompile x11-libs/libxcb with -O1, media-sound/pulseaudio with -O1 and without -march and sys-libs/glibc without -march." |
|
Back to top |
|
|
harrymnd n00b
Joined: 06 Jan 2019 Posts: 2
|
Posted: Tue May 14, 2019 3:34 am Post subject: |
|
|
Wadlax wrote: | I use radeonsi
For now i have such changes:
1) In steam - launch options
Code: | SSL_CERT_DIR="/etc/ssl/certs" %command% -nostartupmovies |
2) In /etc/portage/env/x11-libs/libxcb and in /etc/portage/env/sys-libs/glibc
Code: | CFLAGS="-O1 -march=native -pipe"
CXXFLAGS="${CFLAGS}" |
Recompiled these packages of course.
3) Edited willowengine.ini , as mentioned in wiki.
.
First i have added only 2) step - game failed to start with msg
"Borderlands2 general protection fault ip: sp: error:0 in libpthread-2.28.so"
.
May be you should try these step from wiki
"Another solution is to recompile x11-libs/libxcb with -O1, media-sound/pulseaudio with -O1 and without -march and sys-libs/glibc without -march." |
Thanks it works on my problem after updating / fixing my vidcard gtx issue. |
|
Back to top |
|
|
Wadlax n00b
Joined: 12 Jan 2008 Posts: 9
|
Posted: Thu May 16, 2019 10:46 am Post subject: |
|
|
And for me - game segfaults now
Borderlands2[]: segfault at d ip ... sp ... error 4 in Borderlands2[]
Anyways - playing other games now. |
|
Back to top |
|
|
lordoftheworld n00b
Joined: 16 Jun 2004 Posts: 19
|
Posted: Sat May 18, 2019 10:45 am Post subject: |
|
|
Seeing the same error for Civ Beyond Earth, which was getting either a libxcb or libpthread error in dmesg for me. Recompiling libxcb, glibc, openal, pulseaudio with -mstackrealign like @PuckPoltergeist said worked for me on znver1, gcc-8, and glibc-2.29.
edit: looking some more about this, it seems like a few other packages might need -mstackrealign: https://bugs.archlinux.org/task/27560 and even having it on by default might not be a bad thing if you need to run things compiled by older versions of gcc: https://gcc.gnu.org/bugzilla/show_bug.cgi?id=40838 |
|
Back to top |
|
|
The Main Man Veteran
Joined: 27 Nov 2014 Posts: 1166 Location: /run/user/1000
|
Posted: Mon Jun 03, 2019 11:43 am Post subject: |
|
|
Decided to try again and this worked for me:
/etc/portage/env/x11-libs/libxcb
Code: | CFLAGS="-O1 -march=native -pipe"
CXXFLAGS="${CFLAGS}" |
/etc/portage/env/sys-libs/glibc
Code: | CFLAGS="-O2 -pipe"
CXXFLAGS="${CFLAGS}" |
Kotor2 is working with this as well, I guess some other games with this problem would work too. |
|
Back to top |
|
|
Makersmarx n00b
Joined: 16 Feb 2019 Posts: 57 Location: Costa Rica
|
Posted: Fri Jun 21, 2019 1:01 pm Post subject: |
|
|
Couldn't get game to run found below line to add on Arch forums to launch options in game. Worked right off the bat without any other changes. Hopefully works for others
Add to launch options in Steam: SSL_CERT_DIR="/etc/ssl/certs" LD_PRELOAD='./libcxxrt.so:/usr/$LIB/libstdc++.so.6' %command% -nostartupmovies
Edit: Words _________________ Pura Vida |
|
Back to top |
|
|
davydm n00b
Joined: 06 Jan 2017 Posts: 73
|
Posted: Sun Jun 30, 2019 6:08 pm Post subject: libopenal too |
|
|
I just had this issue where the segfault was happening in libopenal.so.1.19.1
I did:
Code: |
CFLAGS="-mstackrealign" CXXFLAGS="$CFLAGS" emerge -1 media-libs/openal
|
and the game worked as expected. However, I didn't really want to replace my system openal to do this, and I found that Borderlands2 will try to load from it's own folder first -- copying /usr/lib/libopenal.so.1.19.1 to {steamapps}/common/Borderlands\ 2/ andthen also symlinking as libopenal.so.1:
Code: |
ln -s libopenal.so.1.19.1 libopenal.so.1
|
and re-merging media-libs/openal with no override for CFLAGS or CXXFLAGS
Code: |
emerge -1 media-libx/openal
|
the game still loads up fine (so I assume it's using a local libopenal)
just thought I'd add here in case anyone hit this (and perhaps anyone who has recompiled system libs would prefer to not have a requirement of one game determine compilation of a system lib)[/code] |
|
Back to top |
|
|
|