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

  • #004577

  • 5 - Critical

  • Fixed

Issue Confirmations

  • Yes (0)No (0)
Photo

Dangling pointer crash in script_free_state

Posted by Hercules Bot on 27 November 2010 - 04:20 PM

Originally posted by Ai4rei
http://www.eathena.w...er&showbug=4577

There is a dangling pointer issue present in the map-server, due to an attempt to free already free'd script state from clif_parse_LoadEndAck -> npc_event_dequeue.

Test script:
CODE
prontera,160,150,0    script    Crasher    123,{
    set .@rid,getcharid(3);
    sleep 1000;
    attachrid(.@rid);
    next;
    end;
}


Steps to reproduce:
  • Place some teleport command on a shortcut, such as @go.
  • Talk to the NPC and wait until the dialog box appears.
  • Press 'next', the map-server should print an error about npc id mismatch.
  • Use shortcut to teleport, the map-server crashes upon spawning.


This post has been edited by Ai4rei: Nov 27 2010, 09:36 AM