{"action":"created","issue":{"url":"https://api.github.com/repos/rathena/rathena/issues/513","labels_url":"https://api.github.com/repos/rathena/rathena/issues/513/labels{/name}","comments_url":"https://api.github.com/repos/rathena/rathena/issues/513/comments","events_url":"https://api.github.com/repos/rathena/rathena/issues/513/events","html_url":"https://github.com/rathena/rathena/issues/513","id":95272939,"number":513,"title":"Map server crashes frequently and randomly","user":{"login":"efraimrodrigues","id":12123918,"avatar_url":"https://avatars.githubusercontent.com/u/12123918?v=3","gravatar_id":"","url":"https://api.github.com/users/efraimrodrigues","html_url":"https://github.com/efraimrodrigues","followers_url":"https://api.github.com/users/efraimrodrigues/followers","following_url":"https://api.github.com/users/efraimrodrigues/following{/other_user}","gists_url":"https://api.github.com/users/efraimrodrigues/gists{/gist_id}","starred_url":"https://api.github.com/users/efraimrodrigues/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/efraimrodrigues/subscriptions","organizations_url":"https://api.github.com/users/efraimrodrigues/orgs","repos_url":"https://api.github.com/users/efraimrodrigues/repos","events_url":"https://api.github.com/users/efraimrodrigues/events{/privacy}","received_events_url":"https://api.github.com/users/efraimrodrigues/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2015-07-15T19:36:38Z","updated_at":"2015-07-15T19:47:50Z","closed_at":null,"body":"My map server is crashing randomly and I don't know why. It runs for 5 hours and then it crashes. I remember I traced it back yesterday and if I'm not wrong, I got a different error. Is it possible that my compiler is not compatible or something like that? I'm using the latest rAthena.\r\n\r\n\r\nMy map server is crashing randomly and I don't know why. It runs for 5 hours and then it crashes. I remember I traced it back yesterday and if I'm not wrong, I got a different error. Is it possible that my compiler is not compatible or something like that? I'm using the latest rAthena.\r\n\r\nI appreciate y'all help.\r\n\r\nThis is the gcc -v output:\r\ngcc -v\r\nUsing built-in specs.\r\nTarget: i686-redhat-linux\r\nConfigured with: ../configure --prefix=/usr --mandir=/usr/share/man --infodir=/usr/share/info --with-bugurl=http://bugzilla.redhat.com/bugzilla --enable-bootstrap --enable-shared --enable-threads=posix --enable-checking=release --with-system-zlib --enable-__cxa_atexit --disable-libunwind-exceptions --enable-gnu-unique-object --enable-languages=c,c++,objc,obj-c++,java,fortran,ada --enable-java-awt=gtk --disable-dssi --with-java-home=/usr/lib/jvm/java-1.5.0-gcj-1.5.0.0/jre --enable-libgcj-multifile --enable-java-maintainer-mode --with-ecj-jar=/usr/share/java/eclipse-ecj.jar --disable-libjava-multilib --with-ppl --with-cloog --with-tune=generic --with-arch=i686 --build=i686-redhat-linux\r\nThread model: posix\r\ngcc version 4.4.7 20120313 (Red Hat 4.4.7-11) (GCC) \r\n\r\n\r\nI tried to trace it back with GDB and this is what I got.\r\n\r\n\r\n[New Thread 25877]\r\nCannot access memory at address 0x18\r\n(gdb) bt full\r\n#0  0x0811b4c5 in mobskill_event (md=0xaa3c622c, src=0x447, tick=188580488, flag=15648876) at mob.c:3456\r\n        target_id = <value optimized out>\r\n        res = 653117347\r\n#1  0x081b4c5b in skill_castend_nodamage_id (src=0xaa3c622c, bl=0xaa3c622c, skill_id=193, skill_lv=1, tick=653117333, flag=0)\r\n    at skill.c:8419\r\n        sd = <value optimized out>\r\n        dstsd = <value optimized out>\r\n        md = <value optimized out>\r\n        dstmd = 0xaa3c622c\r\n        hd = <value optimized out>\r\n        mer = 0x0\r\n        sstatus = 0xaa3c6458\r\n        tstatus = 0xaa3c6458\r\n        tsc = 0xaa3c64b4\r\n        tsce = 0x0\r\n        chorusbonus = 0\r\n        i = <value optimized out>\r\n        type = SC_NONE\r\n        __FUNCTION__ = \"skill_castend_nodamage_id\"\r\n#2  0x081d649d in skill_castend_id (tid=1580, tick=653117333, id=110018753, data=0) at skill.c:10782\r\n        fail = 0 '\\000'\r\n        res = <value optimized out>\r\n        target = <value optimized out>\r\n        src = 0xaa3c622c\r\n        sd = <value optimized out>\r\n        md = 0xaa3c622c\r\n        ud = 0xaa3c6244\r\n        sc = <value optimized out>\r\n        flag = 0\r\n#3  0x08209d9f in push_timer_heap (tid=-1424907956) at timer.c:200\r\n        _empty_ = 256\r\n        __FUNCTION__ = \"push_timer_heap\"\r\n#4  0x08206bd5 in get_svn_revision () at core.c:228\r\n        line = \": ~ Baby Novice:\", '\\000' <repeats 228 times>, \"X\\270w\\000\\000\\000Í€\\030\\000\\235\\277\\244\\264\\021\\b\\244\\001\\000\\000\\244\\001\\000\\000x\\030$\\b\\301\\000\\000\\000,b<\\252\\000\\000\\000\\000\\030\\000\\235\\277u\\343\\035\\b\\370\\377\\234\\277X\\214!\\b\\030\\000\\235\\277d\\---Type <return> to continue, or q <return> to quit---\r\n000\\000\\000\\000\\000\\000\\000\\314\\300\\216\\006\\305\\000\\000\\000,b<\\252,b<\\252G\\004\\000\\000\\230\\001\\235\\277[L\\033\\b,b<\\252G\\004\\000\\000\\210\\202=\\vl\\310\\356\\000\\001\\000\\000\\000H\\000\\235\\277X\\000\\235\\277\\000\\000\\000\\000\\222\\300\\216\\006a\\310\\355&X\\000\\235\\277\\066\\245 \\bl&\\252\\000\\350\\353\\350\\b\\310\\000\\356\", '\\000' <repeats 11 times>\"\\252, \\000\\250\\000\\235\\277\\252\\274 \\b\\301\\000\\000\\000\\000\\000\\000\\000\\000\\000\\235\\277Xd<\\252\\001\\000\\000\\000\\000\\000\\000\\000Xd<\\252\\264d<\\252\\000\\000\\000\\000\\000\\000\\000\\252\\330\\000\\235\\277,b<\\252\\377\\377\\377\\377,b<\\252\\000\\000\\000\\000\\301\\000\\000\\000\\301\\000\\000\\000\\000\\000\\000\\000\\370\\000\\001\\000\\301\\000\"...\r\n        rev = <value optimized out>\r\n        svn_version_buffer = \"\\000\\000\\000\\000\\000\\000\\000\\237\\027\\000\\000\\000\\000\\000\\000\"\r\n        fp = 0x824f309\r\n        __FUNCTION__ = \"get_svn_revision\"\r\n#5  0xb7941d36 in ?? ()\r\nNo symbol table info available.\r\n#6  0x00000001 in ?? ()\r\nNo symbol table info available.\r\n#7  0xbf9d0394 in ?? ()\r\nNo symbol table info available.\r\n#8  0x0806cd81 in _start ()\r\nNo symbol table info available."},"comment":{"url":"https://api.github.com/repos/rathena/rathena/issues/comments/121725124","html_url":"https://github.com/rathena/rathena/issues/513#issuecomment-121725124","issue_url":"https://api.github.com/repos/rathena/rathena/issues/513","id":121725124,"user":{"login":"efraimrodrigues","id":12123918,"avatar_url":"https://avatars.githubusercontent.com/u/12123918?v=3","gravatar_id":"","url":"https://api.github.com/users/efraimrodrigues","html_url":"https://github.com/efraimrodrigues","followers_url":"https://api.github.com/users/efraimrodrigues/followers","following_url":"https://api.github.com/users/efraimrodrigues/following{/other_user}","gists_url":"https://api.github.com/users/efraimrodrigues/gists{/gist_id}","starred_url":"https://api.github.com/users/efraimrodrigues/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/efraimrodrigues/subscriptions","organizations_url":"https://api.github.com/users/efraimrodrigues/orgs","repos_url":"https://api.github.com/users/efraimrodrigues/repos","events_url":"https://api.github.com/users/efraimrodrigues/events{/privacy}","received_events_url":"https://api.github.com/users/efraimrodrigues/received_events","type":"User","site_admin":false},"created_at":"2015-07-15T19:47:50Z","updated_at":"2015-07-15T19:47:50Z","body":"I'm not sure about the revision because I couldn't find it, but it's pretty recent. I downloaded 2 weeks ago or something. It is pre-re and the packet_ver is 51. \r\n\r\nI didn't change anything on these files, but here it is:\r\nmob.c:3456 \telse if (battle_check_target(&md->bl, src, BCT_ENEMY) <= 0)\r\nskill.c:8419 \tclif_skill_nodamage(src,bl,skill_id,skill_lv,\r\nskill.c:8420 \tsc_start(src,bl,type,100,skill_lv,skill_get_time(skill_id,skill_lv)));\r\ntimer.c:200\tBHEAP_ENSURE(timer_heap, 1, 256);\r\ncore.c:228\tif ( fgets(line, sizeof(line), fp) == NULL ) { printf(\"Can't get bin name\\n\"); } // Get the name\r\n"}}