Issue information

Issue ID
#7842
Status
Invalid
Severity
None
Started
Jeffery
Nov 19, 2013 9:19
Last Post
Ind
Nov 26, 2013 17:56
Confirmation
N/A

Jeffery - Nov 19, 2013 9:19

I compile latest version of Hercules from GitHub
and enable plugin ("HPMHooking", "sample")
and map-server crash at the beginning.[code=auto:0] #0 HPM_map_addToMSD (sd=0xb4debc22, data=0xb4deb360, id=3034493712, type=0, autofree=false) at HPMmap.c:54 warning: Source file is more recent than executable. 54 ret->hdatac = &((struct map_session_data *)ptr)->hdatac; [/code]

bt full[code=auto:0] #0 HPM_map_addToMSD (sd=0xb4debc22, data=0xb4deb360, id=3034493712, type=0, autofree=false) at HPMmap.c:54 i = 0 __FUNCTION__ = "HPM_map_addToMSD" #1 0xb4deb556 in plugin_init () at sample.c:150 No locals. #2 0x08240bfb in hplugin_trigger_event (type=HPET_INIT) at HPM.c:32 i = 1 #3 0x0812ad40 in do_init (argc=1, argv=0xbf830364) at map.c:5558 i = <value optimized out> __FUNCTION__ = "do_init" #4 0x0823c98b in main (argc=1, argv=0xbf830364) at core.c:340 No locals.[/code]

Jeffery - Nov 21, 2013 6:47

BUMP!

Ind - Nov 25, 2013 14:14

whats your operating system?

Jeffery - Nov 26, 2013 4:20

Debian 6 32bits

Ind - Nov 26, 2013 6:26

HPM_map_addToMSD (sd=0xb4debc22, data=0xb4deb360, id=3034493712, type=0,
autofree=false) this has been removed for a few weeks now, as the compiler pointed out[code=auto:0] warning: Source file is more recent than executable.[/code]which can be demonstrated simply by the following line[code=auto:0] ret->hdatac = &((struct map_session_data *)ptr)->hdatac;[/code]this line did not exist at the time HPM_map_addToMSD was available.
Can you run a 'make clean && make', and re-run map server on gdb and let me know if it still crashes (and if so can you paste the new gdb report?)
Thank you for your time

Jeffery - Nov 26, 2013 14:12

I used latest version of Hercules and it didn't crash anymore.
Thank you!

Ind - Nov 26, 2013 17:56

thanks for the update.