Segmentation fault crash on map change

TarvalnTarvaln USA Join Date: 2014-09-29 Member: 198781Members
If someone plays on my server and a map change occurs the server crashes with a segmentation fault. However, if no one uses the server, I can change the map without it crashing.

I'm confused about why this is happening.

I'd appreciate any assistance with this. Thanks!

Mods:
Shine
Shine Extra Plugins
NS2Stats
NS2+
Enforced Exo
Badges+
Date: 11/19/14
Time: 20:44:13:
Build 270
SteamOS x86_64
Server tickrate 30, client sendrate 20, bandwidth limit per player 25600
Connected to Steam servers
[ 1.498] Main : Error: Couldn't start web server at 192.168.1.145:8080
Downloading mods
VAC Enabled
Finished downloading and installing mods
Mounting mod from /home/desktop/.config/Natural Selection 2/Workshop/m706d242_1415646487/
Mounting mod from /home/desktop/.config/Natural Selection 2/Workshop/mc6fbbb0_1413960171/
Mounting mod from /home/desktop/.config/Natural Selection 2/Workshop/m812f004_1416060900/
Mounting mod from /home/desktop/.config/Natural Selection 2/Workshop/m8ed685e_1416035070/
Mounting mod from /home/desktop/.config/Natural Selection 2/Workshop/mb7149f9_1414064711/
Mounting mod from /home/desktop/.config/Natural Selection 2/Workshop/maa8da06_1415397010/
Resampling uncompressed animations at 1/2 frame rate to conserve memory
Loading Shine config...
Loading extensions...
- Extension 'basecommands' loaded.
- Extension 'votesurrender' loaded.
- Extension 'unstuck' loaded.
- Extension 'mapvote' loaded.
- Error loading botcontrol: plugin does not exist.
- Extension 'eloteamrestriction' loaded.
- Extension 'ns2stats' loaded.
- Extension 'ban' loaded.
- Extension 'badges' loaded.
- Extension 'pregameplus' loaded.
- Extension 'pingtracker' loaded.
- Extension 'adminmenubutton' loaded.
- Extension 'motd' loaded.
Completed loading Shine extensions.
Loading Shine users...
[20:44:18]Shine started up successfully.
[20:44:18]Loading config://ServerConfig.json
[20:44:18]Loading config://ReservedSlotsConfig.json
[20:44:18]Loading config://ServerAdmin.json
[20:44:18]Loading config://BannedPlayers.json
[20:44:18]Loading config://MapCycle.json
[20:44:18]Hashed 1 game_setup.xml files for consistency
[20:44:18]Hashed 1036 *.lua files for consistency
[20:44:18]Hashed 41 *.hlsl files for consistency
[20:44:18]Hashed 34 *.shader files for consistency
[20:44:18]Hashed 22 *.screenfx files for consistency
[20:44:18]Hashed 145 *.surface_shader files for consistency
[20:44:18]Hashed 3 *.fxh files for consistency
[20:44:18]Hashed 3 *.render_setup files for consistency
[20:44:18]Hashed 2 *.shader_template files for consistency
[20:44:18]Hashed 13 *.level files for consistency
[20:44:18]Hashed 6520 *.dds files for consistency
[20:44:18]Hashed 88 *.jpg files for consistency
[20:44:18]Hashed 51 *.png files for consistency
[20:44:18]Hashed 934 *.cinematic files for consistency
[20:44:18]Hashed 2299 *.material files for consistency
[20:44:18]Hashed 4005 *.model files for consistency
[20:44:18]Hashed 105 *.animation_graph files for consistency
[20:44:18]Hashed 201 *.polygons files for consistency
[20:44:18]Hashed 7 *.fev files for consistency
[20:44:18]Hashed 27 *.fsb files for consistency
[20:44:18]Skipped 969 ui/*.dds files for consistency
[20:44:18]Skipped 138 *_view*.dds files for consistency
[20:44:18]Skipped 61 *_view*.material files for consistency
[20:44:18]Skipped 150 *_view*.model files for consistency
[20:44:18]Skipped 21 models/marine/hands/* files for consistency
[20:44:18]Skipped 1 sound/*_client.fev files for consistency
[20:44:18]Skipped 1 sound/*_client.fsb files for consistency
[20:44:18]Skipped 1 shaders/DarkVision.hlsl files for consistency
[20:44:18]Skipped 1 shaders/DarkVision.screenfx files for consistency
[20:44:18]Skipped 1 shaders/DarkVision.shader files for consistency
[20:44:18]Hashed 3 lua/entry/*.entry files for consistency
[20:44:18]Consistency checking took 0 seconds
[20:44:18][Elixer (Server)] Loading Utility Scripts v.1.80
[20:44:18][Elixer (Server)] Using Utility Scripts v.1.80
[20:44:18]Loading config://NS2PlusServerConfig.json
[20:44:18]
[20:44:18][NS2+] Blocked client options: drawviewmodel
[20:44:18][NS2+] Display team avg. skill: Disabled
[20:44:18][NS2+] Display player skill pregame: Disabled
[20:44:18][NS2+] Mod updater: Disabled
[20:44:18]
[20:44:19]Loading Badge config://ServerAdmin.json
[ 6.157] Worker 09 : Loading 'maps/ns2_biodome.level'
Building pathing mesh for level maps/ns2_biodome.level
Finished loading 'maps/ns2_biodome.level'
Client connecting (72.193.245.81)
Client connected (72.193.245.81)
[03:27:38]Client Authed. Steam ID: 70777137
SensualCentaur connected.
Client disconnected (72.193.245.81) Kicked
Client connecting (72.193.245.81)
Client connected (72.193.245.81)
[03:38:59]Client Authed. Steam ID: 70777137
SensualCentaur connected.
Client disconnected (72.193.245.81) Quit
Downloading mods
Finished downloading and installing mods
Mounting mod from /home/desktop/.config/Natural Selection 2/Workshop/m706d242_1415646487/
Mounting mod from /home/desktop/.config/Natural Selection 2/Workshop/mc6fbbb0_1413960171/
Mounting mod from /home/desktop/.config/Natural Selection 2/Workshop/m812f004_1416060900/
Mounting mod from /home/desktop/.config/Natural Selection 2/Workshop/m8ed685e_1416035070/
Mounting mod from /home/desktop/.config/Natural Selection 2/Workshop/mb7149f9_1414064711/
Mounting mod from /home/desktop/.config/Natural Selection 2/Workshop/maa8da06_1415397010/
Loading Shine config...
Loading extensions...
- Extension 'basecommands' loaded.
- Extension 'votesurrender' loaded.
- Extension 'unstuck' loaded.
- Extension 'mapvote' loaded.
- Error loading botcontrol: plugin does not exist.
- Extension 'eloteamrestriction' loaded.
- Extension 'ns2stats' loaded.
- Extension 'ban' loaded.
- Extension 'badges' loaded.
- Extension 'pregameplus' loaded.
- Extension 'pingtracker' loaded.
- Extension 'adminmenubutton' loaded.
- Extension 'motd' loaded.
Completed loading Shine extensions.
Loading Shine users...
[06:30:42]Shine started up successfully.
[06:30:42]Loading config://ServerConfig.json
[06:30:42]Loading config://ReservedSlotsConfig.json
[06:30:42]Loading config://ServerAdmin.json
[06:30:42]Loading config://BannedPlayers.json
[06:30:42]Loading config://MapCycle.json
[06:30:42]Hashed 1 game_setup.xml files for consistency
[06:30:42]Hashed 1036 *.lua files for consistency
[06:30:42]Hashed 41 *.hlsl files for consistency
[06:30:42]Hashed 34 *.shader files for consistency
[06:30:42]Hashed 22 *.screenfx files for consistency
[06:30:42]Hashed 145 *.surface_shader files for consistency
[06:30:42]Hashed 3 *.fxh files for consistency
[06:30:42]Hashed 3 *.render_setup files for consistency
[06:30:42]Hashed 2 *.shader_template files for consistency
[06:30:42]Hashed 13 *.level files for consistency
[06:30:42]Hashed 6520 *.dds files for consistency
[06:30:42]Hashed 88 *.jpg files for consistency
[06:30:42]Hashed 51 *.png files for consistency
[06:30:42]Hashed 934 *.cinematic files for consistency
[06:30:42]Hashed 2299 *.material files for consistency
[06:30:42]Hashed 4005 *.model files for consistency
[06:30:42]Hashed 105 *.animation_graph files for consistency
[06:30:42]Hashed 201 *.polygons files for consistency
[06:30:42]Hashed 7 *.fev files for consistency
[06:30:42]Hashed 27 *.fsb files for consistency
[06:30:42]Skipped 969 ui/*.dds files for consistency
[06:30:42]Skipped 138 *_view*.dds files for consistency
[06:30:42]Skipped 61 *_view*.material files for consistency
[06:30:42]Skipped 150 *_view*.model files for consistency
[06:30:42]Skipped 21 models/marine/hands/* files for consistency
[06:30:42]Skipped 1 sound/*_client.fev files for consistency
[06:30:42]Skipped 1 sound/*_client.fsb files for consistency
[06:30:42]Skipped 1 shaders/DarkVision.hlsl files for consistency
[06:30:42]Skipped 1 shaders/DarkVision.screenfx files for consistency
[06:30:42]Skipped 1 shaders/DarkVision.shader files for consistency
[06:30:42]Hashed 3 lua/entry/*.entry files for consistency
[06:30:42]Consistency checking took 0 seconds
[06:30:42][Elixer (Server)] Loading Utility Scripts v.1.80
[06:30:42][Elixer (Server)] Using Utility Scripts v.1.80
[06:30:42]Loading config://NS2PlusServerConfig.json
[06:30:42]
[06:30:42][NS2+] Blocked client options: drawviewmodel
[06:30:42][NS2+] Display team avg. skill: Disabled
[06:30:42][NS2+] Display player skill pregame: Disabled
[06:30:42][NS2+] Mod updater: Disabled
[06:30:42]
[35189.560] Worker 05 : Error: attempt to index a string value
Segmentation fault

Comments

  • TarvalnTarvaln USA Join Date: 2014-09-29 Member: 198781Members
    So... would anyone like to guess? I'm new so I don't know why this would happen.
  • woozawooza Switzerland Join Date: 2013-11-21 Member: 189496Members, Squad Five Blue
    Tarvaln wrote: »
    If someone plays on my server and a map change occurs the server crashes with a segmentation fault. However, if no one uses the server, I can change the map without it crashing.

    When i check you're log, the segementation error occurs when no one is on you're Server too

    [ 1.498] Main : Error: Couldn't start web server at 192.168.1.145:8080

    Maybe disable web Server or check what causing this error.

    Have you already updated you're Server to Build 271?

    Here is the Mailing List, so you don't miss any updates
  • ATFATF Join Date: 2014-05-09 Member: 195944Members
    SteamOS? Is it supposed to work on it? I guess there's nothing technical speaking against it.
    If the webadmin webserver doesn't start anyways, just disable it by not defining it in the start params. (Just as wooz said)
    Have you tried it without any mods?
  • GhoulofGSG9GhoulofGSG9 Join Date: 2013-03-31 Member: 184566Members, Super Administrators, Forum Admins, Forum Moderators, NS2 Developer, NS2 Playtester, Squad Five Blue, Squad Five Silver, Reinforced - Supporter, WC 2013 - Supporter, Pistachionauts
    Ok let me clear this up a bit:

    This issue is kinda known and was tracked down to some jit ffi callback issue and is happening at both OSs (slightly more often at Linux thought). And we are kind of trying to figure out atm what is going wrong.

    If you want to help us debugging, please attach gdb to the ns2server process and run gdb bt after a crash:

    More details here:

    https://wiki.ubuntu.com/Backtrace (Afaik SteamOS is a branch of debian and as ubuntu is also a branch of debian yeah that tut also applies on SteamOS)

    Post the backtraces afterwards here in the forum or mail them to ns2cdt[at]gmail.com ;)




  • artemartem Join Date: 2012-09-16 Member: 159587Members
    A similar problem. Server crashes at varying intervals at start voting map.

    Mods:
    Shine Administration
    [Shine] Extra Plugins
    [Shine] NS2Stats
    Badges+
    NS2+
    Shotgun fix for GNU/Linux
    ns2_jambi
    ns2_veil_five
    ns2_Stratos
    ns2_hydra

    Error:
    [326.031] Main : Error: lua/Team.lua:153: expected self tobe a Type
    [Server] Script Error #1: lua/Team.lua:153: expected self tobe a Type
        Call stack:
        #1: GetOwner [C]:-1
        #2: StartVote lua/Team.lua:153
            player = "VoteChangeMap"
        #3: lua/Voting.lua:114
            client = ServerClient { }
            message =  {client_index=0, expireTime=0, map_index=7, voteId=0 }
    

    Backtrace:
    #0 0xf6c4acbc in lj_BC_USETV () from /home/art/ns2/liblua51.so
    #1 0xf6be9ebd in lua_pcall (L=0xc969500c, nargs=2, nresults=0, errfunc=2) at ../Source/LuaJIT/src/lj_api.c:1111
    #2 0x0806697a in M4::Script_Call (L=0xc969500c, nargs=2, nresults=0) at ../Source/Spark_Server/Script.cpp:1674
    #3 0x08085428 in M4::ServerWorld::MessageHandlerScript::Call (this=0xc5c03ff8, world=0xc3bf3fe8, client=0xd6dd3f40, data=0xc7685fc7, dataLength=16) at ../Source/Spark_Server/ServerWorld.h:640
    #4 0x0807df4b in M4::ServerWorld::OnMessagePacket (this=0xc3bf3fe8, connection=0xd9214fd0, reader=...) at ../Source/Spark_Server/ServerWorld.cpp:965
    #5 0x08075ed1 in M4::ServerGame::OnPacket (this=0xf425ac40, connection=0xd9214fd0, packet=...) at ../Source/Spark_Server/ServerGame.cpp:1174
    #6 0x08076d0d in M4::ServerGame::ServiceNetwork (this=0xf425ac40, desiredStopTime=392.730226007, maxStopTime=392.730226007) at ../Source/Spark_Server/ServerGame.cpp:844
    #7 0x080770db in M4::ServerGame::Update (this=0xf425ac40, deltaTime=0.0072107619999997041, waitForPackets=true) at ../Source/Spark_Server/ServerGame.cpp:726
    #8 0x0807372a in M4::ServerEngine::Update (this=0xf62eb1b8, deltaTime=0.0072107619999997041) at ../Source/Spark_Server/ServerEngine.cpp:68
    #9 0x08063354 in M4::BaseEngine::RunFrame (this=0xf62eb1b8) at ../Source/Spark_Server/BaseEngine.cpp:208
    #10 0x0805ef50 in M4::Server::Run (this=0xf62eb170, settings=..., commandLine=..., console=false, webServer=false, modDirectory=0x8f19254 "../servers/ru2/mods/") at ../Source/Server/linux/Server.cpp:169
    #11 0x0805d38e in Run (parser=...) at ../Source/Server/Main.cpp:173
    #12 0x0805c1c7 in main (argc=<error reading variable: Cannot access memory at address 0x5e>, argv=<error reading variable: Cannot access memory at address 0x62>) at ../Source/Server/Main.cpp:234

    Full log:
    https://www.dropbox.com/s/f7u67tjjyfyumip/log-Server.txt
  • artemartem Join Date: 2012-09-16 Member: 159587Members
  • GhoulofGSG9GhoulofGSG9 Join Date: 2013-03-31 Member: 184566Members, Super Administrators, Forum Admins, Forum Moderators, NS2 Developer, NS2 Playtester, Squad Five Blue, Squad Five Silver, Reinforced - Supporter, WC 2013 - Supporter, Pistachionauts
    edited December 2014
    I haven't got any news beside that this issue is related to some kind of a core issue of the luajit vm. To this day we still haven't found any steps to reproduce this crash (and i invested quiet some time into it).

    Furthermore related issues are showing up at mostly all kind of places. Lately we found even a critical client issue possible related to this one. But as we don't have any hint about the source yet i can't tell you anything in detail about it.

    So far we are still investigating. So no idea when this will get fixed.

    For now i recommend you as all ns2 server operators to use monitor scripts to auto-restart your server in case it freezes or crashes as we have these kind of issues around since ns2 got released and i guess we will have them around for quiet some time even if we are able to fix this one.

    For Linux there is even a good server script collection available: http://danielgibbs.co.uk/lgsm/ns2server/
  • ATFATF Join Date: 2014-05-09 Member: 195944Members
    @artem this thread already covers that crash. Happens during pregame only, on initialisation of one of the vanilla votes. Could have something to do with players still loading while the vote gets initiated. Got no solid reproduction steps, just plenty of crashdumps.
Sign In or Register to comment.