MantisBT - Zandronum
View Issue Details
0002221Zandronum[All Projects] Bugpublic2015-05-06 20:022015-05-07 08:31
DevilHunter 
 
highcrashalways
closedinvalid 
LinuxUbuntu10.04 x86-64
2.0 
 
0002221: Zandronum SegFaults when Adding One line to sv_main...
So in order to have global bans work on TSPG, Jenova said that I need to add a line to sv_main.cpp. This line being...

Printf("CONNECTION %s %s\n", players[g_lCurrentClient].userinfo.netname, NETWORK_AddressToString( SERVER_GetClient( g_lCurrentClient )->Address));


It works, as in... It checks the IP of who's connect against the Global Bans List of the BE Bot, and if you are banned, you get the banned message.. However, this affects ZH/BH..

As soon as it changes to any ZH map, or if I start it on a ZH map, the Server will SegFault right then and there. Here is one ServerLog, Here is another.. In that one the server does make it to the map but then crashes right after.
1. hg Clone Zandro rep
2. Open sv_main.cpp
3. go to line 1599
4. add Printf("CONNECTION %s %s\n", players[g_lCurrentClient].userinfo.netname, NETWORK_AddressToString( SERVER_GetClient( g_lCurrentClient )->Address));
5. save file
6. compile
7. Start ZH Server with just compiled Binary.
8. Change to ZM01
9. Crash
Here is the last Crashlog I had before I gave up. Mind you, that a fresh copy of 2.0 zan works just fine.
No tags attached.
Issue History
2015-05-06 20:02DevilHunterNew Issue
2015-05-06 20:08DevilHunterNote Added: 0012207
2015-05-06 21:28DevilHunterNote Added: 0012208
2015-05-06 21:32DevilHunterNote Edited: 0012208bug_revision_view_page.php?bugnote_id=12208#r7048
2015-05-07 08:31Edward-sanStatusnew => closed
2015-05-07 08:31Edward-sanResolutionopen => invalid

Notes
(0012207)
DevilHunter   
2015-05-06 20:08   
Forgot to add the wads used for this.. First load with Skulltag_actors-1-1-1.pk3 and skulltag_data_126.pk3 Then...

zh-beta28.pk3
zh-mappack10.pk3
zh-testpack_r26.pk3
zh-testpack_f01.pk3

In that order. Also mind you, that this works just fine on Best-Ever somehow.. I copied everything just as Jenova said and he even showed me how he did it in his sv_main.cpp edit so.. Yea...
(0012208)
DevilHunter   
2015-05-06 21:28   
(edited on: 2015-05-06 21:32)
Nvm.. you can close this now.. Turns out to be a damn compiler error.. Had to update gcc, it works now.

EDIT: You have to change the compiler to gcc 4.7. I'm sure I don't have to go in much detail on howto, since I am a Linux scrub heh.