Page 1 of 2
error: Segmentation fault
Posted: Mon Sep 22, 2014 11:54 pm
by Alexandre24
Re hello,
Geez .. still a strange error. Dsgame the window stopped functioning, leaving this message. Segmentation fault. What does that mean?
Compared to my tests, it is only when I'm in the middle part. If I'm not log the server as you it continues to work well.
My OS is Debian
[0:35:35] [Status] The map-server is ready to work ...
================================================== =====================
[0:35:35] [Debug] [Lua] Garbage Collected. Current State Top: 0
[0:37:14] [Debug] Finished UpdateWeather
[0:44:46] [Info] mapsession: 96.20.230.214: 54090 is coming to world ...
[0:44:46] [Info] parse: 00A | 0001 0000 2E from user: Kiros
[0:44:46] [Debug] :: CZone Southern_San_dOria IncreaseZoneCounter <1> Kiros
[0:44:46] [Info] parse: 011 | 0002 0001 04 from user: Kiros
[0:44:48] [Info] parse: 0F2 | 0003 0002 04 from user: Kiros
[0:44:48] [Info] parse: 00C | 0003 0002 06 from user: Kiros
[0:44:48] [Info] parse: 061 | 0003 0002 02 from user: Kiros
[0:44:48] [Info] parse: 01A | 0003 0002 08 from user: Kiros
[0:44:48] [Debug] Kiros PERFORMING CLIENT ACTION 14
[0:44:48] [Info] parse: 04B | 0003 0002 0C from user: Kiros
[0:44:48] [Info] parse: 0E0 | 0003 0002 4C from user: Kiros
[0:44:48] [Info] parse: 00F | 0003 0002 12 from user: Kiros
[0:44:48] [Info] parse: 0DB | 0003 0002 14 from user: Kiros
[0:44:48] [Info] parse: 112 | 0003 0002 04 from user: Kiros
[0:44:48] [Warning] parse: Unhandled game packet 112 from user: Kiros
[0:44:48] [Info] parse: 05A | 0003 0002 02 from user: Kiros
[0:46:50] [Debug] Finished UpdateWeather
[0:47:22] [Status] luautils :: free: lua free ... - [OK]
Segmentation fault
Re: error: Segmentation fault
Posted: Tue Sep 23, 2014 12:28 pm
by Alexandre24
I managed to fix the problem by myself. An update package was to be done in debian.
Re: error: Segmentation fault
Posted: Tue Sep 23, 2014 6:08 pm
by Alexandre24
I spoke too soon. The error is returned. What does this mean? His commitment all the time disconnections. The same thing for Ubuntu
Re: error: Segmentation fault
Posted: Tue Oct 21, 2014 10:12 pm
by Alexandre24
One idea?
Re: error: Segmentation fault
Posted: Thu Oct 23, 2014 8:24 am
by Melodina
I'm also see the same error.
Segfaults approx 15 minutes into play.
[07:32:01][Info] parse: 0E0 | 0003 0002 4C from user: Mechiale
[07:32:01][Info] parse: 00F | 0003 0002 12 from user: Mechiale
[07:32:01][Info] parse: 0DB | 0003 0002 14 from user: Mechiale
[07:32:01][Info] parse: 112 | 0003 0002 04 from user: Mechiale
[07:32:01][Debug] parse: SmallPacket is not implemented Type<112>
[07:32:01][Info] parse: 05A | 0003 0002 02 from user: Mechiale
[07:32:34][Info] parse: 01A | 004E 004D 08 from user: Mechiale
[07:32:34][Debug] CLIENT Mechiale PERFORMING ACTION 00
[07:32:37][Info] parse: 01A | 0055 0054 08 from user: Mechiale
[07:32:37][Debug] CLIENT Mechiale PERFORMING ACTION 00
[07:33:58][Debug] [Lua] Garbage Collected. Current State Top: 0
Segmentation fault
Re: error: Segmentation fault
Posted: Thu Oct 23, 2014 9:13 am
by whasf
You'll have to use gdb to look at the dump file to see where/why it's crashing.
Re: error: Segmentation fault
Posted: Thu Oct 23, 2014 9:47 am
by Melodina
More for the error
[09:49:10][Debug] CZone:: Southern_San_dOria DecreaseZoneCounter <0> Mechiale
[09:49:12][Debug] map_close_session: session closed
[09:49:28][Error] Memory manager: args of aFree 0x0x7f4e7a5b7014 is invalid pointer src/map/map.cpp line 232
[09:49:28][Error] Memory manager: args of aFree 0x0x7f4e7a5b7724 is invalid pointer src/map/map.cpp line 233
[09:49:28][Error] Memory manager: args of aFree 0x0x7f4e7a1c404c is invalid pointer src/map/map.cpp line 235
Segmentation fault
Re: error: Segmentation fault
Posted: Thu Oct 23, 2014 10:20 am
by Melodina
GDB trace
[10:17:44][Status] The map-server is ready to work...
=======================================================================
[10:17:44][Debug] [Lua] Garbage Collected. Current State Top: 0
[10:19:29][Info] mapsession:24.76.189.252:54090 is coming to world...
[10:19:29][Info] parse: 00A | 0001 0000 2E from user: Mechiale
[10:19:29][Debug] CZone:: Southern_San_dOria IncreaseZoneCounter <1> Mechiale
[10:19:29][Info] parse: 011 | 0002 0001 04 from user: Mechiale
[10:19:31][Info] parse: 00C | 0003 0002 06 from user: Mechiale
[10:19:31][Info] parse: 061 | 0003 0002 02 from user: Mechiale
[10:19:31][Info] parse: 01A | 0003 0002 08 from user: Mechiale
[10:19:31][Debug] CLIENT Mechiale PERFORMING ACTION 14
[10:19:31][Info] parse: 04B | 0003 0002 0C from user: Mechiale
[10:19:31][Info] parse: 0E0 | 0003 0002 4C from user: Mechiale
[10:19:31][Info] parse: 00F | 0003 0002 12 from user: Mechiale
[10:19:31][Info] parse: 0DB | 0003 0002 14 from user: Mechiale
[10:19:31][Info] parse: 112 | 0003 0002 04 from user: Mechiale
[10:19:31][Debug] parse: SmallPacket is not implemented Type<112>
[10:19:31][Info] parse: 05A | 0003 0002 02 from user: Mechiale
[10:19:44][Info] parse: 061 | 001F 001E 02 from user: Mechiale
[10:20:00][Info] parse: 061 | 0043 0041 02 from user: Mechiale
[10:20:24][Debug] UpdateWeather Finished
[10:20:41][Info] parse: 01A | 00A4 009F 08 from user: Mechiale
[10:20:41][Debug] CLIENT Mechiale PERFORMING ACTION 00
[10:20:41][Info] parse: 016 | 00A5 00A0 04 from user: Mechiale
[10:20:47][Info] parse: 05B | 00B2 00AC 0A from user: Mechiale
[10:20:49][Info] parse: 01A | 00B7 00B1 08 from user: Mechiale
[10:20:49][Debug] CLIENT Mechiale PERFORMING ACTION 00
[10:20:55][Info] parse: 05B | 00C8 00C2 0A from user: Mechiale
[10:20:58][Info] parse: 01A | 00D0 00CA 08 from user: Mechiale
[10:20:58][Debug] CLIENT Mechiale PERFORMING ACTION 00
[10:21:01][Info] parse: 016 | 00D7 00D1 04 from user: Mechiale
[10:21:11][Info] parse: 01A | 00ED 00E7 08 from user: Mechiale
[10:21:11][Debug] CLIENT Mechiale PERFORMING ACTION 00
[10:21:20][Info] parse: 01A | 0102 00FC 08 from user: Mechiale
[10:21:20][Debug] CLIENT Mechiale PERFORMING ACTION 00
[10:21:29][Info] parse: 05B | 0118 0111 0A from user: Mechiale
[10:21:31][Info] parse: 01A | 011B 0114 08 from user: Mechiale
[10:21:31][Debug] CLIENT Mechiale PERFORMING ACTION 00
Program received signal SIGSEGV, Segmentation fault.
0x00007ffff7b76781 in lj_BC_RET () from /lib64/libluajit-5.1.so.2
(gdb) backtrace
#0 0x00007ffff7b76781 in lj_BC_RET () from /lib64/libluajit-5.1.so.2
#1 0x00007ffff7bba080 in lua_pcall (L=<optimized out>, nargs=<optimized out>, nresults=<optimized out>, errfunc=<optimized out>) at lj_api.c:1052
#2 0x0000000000453e99 in luautils::OnNpcPath (PNpc=0x1893520) at src/map/lua/luautils.cpp:1467
#3 0x000000000042e2a4 in CAINpcDummy::ActionRoaming (this=0x1893640) at src/map/ai/ai_npc_dummy.cpp:83
#4 0x00000000004c6457 in CZoneEntities::ZoneServer (this=0x80ffe0, tick=tick@entry=3132785000) at src/map/zone_entities.cpp:895
#5 0x00000000004c3434 in CZone::ZoneServer (this=0x80ff30, tick=3132785000) at src/map/zone.cpp:712
#6 0x00000000004c32ee in zone_server_region (tick=3132785000, PTask=<optimized out>) at src/map/zone.cpp:92
#7 0x0000000000419ce8 in CTaskMgr::DoTimer (this=0x7b3450, tick=tick@entry=3132785000) at src/common/taskmgr.cpp:71
#8 0x0000000000405a2e in main (argc=1, argv=0x7fffffffdfb8) at src/common/kernel.cpp:250
(gdb) frame 2
#2 0x0000000000453e99 in luautils::OnNpcPath (PNpc=0x1893520) at src/map/lua/luautils.cpp:1467
1467 if( lua_pcall(LuaHandle,1,LUA_MULTRET,0) )
(gdb) frame 3
#3 0x000000000042e2a4 in CAINpcDummy::ActionRoaming (this=0x1893640) at src/map/ai/ai_npc_dummy.cpp:83
83 luautils::OnNpcPath(m_PNpc);
(gdb) frame 4
#4 0x00000000004c6457 in CZoneEntities::ZoneServer (this=0x80ffe0, tick=tick@entry=3132785000) at src/map/zone_entities.cpp:895
895 PNpc->PBattleAI->CheckCurrentAction(tick);
(gdb) frame 5
#5 0x00000000004c3434 in CZone::ZoneServer (this=0x80ff30, tick=3132785000) at src/map/zone.cpp:712
712 m_zoneEntities->ZoneServer(tick);
(gdb) frame 6
#6 0x00000000004c32ee in zone_server_region (tick=3132785000, PTask=<optimized out>) at src/map/zone.cpp:92
92 PZone->ZoneServer(tick);
(gdb) frame 7
#7 0x0000000000419ce8 in CTaskMgr::DoTimer (this=0x7b3450, tick=tick@entry=3132785000) at src/common/taskmgr.cpp:71
71 PTask->m_func(( diff < -1000 ? tick : PTask->m_tick),PTask);
(gdb) frame 8
#8 0x0000000000405a2e in main (argc=1, argv=0x7fffffffdfb8) at src/common/kernel.cpp:250
250 next = CTaskMgr::getInstance()->DoTimer(gettick_nocache());
Re: error: Segmentation fault
Posted: Thu Oct 23, 2014 3:26 pm
by kjLotus
Re: error: Segmentation fault
Posted: Thu Oct 23, 2014 3:47 pm
by Melodina
Retesting - verified fixed.