Author Topic: linux 0.29 client : crash : undefined symbol: _vsnprintf  (Read 11531 times)

Phitherek_

  • PGP
  • Posts: 10
linux 0.29 client : crash : undefined symbol: _vsnprintf
« on: February 19, 2010, 09:47:24 AM »
I have a patched version of paintball2 build29. It works fine, but hangs after some time of playing.
Here is the log:
Code: [Select]
phitherek@phitherek-laptop ~ $ paintball2                                                                                                   
                                                                                                                                             
Paintball 2 -- Version 2.0                                                                                                                   
execing configs/config.cfg                                                                                                                   
Console initialized.                                                                                                                         
                                                                                                                                             
------- sound initialization -------                                                                                                         
LoadLibrary("./snd_oss.so")                                                                                                                 
                                                                                                                                             
Initializing OSS Sound System                                                                                                               
Buffer size: 65536                                                                                                                           
Stereo: 1                                                                                                                                   
Samples: 32768                                                                                                                               
Samplepos: 0                                                                                                                                 
Samplebits: 16                                                                                                                               
Submission_chunk: 1                                                                                                                         
Speed: 48000                                                                                                                                 
Sound sampling rate: 48000                                                                                                                   
------------------------------------                                                                                                         
------- Loading ref_pbgl.so -------                                                                                                         
LoadLibrary("./ref_pbgl.so")                                                                                                                 
ref_gl version: PB2GL 0.28                                                                                                                   
Using libGL.so for OpenGL...                                                                                                                 
Initializing OpenGL display                                                                                                                 
...setting fullscreen mode 19: 1280 800                                                                                                     
Using XFree86-VidModeExtension Version 2.2                                                                                                   
I got 8 bits of red                                                                                                                         
I got 8 bits of blue                                                                                                                         
I got 8 bits of green                                                                                                                       
I got 24 bits of depth                                                                                                                       
I got 8 bits of alpha                                                                                                                       
I got 8 bits of stencil                                                                                                                     
Using hardware gamma                                                                                                                         
------------------------------------                                                                                                         
CDAudio_Init: No CD in player.                                                                                                               
CD Audio Initialized                                                                                                                         
====== Paintball II Initialized ======                                                                                                       
                                                                                                                                             
Loaded stats file phitherek.stat                                                                                                             
70.85.9.178:27900: vninitresponse                                                                                                           
70.85.9.178:27900: vnresponse                                                                                                               
pinging broadcast...                                                                                                                         
85.25.2.54:27920: info                                                                                                                       
  NARCISM Public shazam22  8/18                                                                                                             
                                                                                                                                             
85.25.68.188:27916: info                                                                                                                     
   lawl:]Match I    shock  0/10                                                                                                             
                                                                                                                                             
81.169.171.13:11117: info                                                                                                                   
     ic3y's Jump jump/kjump1_b1 14/14                                                                                                       
                                                                                                                                             
81.169.171.13:22222: info                                                                                                                   
 ic3y's Match #1  airtime  0/16                                                                                                             
                                                                                                                                             
81.169.171.13:11113: info                                                                                                                   
     ic3y's Beta beta/1day  0/ 5                                                                                                             
                                                                                                                                             
81.169.171.13:11116: info                                                                                                                   
ic3y's Private Jump jump/sabrespookjump2  0/ 8                                                                                               
                                                                                                                                             
83.169.4.183:44444: info                                                                                                                     
[OTB] Match 2 - www.OTB-Clan.de  wobluda  2/16                                                                                               
                                                                                                                                             
83.169.4.183:55555: info                                                                                                                     
[OTB] Match 3 - www.OTB-Clan.de    italy  2/16                                                                                               
                                                                                                                                             
83.169.4.183:20007: info                                                                                                                     
[OTB] Soccer - www.OTB-Clan.de otb_soccer2_cup  5/16                                                                                         
                                                                                                                                             
Connecting to 83.169.4.183:23585...                                                                                                         
83.169.4.183:23585: challenge                                                                                                               
83.169.4.183:23585: print                                                                                                                   
Server is full.
(... game log ...)                                                                                         
Round started...
20:00 left in match.
newbie timed out
>trx<pker! entered the game (build 27).
*newbie (Spyder SE) eliminated *newbie(3) (VM-68).
*morsch (Carbine) eliminated *[CSO]Phitherek_ (Carbine).
*Red's >trx<pker! revived!
./paintball2: symbol lookup error: pball/pics/testl.dat: undefined symbol: _vsnprintf

^^ the problem is with test1.dat - can someone help?

T3RR0R15T

  • Map Committee
  • Autococker
  • Posts: 2593
Re: Linux build 29 patch - unexpectedly shuts down
« Reply #1 on: February 19, 2010, 10:06:54 AM »
That file is for the hardware check, jitspoe can say u more.

XtremeBain

  • Developer
  • Autococker
  • Posts: 1470
Re: Linux build 29 patch - unexpectedly shuts down
« Reply #2 on: February 19, 2010, 03:53:03 PM »
And you don't have this problem on the previous builds at all?

What version of the libc/glibc libraries do you have on your system? Seems like you're having a compatibility issue.. perhaps jitspoe updated his toolchain since he last compiled a Linux release.

What timestamp do you have for test1.dat? Can you tell if it's from the full or patch tarballs, or whether it was downloaded after installing?

jitspoe

  • Administrator
  • Autococker
  • Posts: 18802
Re: Linux build 29 patch - unexpectedly shuts down
« Reply #3 on: February 19, 2010, 05:33:06 PM »
Odd - _vsnprintf has been used throughout the code for quite some time.  I'm not sure why you'd just have an issue with it now.  Make sure you have all of these libraries installed (32bit):  libgcrypt, libgpg-error, libjpeg, libpng12, libstdc++, libpthread, libgcc_s, libXxf86vm, libXau, libXdmcp, libXext, libXdamage, libXfixes, libdrm, libX11, libGL, libxcb, libz, libdl, librt, libm, libc.

ViciouZ

  • Map Committee
  • Autococker
  • Posts: 2227
Re: Linux build 29 patch - unexpectedly shuts down
« Reply #4 on: February 19, 2010, 06:27:22 PM »
Isn't it just vsnprintf on linux? I think the underscore is just for the windows API.

jitspoe

  • Administrator
  • Autococker
  • Posts: 18802
Re: Linux build 29 patch - unexpectedly shuts down
« Reply #5 on: February 20, 2010, 03:23:26 AM »
Ah...

#ifndef WIN32
#define _vsnprintf(a, b, c, d) vsnprintf(a, b, c, d)
#endif

I might be missing that.

Also, it looks like I must not have saved my makefile changes so that this won't require glibc 2.4 or higher.  That could also be an issue.  Build 30 might have to be a quick patch. :P

Edit: Yeah, that was it.

This is yet another reason I hate Linux.  That crap shouldn't even compile.  Why does it let you just put whatever function calls you want in there and not bother to tell you they don't exist until that code is executed?

Phitherek_

  • PGP
  • Posts: 10
Re: Linux build 29 patch - unexpectedly shuts down
« Reply #6 on: February 20, 2010, 06:08:39 AM »
Ok, so when this fixed version is going to be released?

Btw. I' m really glad that I had my part in improving Paintball2 :)

yossarianuk

  • VM-68
  • Posts: 127
linux 0.29 client : crash : undefined symbol: _vsnprintf
« Reply #7 on: February 20, 2010, 08:05:27 AM »
Hi.

tried the new build (0.29) on various distro's - same crash.

/home/morgan/games/paintball2/paintball2: symbol lookup error: pball/pics/testl.dat: undefined symbol: _vsnprintf

- occurs on Arch 64bit and Ubuntu 386

gdb doesn't seem to give any output

Just to confirm I used

gdb paintball2
run
after crash - bt
Program exited with code 0177.
(gdb) bt
No stack.
(gdb)

Any ideas ?

It is happening very frequently (usually 2-3 mins)

