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

  • #007491

  • 0 - None Assigned

  • New

Issue Confirmations

  • Yes (2)No (0)
Photo

Map server crashed. (bt full inside)

Posted by mofo on 08 July 2013 - 01:38 AM

Core was generated by `./map-server'.
Program terminated with signal 11, Segmentation fault.
#0  map_foreachinmap (func=0x810ea20 <mob_deleteslave_sub>, m=322, type=2)
    at map.c:1183
1183                            for( bl = map[ m ].block_mob[ b ]; bl != NULL; bl = bl->next )
(gdb) bt full
#0  map_foreachinmap (func=0x810ea20 <mob_deleteslave_sub>, m=322, type=2)
    at map.c:1183
        b = 174
        bsize = 1140
        returnCount = <value optimized out>
        bl = 0x50b6
        blockcount = <value optimized out>
        i = <value optimized out>
        ap = <value optimized out>
#1  0x0810eaa2 in mob_deleteslave (md=0xb35911ac) at mob.c:1911
No locals.
#2  0x081171a6 in mob_dead (md=0xb35911ac, src=0x0, type=3) at mob.c:2609
        status = 0xb3591398
        sd = 0x0
        tmpsd = {0x0 <repeats 30 times>}
        mvp_sd = 0x0
        second_sd = 0x0
        third_sd = 0x0
        pt = {{p = 0x0, id = 0, zeny = 0, base_exp = 0, 
            job_exp = 0} <repeats 30 times>}
        i = 0
        temp = <value optimized out>
        count = 0

Can anyone help me figure out what's causing this? I had a previous topic that might be the same issue but I can't verify if it's the same since I accidentally deleted the core file for it.

I have a script that spawns one mvp in a random town every hour, should I disable that? I feel like this has something to do with MvP monsters that don't generate tombs once they die.

(gdb) bt full
#0  0x0807b7b7 in map_moveblock (bl=0xb348ef0c, x1=32, y1=156, tick=2257966138)
    at map.c:368
        x0 = 31
        y0 = 155
        sc = 0xb348f158
        moveblock = 1
#1  0x081e64e4 in unit_walktoxy_timer (tid=1405, tick=2257966138, 
    id=110017208, data=420) at unit.c:165
        i = <value optimized out>
        x = 32
        y = 156
        dx = <value optimized out>
        dy = <value optimized out>
        bl = 0xb348ef0c
        sd = 0x0
        md = 0xb348ef0c
        ud = 0xb348ef24
        mrd = 0x0
#2  0x081ff7a9 in do_timer (tick=2257966149) at timer.c:353
        tid = 1405
        diff = -11
        __FUNCTION__ = "do_timer"
#3  0x081fc2a5 in main (argc=1, argv=0xbf8fded4) at core.c:350
---Type <return> to continue, or q <return> to quit---
Crashed again with this as core dump.

(gdb) bt full
#0  0x08079e37 in map_foreachinarea (func=0x80aba50 <clif_send_sub>, m=770, 
    x0=222, y0=191, x1=262, y1=231, type=1) at map.c:668
        by = 23
        returnCount = 0
        bl = 0xdeadbeaf
        blockcount = 0
        i = <value optimized out>
        ap = <value optimized out>
#1  0x080b76f4 in clif_send (buf=0xbfab06ec, len=11, bl=0xa326a18, type=AREA)
    at clif.c:370
        i = <value optimized out>
        sd = 0xa326a18
        p = <value optimized out>
        g = <value optimized out>
        bg = <value optimized out>
        x0 = <value optimized out>
        x1 = <value optimized out>
        y0 = <value optimized out>
        y1 = <value optimized out>
        fd = <value optimized out>
        iter = <value optimized out>
#2  0x080ba125 in clif_changelook (bl=0xa326a18, type=2, val=1746)
    at clif.c:3361

And again...

I disabled the script I mentioned in the original post and it still crashed. Can you tell me anything about the crash dumps? Are those script related?

ah I know now your problem...

:meow: