Warning! This is the old Hercules bugtracker archive, and may not reflect the current state of Hercules. The current bugtracker is on GitHub Issues.
Issue information
Issue ID
#7544
Status
New
Severity
None
Started
hemagx
Jul 18, 2013 3:59
Last Post
Gepard
Jul 18, 2013 12:44
Confirmation
N/A
hemagx - Jul 18, 2013 3:59
here's the GDB log
[code=auto:0]
Core was generated by `./map-server'.
Program terminated with signal 11, Segmentation fault.
#0 linkdb_erase (head=0x7fff06970eb8, key=0x7f2744f84b9c) at db.c:2778
2778 if( node->key == key ) {
Missing separate debuginfos, use: debuginfo-install glibc-2.12-1.107.el6.x86_64 keyutils-libs-1.4-4.el6.x86_64 krb5-libs-1.10.3-10.el6_4.2.x86_64 libcom_err-1.41.12-14.el6.x86_64 libselinux-2.0.94-5.3.el6.x86_64 mysql-libs-5.1.69-1.el6_4.x86_64 nss-softokn-freebl-3.12.9-11.el6.x86_64 openssl-1.0.0-27.el6_4.2.x86_64 pcre-7.8-6.el6.x86_64 zlib-1.2.3-29.el6.x86_64
(gdb) bt full
#0 linkdb_erase (head=0x7fff06970eb8, key=0x7f2744f84b9c) at db.c:2778
node = 0x31315f305f707564
__FUNCTION__ = "linkdb_erase"
#1 0x00000000004d414d in npc_unload_ev_label (key=<value optimized out>,
data=<value optimized out>, ap=0x7fff06970ee0) at npc.c:1892
label_linkdb = 0x7f27466da71c
nd = <value optimized out>
#2 0x00000000005e897a in db_obj_vforeach (self=0x1d742c8,
func=0x4d4110 <npc_unload_ev_label>, args=0x7fff06970f40) at db.c:1937
argscopy = {{gp_offset = 24, fp_offset = 48,
overflow_arg_area = 0x7fff06971020,
reg_save_area = 0x7fff06970f60}}
db = 0x1d742c8
sum = 0
node = 0x1e0e648
parent = <value optimized out>
#3 0x00000000005e7731 in db_obj_foreach (self=<value optimized out>,
func=<value optimized out>) at db.c:1983
args = {{gp_offset = 16, fp_offset = 48,
overflow_arg_area = 0x7fff06971020,
reg_save_area = 0x7fff06970f60}}
#4 0x00000000004d3fae in npc_unload (nd=0x7f2744f84b9c, single=1 '\001')
at npc.c:1952
---Type <return> to continue, or q <return> to quit---
[/code]
Ind - Jul 18, 2013 4:07
I'll talk to Gepard on this, he has a better understanding of the linkdb than I, and hes in better position to pinpoint as he coded the npc_unload use of linkdb
This post has been edited by
Ind
on Jul 18, 2013 8:54
Gepard - Jul 18, 2013 12:44
I'm not able to reproduce it. Please tell me which revision are you using and what modifications are there in your npc.c file, cause line numbers in backtrace do not match with latest source. Does the crash happen with all NPCs or just some particular ones? If so, please tell which ones and provide script if it's custom one (via PM is fine).