Thread: [SC 5.16] Crash 'double free or corruption (!prev)'

Results 1 to 6 of 6
  1. #1
    [APG] Clan Boss
    Join Date
    Jun 2017
    Posts
    14

    [SC 5.16] Crash 'double free or corruption (!prev)'

    Hello I'm doing a GDB Debug test of Sven Co-op 5.16 for my server as well check how my Addons and RCBots are doing. I've encountered a crash that just occured today. I don't know if my addons triggered the crash:-

    Code:
    *** Error in `/home/desktop/steamcmd/sven/svends_i686': double free or corruption (!prev): 0x087c3a30 ***
    
    Program received signal SIGABRT, Aborted.
    0xf7fdb430 in __kernel_vsyscall ()
    (gdb) bt
    #0  0xf7fdb430 in __kernel_vsyscall ()
    #1  0xf7d25687 in __GI_raise (sig=sig@entry=6)
        at ../nptl/sysdeps/unix/sysv/linux/raise.c:56
    #2  0xf7d28ab3 in __GI_abort () at abort.c:89
    #3  0xf7d5ffd3 in __libc_message (do_abort=do_abort@entry=1, 
        fmt=fmt@entry=0xf7e5f1dc "*** Error in `%s': %s: 0x%s ***\n")
        at ../sysdeps/posix/libc_fatal.c:175
    #4  0xf7d6a4ca in malloc_printerr (action=<optimized out>, 
        str=0xf7e5f2d0 "double free or corruption (!prev)", ptr=0x87c3a30) at malloc.c:4998
    #5  0xf7d6b1bd in _int_free (av=0xf7ea4420 <main_arena>, p=<optimized out>, have_lock=0)
        at malloc.c:3842
    #6  0xf7f30e68 in operator delete(void*) () from ./libstdc++.so.6
    #7  0xe319b6f8 in CPlugin::Cleanup() ()
       from /home/desktop/steamcmd/sven/svencoop/addons/adminmod/dlls/admin_mm.so
    #8  0xe319b789 in CPlugin::~CPlugin() ()
       from /home/desktop/steamcmd/sven/svencoop/addons/adminmod/dlls/admin_mm.so
    #9  0xe3198d98 in CLinkList<CPlugin, false>::Init() ()
       from /home/desktop/steamcmd/sven/svencoop/addons/adminmod/dlls/admin_mm.so
    #10 0xe3199be7 in void LoadFile<CPlugin, false>(char*, CLinkList<CPlugin, false>*, char*, int (*)(char*)) () from /home/desktop/steamcmd/sven/svencoop/addons/adminmod/dlls/admin_mm.so
    #11 0xe3198a1e in LoadPlugins() ()
       from /home/desktop/steamcmd/sven/svencoop/addons/adminmod/dlls/admin_mm.so
    #12 0xe319e278 in AM_ClientStart(edict_s*) ()
       from /home/desktop/steamcmd/sven/svencoop/addons/adminmod/dlls/admin_mm.so
    #13 0xe31a0586 in AM_ClientConnect(edict_s*, char const*, char const*, char*, bool) ()
       from /home/desktop/steamcmd/sven/svencoop/addons/adminmod/dlls/admin_mm.so
    #14 0xe3180db1 in ClientConnect(edict_s*, char const*, char const*, char*) ()
       from /home/desktop/steamcmd/sven/svencoop/addons/adminmod/dlls/admin_mm.so
    ---Type <return> to continue, or q <return> to quit---
    #15 0xe3facf80 in api_caller_int_args_4p(void const*, void const*) ()
       from /home/desktop/steamcmd/sven/./svencoop/addons/metamod/metamod.so
    #16 0xe3fad539 in main_hook_function(class_ret_t, unsigned int, enum_api_t, unsigned int, void const*) () from /home/desktop/steamcmd/sven/./svencoop/addons/metamod/metamod.so
    #17 0xe3fae90a in mm_ClientConnect(edict_s*, char const*, char const*, char*) [clone .lto_priv.53] () from /home/desktop/steamcmd/sven/./svencoop/addons/metamod/metamod.so
    #18 0xf692021d in SV_New_f () from /home/desktop/steamcmd/sven/engine_i686.so
    #19 0xf68db7b1 in Cmd_ExecuteString () from /home/desktop/steamcmd/sven/engine_i686.so
    #20 0xf6939064 in SV_ParseStringCommand () from /home/desktop/steamcmd/sven/engine_i686.so
    #21 0xf693cee5 in SV_ExecuteClientMessage ()
       from /home/desktop/steamcmd/sven/engine_i686.so
    #22 0xf692e343 in SV_ReadPackets () from /home/desktop/steamcmd/sven/engine_i686.so
    #23 0xf692e5db in SV_Frame () from /home/desktop/steamcmd/sven/engine_i686.so
    #24 0xf68fa783 in _Host_Frame () from /home/desktop/steamcmd/sven/engine_i686.so
    #25 0xf68fa9b8 in Host_Frame () from /home/desktop/steamcmd/sven/engine_i686.so
    #26 0xf691b524 in CEngine::Frame() () from /home/desktop/steamcmd/sven/engine_i686.so
    #27 0xf691a0b5 in CDedicatedServerAPI::RunFrame() ()
       from /home/desktop/steamcmd/sven/engine_i686.so
    #28 0x08049b92 in RunServer() ()
    #29 0x0804936c in main ()
    (gdb)
    The server I'm using is Xubuntu 14.04 x86_64 and here is the specific Sven Co-op version I'm using:-

    Code:
    Protocol version 48
    Exe version 5.0.0.0 (svencoop)
    Exe build: 12:14:49 Jan  6 2018 (7744)
    vBulletin Webmaster since 2001

  2. #2
    Administrator AdamR's Avatar  
    Manager
    Join Date
    Mar 2004
    Location
    Cardiff, South Wales [uk]
    Posts
    8,433

    Re: [SC 5.16] Crash 'double free or corruption (!prev)'

    Looks like an Adminmod plugin dispatched a command to be executed in the game engine. What was it?

    Also have you asked the Adminmod team for help yet? What happens if your server doesn't run Adminmod?
    Adam "Adambean" Reece
    Sven Co-op team

    Also on: Steam | Facebook | Twitter | YouTube | Twitch
    Released AMXX plug-ins: Bind number slots | NextMap with Sven Co-op fix | Sven Co-op administrator icons

  3. #3
    [APG] Clan Boss
    Join Date
    Jun 2017
    Posts
    14

    Re: [SC 5.16] Crash 'double free or corruption (!prev)'

    Well it doesn't crash frequently as RCBot due to the 'WaypointFindPath(path**, int*, int, int) ()'.

    Also I've recompiled AdminMod and RCBots by myself, despite I'm no C++ pro. I still have contact with the AdminMod dev team from Bavaria and Cheeseh as I've been active on patching their inventions.

    https://github.com/APGRoboCop/halflifeadmin
    https://github.com/APGRoboCop/rcbot1

    Here is the list of Metamod addons I'm using:-

    Code:
    ] meta list
    Currently running plugins:
     [  1] Adminmod, v2.50.61-APG (MM), Feb 11 2018, by Alfred Reynolds & RoboCop <robocop@lycos.co.uk>, see www.adminmod.org
     [  2] AMX Mod X, v1.8.2, Feb 14 2013, by AMX Mod X Dev Team, see http://www.amxmodx.org
     [  3] RCBot For Half-Life, v1.443_mm, Feb 11 2018, by Cheeseh (cheeseh@bots-united.com), see http://rcbot.bots-united.com
     [  4] Spawn & Chat Protection Plugin, v2.02, 24/11/2015, by Jussi Kivilinna <jussi.kivilinna@mbnet.fi>, see http://koti.mbnet
     [  5] Fun, v1.8.2, Feb 14 2013, by AMX Mod X Dev Team, see http://www.amxmodx.org
     [  6] FakeMeta, v1.8.2, Feb 14 2013, by AMX Mod X Dev Team, see http://www.amxmodx.org
    6 plugins
    Anyway focusing on the Sven engine itself, I'll maybe try to run Sven without AdminMod - or if possible any other plugins from either Metamod and AngelScript.
    vBulletin Webmaster since 2001

  4. #4
    [APG] Clan Boss
    Join Date
    Jun 2017
    Posts
    14

    Re: [SC 5.16] Crash 'double free or corruption (!prev)'

    I've switched to AdminMod Debug build but not had the chance to recompile RCBot as Debug build yet, but I've received another crash with the same addons and Sven engine:-

    Code:
    Program received signal SIGSEGV, Segmentation fault.
    0xe3a34a5f in CBaseEntity::IRelationship(CBaseEntity*) ()
       from /home/desktop/steamcmd/sven/svencoop/dlls/hl_i386.so
    (gdb) bt
    #0  0xe3a34a5f in CBaseEntity::IRelationship(CBaseEntity*) ()
       from /home/desktop/steamcmd/sven/svencoop/dlls/hl_i386.so
    #1  0xe391cd2b in CApache::Look(int) ()
       from /home/desktop/steamcmd/sven/svencoop/dlls/hl_i386.so
    #2  0xe391cfc0 in CApache::HuntThink() ()
       from /home/desktop/steamcmd/sven/svencoop/dlls/hl_i386.so
    #3  0xe3949a5a in DispatchThink(edict_s*) ()
       from /home/desktop/steamcmd/sven/svencoop/dlls/hl_i386.so
    #4  0xe3f9ddf7 in api_caller_void_args_p(void const*, void const*) ()
       from /home/desktop/steamcmd/sven/./svencoop/addons/metamod/metamod.so
    #5  0xe3fa1bf0 in main_hook_function_void(unsigned int, enum_api_t, unsigned int, void const*) ()
       from /home/desktop/steamcmd/sven/./svencoop/addons/metamod/metamod.so
    #6  0xe3fa4fa0 in mm_DispatchThink(edict_s*) ()
       from /home/desktop/steamcmd/sven/./svencoop/addons/metamod/metamod.so
    #7  0xf6935bdb in SV_Physics_Toss ()
       from /home/desktop/steamcmd/sven/engine_i686.so
    #8  0xf6936f28 in SV_Physics () from /home/desktop/steamcmd/sven/engine_i686.so
    #9  0xf692e746 in SV_Frame () from /home/desktop/steamcmd/sven/engine_i686.so
    #10 0xf68fa783 in _Host_Frame ()
       from /home/desktop/steamcmd/sven/engine_i686.so
    ---Type <return> to continue, or q <return> to quit---
    #11 0xf68fa9b8 in Host_Frame () from /home/desktop/steamcmd/sven/engine_i686.so
    #12 0xf691b524 in CEngine::Frame() ()
       from /home/desktop/steamcmd/sven/engine_i686.so
    #13 0xf691a0b5 in CDedicatedServerAPI::RunFrame() ()
       from /home/desktop/steamcmd/sven/engine_i686.so
    #14 0x08049b92 in RunServer() ()
    #15 0x0804936c in main ()
    (gdb)
    In case you ask I've used [ ln -s server.so hl_i386.so ] inside the svencoop/dlls folder for Metamod-P37 to work. Again I don't know if this crash is caused by the Metamod Addons itself but it looks like AdminMod hasn't crashed yet.
    vBulletin Webmaster since 2001

  5. #5
    Administrator AdamR's Avatar  
    Manager
    Join Date
    Mar 2004
    Location
    Cardiff, South Wales [uk]
    Posts
    8,433

    Re: [SC 5.16] Crash 'double free or corruption (!prev)'

    That looks a little more interesting. Do you have a plug-in trying to create an Apache? Function `IRelationship` is used to determine if the A.I. should be friendly, passive, or aggressive, and is based on classification. What value have you put in the Apache's classification?
    Adam "Adambean" Reece
    Sven Co-op team

    Also on: Steam | Facebook | Twitter | YouTube | Twitch
    Released AMXX plug-ins: Bind number slots | NextMap with Sven Co-op fix | Sven Co-op administrator icons

  6. #6
    [APG] Clan Boss
    Join Date
    Jun 2017
    Posts
    14

    Re: [SC 5.16] Crash 'double free or corruption (!prev)'

    I very much doubt I've spawned a gunship or that as it only contains Hookmod, RollTheDice as well as Blatt's Map Management, etc. But not to spawn any weapons, monsters or vehicles. And I don't know the value of the Apache classification as far as I know on which bits in my Sven server I've tampered with.
    vBulletin Webmaster since 2001

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •