Jump to content

  •  

Bug Tracker Migration

June 3rd
Good news everyone! The staff has decided that it is time to slowly kill off this Bug Tracker. We will begin the process of slowly migrating from this Bug Tracker over to our Github Issues which can be found here: https://github.com/HerculesWS/Hercules/issues

Over the next couple of days, I will be closing off any opportunity to create new reports. However, I still will keep the opportunity to reply to existing Bug Reports. Doing this will allow us to slowly fix any bug reports we have listed here so that we can easily migrate over to our Issue Tracker.

Update - June 7th 2015: Creating new bug posts has been disabled. Please use our https://github.com/HerculesWS/Hercules/issues tracker to post bugs. Users are still able to reply to existing bug posts.

- Administration

Issue Information

  • #006662

  • 0 - None Assigned

  • New

Issue Confirmations

  • Yes (0)No (3)
Photo

[Genetic] Using Cart Tornado causes Server to Crash

Posted by Hercules Bot on 09 September 2012 - 06:56 PM

Originally posted by tommym
I haven't been able to reproduce the map server crash yet using Cart Tornado, but when my server crashed yesterday, here is what appeared in the core dump:


Core was generated by `./map-server_sql'.
Program terminated with signal 8, Arithmetic exception.
#0  0x08181e3d in battle_calc_weapon_attack (src=0xd329990, target=0xa9184abc, skill_num=2476, skill_lv=5, wflag=0) at battle.c:2452
2452                                                     skillratio += sd->cart_weight/10 / (150-sstatus->str) + pc_checkskill(sd, GN_REMODELING_CART) * 50;
(gdb) bt full
#0  0x08181e3d in battle_calc_weapon_attack (src=0xd329990, target=0xa9184abc, skill_num=2476, skill_lv=5, wflag=0) at battle.c:2452
        skillratio = 250
        skill = <value optimized out>
        s_ele = 3
        s_ele_ = 0
        t_class = 1065
        i = <value optimized out>
        nk = 2
        n_ele = 0 '\000'
        sd = 0xd329990
        tsd = 0x0
        wd = {damage = 256, damage2 = 0, type = 0, div_ = 1, amotion = 370, dmotion = 384, blewcount = 2, flag = 273, dmg_lv = ATK_DEF}
        sc = 0xd329c40
        tsc = 0x0
        sstatus = 0xd329be8
        tstatus = 0xa9184ca8
        flag = {hit = 1, cri = 0, idef = 0, idef2 = 0, pdef = 0, pdef2 = 0, infdef = 0, arrow = 0, rh = 1, lh = 0, weapon = 1}
        __FUNCTION__ = "battle_calc_weapon_attack"
#1  0x08186c7a in battle_calc_attack (attack_type=1, bl=0xd329990, target=0xa9184abc, skill_num=2476, skill_lv=5, count=0) at battle.c:4428
        d = {damage = 134998035, damage2 = 2476, type = 1, div_ = -1077077768, amotion = 134976346, dmotion = 136116453, blewcount = 5609, flag = 136132372,
          dmg_lv = 2836941500}
#2  0x08132314 in skill_attack (attack_type=1, src=0xd329990, dsrc=0xd329990, bl=0xa9184abc, skillid=2476, skilllv=5, tick=2505836896, flag=8192) at skill.c:2145
        dmg = {damage = -1077077496, damage2 = 134976346, type = 136116453, div_ = 5609, amotion = 136132372, dmotion = -1458025796, blewcount = 0, flag = -1458025796,
          dmg_lv = 3217889832}
        sstatus = 0xd329be8
        tstatus = 0xa9184ca8
        sc = 0x0
        sd = 0xd329990
        tsd = 0x0
        type = <value optimized out>
        damage = <value optimized out>
        rdamage = <value optimized out>
        __FUNCTION__ = "skill_attack"
#3  0x081395a9 in skill_castend_damage_id (src=0xd329990, bl=0xa9184abc, skillid=2476, skilllv=5, tick=2505836896, flag=147457) at skill.c:3735
        sflag = <value optimized out>
        heal = <value optimized out>
        sd = 0xd329990
        tstatus = <value optimized out>
        sc = 0xd329c40
        __FUNCTION__ = "skill_castend_damage_id"
#4  0x0812077a in skill_area_sub (bl=0xa9184abc, ap=0xbfcd1c30 "\220\231\062\r\254\t") at skill.c:2774
        src = 0xd329990
        skill_id = 2476
        skill_lv = 5
        flag = 147457
        tick = 2505836896
        func = 0x8138e30 <skill_castend_damage_id>
        __FUNCTION__ = "skill_area_sub"
#5  0x0806e24d in map_foreachinrange (func=0x81206c0 <skill_area_sub>, center=0xd329990, range=2, type=<value optimized out>) at map.c:599
        ap = 0xbfcd1c30 "\220\231\062\r\254\t"
        bx = <value optimized out>
---Type <return> to continue, or q <return> to quit---
        by = 23
        m = 79
        returnCount = 0
        bl = <value optimized out>
        blockcount = 1
        i = 1
        x0 = <value optimized out>
        x1 = <value optimized out>
        y0 = 176
        y1 = 180
#6  0x08139817 in skill_castend_damage_id (src=0xd329990, bl=0xd329990, skillid=2476, skilllv=5, tick=2505836896, flag=0) at skill.c:3772
        sd = 0xd329990
        tstatus = <value optimized out>
        sc = 0xd329c40
        __FUNCTION__ = "skill_castend_damage_id"
#7  0x08141bc5 in skill_castend_nodamage_id (src=0xd329990, bl=0xd329990, skillid=2476, skilllv=5, tick=2505836896, flag=0) at skill.c:5570
        sd = 0xd329990
        dstsd = <value optimized out>
        md = 0x0
        dstmd = 0x0
        hd = 0x0
        mer = 0x0
        sstatus = 0xd329be8
        tstatus = 0xd329be8
        tsc = 0xd329c40
        tsce = 0x0
        i = <value optimized out>
        type = SC_NONE
        __FUNCTION__ = "skill_castend_nodamage_id"
        scs = {SC_QUAGMIRE, SC_PROVOKE, SC_ROKISWEIL, SC_GRAVITATION, SC_SUITON, SC_STRIPWEAPON, SC_STRIPSHIELD, SC_STRIPARMOR, SC_STRIPHELM, SC_BLADESTOP}
        spellarray = {14, 19, 20}
        mask = {{0, -1}, {1, -1}, {1, 0}, {1, 1}, {0, 1}, {-1, 1}, {-1, 0}, {-1, -1}}
        per = {{20, 50}, {50, 60}, {25, 75}, {60, 64}, {34, 67}}
        sc = {SC_STUN, SC_SILENCE, SC_CONFUSION, SC_BLEEDING}
#8  0x08154500 in skill_castend_id (tid=-1, tick=2505836896, id=2001783, data=0) at skill.c:9133
        target = 0xd329990
        src = 0xd329990
        sd = 0xd329990
        md = 0x0
        ud = 0xd3299a8
        sc = <value optimized out>
        inf = <value optimized out>
        inf2 = <value optimized out>
        flag = 0
#9  0x081a3e0b in unit_skilluse_id2 (src=0xd329990, target_id=2001783, skill_num=2476, skill_lv=5, casttime=0, castcancel=<value optimized out>) at unit.c:1339
        ud = 0xd3299a8
        tstatus = 0xd329be8
        sc = 0xd329c40
        sd = 0xd329990
        target = 0xd329990
        tick = 2505836896
---Type <return> to continue, or q <return> to quit---
        temp = 0
        __FUNCTION__ = "unit_skilluse_id2"
#10 0x081a4493 in unit_skilluse_id (src=0xd329990, target_id=2001783, skill_num=2476, skill_lv=5) at unit.c:873
No locals.
#11 0x0808a915 in clif_parse_UseSkillToId (fd=21, sd=0xd329990) at clif.c:10832
        skillnum = 2476
        skilllv = 5
        tmp = <value optimized out>
        target_id = <value optimized out>
        tick = 2505836896
#12 0x0808b5c4 in clif_parse (fd=21) at clif.c:16373
        cmd = 1080
        packet_ver = 26
        packet_len = 10
        err = 2048
        sd = 0xd329990
        pnum = 0
#13 0x081b50b8 in do_sockets (next=50) at socket.c:803
        rfd = {__fds_bits = {2097152, 0 <repeats 31 times>}}
        timeout = {tv_sec = 0, tv_usec = 47445}
        ret = 0
        i = <value optimized out>
#14 0x081b3595 in main (argc=1, argv=0xbfcd21f4) at core.c:301
        next = 317

Please take a look at this. I'm currently using rA SVN 16723. Thanks!

Originally posted by Brynner
it is already fix on the latest version 16767

Edited by Brynner, 09 September 2012 - 07:10 PM.


moved issue from Skills