bz crashes with Segmentation fault
-
- Private First Class
- Posts: 122
- Joined: Sat May 10, 2008 9:38 pm
bz crashes with Segmentation fault
2.4 was working fine on opensuse 11.4
upgraded opensuse to 12.1 and now bz 2.4 crashes with a Segmentation fault.
I tried renaming ~/.bzf and restarted bz. Bz started, but when I choose to populate the server list, it crashed again. Now it just crashes immediately after starting.
tried debug, but it doesn't appear to list anything other than Segmentation fault
steve@cyberhome:~> bzflag -ddd
ContextInitializer::executeFreeFuncs() start
ContextInitializer::executeFreeFuncs() end
ContextInitializer::executeInitFuncs() start
ContextInitializer::executeInitFuncs() end
ContextInitializer::executeFreeFuncs() start
ContextInitializer::executeFreeFuncs() end
ContextInitializer::executeInitFuncs() start
ContextInitializer::executeInitFuncs() end
Texture noise already exists, overwriting
Image not found or unloadable: mountain6
Texture noise already exists, overwriting
Octree scene nodes = 1
grid extent[0] = -10.000000, 10.000000
grid extent[1] = 0.000000, 20.000000
grid extent[2] = 0.000000, 20.000000
visual extent[0] = -10.000000, 10.000000
visual extent[1] = 10.000000, 10.000000
visual extent[2] = 0.000000, 10.000000
Octree leaf nodes = 1
Octree total nodes = 1
Octree total elements = 1
SceneNode Octree processed in 0.000 seconds.
Texture noise already exists, overwriting
Image not found or unloadable: explode3
BZFlag version: 2.4.0.20111030-STABLE-linux-gnu-SDL
BZFlag protocol: 0221
OpenGL vendor: NVIDIA Corporation
OpenGL version: 3.3.0 NVIDIA 285.05.09
OpenGL renderer: GeForce 210/PCI/SSE2
Depth Buffer: 24 bitplanes
LIBCURL version: libcurl/7.22.0 OpenSSL/1.0.0e zlib/1.2.5 c-ares/1.7.5 libidn/1.22 libssh2/1.2.9
CURLOPT_URL is : http://bzflag.org/motd.php
ServerListFilter <''>
ServerListFilter <''>
CURLOPT_URL is : http://my.BZFlag.org/db/
Segmentation fault
steve@cyberhome:~> bzflag -v
BZFlag client 2.4.0.20111030-STABLE-linux-gnu-SDL (protocol 0221) http://BZFlag.org/
Copyright (c) 1993-2011 Tim Riker
Any ideas or is this a sign to finally (after 10+ yrs) break my bz addiction?
TIA
Defman
upgraded opensuse to 12.1 and now bz 2.4 crashes with a Segmentation fault.
I tried renaming ~/.bzf and restarted bz. Bz started, but when I choose to populate the server list, it crashed again. Now it just crashes immediately after starting.
tried debug, but it doesn't appear to list anything other than Segmentation fault
steve@cyberhome:~> bzflag -ddd
ContextInitializer::executeFreeFuncs() start
ContextInitializer::executeFreeFuncs() end
ContextInitializer::executeInitFuncs() start
ContextInitializer::executeInitFuncs() end
ContextInitializer::executeFreeFuncs() start
ContextInitializer::executeFreeFuncs() end
ContextInitializer::executeInitFuncs() start
ContextInitializer::executeInitFuncs() end
Texture noise already exists, overwriting
Image not found or unloadable: mountain6
Texture noise already exists, overwriting
Octree scene nodes = 1
grid extent[0] = -10.000000, 10.000000
grid extent[1] = 0.000000, 20.000000
grid extent[2] = 0.000000, 20.000000
visual extent[0] = -10.000000, 10.000000
visual extent[1] = 10.000000, 10.000000
visual extent[2] = 0.000000, 10.000000
Octree leaf nodes = 1
Octree total nodes = 1
Octree total elements = 1
SceneNode Octree processed in 0.000 seconds.
Texture noise already exists, overwriting
Image not found or unloadable: explode3
BZFlag version: 2.4.0.20111030-STABLE-linux-gnu-SDL
BZFlag protocol: 0221
OpenGL vendor: NVIDIA Corporation
OpenGL version: 3.3.0 NVIDIA 285.05.09
OpenGL renderer: GeForce 210/PCI/SSE2
Depth Buffer: 24 bitplanes
LIBCURL version: libcurl/7.22.0 OpenSSL/1.0.0e zlib/1.2.5 c-ares/1.7.5 libidn/1.22 libssh2/1.2.9
CURLOPT_URL is : http://bzflag.org/motd.php
ServerListFilter <''>
ServerListFilter <''>
CURLOPT_URL is : http://my.BZFlag.org/db/
Segmentation fault
steve@cyberhome:~> bzflag -v
BZFlag client 2.4.0.20111030-STABLE-linux-gnu-SDL (protocol 0221) http://BZFlag.org/
Copyright (c) 1993-2011 Tim Riker
Any ideas or is this a sign to finally (after 10+ yrs) break my bz addiction?
TIA
Defman
Re: bz crashes with Segmentation fault
You'd have to build a debug version of the game (by passing --enable-debug to ./configure) and run it within gdb, and then do a 'bt' when it crashes.
- Grans Remedy
- Private First Class
- Posts: 91
- Joined: Sun Dec 05, 2004 10:47 pm
- Location: New Zealand
Re: bz crashes with Segmentation fault
Well I'm still on OpenSuse 11.4, but I have heard of a few issues with the new version of the xorg-x11 server and video drivers in 12.1. Some users experiencing graphics weirdness, which was resolved when they down-graded to the version used in 11.4.
Maybe that's worth a shot?
I assume you've looked into downgrading the Nvidia driver to see if that has any effect?
Grans
Maybe that's worth a shot?
I assume you've looked into downgrading the Nvidia driver to see if that has any effect?
Grans
No coffee, no workee
-
- Private First Class
- Posts: 122
- Joined: Sat May 10, 2008 9:38 pm
Re: bz crashes with Segmentation fault
Burned multiple 12.1 dvd/cd's and multiple failed installation attempts,and I finally realized it all had to do with their failed attempt (again) at creating their own, non-proprietary nvidia 3d driver!
installed the proprietary driver (the "easy" way thru one-click install), and 12.1 finally came to life. Haven't checked to see if it installed the older version though.
Don't know if it's needed, but I also blacklisted the nouveau driver. Seems there was something else that had to be done in 11.4 besides the blacklisting but it escapes me now.
I also had to revert back to using an xorg.conf file just to be able to use 1280x1024 resolution - I copied that file from a previous opensuse 11.3 install so maybe there's something odd in there. I've attached that file if it helps.
If there's another way to enable that resolution without using an xorg.conf file I couldn't find it. With my setup, I've figured out it has to do with opensuse not being able to correctly id my cornea mp703 monitor and then list the correct horizsync and vertrefresh numbers, so the xorg.conf file provides the correct hori/vert "refresh" (?) rates as well as list the preferred 1280x1024 resolution.
I searched but didn't find any references to others having trouble in 12.1, then again it comes down on the search term/s used. But with your suggestion Grans, this leads me to believe there could be something screwed up with the video driver setup.
Last time I checked (back when I used some form of Mandrake) I knew something like just 3% of the available linux commands - so I'll stumble thru Blast's suggestion, build it with debug - but the rest of that is greek to me - "and run it within gdb, and then do a 'bt' when it crashes"?
Heck, I'm just happy to be able to get linux working with a gui!
I'll go download 2.4 and build it with the debug option, will be back later if I can't figure out the gdb and bt things.
BTW, this install of bz 2.4 was done using yast. I'll build this next attempt and leave it in my home directory and run it from there.
installed the proprietary driver (the "easy" way thru one-click install), and 12.1 finally came to life. Haven't checked to see if it installed the older version though.
Don't know if it's needed, but I also blacklisted the nouveau driver. Seems there was something else that had to be done in 11.4 besides the blacklisting but it escapes me now.
I also had to revert back to using an xorg.conf file just to be able to use 1280x1024 resolution - I copied that file from a previous opensuse 11.3 install so maybe there's something odd in there. I've attached that file if it helps.
If there's another way to enable that resolution without using an xorg.conf file I couldn't find it. With my setup, I've figured out it has to do with opensuse not being able to correctly id my cornea mp703 monitor and then list the correct horizsync and vertrefresh numbers, so the xorg.conf file provides the correct hori/vert "refresh" (?) rates as well as list the preferred 1280x1024 resolution.
I searched but didn't find any references to others having trouble in 12.1, then again it comes down on the search term/s used. But with your suggestion Grans, this leads me to believe there could be something screwed up with the video driver setup.
Last time I checked (back when I used some form of Mandrake) I knew something like just 3% of the available linux commands - so I'll stumble thru Blast's suggestion, build it with debug - but the rest of that is greek to me - "and run it within gdb, and then do a 'bt' when it crashes"?
Heck, I'm just happy to be able to get linux working with a gui!
I'll go download 2.4 and build it with the debug option, will be back later if I can't figure out the gdb and bt things.
BTW, this install of bz 2.4 was done using yast. I'll build this next attempt and leave it in my home directory and run it from there.
-
- Private First Class
- Posts: 122
- Joined: Sat May 10, 2008 9:38 pm
Re: bz crashes with Segmentation fault
configure isn't working out so well, ends up with no bz client avail.
Build ares ........: yes
Build curl ........: yes
Build glew ........: no (clients disabled)
Build regex .......: yes
Build zlib ........: yes
BZFlag client .....: no bzflag client binary! (need OpenGL)
BZFlag server .....: yes (with plugins)
BZAdmin client ....: yes
opengl is installed - glxinfo indicates
steve@cyberhome:~/bzflag/bzflag-2.4.0> glxinfo
name of display: :0
display: :0 screen: 0
direct rendering: Yes
server glx vendor string: NVIDIA Corporation
server glx version string: 1.4
Plus alot more info.
I tried some of the suggestions found in these threads but no luck;
http://forums.bzflag.org/search.php?key ... +OpenGL%29
Now I'm trying to build bz with this;
./configure --enable-debug --enable-all-builds
I included the enable-all-builds option trying to get it to include glew to build.
steve@cyberhome:~/bzflag/bzflag-2.4.0> rpm -q --whatprovides glew
glew-1.6.0-6.1.2.x86_64
tried reading thru the config.log but have no clue what I'm looking for.
any suggestions?
Happy Thanksgiving all BTW!
Build ares ........: yes
Build curl ........: yes
Build glew ........: no (clients disabled)
Build regex .......: yes
Build zlib ........: yes
BZFlag client .....: no bzflag client binary! (need OpenGL)
BZFlag server .....: yes (with plugins)
BZAdmin client ....: yes
opengl is installed - glxinfo indicates
steve@cyberhome:~/bzflag/bzflag-2.4.0> glxinfo
name of display: :0
display: :0 screen: 0
direct rendering: Yes
server glx vendor string: NVIDIA Corporation
server glx version string: 1.4
Plus alot more info.
I tried some of the suggestions found in these threads but no luck;
http://forums.bzflag.org/search.php?key ... +OpenGL%29
Now I'm trying to build bz with this;
./configure --enable-debug --enable-all-builds
I included the enable-all-builds option trying to get it to include glew to build.
steve@cyberhome:~/bzflag/bzflag-2.4.0> rpm -q --whatprovides glew
glew-1.6.0-6.1.2.x86_64
tried reading thru the config.log but have no clue what I'm looking for.
any suggestions?
Happy Thanksgiving all BTW!
Re: bz crashes with Segmentation fault
Well... the big thing is that you don't have a C++ compiler installed, thus all the "g++: command not found" errors.
Also, we have a README.Linux file. There's a package list in there for Fedora which might be similar on SUSE.
If everything is working with the official nVidia driver, I wouldn't bother building though. The open-source driver is still rather experimental at this point, and I'm sure we try to do stuff that it doesn't support.
Also, we have a README.Linux file. There's a package list in there for Fedora which might be similar on SUSE.
If everything is working with the official nVidia driver, I wouldn't bother building though. The open-source driver is still rather experimental at this point, and I'm sure we try to do stuff that it doesn't support.
- Grans Remedy
- Private First Class
- Posts: 91
- Joined: Sun Dec 05, 2004 10:47 pm
- Location: New Zealand
Re: bz crashes with Segmentation fault
I usually build from source as the version in the package repositories is almost always old.
There is a "pattern" in Yast called Base Development which you'll need to install, then the C/C++ pattern too (which will install the g++ compiler Blast mentioned). Then install the openGL dev files (eg glew - just search for opengl in Yast), then download the bzflag source and build it (configure, make install).
I do seem to recall OpenSuse saying they were switching to the nouveau driver by default, but I've always found the Nvidia (proprietary/binary) driver better. I also recall that SAX is broken in OpenSuse 12.1, but I think there is another command line tool which will inspect your graphics and monitor and try to write out a new xorg conf file.
Grans
There is a "pattern" in Yast called Base Development which you'll need to install, then the C/C++ pattern too (which will install the g++ compiler Blast mentioned). Then install the openGL dev files (eg glew - just search for opengl in Yast), then download the bzflag source and build it (configure, make install).
I do seem to recall OpenSuse saying they were switching to the nouveau driver by default, but I've always found the Nvidia (proprietary/binary) driver better. I also recall that SAX is broken in OpenSuse 12.1, but I think there is another command line tool which will inspect your graphics and monitor and try to write out a new xorg conf file.
Grans
No coffee, no workee
Re: bz crashes with Segmentation fault
There may be an "nvidia-xconfig" application that would write a new xorg file. Best to ask the SUSE community about how to proceed, though.
-
- Private First Class
- Posts: 122
- Joined: Sat May 10, 2008 9:38 pm
Re: bz crashes with Segmentation fault
Thanks Blast for the heads up and a RTFM! I had that file open actually, but was looking for configure options (as found in the INSTALL file)so I didn't actually read it.
Installed c++, bz compiled and now runs!?!? Sweet!
Yeah Grans, patterns, although I haven't used them yet, I recall seeing something about them in the last few (it seems) versions. I'm not in the habit of building packages (ya don't say!) so the Base Development pattern will come in handy.
I've read there is a sax3 in development now, not sure I'd go the beta route yet though. Unless something else happens, for now I'll leave the xorg.conf file alone.
Tks again all...especially for pointing this gui user in the right direction concerning cli use.
Installed c++, bz compiled and now runs!?!? Sweet!
Yeah Grans, patterns, although I haven't used them yet, I recall seeing something about them in the last few (it seems) versions. I'm not in the habit of building packages (ya don't say!) so the Base Development pattern will come in handy.
I've read there is a sax3 in development now, not sure I'd go the beta route yet though. Unless something else happens, for now I'll leave the xorg.conf file alone.
Tks again all...especially for pointing this gui user in the right direction concerning cli use.
-
- Private
- Posts: 4
- Joined: Mon Jun 20, 2005 4:16 pm
Re: bz crashes with Segmentation fault
I have same problem with suse12.1
Program received signal SIGSEGV, Segmentation fault.
0xb5c53cb0 in ares_getsock () from /usr/lib/libcares.so.2
libcares version 1.7.5-10.1.2
Program received signal SIGSEGV, Segmentation fault.
0xb5c53cb0 in ares_getsock () from /usr/lib/libcares.so.2
libcares version 1.7.5-10.1.2
Re: bz crashes with Segmentation fault
What version of the game? Did you compile it yourself?Black [BG] wrote:I have same problem with suse12.1
Program received signal SIGSEGV, Segmentation fault.
0xb5c53cb0 in ares_getsock () from /usr/lib/libcares.so.2
libcares version 1.7.5-10.1.2
-
- Private First Class
- Posts: 122
- Joined: Sat May 10, 2008 9:38 pm
Re: bz crashes with Segmentation fault
if you installed bz that was provided by opensuse, it probably won't work.
I had to compile it from source.
I had to compile it from source.
-
- Private
- Posts: 4
- Joined: Mon Jun 20, 2005 4:16 pm
Re: bz crashes with Segmentation fault
Compiled in distro doesn't work, so I have built it from source 2.4.0 with same result
I'v built it with these options:
./configure --enable-debug --disable-ares-build
Code: Select all
Program received signal SIGSEGV, Segmentation fault.
0xb5b7fcb0 in ares_getsock () from /usr/lib/libcares.so.2
./configure --enable-debug --disable-ares-build
Code: Select all
curl version: 7.20.1
Host setup: i686-pc-linux-gnu
Install prefix: /usr/local
Compiler: gcc
SSL support: enabled (OpenSSL)
SSH support: no (--with-libssh2)
zlib support: enabled
krb4 support: no (--with-krb4*)
GSSAPI support: no (--with-gssapi)
SPNEGO support: no (--with-spnego)
c-ares support: no (--enable-ares)
ipv6 support: enabled
IDN support: enabled
Build libcurl: Shared=yes, Static=yes
Built-in manual: enabled
Verbose errors: enabled (--disable-verbose)
SSPI support: no (--enable-sspi)
ca cert bundle: no
ca cert path: /etc/ssl/certs/
LDAP support: no (--enable-ldap / --with-ldap-lib / --with-lber-lib)
LDAPS support: no (--enable-ldaps)
RTSP support: enabled
Protocols: DICT FILE FTP FTPS HTTP HTTPS IMAP IMAPS POP3 POP3S RTSP SMTP SMTPS TELNET TFTP
Done.
BZFlag-2.4.0.20111130 configured with the following:
Prefix: /usr/local
Binaries: /usr/local/bin
Plugins: /usr/local/lib/bzflag
Manual pages: /usr/local/share/man
CC = gcc
CXX = g++
CFLAGS = -g -O2 -O0
CXXFLAGS = -g -O2 -O0
CPPFLAGS =
LDFLAGS =
LIBS = -lm -lpthread
Build ares ........: yes
Build curl ........: no (using system)
Build glew ........: no (using system)
Build regex .......: no (using system)
Build zlib ........: no (using system)
BZFlag client .....: yes (with SDL)
BZFlag server .....: yes (with plugins)
BZAdmin client ....: yes
-
- Private
- Posts: 4
- Joined: Mon Jun 20, 2005 4:16 pm
Re: bz crashes with Segmentation fault
I succeeded to build working game. After installing libcares-devel package, removing whole bzflag build tree (make clean doesn't help), uncomperss and build again with
./configure --enable-ares --disable-ares-build
make
make install
The included in bzflag tree ares source makes the trouble. The game is build with included source, but is running with dynamic linked code from suse 12.1 /usr/lib/
./configure --enable-ares --disable-ares-build
make
make install
The included in bzflag tree ares source makes the trouble. The game is build with included source, but is running with dynamic linked code from suse 12.1 /usr/lib/
Re: bz crashes with Segmentation fault
You can't say that with certainty because you were not giving a full backtrace of the crash, just a single piece of the problem.Black [BG] wrote:The included in bzflag tree ares source makes the trouble.
-
- Private
- Posts: 4
- Joined: Mon Jun 20, 2005 4:16 pm
Re: bz crashes with Segmentation fault
I am not a programmer, just an experienced user. But the game crashes in /usr/lib/libcares.so.2( I do build in /usr/local/src and instalation in /usr/local/bin ) always in the same place, independently that configure sets "Build ares ........: yes" and "c-ares support: no".
In my first try to build , I was not installed libcares-devel, so configure sets "Build ares ........: yes" .
Then I have installed libcares-devel and tried to force do not build ares and use system library but there was no any result.
So I started from the beginning with already installed libcares-devel and I had success.
In my first try to build , I was not installed libcares-devel, so configure sets "Build ares ........: yes" .
Then I have installed libcares-devel and tried to force do not build ares and use system library but there was no any result.
So I started from the beginning with already installed libcares-devel and I had success.