Jump to content
  • 0

Server Crashed in script.cpp


Haku

Question


  • Group:  Members
  • Topic Count:  38
  • Topics Per Day:  0.01
  • Content Count:  60
  • Reputation:   2
  • Joined:  12/04/13
  • Last Seen:  

Hi, my server are crashed.

I think is because the func are incorrect when null or not existing params passing.

GDB error:

Core was generated by `./map-server'.
Program terminated with signal 11, Segmentation fault.
#0  0x000000000058a3bd in pop_stack (st=st@entry=0x7f3a25a859ec, start=0,
    end=0) at script.cpp:3459
3459            struct script_stack* stack = st->stack;
Missing separate debuginfos, use: debuginfo-install glibc-2.17-292.el7.x86_64 ke                                                                                                             yutils-libs-1.5.8-3.el7.x86_64 krb5-libs-1.15.1-37.el7_7.2.x86_64 libcom_err-1.4                                                                                                             2.9-16.el7.x86_64 libgcc-4.8.5-39.el7.x86_64 libselinux-2.5-14.1.el7.x86_64 libs                                                                                                             tdc++-4.8.5-39.el7.x86_64 mariadb-libs-5.5.64-1.el7.x86_64 openssl-libs-1.0.2k-1                                                                                                             9.el7.x86_64 pcre-8.32-17.el7.x86_64 zlib-1.2.7-18.el7.x86_64
(gdb) bt full
#0  0x000000000058a3bd in pop_stack (st=st@entry=0x7f3a25a859ec, start=0,
    end=0) at script.cpp:3459
        stack = 0x0
        data = <optimized out>
        i = <optimized out>
        __FUNCTION__ = "pop_stack"
#1  0x000000000058fb31 in run_func (st=st@entry=0x7f3a25a859ec)
    at script.cpp:4068
        data = <optimized out>
        i = <optimized out>
        start_sp = <optimized out>
        end_sp = <optimized out>
        func = 327
#2  0x00000000005906c0 in run_script_main (st=0x7f3a25a859ec)
    at script.cpp:4331
        cmdcount = 655351
        gotocount = 2048
        sd = <optimized out>
        stack = 0x7f3a3489307c
#3  0x00000000005911ea in run_script_timer (tid=<optimized out>,
    tick=<optimized out>, id=<optimized out>, data=139887716620780)
    at script.cpp:4174
        st = 0x7f3a25a859ec
---Type <return> to continue, or q <return> to quit---
        node = 0x7f3a29284354
#4  0x000000000040b638 in do_timer (tick=<optimized out>) at timer.cpp:374
        tid = 8528
        diff = -4
#5  main (argc=<optimized out>, argv=<optimized out>) at core.cpp:368
No locals.

Link to comment
Share on other sites

1 answer to this question

Recommended Posts

  • 0

  • Group:  Members
  • Topic Count:  107
  • Topics Per Day:  0.02
  • Content Count:  770
  • Reputation:   69
  • Joined:  02/10/12
  • Last Seen:  

better post this issue on github

Link to comment
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.   Paste as plain text instead

  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.

×
×
  • Create New...