Issue information

Issue ID
#5666
Status
Fixed
Severity
High
Started
Hercules Elf Bot
Apr 29, 2012 1:12
Last Post
Hercules Elf Bot
May 9, 2012 7:37
Confirmation
Yes (6)
No (0)

Hercules Elf Bot - Apr 29, 2012 1:12

Originally posted by [b]Kaito_Kid[/b]
IDK why.

But after I have updated my rev. to 15998 my Map-Server suddenly crash after loading all the NPCs. /hmm

Hercules Elf Bot - Apr 29, 2012 1:14

Originally posted by [b]Brian[/b]
What source and/or script modifications have you made?

The default rAthena map-server runs fine with no errors or crashes.
http://build.rathena.org/builders/map-server_sql/builds/542

This post has been edited by Brian on Apr 29, 2012 1:16

Hercules Elf Bot - Apr 29, 2012 1:16

Originally posted by [b]Epoque[/b]
I couldn't re-produce this. When your map-server crashes, could you supply us with the [wiki='GDB'] report with the crash information? That particular commit shouldn't be cause for any crash, it may be related to an earlier commit though.

Thanks.

This post has been edited by Brian on Apr 29, 2012 1:30

Hercules Elf Bot - Apr 29, 2012 1:17

Originally posted by [b]emong[/b]
I've got the same problem too. I recompile it using linux and the map-server won't connect..

Hercules Elf Bot - Apr 29, 2012 1:26

Originally posted by [b]F0xxy[/b]
Same here, don't really have any mods except for some custom stuff in atcommand.c that I actually tried taking out but the result was the same.

Hercules Elf Bot - Apr 29, 2012 1:29

Originally posted by [b]mrjnumber1[/b]
gdb map-server_sql
run
(wait for crash)
bt full

paste results here

This post has been edited by mrjnumber1 on Apr 29, 2012 1:30

Hercules Elf Bot - Apr 29, 2012 2:05

Originally posted by [b]F0xxy[/b]
If you default your npc folder it stops crashing, there's something wrong with it.

Edit: So, after a while messing with the script loads I figured that it's Toasty's WoE setter script that's making it crash. ._.

Actually:
- Broadcaster
- All in one Job changer
- Dota pvp sound script
- Toasty's WoE setter
- Onclick Healer(crashes the server when clicked)

They're making the map server crash for me and that didn't happen before 15998.

Wouldn't blame the npc's now. /swt

This post has been edited by F0xxy on Apr 29, 2012 3:06

Hercules Elf Bot - Apr 29, 2012 3:05

Originally posted by [b]Rozeniiz[/b]
now i use rathena 16001

i can't run map-server

[CODE]
[Status]: Done reading '133' entries in 'db/job_db1.txt'.
[Status]: Done reading '132' entries in 'db/job_db2.txt'.
[Status]: Done reading '3' entries in 'db/size_fix.txt'.
[Status]: Done reading '5' entries in 'db/pre-re/refine_db.txt'.
[Status]: Done reading '44' entries in 'db/castle_db.txt'.
[Status]: Done reading '15' entries in 'db/guild_skill_tree.txt'.
[Status]: Done reading '139' pets in 'pet_db.txt'.
[Status]: Done reading '0' pets in 'pet_db2.txt'.
[Status]: Done reading '13' entries in 'db/homunculus_db.txt'.
[Status]: Done reading '99' levels in 'pre-re/exp_homun.txt'.
[Status]: Done reading '56' entries in 'db/homun_skill_tree.txt'.
[Status]: Done reading '44' entries in 'db/mercenary_db.txt'.
[Status]: Done reading '118' entries in 'db/mercenary_skill_db.txt'.
[Status]: Done reading '1823' entries in 'quest_db.txt'.
[Info]: Done loading '6061' NPCs:
-'3358' Warps
-'57' Shops
-'2646' Scripts
-'4116' Spawn sets
-'46418' Mobs Cached
-'0' Mobs Not Cached
sig: Dumping stack to 'log/map-server_sql0001.stackdump'...
sig: log/map-server_sql0001.stackdump Saved.[/CODE]

