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

  • #007496

  • 0 - None Assigned

  • Needs More Info

Issue Confirmations

  • Yes (1)No (0)
Photo

Please help

Posted by mofo on 09 July 2013 - 07:03 AM

I just updated and as the server was running this came up on the console and it scared me
[Error]: db_vdestroy: Database is already locked for destruction. Aborting second database destruction.
Database allocated at script.c:2763
[Error]: Memory manager: args of aFree 0x0xb4f41604 is invalid pointer script.c line 2797
[Error]: Server received crash signal! Attempting to save all online characters!

I also saw this before it crashed. With other numbers like 1214 etc.
[Error]: skill_blockpc_end: 'Furious Fist' : no data found for '889'
[Error]: skill_blockpc_end: 'Furious Fist' : no data found for '891'
[Error]: skill_blockpc_end: 'Furious Fist' : no data found for '888'
[Error]: skill_blockpc_end: 'Furious Fist' : no data found for '890'

here's my crash dump.
Core was generated by `./map-server'.
Program terminated with signal 11, Segmentation fault.
#0  pop_stack (st=0xb4f40f38, start=0, end=5) at script.c:2695
2695                    if( data->type == C_STR )
(gdb) bt full
#0  pop_stack (st=0xb4f40f38, start=0, end=5) at script.c:2695
        stack = 0xb3d27d08
        data = 0x0
        i = <value optimized out>
        __FUNCTION__ = "pop_stack"
#1  0x0812f07c in run_func (st=0xb4f40f38) at script.c:3239
        data = 0xb4f40f38
        i = 105
        end_sp = <value optimized out>
#2  0x08144930 in run_script_main (st=0xb4f40f38) at script.c:3450
        c = 3016916232
        cmdcount = 655285
        gotocount = 2046
        sd = <value optimized out>
        stack = 0xb3d27d08
        nd = <value optimized out>
#3  0x081005e9 in npc_click (sd=0x9e1c2e8, nd=0x5) at npc.c:1204
No locals.
#4  0x080999b2 in clif_parse (fd=7) at clif.c:17708
        cmd = <value optimized out>
        packet_len = 7
        sd = 0x9e1c2e8
        pnum = 0
---Type <return> to continue, or q <return> to quit---

Posted Image

It says something about 84 skill cooldowns and that there's no room to save.

it seems that your database gone wrong..

:meow:

I only got those after I updated to the latest hash. Is there an sql update that I missed? The involved jobs are suras, I've yet to see a different job to show up with an error on my console.

Those errors weren't showing up when I was on 713bc4da082e8b240ca6e0d9551c21c2931eece5.

hmm...is this happening on every server boot? did you tried total system reboot?


:meow:

Everytime I run the server regardless of restarting and recompiling. I haven't tried restarting the vps itself. I'm waiting for the server to crash while I'm trying to replicate on purpose. But I can't seem to pinpoint what caused it. The errors are still showing up on my console if a player is a sura and just uses skills like normal. Other jobs, don't show anything no matter what I do.

Edit: The errors show regardless of job.

Posted Image

Edited by mofo, 09 July 2013 - 11:31 AM.


sorry I can't help I can't reproduce by myself..maybe Ind can help..:D

:meow:

Thanks for trying malufett, the commits are actually too technical for someone like me. So this is the best I can do, post logs and ask for help. =)

Ind 
changed status to: Started

I didnt expect anyone to replicate these error messages O_O I introduced them (these error messages) yesterday, I'll start looking at causes for this

Fixed the skill cooldown error in https://github.com/H...dee9f5bd45bb147
I'll be working on the memory manager errors now.

The problem in the memory manager appears to be related to how a specific script is being used, I'm not saying that particular script is wrong but I can't further identify the problem without seeing the script, would it be possible you showed me any custom script that could be causing this (probably its one that uses callsub), you can send me it privately (via PM) if you want.

Ind 
changed status to: Needs More Info

Hmm, can you give me an idea regarding the type of script it could be? I will try to narrow it down to the ones that use callsubs. I don't mind posting the script here. I'll let you know once I figured out which is causing which. Thanks, Ind

Same problem here. This issue resolved?

hellow how you resolve this issue same problem with me?