T3RR0R15T

  • Map Committee
  • Autococker
  • Posts: 2593

yossarianuk

  • VM-68
  • Posts: 127
Re: linux 0.29 client : crash : undefined symbol: _vsnprintf
« Reply #9 on: February 20, 2010, 08:16:59 AM »
Thanks for the response.

Guess I will have to revert back until 0.30 is out .

cheers

vLaD

  • Autococker
  • Posts: 536
Re: Linux build 29 patch - unexpectedly shuts down
« Reply #10 on: February 20, 2010, 11:17:53 AM »
Jitspoe put some love into Linux maybe then it will go more smoothly :]

jitspoe

  • Administrator
  • Autococker
  • Posts: 18802
Re: linux 0.29 client : crash : undefined symbol: _vsnprintf
« Reply #11 on: February 20, 2010, 11:45:46 AM »
Merging these threads.  This will be fixed for the next release.

yossarianuk

  • VM-68
  • Posts: 127
Re: linux 0.29 client : crash : undefined symbol: _vsnprintf
« Reply #12 on: February 21, 2010, 07:07:36 AM »
I would like to thank Jitspoe for releasing a Linux version at all....

It looks like a relatively easy fix so i'm sure it will be out soon.

Does the later version still depend on the same libjpeg version (6) - just wondering..

Phitherek_

  • PGP
  • Posts: 10
Re: linux 0.29 client : crash : undefined symbol: _vsnprintf
« Reply #13 on: February 21, 2010, 07:11:37 AM »
Quote from: yossarianuk
Does the later version still depend on the same libjpeg version (6) - just wondering..

I use the libjpeg version 7 and it works fine.

jitspoe

  • Administrator
  • Autococker
  • Posts: 18802
Re: linux 0.29 client : crash : undefined symbol: _vsnprintf
« Reply #14 on: February 22, 2010, 02:45:17 PM »
I'm not sure what version it requires - is there a way to check?

XtremeBain

  • Developer
  • Autococker
  • Posts: 1470
Re: linux 0.29 client : crash : undefined symbol: _vsnprintf
« Reply #15 on: February 22, 2010, 02:56:28 PM »
'ldd paintball2' might show it...

(this is from a another binary on a RHEL server with v6 of libjpeg)
libjpeg.so.62 => /usr/lib64/libjpeg.so.62 (0x00000039d5000000)

Edit: sometimes it's possible for users to link the version they have installed to the one that the program is looking for.. i.e. libjpeg.so.62 -> libjpeg.so.7

Phitherek_

  • PGP
  • Posts: 10
Re: linux 0.29 client : crash : undefined symbol: _vsnprintf
« Reply #16 on: February 23, 2010, 03:42:27 AM »
When it goes to libjpeg, linking doesn' t work. I know it from my own OS.

ViciouZ

  • Map Committee
  • Autococker
  • Posts: 2227
Re: linux 0.29 client : crash : undefined symbol: _vsnprintf
« Reply #17 on: February 23, 2010, 06:32:47 AM »
I think libjpeg 6b is directly compiled into the code, hence all the source files in ref_gl/jpeg...

yossarianuk

  • VM-68
  • Posts: 127
Re: linux 0.29 client : crash : undefined symbol: _vsnprintf
« Reply #18 on: February 23, 2010, 12:41:03 PM »
Thanks for the responses.

I was asking as the my main distro (arch) uses libjpeg8 as the default version, there is version 6 in AUR though (one bad side of having the latest everything)

btw: I launch it with

LD_PRELOAD=~/libjpeg6/lib/libjpeg.so.62.0.0 ./paintball

Will build 0.27 still connect to servers now - I haven't bothered re-installing it yet...

Phitherek_

  • PGP
  • Posts: 10
Re: linux 0.29 client : crash : undefined symbol: _vsnprintf
« Reply #19 on: February 23, 2010, 12:55:46 PM »
hmmm... For me, paintball2 runs on 8 properly... (or on 7, because I have a mess since the upgrade to 8 :P I had some problems then...) But I don' t need the libjpeg6 version at all...