Jump to content
  • 0
Rebel

Map-server Crash when using @reloadscript

Question

Git revision (src): '852c13305f67948531bd0277eb1922dbd02b1f26'
Git revision (scripts): '852c13305f67948531bd0277eb1922dbd02b1f26'

No custom scripts, no custom src  edits, no plugins.. Fresh Hercules.. 

Full Stack Trace

Program received signal SIGSEGV, Segmentation fault.
__strlen_sse42 () at ../sysdeps/x86_64/multiarch/strlen-sse4.S:31
31              pcmpeqb (%rdi), %xmm1
Missing separate debuginfos, use: debuginfo-install libstdc++-4.8.3-9.el7.x86_64
(gdb) bt full
#0  __strlen_sse42 () at ../sysdeps/x86_64/multiarch/strlen-sse4.S:31
No locals.
#1  0x00000000004eb2af in map_zone_remove (m=0) at map.c:4659
        flag = '\000' <repeats 24 times>, "\302if\000\000\000\000\000\240\334\377\377\377\177\000\000\302if\000\000\000\000\000\000\344\224\363\377\177\000\000\327\302\060\366\377\177\000\000"
        params = "p\333\377\377\377\177\000\000\260\332\377\377\377\177", '\000' <repeats 18 times>, "\260\333\377\377\377\177\000\000\020\335\377\377\377\177\000\000\302if\000\000\000\000\000\302if\000\000\000\000\000\300"
        k = 0
#2  0x00000000004ea875 in map_zone_change (m=671, zone=0x150f35c, start=0x6669c2 "", buffer=0x0, filepath=0x0) at map.c:4648
No locals.
#3  0x000000000050989b in npc_parse_mapflag (w1=0x628670 <db_obj_get> "UH\211\345AUATI\211\374SH\203\354\bH\205\377\017\204W\001", w2=0x150f35c "PvP",
    w3=0x3513c0 <Address 0x3513c0 out of bounds>, w4=0x627130 <db_data2ptr> "U1\300H\205\377H\211\345t\t\203?\002u\004H\213G\b]\303f.\017\037\204", start=0x6669c2 "",
    buffer=0x6669c2 "", filepath=0x6669c2 "", retval=0x0) at npc.c:4193
        zone = 0x53340b4
        mapname = "1@cata\000\000\060\065\000\a\000\000\000\000\240\334\377\377\377\177\000\000\260`N\000\000\000\000"
        state = 1
        __func__ = "npc_parse_mapflag"
#4  0x00000000004eb38a in map_zone_remove (m=0) at map.c:4670
        flag = "pvp", '\000' <repeats 61 times>
        params = "\000ff", '\000' <repeats 13 times>, "p\335\377\377\377\177\000\000\\|b", '\000' <repeats 29 times>, "\364n~\001\000\000\000\000\326"
        k = 8
#5  0x00000000004e077d in map_zonedb_reload () at map.c:3698
        i = 671
        __func__ = "map_zonedb_reload"
#6  0x000000000050637b in npc_reload () at npc.c:4983
        npc_new_min = 110019057
        iter = 0x3d6
        bl = 0x64
        __func__ = "npc_reload"
#7  0x000000000040fa16 in atcommand_reloadscript (fd=11, sd=0x150f35c, command=0x6669c2 "", message=0x0, info=0x0) at atcommand.c:3858
        iter = 0xf620ac
        pl_sd = 0x0
