Jump to content

Recommended Posts

Hi, this source code is using clang,

 

i've compared the code to other sources nothing's different but this crashes

 

gdb:

Core was generated by `./sv1-ch1-core3'.
Program terminated with signal SIGABRT, Aborted.
#0  thr_kill () at thr_kill.S:3
3       thr_kill.S: No such file or directory.
[Current thread is 1 (LWP 100132)]
(gdb) bt
#0  thr_kill () at thr_kill.S:3
#1  0x212b3dbb in raise (s=6) at /usr/src/lib/libc/gen/raise.c:52
#2  0x212313ef in abort () at /usr/src/lib/libc/stdlib/abort.c:67
#3  0x212a48dc in assert (func=0x42738a "instance",
    file=0x427393 "/root/m2-server-src/source/server/game/../common/singleton.h", line=24, failedexpr=0x440f2e "ms_singleton")
    at /usr/src/lib/libc/gen/assert.c:51
#4  0x00911272 in singleton<quest::CQuestManager>::instance ()
    at /root/m2-server-src/source/server/game/../common/singleton.h:24
#5  0x00be83e7 in quest::pc_get_current_map_index (L=0x2fe50d60)
    at /root/m2-server-src/source/server/game/questlua_pc.cpp:575
#6  0x00f25e37 in luaD_precall (L=0x2fe50d60, func=0x2fecaed4)
    at /root/m2-server-src/source/server/liblua/ldo.c:260
#7  0x00f3f60e in luaV_execute (L=0x2fe50d60)
    at /root/m2-server-src/source/server/liblua/lvm.c:627
#8  0x00f26850 in resume (L=0x2fe50d60, ud=0xffffa0e8)
    at /root/m2-server-src/source/server/liblua/ldo.c:344
#9  0x00f25802 in luaD_rawrunprotected (L=0x2fe50d60, f=0xf26770 <resume>,
    ud=0xffffa0e8) at /root/m2-server-src/source/server/liblua/ldo.c:88
#10 0x00f26627 in lua_resume (L=0x2fe50d60, nargs=0)
    at /root/m2-server-src/source/server/liblua/ldo.c:371
#11 0x00baa271 in quest::CQuestManager::RunState (this=0xffffb1d8, qs=...)
    at /root/m2-server-src/source/server/game/questlua.cpp:785

 

gdb bt full

 

#0  0x212b58b3 in ?? ()
No symbol table info available.
#1  0x212313ef in ?? ()
No symbol table info available.
#2  0x00000006 in ?? ()
No symbol table info available.
#3  0x20f50569 in ?? ()
No symbol table info available.
#4  0x20f73000 in ?? ()
No symbol table info available.
#5  0x212a48dc in ?? ()
No symbol table info available.
#6  0x2fecae80 in ?? ()
No symbol table info available.
#7  0x00911272 in singleton<quest::CQuestManager>::instance ()
    at /root/m2-server-src/source/server/game/../common/singleton.h:24
No locals.
#8  0x00be83e7 in quest::pc_get_current_map_index (L=0x2fe50d60)
    at /root/m2-server-src/source/server/game/questlua_pc.cpp:575
No locals.
#9  0x00f25e37 in luaD_precall (L=0x2fe50d60, func=0x2fecaed4)
    at /root/m2-server-src/source/server/liblua/ldo.c:260
        ci = 0x2ff18e30

 

this is where it points me to

 

    int pc_get_war_map(lua_State* L)
    {
        LPCHARACTER ch = CQuestManager::instance().GetCurrentCharacterPtr();
        lua_pushnumber(L, ch->GetWarMap() ? ch->GetWarMap()->GetMapIndex() : 0);
        return 1;
    }

 

 

Edited by doxiddos
  • Replies 4
  • Created
  • Last Reply

Top Posters In This Topic

  • 3 weeks later...

Don't use any images from : imgur, turkmmop, freakgamers, inforge, hizliresim... Or your content will be deleted without notice...
Use : https://metin2.download/media/add/

Please use https://metin2.download/ when uploading files smaller than 100MB, otherwise the approval will take longer due to manual upload.

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
×
×
  • Create New...

Important Information

Terms of Use / Privacy Policy / Guidelines / We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.