Issue information

Issue ID
#7466
Status
Needs more Info
Severity
None
Started
VyLow
Jul 4, 2013 9:26
Last Post
Ind
Jul 6, 2013 19:19
Confirmation
N/A

VyLow - Jul 4, 2013 9:26

[code=auto:0]#0 0x081e262b in unit_walktoxy_timer (tid=8384, tick=24763139, id=110013810, data=280) at unit.c:209 209 if (md->min_chase > md->db->range3) md->min_chase--; (gdb) bt full #0 0x081e262b in unit_walktoxy_timer (tid=8384, tick=24763139, id=110013810, data=280) at unit.c:209 i = <value optimized out> x = <value optimized out> y = 29 dx = <value optimized out> dy = 1 bl = 0xb3558da4 sd = 0x0 md = 0xb3558da4 ud = 0xb3558dbc mrd = 0x0 #1 0x081fba89 in do_timer (tick=24763141) at timer.c:353 tid = 8384 diff = -2 __FUNCTION__ = "do_timer" #2 0x081f7d13 in main (argc=1, argv=0xbfb01e84) at core.c:349 next = <value optimized out>[/code]

[code=auto_linenums:0]#0 script_alloc_state (rootscript=0xb58cacf4, pos=0, rid=2004124, oid=110013197) at script.c:2759 2759 st->stack->sp = 0; (gdb) bt full #0 script_alloc_state (rootscript=0xb58cacf4, pos=0, rid=2004124, oid=110013197) at script.c:2759 st = 0xb49bc2fc __FUNCTION__ = "script_alloc_state" #1 0x08141fdf in run_script (rootscript=0xb709b234, pos=124, rid=2004124, oid=124) at script.c:3284 st = <value optimized out> #2 0x080d3b07 in pc_useitem (sd=0xa329bb8, n=50) at pc.c:4390 tick = 27297863 amount = 55 nameid = 547 i = <value optimized out> item_script = 0xb58cacf4 #3 0x08084282 in clif_parse_UseItem (fd=31, sd=0xa329bb8) at clif.c:10642 n = 50 #4 0x080986c9 in clif_parse (fd=31) at clif.c:17649 cmd = 1081 packet_len = 8 sd = 0xa329bb8 pnum = 0 #5 0x081f9f88 in do_sockets (next=50) at socket.c:825 rfd = {__fds_bits = {-2147483648, 0 <repeats 31 times>}} timeout = {tv_sec = 0, tv_usec = 41926}[/code]

This post has been edited by VyLow on Jul 4, 2013 13:03

VyLow - Jul 4, 2013 13:02

[code=:0] #0 0x08072856 in map_removemobs_sub (bl=0xb2ca3d74, ap=0xbfe1e73c "\233\r") at map.c:2241 2241 if( md->db->mexp > 0 ) (gdb) bt full #0 0x08072856 in map_removemobs_sub (bl=0xb2ca3d74, ap=0xbfe1e73c "\233\r") at map.c:2241 No locals. #1 0x08078f56 in map_foreachinmap (func=0x8072820 <map_removemobs_sub>, m=546, type=2) at map.c:1197 b = <value optimized out> bsize = <value optimized out> returnCount = 60 bl = <value optimized out> blockcount = <value optimized out> i = 60 ap = 0xbfe1e73c "\233\r" #2 0x0807939e in map_removemobs_timer (tid=6812, tick=37846351, id=<value optimized out>, data=0) at map.c:2266 count = <value optimized out> m = <value optimized out> #3 0x081fba89 in do_timer (tick=37846380) at timer.c:353 tid = 6812 diff = -29 __FUNCTION__ = "do_timer" #4 0x081f7d13 in main (argc=1, argv=0xbfe1e864) at core.c:349 next = <value optimized out> [/code]

Ind - Jul 6, 2013 19:19

For #1 and #3
in unit.c/unit_walktoxy_timer[code=auto:0] if (md->min_chase > md->db->range3) md->min_chase--; [/code]change to[code=auto:0] if (md->db && md->min_chase > md->db->range3) md->min_chase--; [/code]In map.c/map_removemobs_sub
find[code=auto:0] if( md->db->mexp > 0 ) [/code]change to[code=auto:0] if( md->db && md->db->mexp > 0 ) [/code]The problem will hardly be solved, it most likely will still crash but it will crash in a different place which will give us a better clue as to what is causing this issue.