quesoph Posted April 8, 2012 Group: Members Topic Count: 16 Topics Per Day: 0.00 Content Count: 210 Reputation: 10 Joined: 11/20/11 Last Seen: August 23, 2015 Share Posted April 8, 2012 Svn: 15832 Customizations: Minor skill delay edit on skill.c, and minor skill damage edit on battle.c #0 0x08067a7e in map_addblock (bl=0xadc398ac) at map.c:317 m = 635 x = 59 y = 163 pos = 767 #1 0x080e23d5 in mob_spawn (md=0xadc398ac) at mob.c:917 i = <value optimized out> tick = 3059853599 c = <value optimized out> __FUNCTION__ = "mob_spawn" #2 0x080cf4e6 in npc_parse_mob2 (mob=0xaeb1003c) at npc.c:2771 md = <value optimized out> i = 2 #3 0x0806a57c in map_spawnmobs (m=635) at map.c:2223 i = <value optimized out> k = 66 #4 0x08099bb6 in clif_parse_LoadEndAck (fd=9, sd=0xe5c07b0) at clif.c:8590 No locals. #5 0x0808a13b in clif_parse (fd=9) at clif.c:15522 cmd = 125 packet_ver = <value optimized out> packet_len = 2 err = 135891111 sd = 0xe5c07b0 pnum = <value optimized out> #6 0x08198d31 in do_sockets (next=50) at socket.c:804 rfd = {__fds_bits = {512, 0 <repeats 31 times>}} timeout = {tv_sec = 0, tv_usec = 11687} ret = 0 i = <value optimized out> #7 0x0819710d in main (argc=1, argv=0xbfa4a4c4) at core.c:300 next = <value optimized out> Quote Link to comment Share on other sites More sharing options...
Lighta Posted April 8, 2012 Group: Members Topic Count: 16 Topics Per Day: 0.00 Content Count: 737 Reputation: 216 Joined: 11/29/11 Last Seen: December 20, 2020 Share Posted April 8, 2012 Could you also provide the main msg? like: Core was generated by `./map-server_sql'. Program terminated with signal 8, Arithmetic exception. or something like that ? Quote Link to comment Share on other sites More sharing options...
quesoph Posted April 8, 2012 Group: Members Topic Count: 16 Topics Per Day: 0.00 Content Count: 210 Reputation: 10 Joined: 11/20/11 Last Seen: August 23, 2015 Author Share Posted April 8, 2012 If the server generates it again i will post it here. Thanks @Lighta here: [New Thread 22527] Cannot access memory at address 0x4b Cannot access memory at address 0x4b Cannot access memory at address 0x4b Cannot access memory at address 0x4b Reading symbols from /lib/ld-linux.so.2...(no debugging symbols found)...done. Loaded symbols for /lib/ld-linux.so.2 Cannot access memory at address 0x4b Core was generated by `./map-server_sql'. Program terminated with signal 11, Segmentation fault. #0 0x08067a7e in map_addblock (bl=0xadc398ac) at map.c:317 317 if (bl->next) bl->next->prev = bl; Missing separate debuginfos, use: debuginfo-install glibc-2.12-1.7.el6_0.5.i686 [New Thread 6775] Cannot access memory at address 0x4b Cannot access memory at address 0x4b Cannot access memory at address 0x4b Cannot access memory at address 0x4b Reading symbols from /lib/ld-linux.so.2...(no debugging symbols found)...done. Loaded symbols for /lib/ld-linux.so.2 Cannot access memory at address 0x4b Core was generated by `./map-server_sql'. Program terminated with signal 11, Segmentation fault. #0 0x0819df3b in _mfree (ptr=0xb25502cc, file=0x81b9ebf "de.txt", line=1053, func=0x81d0ace "le") at malloc.c:416 416 } else if(*(long*)((char*)head + sizeof(struct unit_head) - sizeof(long) + head->size) != 0xdeadbeaf) { Missing separate debuginfos, use: debuginfo-install glibc-2.12-1.7.el6_0.5.i686 #0 _mfree (ptr=0xb25502cc, file=0x81b9ebf "db.c", line=1053, func=0x81d0ace "db_release_data") at malloc.c:387 head_large = 0xb25502b4 head = 0xb25502c0 #1 0x0819c412 in db_obj_remove (self=0xb76df1e4, key=..., out_data=0x0) at db.c:1882 db = 0xb76df1e4 node = 0xdd467f0 hash = 114 c = <value optimized out> retval = 1 #2 0x08111a73 in skill_blockpc_end (tid=1027, tick=3088295291, id=2000166, data=490) at skill.c:14858 i = <value optimized out> cursor = <value optimized out> sd = 0xdf51010 cd = <value optimized out> #3 0x08199e07 in do_timer (tick=3088295311) at timer.c:371 tid = 1027 diff = -20 __FUNCTION__ = "do_timer" #4 0x08197105 in main (argc=1, argv=0xbfa9d5c4) at core.c:299 next = <value optimized out> I am missing this: glibc-2.12-1.7.el6_0.5.i686 ? in my server.. Quote Link to comment Share on other sites More sharing options...
Lighta Posted April 8, 2012 Group: Members Topic Count: 16 Topics Per Day: 0.00 Content Count: 737 Reputation: 216 Joined: 11/29/11 Last Seen: December 20, 2020 Share Posted April 8, 2012 Yes seem you don't have that lib but this ain't the mapcrash cause, it's just for debuginfo. I'm still trying to figure out what may cause those segfault, also you must know that gdb ain't 100% correct, sometime line are more or less what he display. Quote Link to comment Share on other sites More sharing options...
quesoph Posted April 8, 2012 Group: Members Topic Count: 16 Topics Per Day: 0.00 Content Count: 210 Reputation: 10 Joined: 11/20/11 Last Seen: August 23, 2015 Author Share Posted April 8, 2012 (edited) i've already updated my "glibc" just to be sure. i haven't modify those files.. so i don't know where to start. Thank you so much for your help. @edit i forgot to indicate in the first post that i have edited this: status.c #if REMODE static inline unsigned short status_base_matk_min(const struct status_data* status, int lvl) #else static inline unsigned short status_base_matk_min(const struct status_data* status) #endif { #if REMODE //Renewal MATK Formula /* this line>> */ return status->int_+(status->int_/7)*(status->int_/7); //return status->int_+(status->int_/2)+(status->dex/5)+(status->luk/3)+(lvl/4); #else //Original Min MATK Formula return status->int_+(status->int_/7)*(status->int_/7); #endif } i guess this cause the server to crash?. or not. lol Edited April 8, 2012 by quesoph Quote Link to comment Share on other sites More sharing options...
Lighta Posted April 8, 2012 Group: Members Topic Count: 16 Topics Per Day: 0.00 Content Count: 737 Reputation: 216 Joined: 11/29/11 Last Seen: December 20, 2020 Share Posted April 8, 2012 (edited) I really dun know the matter man I'm sorry, all what I tought didn't match with dumped value and code =(. I'd suggest to do a freshcheckout and readd your modification, are those related to DB ? well I mean you do have something like this : db_obj_remove with data adresse=0, wich seem odd but I'm not so sure with new db systeme, my general idea is like you trying to free something wich already gone. (That's for the 2nd one) The 1st one hmm bah bl adress ? You must know segfault is generally that you trying to access a value from an object/structure wich not here. (access violation) Nope dun worry this edit wont cause those crash Edited April 8, 2012 by Lighta Quote Link to comment Share on other sites More sharing options...
quesoph Posted April 8, 2012 Group: Members Topic Count: 16 Topics Per Day: 0.00 Content Count: 210 Reputation: 10 Joined: 11/20/11 Last Seen: August 23, 2015 Author Share Posted April 8, 2012 Thank you for your advice. i will try to use another fresh server.. another error: [Error]: Memory manager: args of aFree 0x0xb26e5bcc is invalid pointer db.c line 1053 Quote Link to comment Share on other sites More sharing options...
quesoph Posted April 10, 2012 Group: Members Topic Count: 16 Topics Per Day: 0.00 Content Count: 210 Reputation: 10 Joined: 11/20/11 Last Seen: August 23, 2015 Author Share Posted April 10, 2012 I have already used a newly checked out server and still crash. Maybe this is caused by the delay in skill.c this things pop out. [Error]: Memory manager: args of aFree 0x0xb26e5bcc is invalid pointer db.c line 1053 and when i reloadscript mapserver crashes. Thank you for your help Lighta. Quote Link to comment Share on other sites More sharing options...
Question
quesoph
Svn: 15832
Customizations: Minor skill delay edit on skill.c, and minor skill damage edit on battle.c
Link to comment
Share on other sites
7 answers to this question
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.