Issue information

Issue ID
#7150
Status
Duplicate
Severity
None
Started
jTynne
Apr 6, 2013 4:15
Last Post
SketchyPhoenix
Apr 10, 2013 22:28
Confirmation
N/A

jTynne - Apr 6, 2013 4:15

bt full
#0 0x0819792c in battle_calc_weapon_attack (src=0xa8c8a8fc,
target=0x101e5408, skill_id=0, skill_lv=0, wflag=0) at battle.c:3267
vit_def = 1
def1 = -400
def2 = -22276
skillratio = <value optimized out>
temp = <value optimized out>
s_ele = 0
s_ele_ = 0
t_class = 4060
i = <value optimized out>
nk = 0
n_ele = 1 '\001'
sd = 0x0
tsd = 0x101e5408
wd = {damage = 682, damage2 = 0, type = 0, div_ = 1, amotion = 1020,
dmotion = 684, blewcount = 0, flag = 529, dmg_lv = ATK_DEF}
sc = 0xa8c8ab48
tsc = 0x101e56c0
sstatus = 0xa8c8aae8
tstatus = 0x101e5664
flag = {hit = 1, cri = 0, idef = 0, idef2 = 0, pdef = 0, pdef2 = 0,
infdef = 0, arrow = 0, rh = 1, lh = 0, weapon = 1}
---Type <return> to continue, or q <return> to quit---
__FUNCTION__ = "battle_calc_weapon_attack"
#1 0x0819288b in battle_calc_attack (attack_type=1, bl=0xa8c8a8fc,
target=0x101e5408, skill_id=0, skill_lv=0, count=0) at battle.c:4544
d = {damage = 0, damage2 = 136394240, type = 1, div_ = -1073745128,
amotion = 134682254, dmotion = 270423048, blewcount = -1073745092,
flag = -1073745288, dmg_lv = 135022250}
#2 0x0819094e in battle_weapon_attack (src=0xa8c8a8fc, target=0x101e5408,
tick=42157583, flag=0) at battle.c:4870
sd = 0x0
tsd = 0x101e5408
sstatus = 0xa8c8aae8
tstatus = 0x101e5664
sc = 0xa8c8ab48
tsc = 0x101e56c0
damage = <value optimized out>
rdamage = <value optimized out>
rdelay = <value optimized out>
skillv = <value optimized out>
wd = {damage = 3, damage2 = -1073745048, type = 134672026,
div_ = 136196113, amotion = 2350, dmotion = 136191486,
blewcount = -1463244548, flag = 246, dmg_lv = 117}
__FUNCTION__ = "battle_weapon_attack"
#3 0x081bd496 in unit_attack_timer_sub (tid=-1, tick=42157583, id=110221627,
---Type <return> to continue, or q <return> to quit---
data=0) at unit.c:1866
No locals.
#4 unit_attack_timer (tid=-1, tick=42157583, id=110221627, data=0)
at unit.c:1894
bl = 0xa8c8a8fc
#5 0x081bd760 in unit_attack (src=0xa8c8a8fc, target_id=2014383, continuous=1)
at unit.c:1625
target = <value optimized out>
ud = 0xa8c8a914
__FUNCTION__ = "unit_attack"
#6 0x081b9d2f in unit_walktoxy_timer (tid=6140, tick=42157539, id=110221627,
data=150) at unit.c:287
tbl = 0x101e5408
i = <value optimized out>
x = <value optimized out>
y = 119
dx = <value optimized out>
dy = -1
bl = 0xa8c8a8fc
sd = 0x0
md = 0xa8c8a8fc
ud = 0xa8c8a914
mrd = 0x0
---Type <return> to continue, or q <return> to quit---
#7 0x081d0539 in do_timer (tick=42157583) at timer.c:370
tid = 6140
diff = -44
__FUNCTION__ = "do_timer"
#8 0x081ccd13 in main (argc=1, argv=0xbffff574) at core.c:336
next = <value optimized out>

Ind - Apr 6, 2013 4:20

the culprit is[code=auto:0] wd.damage = wd.damage * (4000+def1) / (4000+10*def1) - vit_def; [/code]which rings a bell, i think i have already seen this...

Ind - Apr 6, 2013 4:51

Thank you
[url="http://herc.ws/board/tracker/issue-7150-crash-dump-this-has-been-crashing-my-server-for-weeks/"]http://herc.ws/board/tracker/issue-7150-crash-dump-this-has-been-crashing-my-server-for-weeks/[/url]

jTynne - Apr 6, 2013 5:11

No, no, thank YOU! :D Yay!

SketchyPhoenix - Apr 10, 2013 22:28

dividing by zero, i see.


def1 is -400[code=:0] wd.damage = wd.damage * (4000+def1) / (4000+10*def1) - vit_def; [/code]

(4000+10*def1) will be 0 by the time the program gets to it.
zero volume and infinite density ensues.

This post has been edited by SketchyPhoenix on Apr 10, 2013 22:34