#8  0x00000000004310c0 in atcommand_exec (fd=11, sd=0x380d900, message=0x7fffffffe278 "@reloadscript", player_invoked=false) at atcommand.c:10393
        params = '\000' <repeats 99 times>
        command = "@reloadscript", '\000' <repeats 86 times>
        output = "\000\000\000\000\000\000\000\000\030\340\377\377\377\177\000\000\300aG", '\000' <repeats 21 times>, "\004\021'\004\000\000\000\000\360\337\377\377\377\177\000\000\020\315N", '\000' <repeats 21 times>, "\f", '\000' <repeats 19 times>, "\f\000\000\000\377\377\377\177\000\000\000\000`\000\000\000\000\000\000\000\b\000\000\000\000\000\000\000\000\003\000\000\000\000\000\000\000\000\000\000\a\000\000\000\060\001\000\000\000\000\000\000@\373\232\363\377\177\000\000\210\005\000\000\000\000\000\000\031\000\000\000\003\000\000\000\004\000\000\000\000\000\000\000\003\000\000\000;\000\000\000\300aG", '\000' <repeats 13 times>...
        logCommand = true
        atcmd_msg = "@reloadscript\000\000\000\250\341\377\377\n\000\000\000\340\340\377\377\377\177\000\000\321\342\377\377\377\177\000\000\334\020'\004\000\000\000\000P", '\000' <repeats 11 times>, "\005", '\000' <repeats 11 times>, "@i\237\363\377\177\000\000\340\001\000\000\000\000\000\000\306hN\000\000\000\000\000\006\000\000\000\005\000\000\000\004\000\000\000+\000\000\000\061\000\000\000\000\000\000\000?\221g\000\000\000\000\000@\343\377\377\377\177\000\000I\217\061\366\377\177\000\000\001\20---Type <return> to continue, or q <return> to quit---
0\255\373\000\000\000\000\250\341\377\377\377\177\000\000\300aG", '\000' <repeats 21 times>, "@\301T\000\000\000\000\000\200\341\377\377\377\177\000\000"...
#9  0x0000000000539ac2 in pc_process_chat_message (sd=0x380d900, message=0x150f35c "PvP") at pc.c:12217
No locals.
#10 0x000000000047476f in clif_process_chat_message (sd=0x380d900, packet=0x7ffff4b5c014, out_buf=0x0, out_buflen=0) at clif.c:9727
        srcname = 0x7ffff4b5c018 "admin : @reloadscript"
        message = 0x7fffffffe278 "@reloadscript"
        textlen = 87244980
        __func__ = "clif_process_chat_message"
#11 0x000000000046e473 in clif_parse_GlobalMessage (fd=11, sd=0x380d900) at clif.c:10613
        full_message = "admin : @reloadscript\000\000\000\204\264\332\004\000\000\000\000<\216]p\000\000\000\000\240r\235", '\000' <repeats 13 times>, "\326\242c\000\000\000\000\000\340\342\377\377\377\177\000\000h\242b", '\000' <repeats 13 times>, "\210\256\317\003", '\000' <repeats 28 times>, "\364n~\001\000\000\000\000\230\343\377\377\377\177\000\000\000\000\000\000\000\000\000\000\320\026T\000\000\000\000\000h\242b\000\000\000\000\000\060\343\377\377\377\177\000\000\364n~\001\000\000\000\000\230\343\377\377\377\177\000\000\000\000\000\000\000\000\000\000\200\343\377\377\377\177\000\000"...
        message = 0x380d900 ""
        __func__ = "clif_parse_GlobalMessage"
#12 0x00000000004690b2 in clif_parse (fd=11) at clif.c:21983
        parse_cmd_func = 0x53340b4
        packet_len = 6711746
        sd = 0x380d900
#13 0x000000000063d3de in do_sockets (next=88) at socket.c:1035
        rfd = {fds_bits = {2048, 0 <repeats 15 times>}}
        timeout = {tv_sec = 0, tv_usec = 24394}
        ret = 0
#14 0x000000000040804a in main (argc=1, argv=0x7fffffffe5e8) at core.c:557
        next = 87244980
        retval = 6511088

 

Share this post


Link to post
Share on other sites

3 answers to this question

Recommended Posts

  • 0

There is another bug @meko.. After I reloadscript when PK is enabled. The zone is changed. Please see attached image.

Before @reloadscript, the Map Info is this:

Capture1.JPG.89f61265d19d9d14a4b7a38485e17d8a.JPG

After @reloadscript, the Map Info is this:

Capture2.JPG.37568b3c93a3c52f933ffe1d378fa54a.JPG

Notice that 

-> Zone: Normal turned to Zone: PK Mode

and

-> PvP Flags: <empty> turned to PvP Flags: PvP ON |

Edited by Rebel

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Answer this question...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...

×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.