Issue information

Issue ID
#3463
Status
Unable to Reproduce
Severity
None
Started
Hercules Elf Bot
Aug 3, 2009 11:08
Last Post
Hercules Elf Bot
Jun 23, 2012 9:33
Confirmation
N/A

Hercules Elf Bot - Aug 3, 2009 11:08

Originally posted by [b]AquaWolf[/b]
http://www.eathena.ws/board/index.php?autocom=bugtracker&showbug=3463

server has crashed a few times due this:

CODE
[twilight@server trunk]$ ./tools/stackdump map sql 0007
??
??:0
battle_calc_weapon_attack
/home/twilight/trunk/src/map/battle.c:2076
battle_calc_attack
/home/twilight/trunk/src/map/battle.c:2820
skill_attack
/home/twilight/trunk/src/map/skill.c:1626
battle_weapon_attack
/home/twilight/trunk/src/map/battle.c:3065
unit_attack_timer_sub
/home/twilight/trunk/src/map/unit.c:1569
do_timer
/home/twilight/trunk/src/common/timer.c:330
main
/home/twilight/trunk/src/common/core.c:254
??
??:0
_start
??:0


CODE
battle_calc_weapon_attack
/home/twilight/trunk/src/map/battle.c:2076 :

        if( !(nk&NK_NO_ELEFIX) )
        {
            cardfix=cardfix*(100-tsd->subele[s_ele])/100;
            if( flag.lh && s_ele_ != s_ele )
                cardfix=cardfix*(100-tsd->subele[s_ele_])/100;
        }

--------------
battle_calc_attack
/home/twilight/trunk/src/map/battle.c:2820:

    case BF_WEAPON: d = battle_calc_weapon_attack(bl,target,skill_num,skill_lv,count); break;

--------------
skill_attack
/home/twilight/trunk/src/map/skill.c:1626:

    dmg = battle_calc_attack(attack_type,src,bl,skillid,skilllv,flag&0xFFF);

--------------
battle_weapon_attack
/home/twilight/trunk/src/map/battle.c:3065

            //FIXME: invalid return type!
            return (damage_lv)skill_attack(BF_WEAPON,src,src,target,PA_SACRIFICE,skilllv,tick,0);

--------------
unit_attack_timer_sub
/home/twilight/trunk/src/map/unit.c:1569

        if(sd && sd->status.pet_id > 0 && sd->pd && battle_config.pet_attack_support)
            pet_target_check(sd,target,0);



gdb wasnt running so i couldnt see it but this should at least point out where it started anyway.
And it seems like pets are the cause.

This post has been edited by AquaWolf: Aug 3 2009, 04:23 AM

Hercules Elf Bot - Dec 20, 2011 5:30

Originally posted by [b]Ind[/b]
quote from original bug report; unable to identify issue with the information provided.
[quote]
Also, from looking at the lines you posted, your src seems to not match your binaries. The stack frame on the bottom and the one above it do not agree according on the lines you posted.
[/quote]