Issue information

Issue ID
#7496
Status
Needs more Info
Severity
None
Started
mofo
Jul 9, 2013 7:03
Last Post
dhaisuke
Dec 5, 2013 8:05
Confirmation
Yes (1)
No (0)

mofo - Jul 9, 2013 7:03

I just updated and as the server was running this came up on the console and it scared me[code=auto:0][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![/code]

I also saw this before it crashed. With other numbers like 1214 etc. [code=auto_linenums:0][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'[/code]

here's my crash dump.[code=:0] 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--- [/code]

This post has been edited by mofo on Jul 9, 2013 7:56

mofo - Jul 9, 2013 8:21

[URL=http://s1281.photobucket.com/user/Met_Ragnarok/media/Untitled_zpsc8fdc641.png.html][img]http://i1281.photobucket.com/albums/a508/Met_Ragnarok/Untitled_zpsc8fdc641.png[/img][/URL]

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

malufett - Jul 9, 2013 10:11

it seems that your database gone wrong..

:meow:

mofo - Jul 9, 2013 11:03

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 [color=rgb(68,68,68)][font=Monaco, 'Liberation Mono', Courier, monospace][size=2]713bc4da082e8b240ca6e0d9551c21c2931eece5.[/size][/font][/color]

malufett - Jul 9, 2013 11:08

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


:meow:

mofo - Jul 9, 2013 11:19

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. [s]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.[/s]

Edit: The errors show regardless of job.

[URL=http://s1281.photobucket.com/user/Met_Ragnarok/media/Untitled_zps6b566252.png.html][img]http://i1281.photobucket.com/albums/a508/Met_Ragnarok/Untitled_zps6b566252.png[/img][/URL]

This post has been edited by mofo on Jul 9, 2013 11:31

malufett - Jul 9, 2013 11:35

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

:meow:

mofo - Jul 9, 2013 11:43

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 - Jul 9, 2013 16:37

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

This post has been edited by Ind on Jul 9, 2013 16:41

Ind - Jul 9, 2013 17:06

Fixed the skill cooldown error in [url="https://github.com/HerculesWS/Hercules/commit/b2f4e8034ab59f6071dd3882edee9f5bd45bb147"]https://github.com/HerculesWS/Hercules/commit/b2f4e8034ab59f6071dd3882edee9f5bd45bb147[/url]
I'll be working on the memory manager errors now.

Ind - Jul 9, 2013 17:38

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.

mofo - Jul 10, 2013 3:11

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

Harly Davidson - Oct 1, 2013 2:58

Same problem here. This issue resolved?

dhaisuke - Dec 5, 2013 8:05

hellow how you resolve this issue same problem with me?