QuantiCode games

Zero Ballistics, Full Metal Soccer

Skip to content

Segmentation fault

Post any problems related to the beta version of Zero Ballistics

Moderators: Michael, Bernhard, Christian

Segmentation fault

Postby schdorm on 23 Aug 2011, 17:13

I just built a AMD64-Client ... as there is no official 64bit client [Linux, Ubuntu].

Everything worked (and works) fine ... except playing: there is no problem with viewing a game - to "drive around" in spectator mode but if I want to join a team there occurs a "segmentation fault". I hope anyone can help. I'll try to get some more information about the crash.

Edit:
Well, gdb can tell me the following:

[...]Starting program: ~/zb_s/games/tank/tank
[Thread debugging using libthread_db enabled]
User data directory is "~/.config/QuantiCode/Zero Ballistics/"

--------------------------------------------------------------------------------
23.8.2011, 18:15:49 : log session started
Build Aug 23 2011 - 17:36:18
Debug classes: -
Version z2.00
Vendor: ATI Technologies Inc.
Renderer: ATI Mobility Radeon HD 4200 Series
GL Version: 3.3.10665 Compatibility Profile Context
Max. Texture Units: 16
Max. Varying Floats: 128
Max. Vertex Attribs: 29
Max. Uniforms in VS: 16384
Max. Uniforms in FS: 16384
GLSL language version: 3.30
Shader Model: 4

[New Thread 0x7fffe9ee8700 (LWP 2035)]
[Thread 0x7fffe9ee8700 (LWP 2035) exited]
[New Thread 0x7fffe9ee8700 (LWP 2036)]
[Thread 0x7fffe9ee8700 (LWP 2036) exited]
[New Thread 0x7fffe9ee8700 (LWP 2037)]
[New Thread 0x7fffe54e0700 (LWP 2038)]
[New Thread 0x7fffe4cdf700 (LWP 2039)]
[New Thread 0x7fffdfdca700 (LWP 2059)]
Attempting direct connection to 89.110.149.15:23700...
connection request accepted from 89.110.149.15:23700
We are connected to 89.110.149.15:23700 and have IP (...).
Server is running version Z2.00
[New Thread 0x7fffdf3b6700 (LWP 2060)]
[New Thread 0x7fffdebb5700 (LWP 2061)]
Warning : element Shape is missing attribute "mass_only".
Warning : element Shape is missing attribute "mass_only".
Warning : element Shape is missing attribute "mass_only".
Warning : element Shape is missing attribute "mass_only".
Warning : element Shape is missing attribute "mass_only".
Warning : element Shape is missing attribute "mass_only".
Warning : element Shape is missing attribute "mass_only".
Warning : element Shape is missing attribute "mass_only".
Warning : element Shape is missing attribute "mass_only".
Warning : element Shape is missing attribute "mass_only".
Warning : element Shape is missing attribute "mass_only".
Warning : element Shape is missing attribute "mass_only".
Warning : element Shape is missing attribute "mass_only".
Warning : element Shape is missing attribute "mass_only".
Warning : element Shape is missing attribute "mass_only".
Warning : element Shape is missing attribute "mass_only".
Warning : element Shape is missing attribute "mass_only".
Warning : element Shape is missing attribute "mass_only".
Warning : element Shape is missing attribute "mass_only".
Warning : element Shape is missing attribute "mass_only".
Warning : element Shape is missing attribute "mass_only".
Warning : element Shape is missing attribute "mass_only".
Warning : element Shape is missing attribute "mass_only".
Warning : element Shape is missing attribute "mass_only".
Warning : element Shape is missing attribute "mass_only".
Warning : element Shape is missing attribute "mass_only".
Warning : element Shape is missing attribute "mass_only".
Warning : element Shape is missing attribute "mass_only".
Warning : element Shape is missing attribute "mass_only".
Warning : element Shape is missing attribute "mass_only".
Warning : element Shape is missing attribute "mass_only".
Warning : element Shape is missing attribute "mass_only".
Warning : element Shape is missing attribute "mass_only".
Warning : element Shape is missing attribute "mass_only".
Warning : element Shape is missing attribute "mass_only".
Warning : element Shape is missing attribute "mass_only".
Warning : element Shape is missing attribute "mass_only".
Warning : element Shape is missing attribute "mass_only".
Warning : element Shape is missing attribute "mass_only".
MSG:
MSG:
MSG:
MSG:
MSG:
MSG:
MSG: Press 'h' for help.
MSG: You have joined the match.

Program received signal SIGSEGV, Segmentation fault.
0x000000000086d144 in terrain::TerrainData::getHeightAndNormalBicubic(float, float, float&, Vector&) const ()



The same happens when hosting an own server, but in this case immediately after the server is ready:
[...] Warning : element Shape is missing attribute "mass_only".
[New Thread 0x7fffdede4700 (LWP 2682)]
Mr. Stubot auth data set to 1; 1
New player has name Mr. Stubot
Warning : element Shape is missing attribute "mass_only".
Warning : element Shape is missing attribute "mass_only".
Warning : element Shape is missing attribute "mass_only".
Warning : element Shape is missing attribute "mass_only".
Warning : element Shape is missing attribute "mass_only".
Warning : element Shape is missing attribute "mass_only".
Warning : element Shape is missing attribute "mass_only".
Warning : element Shape is missing attribute "mass_only".
Robot auth data set to 2; 2
New player has name Robot

Program received signal SIGSEGV, Segmentation fault.
0x000000000086d144 in terrain::TerrainData::getHeightAndNormalBicubic(float, float, float&, Vector&) const ()
schdorm
 
Posts: 4
Joined: 23 Aug 2011, 14:52
Location: Europe

Re: Segmentation fault

Postby schdorm on 24 Aug 2011, 09:08

Btw.: the x86-version runs without problems - except some problems with the temperature of my cpu.
schdorm
 
Posts: 4
Joined: 23 Aug 2011, 14:52
Location: Europe

Re: Segmentation fault

Postby schdorm on 24 Aug 2011, 09:38

a backtrace of the segfault:

#0 0x000000000086d144 in terrain::TerrainData::getHeightAndNormalBicubic(float, float, float&, Vector&) const ()
#1 0x000000000086d482 in terrain::TerrainData::collideRay(physics::CollisionInfo&, Vector const&, Vector const&, float, bool) const ()
#2 0x0000000000678972 in Tank::doTerrainWheelCollision(Wheel&, Matrix const&, bool) ()
#3 0x0000000000676137 in Tank::frameMoveTires(float) ()
#4 0x0000000000670bd0 in Tank::frameMove(float) ()
#5 0x00000000007b5a23 in GameState::frameMove(float) ()
#6 0x00000000007bd003 in PuppetMasterClient::frameMove(float) ()
#7 0x000000000065866b in TankApp::handlePhysics(float) ()
#8 0x000000000066f9c0 in Loki::MemFunHandler<Loki::Functor<void, Loki::Typelist<float, Loki::NullType>, Loki::SingleThreaded>, TankApp*, void (TankApp::*)(float)>::operator()(float) ()
#9 0x000000000091051f in Loki::Functor<void, Loki::Typelist<float, Loki::NullType>, Loki::SingleThreaded>::operator()(float) const ()
#10 0x000000000090e84c in Scheduler::frameMove(float) ()
#11 0x000000000079b95d in SdlApp::run(MetaTask*) ()
#12 0x000000000065034b in main ()



I found the line, where the segfault occurs: line 235 AND line 236, TerrainData.cpp

Code: Select all
231    for (int i=0; i<4; ++i)
232    {
233    for (int j=0; j<4; ++j)
234    {
235    x_interpol [i] += h_base[j-1 + (i-1)*width_]*cx[j];
236    xd_interpol[i] += h_base[j-1 + (i-1)*width_]*cxd[j];
237    }
238    }


(only if both the lines are commented out, the segfault doesn't occur ... btw: it looks really funny driving around the tank without these two lines 8-) )

As I'm not familiar with all that code, I can't do anything else right now.
schdorm
 
Posts: 4
Joined: 23 Aug 2011, 14:52
Location: Europe

Re: Segmentation fault

Postby Freder on 31 Mar 2012, 13:10

This seems to be the same issue as in this topic: viewtopic.php?f=4&t=1011 It can actually be fixed.
Freder
 
Posts: 5
Joined: 29 Mar 2012, 19:35
Location: Poland


Return to Support

Who is online

Users browsing this forum: No registered users and 1 guest


cron