Issue information

Issue ID
#4577
Status
Fixed
Severity
Critical
Started
Hercules Elf Bot
Nov 27, 2010 16:20
Last Post
Hercules Elf Bot
Nov 27, 2010 16:20
Confirmation
N/A

Hercules Elf Bot - Nov 27, 2010 16:20

Originally posted by [b]Ai4rei[/b]
http://www.eathena.ws/board/index.php?autocom=bugtracker&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