Jump to content
  • 0

Map-server crashing - Received unknow packet - Program received signal SIGPIPE, Broken pipe


Chopps

Question


  • Group:  Members
  • Topic Count:  1
  • Topics Per Day:  0.00
  • Content Count:  4
  • Reputation:   0
  • Joined:  03/19/13
  • Last Seen:  

Hey guys!
Im not a C/C++ developer or owner of server, but im helping a server/community to keep your existence. Currently we are facing some random crashes after few months of last source update.
We are needing help to fix it, so we can continue to do few changes to keep people playing and enjoying the game. We enabled the GDB to try to understand, but nothing until now.

It starts with this

[1;31m[Error][0m: parse_char: Received unknown packet [1;37m0x3[0m from ip '[1;37m185.202.2.191[0m'! Disconnecting!
[1;31m[Error][0m: parse_char: Received unknown packet [1;37m0x3[0m from ip '[1;37m5.188.206.46[0m'! Disconnecting!
[1;31m[Error][0m: Server received crash signal! Attempting to save all online characters!

At end of characters disconnect

Program received signal SIGPIPE, Broken pipe.
0x00007ffff6d3195b in __libc_send (fd=fd@entry=17, buf=0x5646cb0, n=9,
    flags=-153937573, flags@entry=0)
    at ../sysdeps/unix/sysv/linux/x86_64/send.c:31
31      ../sysdeps/unix/sysv/linux/x86_64/send.c: No such file or directory.
(gdb) bt full
#0  0x00007ffff6d3195b in __libc_send (fd=fd@entry=17, buf=0x5646cb0, n=9,
    flags=-153937573, flags@entry=0)
    at ../sysdeps/unix/sysv/linux/x86_64/send.c:31
        resultvar = 44
        oldtype = 0
#1  0x0000000000506890 in send_from_fifo (fd=17) at socket.c:341
        len = <optimized out>
#2  0x0000000000505bab in flush_fifo (fd=fd@entry=17) at socket.c:370
No locals.
#3  do_close (fd=fd@entry=17) at socket.c:1127
No locals.
#4  0x000000000043602c in clif_parse (fd=17) at clif.c:14940
        cmd = <optimized out>
        packet_ver = <optimized out>
        packet_len = <optimized out>
        err = 0
        sd = 0x59feef0
        pnum = <optimized out>
#5  0x00000000005069c5 in send_shortlist_do_sends () at socket.c:1380
        fd = 17
        i = 0
#6  0x0000000000506bb6 in do_sockets (next=<optimized out>) at socket.c:748
        rfd = {__fds_bits = {131072, 0 <repeats 15 times>}}
---Type <return> to continue, or q <return> to quit---

 * Documentation:  https://help.ubuntu.com/

  System information as of Tue Jan 28 16:37:45 -03 2020

  System load:  0.0               Processes:           136
  Usage of /:   9.2% of 45.34GB   Users logged in:     0
  Memory usage: 15%               
  Swap usage:   0%

  Graph this data and manage this system at:
    https://landscape.canonical.com/

New release '16.04.6 LTS' available.
Run 'do-release-upgrade' to upgrade to it.

Your Hardware Enablement Stack (HWE) is supported until April 2019.
*** System restart required ***
Last login: Tue Jan 28 16:37:45 2020 from 191.55.138.222
root@200-98-128-233:~# screen -r
#1  0x0000000000506890 in send_from_fifo (fd=17) at socket.c:341
        len = <optimized out>
#2  0x0000000000505bab in flush_fifo (fd=fd@entry=17) at socket.c:370
No locals.
#3  do_close (fd=fd@entry=17) at socket.c:1127
No locals.
#4  0x000000000043602c in clif_parse (fd=17) at clif.c:14940
        cmd = <optimized out>
        packet_ver = <optimized out>
        packet_len = <optimized out>
        err = 0
        sd = 0x59feef0
        pnum = <optimized out>
#5  0x00000000005069c5 in send_shortlist_do_sends () at socket.c:1380
        fd = 17
        i = 0
#6  0x0000000000506bb6 in do_sockets (next=<optimized out>) at socket.c:748
        rfd = {__fds_bits = {131072, 0 <repeats 15 times>}}
---Type <return> to continue, or q <return> to quit---Quit
(gdb)
#0  0x00007ffff6d3195b in __libc_send (fd=fd@entry=17, buf=0x5646cb0, n=9,
    flags=-153937573, flags@entry=0)
    at ../sysdeps/unix/sysv/linux/x86_64/send.c:31
        resultvar = 44
        oldtype = 0
#1  0x0000000000506890 in send_from_fifo (fd=17) at socket.c:341
        len = <optimized out>
#2  0x0000000000505bab in flush_fifo (fd=fd@entry=17) at socket.c:370
No locals.
#3  do_close (fd=fd@entry=17) at socket.c:1127
No locals.
#4  0x000000000043602c in clif_parse (fd=17) at clif.c:14940
        cmd = <optimized out>
        packet_ver = <optimized out>
        packet_len = <optimized out>
        err = 0
        sd = 0x59feef0
        pnum = <optimized out>
#5  0x00000000005069c5 in send_shortlist_do_sends () at socket.c:1380
        fd = 17
        i = 0
#6  0x0000000000506bb6 in do_sockets (next=<optimized out>) at socket.c:748
        rfd = {__fds_bits = {131072, 0 <repeats 15 times>}}
---Type <return> to continue, or q <return> to quit---
 * Documentation:  https://help.ubuntu.com/

  System information as of Tue Jan 28 16:37:45 -03 2020

  System load:  0.0               Processes:           136
  Usage of /:   9.2% of 45.34GB   Users logged in:     0
  Memory usage: 15%               
  Swap usage:   0%

  Graph this data and manage this system at:
    https://landscape.canonical.com/

New release '16.04.6 LTS' available.
Run 'do-release-upgrade' to upgrade to it.

Your Hardware Enablement Stack (HWE) is supported until April 2019.
*** System restart required ***
Last login: Tue Jan 28 16:37:45 2020 from 191.55.138.222
root@200-98-128-233:~# screen -r
#1  0x0000000000506890 in send_from_fifo (fd=17) at socket.c:341
        len = <optimized out>
#2  0x0000000000505bab in flush_fifo (fd=fd@entry=17) at socket.c:370
No locals.
#3  do_close (fd=fd@entry=17) at socket.c:1127
No locals.
#4  0x000000000043602c in clif_parse (fd=17) at clif.c:14940
        cmd = <optimized out>
        packet_ver = <optimized out>
        packet_len = <optimized out>
        err = 0
        sd = 0x59feef0
        pnum = <optimized out>
#5  0x00000000005069c5 in send_shortlist_do_sends () at socket.c:1380
        fd = 17
        i = 0
#6  0x0000000000506bb6 in do_sockets (next=<optimized out>) at socket.c:748
        rfd = {__fds_bits = {131072, 0 <repeats 15 times>}}
---Type <return> to continue, or q <return> to quit---Quit
(gdb)
#0  0x00007ffff6d3195b in __libc_send (fd=fd@entry=17, buf=0x5646cb0, n=9,
    flags=-153937573, flags@entry=0)
    at ../sysdeps/unix/sysv/linux/x86_64/send.c:31
        resultvar = 44
        oldtype = 0
#1  0x0000000000506890 in send_from_fifo (fd=17) at socket.c:341
        len = <optimized out>
#2  0x0000000000505bab in flush_fifo (fd=fd@entry=17) at socket.c:370
No locals.
#3  do_close (fd=fd@entry=17) at socket.c:1127
No locals.
#4  0x000000000043602c in clif_parse (fd=17) at clif.c:14940
        cmd = <optimized out>
        packet_ver = <optimized out>
        packet_len = <optimized out>
        err = 0
        sd = 0x59feef0
        pnum = <optimized out>
#5  0x00000000005069c5 in send_shortlist_do_sends () at socket.c:1380
        fd = 17
        i = 0
#6  0x0000000000506bb6 in do_sockets (next=<optimized out>) at socket.c:748
        rfd = {__fds_bits = {131072, 0 <repeats 15 times>}}
---Type <return> to continue, or q <return> to quit---



        pnum = <optimized out>
#5  0x00000000005069c5 in send_shortlist_do_sends () at socket.c:1380
        fd = 17
        i = 0
#6  0x0000000000506bb6 in do_sockets (next=<optimized out>) at socket.c:748
        rfd = {__fds_bits = {131072, 0 <repeats 15 times>}}
---Type <return> to continue, or q <return> to quit---Quit
(gdb)
#0  0x00007ffff6d3195b in __libc_send (fd=fd@entry=17, buf=0x5646cb0, n=9,
    flags=-153937573, flags@entry=0)
    at ../sysdeps/unix/sysv/linux/x86_64/send.c:31
        resultvar = 44
        oldtype = 0
#1  0x0000000000506890 in send_from_fifo (fd=17) at socket.c:341
        len = <optimized out>
#2  0x0000000000505bab in flush_fifo (fd=fd@entry=17) at socket.c:370
No locals.
#3  do_close (fd=fd@entry=17) at socket.c:1127
No locals.
#4  0x000000000043602c in clif_parse (fd=17) at clif.c:14940
        cmd = <optimized out>
        packet_ver = <optimized out>
        packet_len = <optimized out>
        err = 0
        sd = 0x59feef0
        pnum = <optimized out>
#5  0x00000000005069c5 in send_shortlist_do_sends () at socket.c:1380
        fd = 17
        i = 0
#6  0x0000000000506bb6 in do_sockets (next=<optimized out>) at socket.c:748
        rfd = {__fds_bits = {131072, 0 <repeats 15 times>}}
---Type <return> to continue, or q <return> to quit---



        packet_ver = <optimized out>
        packet_len = <optimized out>
        err = 0
        sd = 0x59feef0
        pnum = <optimized out>
#5  0x00000000005069c5 in send_shortlist_do_sends () at socket.c:1380
        fd = 17
        i = 0
#6  0x0000000000506bb6 in do_sockets (next=<optimized out>) at socket.c:748
        rfd = {__fds_bits = {131072, 0 <repeats 15 times>}}
---Type <return> to continue, or q <return> to quit---Quit
(gdb)
#0  0x00007ffff6d3195b in __libc_send (fd=fd@entry=17, buf=0x5646cb0, n=9,
    flags=-153937573, flags@entry=0)
    at ../sysdeps/unix/sysv/linux/x86_64/send.c:31
        resultvar = 44
        oldtype = 0
#1  0x0000000000506890 in send_from_fifo (fd=17) at socket.c:341
        len = <optimized out>
#2  0x0000000000505bab in flush_fifo (fd=fd@entry=17) at socket.c:370
No locals.
#3  do_close (fd=fd@entry=17) at socket.c:1127
No locals.
#4  0x000000000043602c in clif_parse (fd=17) at clif.c:14940
        cmd = <optimized out>
        packet_ver = <optimized out>
        packet_len = <optimized out>
        err = 0
        sd = 0x59feef0
        pnum = <optimized out>
#5  0x00000000005069c5 in send_shortlist_do_sends () at socket.c:1380
        fd = 17
        i = 0
#6  0x0000000000506bb6 in do_sockets (next=<optimized out>) at socket.c:748
        rfd = {__fds_bits = {131072, 0 <repeats 15 times>}}
---Type <return> to continue, or q <return> to quit---
        timeout = {tv_sec = 0, tv_usec = 46200}
        ret = 0
        i = <optimized out>
#7  0x00000000004037b3 in main (argc=1, argv=0x7fffffffe158) at core.c:254
        next = <optimized out>
(gdb)


If you have an idea of how identify or understand or solve, we are willing to pay for this. And maybe also for future changes/fixes if needed.

We are running Gepard Shield 2.0!

 

@edit
Trying to improve the title

Edited by Chopps
Link to comment
Share on other sites

11 answers to this question

Recommended Posts

  • 0

  • Group:  Members
  • Topic Count:  46
  • Topics Per Day:  0.02
  • Content Count:  267
  • Reputation:   40
  • Joined:  01/19/17
  • Last Seen:  

Update your gepard maybe and ask support to him.

Link to comment
Share on other sites

  • 0

  • Group:  Members
  • Topic Count:  49
  • Topics Per Day:  0.01
  • Content Count:  1529
  • Reputation:   234
  • Joined:  08/03/12
  • Last Seen:  

2.0 ? If im not mistaken Gepard Shield right now already 3.0

Link to comment
Share on other sites

  • 0

  • Group:  Members
  • Topic Count:  46
  • Topics Per Day:  0.02
  • Content Count:  267
  • Reputation:   40
  • Joined:  01/19/17
  • Last Seen:  

Yes upgrade to 3.0 unless you're using a nulled version of 2.0.

Link to comment
Share on other sites

  • 0

  • Group:  Members
  • Topic Count:  1
  • Topics Per Day:  0.00
  • Content Count:  4
  • Reputation:   0
  • Joined:  03/19/13
  • Last Seen:  

Ty for reply!
We were planning to update to Gepard 3.0, but we got this problem. We want to solve it before try it, cause functor can refuse to help with it!

Any other thoughts?

Link to comment
Share on other sites

  • 0

  • Group:  Forum Manager
  • Topic Count:  282
  • Topics Per Day:  0.06
  • Content Count:  3122
  • Reputation:   1616
  • Joined:  03/26/12
  • Last Seen:  

Well, unknown packet errors are usually due to a miss-matched client version to what the server is expecting. Since most of us have never seen/used Gepard Shield, we can't rule out that your modifications are the cause, as Gepard is designed to stop traffic that it doesn't want to see. It'd be almost impossible for us to say what's causing it.

Link to comment
Share on other sites

  • 0

  • Group:  Members
  • Topic Count:  3
  • Topics Per Day:  0.00
  • Content Count:  351
  • Reputation:   263
  • Joined:  09/08/13
  • Last Seen:  

1 hour ago, Chopps said:

We were planning to update to Gepard 3.0, but we got this problem. We want to solve it before try it, cause functor can refuse to help with it!

Send me "socket.h" and "socket.c" in PM.

Link to comment
Share on other sites

  • 0

  • Group:  Members
  • Topic Count:  1
  • Topics Per Day:  0.00
  • Content Count:  4
  • Reputation:   0
  • Joined:  03/19/13
  • Last Seen:  

2 hours ago, Functor said:

Send me "socket.h" and "socket.c" in PM.

Glad to see this reply! ?
Our admin can contact you on Skype? So we can send all other requirements to upgrade to 3.0, and pay of course!

Edited by Chopps
Link to comment
Share on other sites

  • 0

  • Group:  Members
  • Topic Count:  3
  • Topics Per Day:  0.00
  • Content Count:  351
  • Reputation:   263
  • Joined:  09/08/13
  • Last Seen:  

6 minutes ago, Chopps said:

Our admin can contact you on Skype? So we can send all other requirements to upgrade to 3.0, and pay of course!

Sure.

P.S. I haven't seen your "src", but I think you use very old emulator. It looks like your "src" doesn't have applied fix, which was released 8 years ago. ?

Check it: https://github.com/rathena/rathena/commit/5b66b21b67b048427f8e00cea36171a040f7de2c

Link to comment
Share on other sites

  • 0

  • Group:  Members
  • Topic Count:  0
  • Topics Per Day:  0
  • Content Count:  1
  • Reputation:   0
  • Joined:  08/13/16
  • Last Seen:  

@edit

Edited by boldo
wrong information.
Link to comment
Share on other sites

  • 0

  • Group:  Members
  • Topic Count:  3
  • Topics Per Day:  0.00
  • Content Count:  351
  • Reputation:   263
  • Joined:  09/08/13
  • Last Seen:  

@boldo Hello! Your question isn't related to the theme of the topic. So, the owner of license can talk with me in Skype.

Edited by Functor
  • Upvote 1
Link to comment
Share on other sites

  • 0

  • Group:  Members
  • Topic Count:  1
  • Topics Per Day:  0.00
  • Content Count:  4
  • Reputation:   0
  • Joined:  03/19/13
  • Last Seen:  

On 4/10/2020 at 9:27 PM, Functor said:

Sure.

P.S. I haven't seen your "src", but I think you use very old emulator. It looks like your "src" doesn't have applied fix, which was released 8 years ago. ?

Check it: https://github.com/rathena/rathena/commit/5b66b21b67b048427f8e00cea36171a040f7de2c

Thank you! Looks like it solved our problem, after 1 week running this fix without any crash on map-server.

Thanks @Akkarin and all ppl for the patience ?

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...