Admin Mod Issues On Linux

havenhaven Join Date: 2002-11-15 Member: 8767Members
<div class="IPBDescription">Admin Mod Issues on linux</div> Hi, not sure if anyone can help but here goes:

I run two linux natural selection servers. I used to run cstrike and so I'm used to running admin mod on both machines.
With the release of NS 1.03 I thought I would install admin mod for NS since it is supposed to work.

Using a default install of AdminMod (no tweaks at all other than editing users.ini) I get the following error:

./hlds_run: line 83: 24971 Segmentation fault (core dumped) $HL $*
Add "-debug" to the ./hlds_run command line to generate a debug.log to help with
solving this problem

I have had this same error on both servers and both servers have been independantly installed i.e. they are not mirrors of each others files.

I ran debug and got the output shown below:

~
----------------------------------------------
CRASH: Fri Nov 29 00:34:53 GMT 2002
Core was generated by `./hlds -debug -game ns +maxplayers 10 +map ns_eclipse'.
Program terminated with signal 11, Segmentation fault.
#0 0x00000000 in ?? ()
#0 0x00000000 in ?? ()
#1 0x436f2848 in __user_type_info::dyncast (this=0x4376ec20, boff=-1,
target=@0x436ca95c, objptr=0x8114b28, subtype=@0x436ca900,
subptr=0x8114b28) from /usr/lib/libstdc++-libc6.1-1.so.2
#2 0x436f428e in __dynamic_cast (from=0x4374ec74 <CTimer type_info function>,
to=0x4338e514 <CBaseDoor type_info function>, require_public=1,
address=0x8114b28, sub=0x43373150 <CBaseEntity type_info function>,
subptr=0x8114b28) from /usr/lib/libstdc++-libc6.1-1.so.2
#3 0x43378cd3 in AddToFullPack () from /home/cstrike/hlds_l/ns/dlls/ns_i386.so
No symbol table info available.
From To Syms Read Shared Object Library
0x40018830 0x40018a90 Yes /lib/libNoVersion.so.1
0x400211c0 0x40021fb0 Yes /lib/libdl.so.2
0x40040480 0x40140d00 Yes /lib/i686/libc.so.6
0x40001e80 0x400130e0 Yes /lib/ld-linux.so.2
0x421928f0 0x4220596f Yes /home/cstrike/hlds_l/engine_i386.so
0x426aa460 0x426e8f51 Yes ./libhlwon.so
0x427f4180 0x428887a5 Yes ./libSteamValidateUserIDTickets.so
0x4293f8d0 0x42958360 Yes /lib/i686/libm.so.6
0x4299b080 0x429a21d0 Yes /lib/libnss_files.so.2
0x429a5eb0 0x429ad0b0 Yes /lib/libnss_nisplus.so.2
0x430aff10 0x430bd0d0 Yes /lib/libnsl.so.1
0x429afe50 0x429b1d30 Yes /lib/libnss_dns.so.2
0x430c4760 0x430cf1c0 Yes /lib/libresolv.so.2
0x430f7820 0x4315df9c Yes /home/cstrike/hlds_l/ns/addons/metamod/dlls/metamod_i386.so
0x43358a30 0x43500630 Yes /home/cstrike/hlds_l/ns/dlls/ns_i386.so
0x436e5430 0x43703d50 Yes /usr/lib/libstdc++-libc6.1-1.so.2
0x43723b40 0x437507f3 Yes /home/cstrike/hlds_l/ns/addons/adminmod/dlls/admin_MM_i386.so
0x4376ff70 0x43772d00 Yes /lib/libcrypt.so.1
0x4379e0a0 0x437a96c0 Yes /home/cstrike/hlds_l/ns/addons/adminmod/dlls/amx_admin.so
Stack level 0, frame at 0xbffe9088:
eip = 0x0; saved eip 0x436f428e
(FRAMELESS), called by frame at 0xbffe9088
Arglist at 0xbffe9088, args:
Locals at 0xbffe9088, Previous frame's sp is 0x0
Saved registers:
ebp at 0xbffe9088, eip at 0xbffe908c
End of crash report
----------------------------------------------

I have emailed this to sdk@valvesoftware.com although I don't expect a response.

If anyone could offer some suggestions on what might be causing this ? Once I disable Admin Mod the servers are fine again. Having heard reports of others successfully running Admin Mod on their linux boxes I puzzled.

If you need any further information then please request it - I'll be happy to post it up.

Many thanks in advance

Haven

Comments

  • HtNickoliHtNickoli Join Date: 2002-11-24 Member: 9786Members
    edited November 2002
    Well I installed adminMod as soon as I installed ns v1. had no problems whatsoever. Now this might simple be an ommision in your post. But you mentioned all you did was edit the users.ini.

    Now according to your core-dump, adminmod and metamod libs where loaded, So I would assume its a simple setting error. Did you go through and edit the adminmod.cfg? I assume you did. What I'm wondering is if you edited the plugins.ini file. As this seems more like its trying to load a plugin for cs or tfc and its seg faulting the server.

    ie;
    #2 0x436f428e in __dynamic_cast (from=0x4374ec74 <CTimer type_info function>,
    to=0x4338e514 <CBaseDoor type_info function>, require_public=1,
    address=0x8114b28, sub=0x43373150 <CBaseEntity type_info function>,
    subptr=0x8114b28) from /usr/lib/libstdc++-libc6.1-1.so.2


    Pherhaps your could paste your adminmod.cfg & plugins.ini files into a post and let me look them over.
  • DrGigglesDrGiggles Join Date: 2002-11-15 Member: 8833Members
    Recompile your admin_amx.so

    I've given instructions how in this post:
    <a href='http://www.unknownworlds.com/forums/index.php?act=ST&f=8&t=12738' target='_blank'>http://www.unknownworlds.com/forums/in...=ST&f=8&t=12738</a>
  • HtNickoliHtNickoli Join Date: 2002-11-24 Member: 9786Members
    edited November 2002
    WOW, I've never heard of the plugin lib causes any type of problems, And I've been useing adminmod for years now. But it wouldent truly shock me if that is the problem. It most certainly seens tobe in the plugin system anyways. Ither a bad plugin,(actually quite common) or a plugin that shouldent be loaded and is causeing conflicts with ns and seg faulting the server. Or as you seem to have, a problem with the plugin lib and the rh7.3 libc6 libs. But personally I would update the RH7.3 libs to current libs before I'd bother recompiling the plugin lib.
  • havenhaven Join Date: 2002-11-15 Member: 8767Members
    <!--QuoteBegin--></span><table border='0' align='center' width='95%' cellpadding='3' cellspacing='1'><tr><td><b>QUOTE</b> </td></tr><tr><td id='QUOTE'><!--QuoteEBegin-->What I'm wondering is if you edited the plugins.ini file. As this seems more like its trying to load a plugin for cs or tfc and its seg faulting the server.<!--QuoteEnd--></td></tr></table><span class='postcolor'><!--QuoteEEnd-->

    I had a quick check of the plugins.ini file - both the TFC and CS plugins were commented out by default so I left it at that and didn't edit any further. I've since deleted the lines entirely and re-launched the server with the same error

    My plugins.ini file now reads as follows:
    ------------------------------------------------
    addons/adminmod/scripts/plugin_antiflood.amx
    addons/adminmod/scripts/plugin_base.amx
    addons/adminmod/scripts/plugin_chat.amx
    addons/adminmod/scripts/plugin_cheat.amx
    addons/adminmod/scripts/plugin_hldsld_mapvote.amx
    addons/adminmod/scripts/plugin_message.amx
    addons/adminmod/scripts/plugin_retribution.amx
    addons/adminmod/scripts/plugin_fun.amx
    -------------------------------------------------

    As for the adminmod.cfg - I left it as default to test the server so it was not edited before launch. I've since gone through and made some changes to see if it made any difference - it didn't unfortunately.


    <!--QuoteBegin--></span><table border='0' align='center' width='95%' cellpadding='3' cellspacing='1'><tr><td><b>QUOTE</b> </td></tr><tr><td id='QUOTE'><!--QuoteEBegin--> It most certainly seens tobe in the plugin system anyways. Ither a bad plugin,(actually quite common) or a plugin that shouldent be loaded and is causeing conflicts with ns and seg faulting the server. Or as you seem to have, a problem with the plugin lib and the rh7.3 libc6 libs. <!--QuoteEnd--></td></tr></table><span class='postcolor'><!--QuoteEEnd-->

    If you spot any plugins that you think should be omitted in the above list then feel free to point them out - personally I don't see why any of them would cause problems, but I'm not as familiar with admin mod as I would like to be and their exact functions are not completely clear.

    <!--QuoteBegin--></span><table border='0' align='center' width='95%' cellpadding='3' cellspacing='1'><tr><td><b>QUOTE</b> </td></tr><tr><td id='QUOTE'><!--QuoteEBegin-->Or as you seem to have, a problem with the plugin lib and the rh7.3 libc6 libs. But personally I would update the RH7.3 libs to current libs before I'd bother recompiling the plugin lib. <!--QuoteEnd--></td></tr></table><span class='postcolor'><!--QuoteEEnd-->

    The redhat libs are completely up to date - in order to get NS working I do however, have to create a symlink i.e.
    ln -s libstdc++-libc6.2-2.so.3 libstdc++-libc6.1-1.so.2

    It seems NS doesn't recognise the newer lib without this link <!--emo&:(--><img src='http://www.unknownworlds.com/forums/html/emoticons/sad.gif' border='0' valign='absmiddle' alt='sad.gif'><!--endemo-->

    <!--QuoteBegin--></span><table border='0' align='center' width='95%' cellpadding='3' cellspacing='1'><tr><td><b>QUOTE</b> </td></tr><tr><td id='QUOTE'><!--QuoteEBegin-->Recompile your admin_amx.so
    I've given instructions how in this post:<!--QuoteEnd--></td></tr></table><span class='postcolor'><!--QuoteEEnd-->

    I think this is my next course of action - I'll have a go and let you know if it works or not. Thanks for all the responses.
  • FreakFreak Join Date: 2002-10-31 Member: 1811Members
    I was running Mandrake and could not get AM to work. Switched to RH7.3 and all problems went away...
  • NecroNecro &lt;insert non-birthday-related title here&gt; Join Date: 2002-08-09 Member: 1118Members
    my linux admnmod dont work...metamod does tho <!--emo&:(--><img src='http://www.unknownworlds.com/forums/html/emoticons/sad.gif' border='0' valign='absmiddle' alt='sad.gif'><!--endemo-->

    latest versions and all,
  • DrGigglesDrGiggles Join Date: 2002-11-15 Member: 8833Members
    <!--QuoteBegin--[Ht]Nickoli+Nov 28 2002, 08:53 PM--></span><table border='0' align='center' width='95%' cellpadding='3' cellspacing='1'><tr><td><b>QUOTE</b> ([Ht]Nickoli @ Nov 28 2002, 08:53 PM)</td></tr><tr><td id='QUOTE'><!--QuoteEBegin-->a problem with the plugin lib and the rh7.3 libc6 libs. But personally I would update the RH7.3 libs to current libs before I'd bother recompiling the plugin lib.<!--QuoteEnd--></td></tr></table><span class='postcolor'><!--QuoteEEnd-->
    Let me get this straight, you would change the librarys that the system is dependant on before you recompiled a simple little library? OKAY...

    Besides that, the binary seems to work fine with ALL my CS servers, it just AdminMod wouldn't work at all until i recompiled that one library...

    And just so you know, the libc6 RH7.3 has are a version above the one required by adminmod.

    None the less, it's really not hard, you download the cvs, type make in a directoy, and copy a file over to the proper location.
  • HtNickoliHtNickoli Join Date: 2002-11-24 Member: 9786Members
    edited November 2002
    <!--QuoteBegin--DrGiggles+Nov 29 2002, 11:49 AM--></span><table border='0' align='center' width='95%' cellpadding='3' cellspacing='1'><tr><td><b>QUOTE</b> (DrGiggles @ Nov 29 2002, 11:49 AM)</td></tr><tr><td id='QUOTE'><!--QuoteEBegin--><!--QuoteBegin--[Ht]Nickoli+Nov 28 2002, 08:53 PM--></span><table border='0' align='center' width='95%' cellpadding='3' cellspacing='1'><tr><td><b>QUOTE</b> ([Ht]Nickoli @ Nov 28 2002, 08:53 PM)</td></tr><tr><td id='QUOTE'><!--QuoteEBegin-->a problem with the plugin lib and the rh7.3 libc6 libs. But personally I would update the RH7.3 libs to current libs before I'd bother recompiling the plugin lib.<!--QuoteEnd--></td></tr></table><span class='postcolor'><!--QuoteEEnd-->
    Let me get this straight, you would change the librarys that the system is dependant on before you recompiled a simple little library? OKAY...

    Besides that, the binary seems to work fine with ALL my CS servers, it just AdminMod wouldn't work at all until i recompiled that one library...

    And just so you know, the libc6 RH7.3 has are a version above the one required by adminmod.

    None the less, it's really not hard, you download the cvs, type make in a directoy, and copy a file over to the proper location.<!--QuoteEnd--></td></tr></table><span class='postcolor'><!--QuoteEEnd-->
    What its taboo to keep your system libs upto date? And yes, if I was havening a problem, and I hadent already for some reason updated to the newest released libs. I would use the problem as an excuse to update them. Then I would look into recompiling the admin_mod libs.

    Now i only recently changed over to redhat, as for years I've always ran slackware. But A few of my friends who work for RH kept harping on me to try ver8 out. So i changed over. That being said, I'm not sure if pre RH8.0 has the up2date command access. But I'm sure it has something similar. And it makes keeping your system up-to-date so easy, that they're is no reason why you shouldent be keeping all your system and its libs up-to-date.

    All the same I find it strange that you would think upgradeing your OS is such a bad idea. Regardless of the problems your havening. You update hlds when they release a new version don't you? And I assume you would also update adminod and metamod libs as new bug and optimized versions come out? So why wouldent you also keep your system libs (that are most important libs on your os) upto date as well? First step I take whenever I have a problem is updateing my OS, to ensure its not a problem with outdated, or a bug in the system libs.

    And if the AM lib your haveing a problem with was compiled useing the newer libc6 libs, It would stand to reason it might conflict with an older lib that has bugs in it the newer libc6 doesn't. But I wasn't sayining its BAD to recompile the AM plugin lib. I just said personally, I would update my system libs to the newest before I starting recompiling AM libs.

    And to fix the problem with NS starting and not finding the proper link to the libc6 libs. Rather then creating a link to patch it to the older lib system. I just updated the libstdc libs.

    IE>
    up2date compat-libstdc++

    And then NS ran fine, as it created the proper links and libs NS was looking for. See how easy updateing your system makes life.
  • DrGigglesDrGiggles Join Date: 2002-11-15 Member: 8833Members
    Either way, for me, it required that I recompiled the admin_amx.so lib. Not the whole adminmod_MM_i386.so, just the amx interperator. The compile was very easy and took about a minute, and suddenly it worked.

    I don't understand why everyone feels the need to discredit the fact that a recompile of a simple library would fix anyones problems. Adminmod is an open source project, the source is free, it's not hard to attain, and if recompiling a small part of it makes it work on some systems without having to dink around with the system too much, right on.

    btw, up2date has been around for a while, and it's run automatically on my system in question via a cron job.
  • havenhaven Join Date: 2002-11-15 Member: 8767Members
    Well, I've just spent two hours "playing" with adminmod and metamod to no avail unfortunately. All my servers still core dump as soon as someone joins while Admin Mod is running. I've followed DrGiggles suggestions and I've followed a few thoughts of my own, none of which worked for me.

    I think I've spent enough time on this one so I'll be going without adminmod on my servers for the forseeable future.

    Heres hoping that an easy and workable installation appears at some point in the future.

    Thanks for all the advice. If anyone does come up with a foolproof (and idiot proof for the benefit of yours truly) installation solution to the admin mod problems then please post them up as I'm sure lots of people could benefit.

    The conclusion I have come to is that adminmod is simply not very compatible with natural selection - after all it runs on all my servers fine with other mods - just not this one <!--emo&:(--><img src='http://www.unknownworlds.com/forums/html/emoticons/sad.gif' border='0' valign='absmiddle' alt='sad.gif'><!--endemo-->
  • HtNickoliHtNickoli Join Date: 2002-11-24 Member: 9786Members
    I never used it myself, but I understand clanmod is almost just as good as adminmod. maybe give that a try.
  • DrGigglesDrGiggles Join Date: 2002-11-15 Member: 8833Members
    I used clanmod for about a week before adminmod would work for me, it was pretty nice. Menus were a little hard to get used to, but now I'm using menus in adminmod because I liked them so much <!--emo&:)--><img src='http://www.unknownworlds.com/forums/html/emoticons/smile.gif' border='0' valign='absmiddle' alt='smile.gif'><!--endemo-->
  • havenhaven Join Date: 2002-11-15 Member: 8767Members
    Thanks for the advice - just installed clanmod and it works like a charm - I see what you mean about the menus, they are very handy.
    No more scrabbling around for a command line crib sheet in the middle of a game <!--emo&:)--><img src='http://www.unknownworlds.com/forums/html/emoticons/smile.gif' border='0' valign='absmiddle' alt='smile.gif'><!--endemo-->
Sign In or Register to comment.