this's my stackdump
[CODE]
Version: svnUnknown
Exception: Segmentation fault
Stack trace:
plugins/sig.so(sig_dump+0x11e) [0x9d8a5e]
[0xda2420]
./map-server_sql(op_2+0x2d) [0x8106f1d]
./map-server_sql(run_script_main+0x30c) [0x810b28c]
./map-server_sql(npc_event_doall_sub+0xab) [0x80d418b]
./map-server_sql [0x81a5cb6]
./map-server_sql [0x81a4e16]
./map-server_sql(npc_event_doall_id+0x56) [0x80d2c46]
./map-server_sql(npc_event_doall+0x19) [0x80d2c69]
./map-server_sql(npc_event_do_oninit+0x12) [0x80d2c82]
./map-server_sql(do_init+0x475) [0x8071915]
./map-server_sql(main+0x136) [0x81a0ad6]
/lib/libc.so.6(__libc_start_main+0xdc) [0xa25e9c]
./map-server_sql [0x8068b61]
End of stack trace[/CODE]

and this gdb report
[CODE]
Program received signal SIGSEGV, Segmentation fault.
0x080ef34c in get_val (st=0xb578c78c, data=0xb573f870) at script.c:2603
2603 data->u.num = (int)idb_iget(n,reference_getuid(data));
(gdb) bt full
#0 0x080ef34c in get_val (st=0xb578c78c, data=0xb573f870) at script.c:2603
n = 0x0
name = <value optimized out>
prefix = 46 '.'
postfix = 105 'i'
sd = <value optimized out>
__FUNCTION__ = "get_val"
#1 0x08106f1d in op_2 (st=0xb578c78c, op=17) at script.c:3211
left = 0xb573f870
right = 0xb573f87c
#2 0x0810b28c in run_script_main (st=0xb578c78c) at script.c:3705
c = 3221219376
cmdcount = 655240
gotocount = 2048
sd = <value optimized out>
stack = 0xb571da04
nd = <value optimized out>
#3 0x080d418b in npc_event_doall_sub (key=..., data=0xf94310,
ap=0xbfffe968 "\300\351\377\277\200\351\377\277") at npc.c:315
c = 0xbfffe9c0
name = 0xbfffe980 "::OnInit"
---Type <return> to continue, or q <return> to quit---[/CODE]

and this
[CODE]
[ros4@server ra16001]$ tools/stackdump map sql 0001
??
??:0
op_2
/home/ros4/ra16001/src/map/script.c:3212
run_script_main
/home/ros4/ra16001/src/map/script.c:3705
npc_event_doall_sub
/home/ros4/ra16001/src/map/npc.c:315
db_obj_vforeach
/home/ros4/ra16001/src/common/db.c:1931
db_obj_foreach
/home/ros4/ra16001/src/common/db.c:1980
npc_event_doall_id
/home/ros4/ra16001/src/map/npc.c:368
npc_event_doall
/home/ros4/ra16001/src/map/npc.c:361
npc_event_do_oninit
/home/ros4/ra16001/src/map/npc.c:433
do_init
/home/ros4/ra16001/src/map/map.c:4017
main
/home/ros4/ra16001/src/common/core.c:297
??
??:0
_start
??:0[/CODE]

i try npc with my custom npc i have this error too
in my server have only this npc , function cashshop and mob spawn.
no rathena npc

[CODE]
- script AntiHack -1,{
OnPCLoginEvent:
if(getgmlevel() >60) {
atcommand "@hide";
atcommand "@speed 0";
if(getcharid(3)!=2000000) && (getcharid(3)!=2000001) && (getcharid(3)!=2000002) && (getcharid(3)!=2000003) { atcommand "@kick "+strcharinfo(0); end;}
close;
}
end;
}[/CODE]


hope this info have enough

This post has been edited by Rozeniiz on Apr 29, 2012 5:46

Hercules Elf Bot - Apr 29, 2012 3:09

Originally posted by [b]QQfoolsorellina[/b]
I have the same problem with 15997.
After reverting 15997 to 15996 the crash was gone

This post has been edited by QQfoolsorellina on Apr 29, 2012 3:19

Hercules Elf Bot - Apr 29, 2012 6:16

Originally posted by [b]shadowz[/b]
Same here.
Having some segmentation fault when starting server. Never experience this before updating rathena.
Disabled some npc like class master, mission board quest and server managed to run, but map server crashed after a while.

Hercules Elf Bot - Apr 29, 2012 8:38

Originally posted by [b]draculaxz[/b]
me too rathena 16001 map [color=#282828][font=helvetica, arial, sans-serif][size=3]crash[/size][/font][/color]

Hercules Elf Bot - Apr 29, 2012 11:40

Originally posted by [b]Epoque[/b]
Should be fixed in [rev='16002']. Let me know if there are any more problems.