Digital Paint Discussion Board

Development => Bugs, Feature Requests, and Feedback => Topic started by: Phitherek_ on February 19, 2010, 09:47:24 AM

Title: linux 0.29 client : crash : undefined symbol: _vsnprintf
Post by: Phitherek_ 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?
Title: Re: Linux build 29 patch - unexpectedly shuts down
Post by: T3RR0R15T on February 19, 2010, 10:06:54 AM
That file is for the hardware check, jitspoe can say u more.
Title: Re: Linux build 29 patch - unexpectedly shuts down
Post by: XtremeBain 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?
Title: Re: Linux build 29 patch - unexpectedly shuts down
Post by: jitspoe 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.
Title: Re: Linux build 29 patch - unexpectedly shuts down
Post by: ViciouZ 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.
Title: Re: Linux build 29 patch - unexpectedly shuts down
Post by: jitspoe 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?
Title: Re: Linux build 29 patch - unexpectedly shuts down
Post by: Phitherek_ 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 :)
Title: linux 0.29 client : crash : undefined symbol: _vsnprintf
Post by: yossarianuk 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)
Title: Re: linux 0.29 client : crash : undefined symbol: _vsnprintf
Post by: T3RR0R15T on February 20, 2010, 08:09:15 AM
http://dplogin.com/forums/index.php?topic=20007.0
Title: Re: linux 0.29 client : crash : undefined symbol: _vsnprintf
Post by: yossarianuk 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
Title: Re: Linux build 29 patch - unexpectedly shuts down
Post by: vLaD on February 20, 2010, 11:17:53 AM
Jitspoe put some love into Linux maybe then it will go more smoothly :]
Title: Re: linux 0.29 client : crash : undefined symbol: _vsnprintf
Post by: jitspoe on February 20, 2010, 11:45:46 AM
Merging these threads.  This will be fixed for the next release.
Title: Re: linux 0.29 client : crash : undefined symbol: _vsnprintf
Post by: yossarianuk 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..
Title: Re: linux 0.29 client : crash : undefined symbol: _vsnprintf
Post by: Phitherek_ 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.
Title: Re: linux 0.29 client : crash : undefined symbol: _vsnprintf
Post by: jitspoe on February 22, 2010, 02:45:17 PM
I'm not sure what version it requires - is there a way to check?
Title: Re: linux 0.29 client : crash : undefined symbol: _vsnprintf
Post by: XtremeBain 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
Title: Re: linux 0.29 client : crash : undefined symbol: _vsnprintf
Post by: Phitherek_ on February 23, 2010, 03:42:27 AM
When it goes to libjpeg, linking doesn' t work. I know it from my own OS.
Title: Re: linux 0.29 client : crash : undefined symbol: _vsnprintf
Post by: ViciouZ 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...
Title: Re: linux 0.29 client : crash : undefined symbol: _vsnprintf
Post by: yossarianuk 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...
Title: Re: linux 0.29 client : crash : undefined symbol: _vsnprintf
Post by: Phitherek_ 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...
Title: Re: linux 0.29 client : crash : undefined symbol: _vsnprintf
Post by: vLaD on February 23, 2010, 03:11:25 PM
if someone has 9.10 please test it with that since its the newer built and more people will  be swapping over to that. preferably test it in the 64 bit since mostly everyone is or will be converting to 64
Title: Re: linux 0.29 client : crash : undefined symbol: _vsnprintf
Post by: yossarianuk on February 24, 2010, 12:48:05 PM
vLaD, sorry I may be missing something here...

Test what ? The build 0.29 build is the same one that was released with the 'undefined symbol: _vsnprintf' bug in.

Is there a newer test build ?

I have ubuntu 9.10 (32+64bit) installed.
Title: Re: linux 0.29 client : crash : undefined symbol: _vsnprintf
Post by: vLaD on February 24, 2010, 12:59:45 PM
hmm i didnt have that issue, the only issue i had was that the alsa driver would not initiate properly. didn't work at all and when i moved it was jerky as hell.
Title: Re: linux 0.29 client : crash : undefined symbol: _vsnprintf
Post by: XtremeBain on February 24, 2010, 01:00:29 PM
I think he just wants someone to tell him it works so that he can spam ubuntuforums.org about this awesome paintball game.. The linux client is about the most complicated game I've ever had to make work.. and the complexity keeps evolving with each build (no thanks to Viciouz ;))
Title: Re: linux 0.29 client : crash : undefined symbol: _vsnprintf
Post by: vLaD on February 24, 2010, 01:25:34 PM

[/quote]
I think he just wants someone to tell him it works so that he can spam ubuntuforums.org about this awesome paintball game.. The linux client is about the most complicated game I've ever had to make work.. and the complexity keeps evolving with each build (no thanks to Viciouz ;))

lol you got me there :)
Title: Re: linux 0.29 client : crash : undefined symbol: _vsnprintf
Post by: ViciouZ on February 24, 2010, 01:27:55 PM
I think he just wants someone to tell him it works so that he can spam ubuntuforums.org about this awesome paintball game.. The linux client is about the most complicated game I've ever had to make work.. and the complexity keeps evolving with each build (no thanks to Viciouz ;))

:(

Incase you haven't noticed, I added flags to add OGG support in the makefile and they're disabled by default so :( :( :( to you
Title: Re: linux 0.29 client : crash : undefined symbol: _vsnprintf
Post by: yossarianuk on February 24, 2010, 02:24:07 PM
XtremeBain the client was working fine in 0.27 (apart from that odd crash..), i've been playing it (purely on linux) for a while now...

It is not the most complicated game to run at all, usually you have to do no more than

./paintball2    (or were you referring to the development)

My crash is the exact same as the original posters.

P.S although i have Ubuntu installed I do not use as my main system I am not going to spam the Ubuntu forums, I run arch as my main system (i'm not going to spam arch's either)  - it plays paintball faster than any other system i've tried..

And anyway do you not want more users ? (Linux users are more likely to have access to a server....)

Title: Re: linux 0.29 client : crash : undefined symbol: _vsnprintf
Post by: smokeman on March 28, 2010, 07:11:39 AM
hey. please help me im a ubuntu user and i downloaded the game but when i double click on paintball2 executable file nothing happens. meaby i dont have the libs that it need. if so , where i can download those files. sorry my english:)
Title: Re: linux 0.29 client : crash : undefined symbol: _vsnprintf
Post by: smokeman on March 29, 2010, 11:13:48 AM
NOW I KNOW THAT I HAVE SAME PROBLEM
Title: Re: linux 0.29 client : crash : undefined symbol: _vsnprintf
Post by: yossarianuk on March 29, 2010, 01:13:29 PM
Hi

It is best to start the game via command line or create a desktop link which launches the game, just double clicking on it may not work.

cd paintball2
./paintball2

I've stopped playing until the next version is released, you should use the older version 0.27 until the issue is fixed.
Title: Re: linux 0.29 client : crash : undefined symbol: _vsnprintf
Post by: smokeman on March 30, 2010, 03:46:37 AM
cd paintball2
./paintball2
 
yeah i launched it from the command line and i cant play  build 0.27 becouse its not supported on the servers. does anybody know when 0.30 is coming. hope it works on linux. but thanks to jitspoe to he even made the linux version. ps: older versions work on singleplayer
Title: Re: linux 0.29 client : crash : undefined symbol: _vsnprintf
Post by: smokeman on March 30, 2010, 08:07:08 AM
when next build comes?
Title: Re: linux 0.29 client : crash : undefined symbol: _vsnprintf
Post by: yossarianuk on May 13, 2010, 03:10:13 PM
This is fixed is 0.30