Buffer Overflow Detected

Sylverant is a homebrew open source server for Phantasy Star Online. Dreamcast users still play PSO online with this server even today! This is the official forum for both the online game server as well as the open source project itself. Feel free to post and get a gathering started online! We can also show you how to get connected!

Moderators: BlueCrab, Aleron Ives

Post Reply
wewlad
DCEmu Newbie
DCEmu Newbie
Posts: 4
https://www.artistsworkshop.eu/meble-kuchenne-na-wymiar-warszawa-gdzie-zamowic/
Joined: Mon Nov 07, 2016 9:49 am
Has thanked: 0
Been thanked: 0

Buffer Overflow Detected

Post by wewlad »

Hi, I hope I'm posting this on the right forum. If not than delete or move this topic. I have been trying to get a basic gamecube server up and running for a few LAN parties. You may have seen me post on IRC but I don't idle long enough to see my posts. I can get the login server and the shipgate running just fine, but when I try to run the actual ship, I get an error stating that a buffer overflow was detected on the shipgate and then it crashes. The ship itself says that it connected but then appears to connect again and that seems to be where it crashes. I've posted the output below:

Code: Select all

l shipgate --nodaemon
[2016:11:07: 15:47:28.922]: Generating Diffie-Hellman parameters...
This may take a little while.
[2016:11:07: 15:47:28.998]: Done!
[2016:11:07: 15:47:28.999]: Connecting to the database...
[2016:11:07: 15:47:29.000]: Clearing online_ships...
[2016:11:07: 15:47:29.000]: Clearing online_clients...
[2016:11:07: 15:47:29.000]: Reading events from the database...
[2016:11:07: 15:47:29.000]: No events in database.
[2016:11:07: 15:47:39.578]: Accepted TLS ship connection from 155.92.58.156
*** buffer overflow detected ***: shipgate terminated
======= Backtrace: =========
/lib/x86_64-linux-gnu/libc.so.6(+0x77725)[0x7f4ca1dbb725]
/lib/x86_64-linux-gnu/libc.so.6(__fortify_fail+0x5c)[0x7f4ca1e5c89c]
/lib/x86_64-linux-gnu/libc.so.6(+0x1168a0)[0x7f4ca1e5a8a0]
/lib/x86_64-linux-gnu/libc.so.6(+0x115bf2)[0x7f4ca1e59bf2]
shipgate[0x403e3d]
shipgate[0x404870]
shipgate[0x4096d5]
shipgate[0x40b050]
shipgate[0x40b6b8]
shipgate[0x40342e]
/lib/x86_64-linux-gnu/libc.so.6(__libc_start_main+0xf0)[0x7f4ca1d64830]
shipgate[0x403819]
======= Memory map: ========
00400000-00414000 r-xp 00000000 08:05 932489                             /usr/local/bin/shipgate
00613000-00614000 r--p 00013000 08:05 932489                             /usr/local/bin/shipgate
00614000-00615000 rw-p 00014000 08:05 932489                             /usr/local/bin/shipgate
00615000-00640000 rw-p 00000000 00:00 0 
00ce0000-00d6c000 rw-p 00000000 00:00 0                                  [heap]
7f4c9d441000-7f4c9d443000 r-xp 00000000 08:05 1049627                    /usr/lib/x86_64-linux-gnu/gconv/ISO8859-1.so
7f4c9d443000-7f4c9d642000 ---p 00002000 08:05 1049627                    /usr/lib/x86_64-linux-gnu/gconv/ISO8859-1.so
7f4c9d642000-7f4c9d643000 r--p 00001000 08:05 1049627                    /usr/lib/x86_64-linux-gnu/gconv/ISO8859-1.so
7f4c9d643000-7f4c9d644000 rw-p 00002000 08:05 1049627                    /usr/lib/x86_64-linux-gnu/gconv/ISO8859-1.so
7f4c9d644000-7f4c9d65a000 r-xp 00000000 08:05 1049671                    /usr/lib/x86_64-linux-gnu/gconv/SJIS.so
7f4c9d65a000-7f4c9d85a000 ---p 00016000 08:05 1049671                    /usr/lib/x86_64-linux-gnu/gconv/SJIS.so
7f4c9d85a000-7f4c9d85b000 r--p 00016000 08:05 1049671                    /usr/lib/x86_64-linux-gnu/gconv/SJIS.so
7f4c9d85b000-7f4c9d85c000 rw-p 00017000 08:05 1049671                    /usr/lib/x86_64-linux-gnu/gconv/SJIS.so
7f4c9d85c000-7f4c9d85f000 r-xp 00000000 08:05 1049678                    /usr/lib/x86_64-linux-gnu/gconv/UTF-16.so
7f4c9d85f000-7f4c9da5e000 ---p 00003000 08:05 1049678                    /usr/lib/x86_64-linux-gnu/gconv/UTF-16.so
7f4c9da5e000-7f4c9da5f000 r--p 00002000 08:05 1049678                    /usr/lib/x86_64-linux-gnu/gconv/UTF-16.so
7f4c9da5f000-7f4c9da60000 rw-p 00003000 08:05 1049678                    /usr/lib/x86_64-linux-gnu/gconv/UTF-16.so
7f4c9da60000-7f4c9da77000 r-xp 00000000 08:05 1967392                    /lib/x86_64-linux-gnu/libresolv-2.23.so
7f4c9da77000-7f4c9dc77000 ---p 00017000 08:05 1967392                    /lib/x86_64-linux-gnu/libresolv-2.23.so
7f4c9dc77000-7f4c9dc78000 r--p 00017000 08:05 1967392                    /lib/x86_64-linux-gnu/libresolv-2.23.so
7f4c9dc78000-7f4c9dc79000 rw-p 00018000 08:05 1967392                    /lib/x86_64-linux-gnu/libresolv-2.23.so
7f4c9dc79000-7f4c9dc7b000 rw-p 00000000 00:00 0 
7f4c9dc7b000-7f4c9dc80000 r-xp 00000000 08:05 1967337                    /lib/x86_64-linux-gnu/libnss_dns-2.23.so
7f4c9dc80000-7f4c9de80000 ---p 00005000 08:05 1967337                    /lib/x86_64-linux-gnu/libnss_dns-2.23.so
7f4c9de80000-7f4c9de81000 r--p 00005000 08:05 1967337                    /lib/x86_64-linux-gnu/libnss_dns-2.23.so
7f4c9de81000-7f4c9de82000 rw-p 00006000 08:05 1967337                    /lib/x86_64-linux-gnu/libnss_dns-2.23.so
7f4c9de82000-7f4c9de84000 r-xp 00000000 08:05 1967345                    /lib/x86_64-linux-gnu/libnss_mdns4_minimal.so.2
7f4c9de84000-7f4c9e083000 ---p 00002000 08:05 1967345                    /lib/x86_64-linux-gnu/libnss_mdns4_minimal.so.2
7f4c9e083000-7f4c9e084000 r--p 00001000 08:05 1967345                    /lib/x86_64-linux-gnu/libnss_mdns4_minimal.so.2
7f4c9e084000-7f4c9e085000 rw-p 00002000 08:05 1967345                    /lib/x86_64-linux-gnu/libnss_mdns4_minimal.so.2
7f4c9e085000-7f4c9e090000 r-xp 00000000 08:05 1967339                    /lib/x86_64-linux-gnu/libnss_files-2.23.so
7f4c9e090000-7f4c9e28f000 ---p 0000b000 08:05 1967339                    /lib/x86_64-linux-gnu/libnss_files-2.23.so
7f4c9e28f000-7f4c9e290000 r--p 0000a000 08:05 1967339                    /lib/x86_64-linux-gnu/libnss_files-2.23.so
7f4c9e290000-7f4c9e291000 rw-p 0000b000 08:05 1967339                    /lib/x86_64-linux-gnu/libnss_files-2.23.so
7f4c9e291000-7f4c9e297000 rw-p 00000000 00:00 0 
7f4c9e297000-7f4c9e29e000 r-xp 00000000 08:05 925974                     /usr/lib/x86_64-linux-gnu/libffi.so.6.0.4
7f4c9e29e000-7f4c9e49d000 ---p 00007000 08:05 925974                     /usr/lib/x86_64-linux-gnu/libffi.so.6.0.4
7f4c9e49d000-7f4c9e49e000 r--p 00006000 08:05 925974                     /usr/lib/x86_64-linux-gnu/libffi.so.6.0.4
7f4c9e49e000-7f4c9e49f000 rw-p 00007000 08:05 925974                     /usr/lib/x86_64-linux-gnu/libffi.so.6.0.4
7f4c9e49f000-7f4c9fd55000 r-xp 00000000 08:05 926231                     /usr/lib/x86_64-linux-gnu/libicudata.so.55.1
7f4c9fd55000-7f4c9ff54000 ---p 018b6000 08:05 926231                     /usr/lib/x86_64-linux-gnu/libicudata.so.55.1
7f4c9ff54000-7f4c9ff55000 r--p 018b5000 08:05 926231                     /usr/lib/x86_64-linux-gnu/libicudata.so.55.1
7f4c9ff55000-7f4c9ff56000 rw-p 018b6000 08:05 926231                     /usr/lib/x86_64-linux-gnu/libicudata.so.55.1
7f4c9ff56000-7f4c9ff6c000 r-xp 00000000 08:05 1967278                    /lib/x86_64-linux-gnu/libgcc_s.so.1
7f4c9ff6c000-7f4ca016b000 ---p 00016000 08:05 1967278                    /lib/x86_64-linux-gnu/libgcc_s.so.1
7f4ca016b000-7f4ca016c000 rw-p 00015000 08:05 1967278                    /lib/x86_64-linux-gnu/libgcc_s.so.1
7f4ca016c000-7f4ca02de000 r-xp 00000000 08:05 916016                     /usr/lib/x86_64-linux-gnu/libstdc++.so.6.0.21
7f4ca02de000-7f4ca04de000 ---p 00172000 08:05 916016                     /usr/lib/x86_64-linux-gnu/libstdc++.so.6.0.21
7f4ca04de000-7f4ca04e8000 r--p 00172000 08:05 916016                     /usr/lib/x86_64-linux-gnu/libstdc++.so.6.0.21
7f4ca04e8000-7f4ca04ea000 rw-p 0017c000 08:05 916016                     /usr/lib/x86_64-linux-gnu/libstdc++.so.6.0.21
7f4ca04ea000-7f4ca04ee000 rw-p 00000000 00:00 0 
7f4ca04ee000-7f4ca056d000 r-xp 00000000 08:05 926097                     /usr/lib/x86_64-linux-gnu/libgmp.so.10.3.0
7f4ca056d000-7f4ca076c000 ---p 0007f000 08:05 926097                     /usr/lib/x86_64-linux-gnu/libgmp.so.10.3.0
7f4ca076c000-7f4ca076d000 r--p 0007e000 08:05 926097                     /usr/lib/x86_64-linux-gnu/libgmp.so.10.3.0
7f4ca076d000-7f4ca076e000 rw-p 0007f000 08:05 926097                     /usr/lib/x86_64-linux-gnu/libgmp.so.10.3.0
7f4ca076e000-7f4ca07a0000 r-xp 00000000 08:05 926209                     /usr/lib/x86_64-linux-gnu/libhogweed.so.4.2
7f4ca07a0000-7f4ca099f000 ---p 00032000 08:05 926209                     /usr/lib/x86_64-linux-gnu/libhogweed.so.4.2
7f4ca099f000-7f4ca09a0000 r--p 00031000 08:05 926209                     /usr/lib/x86_64-linux-gnu/libhogweed.so.4.2
7f4ca09a0000-7f4ca09a1000 rw-p 00032000 08:05 926209                     /usr/lib/x86_64-linux-gnu/libhogweed.so.4.2
7f4ca09a1000-7f4ca09d5000 r-xp 00000000 08:05 926408                     /usr/lib/x86_64-linux-gnu/libnettle.so.6.2
7f4ca09d5000-7f4ca0bd4000 ---p 00034000 08:05 926408                     /usr/lib/x86_64-linux-gnu/libnettle.so.6.2
7f4ca0bd4000-7f4ca0bd6000 r--p 00033000 08:05 926408                     /usr/lib/x86_64-linux-gnu/libnettle.so.6.2
7f4ca0bd6000-7f4ca0bd7000 rw-p 00035000 08:05 926408                     /usr/lib/x86_64-linux-gnu/libnettle.so.6.2
7f4ca0bd7000-7f4ca0be8000 r-xp 00000000 08:05 926394                     /usr/lib/x86_64-linux-gnu/libtasn1.so.6.5.1
7f4ca0be8000-7f4ca0de8000 ---p 00011000 08:05 926394                     /usr/lib/x86_64-linux-gnu/libtasn1.so.6.5.1
7f4ca0de8000-7f4ca0de9000 r--p 00011000 08:05 926394                     /usr/lib/x86_64-linux-gnu/libtasn1.so.6.5.1
7f4ca0de9000-7f4ca0dea000 rw-p 00012000 08:05 926394                     /usr/lib/x86_64-linux-gnu/libtasn1.so.6.5.1
7f4ca0dea000-7f4ca0e1b000 r-xp 00000000 08:05 916141                     /usr/lib/x86_64-linux-gnu/libidn.so.11.6.15
7f4ca0e1b000-7f4ca101b000 ---p 00031000 08:05 916141                     /usr/lib/x86_64-linux-gnu/libidn.so.11.6.15
7f4ca101b000-7f4ca101c000 r--p 00031000 08:05 916141                     /usr/lib/x86_64-linux-gnu/libidn.so.11.6.15
7f4ca101c000-7f4ca101d000 rw-p 00032000 08:05 916141                     /usr/lib/x86_64-linux-gnu/libidn.so.11.6.15
7f4ca101d000-7f4ca1076000 r-xp 00000000 08:05 924118                     /usr/lib/x86_64-linux-gnu/libp11-kit.so.0.1.0
7f4ca1076000-7f4ca1275000 ---p 00059000 08:05 924118                     /usr/lib/x86_64-linux-gnu/libp11-kit.so.0.1.0
7f4ca1275000-7f4ca127f000 r--p 00058000 08:05 924118                     /usr/lib/x86_64-linux-gnu/libp11-kit.so.0.1.0
7f4ca127f000-7f4ca1281000 rw-p 00062000 08:05 924118                     /usr/lib/x86_64-linux-gnu/libp11-kit.so.0.1.0
7f4ca1281000-7f4ca1389000 r-xp 00000000 08:05 1967310                    /lib/x86_64-linux-gnu/libm-2.23.so
7f4ca1389000-7f4ca1588000 ---p 00108000 08:05 1967310                    /lib/x86_64-linux-gnu/libm-2.23.so
7f4ca1588000-7f4ca1589000 r--p 00107000 08:05 1967310                    /lib/x86_64-linux-gnu/libm-2.23.so
7f4ca1589000-7f4ca158a000 rw-p 00108000 08:05 1967310                    /lib/x86_64-linux-gnu/libm-2.23.so
7f4ca158a000-7f4ca15ab000 r-xp 00000000 08:05 1967307                    /lib/x86_64-linux-gnu/liblzma.so.5.0.0
7f4ca15ab000-7f4ca17aa000 ---p 00021000 08:05 1967307                    /lib/x86_64-linux-gnu/liblzma.so.5.0.0
7f4ca17aa000-7f4ca17ab000 r--p 00020000 08:05 1967307                    /lib/x86_64-linux-gnu/liblzma.so.5.0.0
7f4ca17ab000-7f4ca17ac000 rw-p 00021000 08:05 1967307                    /lib/x86_64-linux-gnu/liblzma.so.5.0.0
7f4ca17ac000-7f4ca192b000 r-xp 00000000 08:05 926245                     /usr/lib/x86_64-linux-gnu/libicuuc.so.55.1
7f4ca192b000-7f4ca1b2b000 ---p 0017f000 08:05 926245                     /usr/lib/x86_64-linux-gnu/libicuuc.so.55.1
7f4ca1b2b000-7f4ca1b3b000 r--p 0017f000 08:05 926245                     /usr/lib/x86_64-linux-gnu/libicuuc.so.55.1
7f4ca1b3b000-7f4ca1b3c000 rw-p 0018f000 08:05 926245                     /usr/lib/x86_64-linux-gnu/libicuuc.so.55.1
7f4ca1b3c000-7f4ca1b40000 rw-p 00000000 00:00 0 
7f4ca1b40000-7f4ca1b43000 r-xp 00000000 08:05 1967264                    /lib/x86_64-linux-gnu/libdl-2.23.so
7f4ca1b43000-7f4ca1d42000 ---p 00003000 08:05 1967264                    /lib/x86_64-linux-gnu/libdl-2.23.so
7f4ca1d42000-7f4ca1d43000 r--p 00002000 08:05 1967264                    /lib/x86_64-linux-gnu/libdl-2.23.so
7f4ca1d43000-7f4ca1d44000 rw-p 00003000 08:05 1967264                    /lib/x86_64-linux-gnu/libdl-2.23.so
7f4ca1d44000-7f4ca1f04000 r-xp 00000000 08:05 1967240                    /lib/x86_64-linux-gnu/libc-2.23.so
7f4ca1f04000-7f4ca2103000 ---p 001c0000 08:05 1967240                    /lib/x86_64-linux-gnu/libc-2.23.so
7f4ca2103000-7f4ca2107000 r--p 001bf000 08:05 1967240                    /lib/x86_64-linux-gnu/libc-2.23.so
7f4ca2107000-7f4ca2109000 rw-p 001c3000 08:05 1967240                    /lib/x86_64-linux-gnu/libc-2.23.so
7f4ca2109000-7f4ca210d000 rw-p 00000000 00:00 0 
7f4ca210d000-7f4ca2126000 r-xp 00000000 08:05 1967431                    /lib/x86_64-linux-gnu/libz.so.1.2.8
7f4ca2126000-7f4ca2325000 ---p 00019000 08:05 1967431                    /lib/x86_64-linux-gnu/libz.so.1.2.8
7f4ca2325000-7f4ca2326000 r--p 00018000 08:05 1967431                    /lib/x86_64-linux-gnu/libz.so.1.2.8
7f4ca2326000-7f4ca2327000 rw-p 00019000 08:05 1967431                    /lib/x86_64-linux-gnu/libz.so.1.2.8
7f4ca2327000-7f4ca233f000 r-xp 00000000 08:05 1967386                    /lib/x86_64-linux-gnu/libpthread-2.23.so
7f4ca233f000-7f4ca253e000 ---p 00018000 08:05 1967386                    /lib/x86_64-linux-gnu/libpthread-2.23.so
7f4ca253e000-7f4ca253f000 r--p 00017000 08:05 1967386                    /lib/x86_64-linux-gnu/libpthread-2.23.so
7f4ca253f000-7f4ca2540000 rw-p 00018000 08:05 1967386                    /lib/x86_64-linux-gnu/libpthread-2.23.so
7f4ca2540000-7f4ca2544000 rw-p 00000000 00:00 0 
7f4ca2544000-7f4ca28d7000 r-xp 00000000 08:05 919640                     /usr/lib/x86_64-linux-gnu/libmysqlclient.so.20.3.3
7f4ca28d7000-7f4ca2ad6000 ---p 00393000 08:05 919640                     /usr/lib/x86_64-linux-gnu/libmysqlclient.so.20.3.3
7f4ca2ad6000-7f4ca2adc000 r--p 00392000 08:05 919640                     /usr/lib/x86_64-linux-gnu/libmysqlclient.so.20.3.3
7f4ca2adc000-7f4ca2b4e000 rw-p 00398000 08:05 919640                     /usr/lib/x86_64-linux-gnu/libmysqlclient.so.20.3.3
7f4ca2b4e000-7f4ca2b54000 rw-p 00000000 00:00 0 
7f4ca2b54000-7f4ca2c77000 r-xp 00000000 08:05 916115                     /usr/lib/x86_64-linux-gnu/libgnutls.so.30.6.2
7f4ca2c77000-7f4ca2e76000 ---p 00123000 08:05 916115                     /usr/lib/x86_64-linux-gnu/libgnutls.so.30.6.2
7f4ca2e76000-7f4ca2e81000 r--p 00122000 08:05 916115                     /usr/lib/x86_64-linux-gnu/libgnutls.so.30.6.2
7f4ca2e81000-7f4ca2e83000 rw-p 0012d000 08:05 916115                     /usr/lib/x86_64-linux-gnu/libgnutls.so.30.6.2
7f4ca2e83000-7f4ca2e84000 rw-p 00000000 00:00 0 
7f4ca2e84000-7f4ca3033000 r-xp 00000000 08:05 929133                     /usr/lib/x86_64-linux-gnu/libxml2.so.2.9.3
7f4ca3033000-7f4ca3233000 ---p 001af000 08:05 929133                     /usr/lib/x86_64-linux-gnu/libxml2.so.2.9.3
7f4ca3233000-7f4ca323b000 r--p 001af000 08:05 929133                     /usr/lib/x86_64-linux-gnu/libxml2.so.2.9.3
7f4ca323b000-7f4ca323d000 rw-p 001b7000 08:05 929133                     /usr/lib/x86_64-linux-gnu/libxml2.so.2.9.3
7f4ca323d000-7f4ca323e000 rw-p 00000000 00:00 0 
7f4ca323e000-7f4ca3264000 r-xp 00000000 08:05 1967212                    /lib/x86_64-linux-gnu/ld-2.23.so
7f4ca3437000-7f4ca3443000 rw-p 00000000 00:00 0 
7f4ca3459000-7f4ca345a000 rw-p 00000000 00:00 0 
7f4ca345a000-7f4ca3461000 r--s 00000000 08:05 1049683                    /usr/lib/x86_64-linux-gnu/gconv/gconv-modules.cache
7f4ca3461000-7f4ca3463000 rw-p 00000000 00:00 0 
7f4ca3463000-7f4ca3464000 r--p 00025000 08:05 1967212                    /lib/x86_64-linux-gnu/ld-2.23.so
7f4ca3464000-7f4ca3465000 rw-p 00026000 08:05 1967212                    /lib/x86_64-linux-gnu/ld-2.23.so
7f4ca3465000-7f4ca3466000 rw-p 00000000 00:00 0 
7ffc1926b000-7ffc1928c000 rw-p 00000000 00:00 0                          [stack]
7ffc19354000-7ffc19356000 r--p 00000000 00:00 0                          [vvar]
7ffc19356000-7ffc19358000 r-xp 00000000 00:00 0                          [vdso]
ffffffffff600000-ffffffffff601000 r-xp 00000000 00:00 0                  [vsyscall]
Aborted (core dum

Code: Select all

ship_server --nodaemon
[2016:11:07: 16:33:48.958]: Ignoring unknown language in info/motd tag on line 17: EN
[2016:11:07: 16:33:48.959]: Configured parameters:
[2016:11:07: 16:33:48.959]: Shipgate Host: 192.168.226.160
[2016:11:07: 16:33:48.959]: Shipgate Port: 3100
[2016:11:07: 16:33:48.959]: Ship Name: Anime Titties
[2016:11:07: 16:33:48.959]: Ship IPv4 Host: 192.168.226.160
[2016:11:07: 16:33:48.959]: Ship IPv6 Host: Autoconfig or None
[2016:11:07: 16:33:48.959]: Base Port: 3001
[2016:11:07: 16:33:48.959]: Blocks: 1
[2016:11:07: 16:33:48.959]: Default Lobby Event: 0
[2016:11:07: 16:33:48.959]: Default Game Event: 0
[2016:11:07: 16:33:48.959]: Menu: US
[2016:11:07: 16:33:48.959]: Units +/- limit: v2: false, GC: false, BB: false
[2016:11:07: 16:33:48.959]: Flags: 0x00000640
[2016:11:07: 16:33:48.959]: Looking up ship address...
[2016:11:07: 16:33:48.959]:     Found IPv4: 192.168.226.160
[2016:11:07: 16:33:48.961]: Generating Diffie-Hellman parameters...
This may take a little while.
[2016:11:07: 16:33:48.987]: Done!
[2016:11:07: 16:33:48.987]: No BB ItemPT file specified, disabling Blue Burst support!
[2016:11:07: 16:33:48.987]: No BB ItemPT file specified, disabling Blue Burst support!
[2016:11:07: 16:33:48.987]: Starting server for ship Anime Titties...
[2016:11:07: 16:33:48.987]: No quests configured!
[2016:11:07: 16:33:48.987]: Anime Titties: Reading Local GM List...
[2016:11:07: 16:33:49.035]: Anime Titties: Read 1 Local GMs
[2016:11:07: 16:33:49.035]: Anime Titties: Looking up shipgate (192.168.226.160)...
[2016:11:07: 16:33:49.035]: Anime Titties: Connecting to shipgate...
[2016:11:07: 16:33:49.035]:     Trying 192.168.226.160
[2016:11:07: 16:33:49.035]:         Success!
[2016:11:07: 16:33:49.040]: Anime Titties: Starting server for block 1...
[2016:11:07: 16:33:49.040]: Anime Titties(1): Up and running
[2016:11:07: 16:33:49.079]: Anime Titties: Connected to Shipgate Version 0.1.0
[2016:11:07: 16:33:49.106]: Anime Titties: Shipgate connection established
[2016:11:07: 16:33:49.204]: Anime Titties: Lost connection with shipgate
[2016:11:07: 16:33:49.204]: Anime Titties: Looking up shipgate (192.168.226.160)...
[2016:11:07: 16:33:49.204]: Anime Titties: Connecting to shipgate...
[2016:11:07: 16:33:49.204]:     Trying 192.168.226.160
[2016:11:07: 16:33:49.204]: connect: Connection refused
[2016:11:07: 16:33:49.204]: Couldn't connect to shipgate!
Not sure why the connection would get lost. I can't tell whether it is network related or just an issue with my config files. I pretty much used the guides on the wiki verbatim minus a few changes I had to find browsing the net and installing a few different packages. I am running this on Ubuntu but I recall that the linux bug was fixed a few years ago. Any help would be appreciated, thanks.
User avatar
BlueCrab
The Crabby Overlord
The Crabby Overlord
Posts: 5652
Joined: Mon May 27, 2002 11:31 am
Location: Sailing the Skies of Arcadia
Has thanked: 9 times
Been thanked: 69 times
Contact:

Re: Buffer Overflow Detected

Post by BlueCrab »

I'd suggest compiling things with debugging symbols enabled (specifically shipgate, since that's where you're seeing an issue).

Unfortunately, without a stacktrace that's got some sort of source-code location information in it, I can't really tell anything.

Also, the documentation on the site is really out of date. I hate writing documentation, and well, I've not bothered to update it in a long while. There were others that were doing so, but nobody has in a while...
wewlad
DCEmu Newbie
DCEmu Newbie
Posts: 4
Joined: Mon Nov 07, 2016 9:49 am
Has thanked: 0
Been thanked: 0

Re: Buffer Overflow Detected

Post by wewlad »

I plan on writing up a good guide on setting up the server on ubuntu if I can get this running. Unfortunately my experience with makefiles is limited to coursework. I am unsure how to edit the file to enable debugging symbols. It looks like its just a "-g" added the gcc command but again, I am not sure where to find that. I will post my config files below if that helps. Since other people seem to be able to get it running I feel like it might be a configuration issue. Thanks for the feedback.

Code: Select all

<?xml version="1.0" encoding="UTF-8"?>

<!DOCTYPE ships PUBLIC "-//Sylverant//DTD Ship Configuration 1.14//EN"
  "http://sylverant.net/dtd/ship_config1.14/ship_config.dtd">

<ships>
    <shipgate addr="192.168.226.160" port="3100"
     ca="config/cacert.pem" />
    <ship name="Anime Titties" blocks="1" key="config/sylverant-key.pem"
     cert="config/sylverant-cert.pem" gms="config/gm.xml" menu="US"
     gmonly="false">
        <net port="3001" addr="192.168.226.160"/>
        <versions v1="true" v2="true" pc="false" gc="true"
          ep3="true" bb="false" dcnte="false" />
        <motd file="MOTD.txt"  v1="true"
         v2="true" pc="true"
         languages="EN" />
    </ship>
</ships>

Code: Select all

<?xml version="1.0" encoding="UTF-8"?>

<!DOCTYPE sylverant_config PUBLIC "-//Sylverant//DTD Sylverant Configuration 1.4//EN"
  "http://sylverant.net/dtd/sylverant_config1.4/sylverant_config.dtd">

<sylverant_config>
    <database type="mysql" host="127.0.0.1" user="root" pass="root" db="pso" port="3306" />
    <server addr="192.168.226.160" />
    <shipgate port="3100" cert="config/sylverant-cert.pem" key="config/sylverant-key.pem" ca-cert="config/cacert.pem" />
    <info file="config/info.txt" desc="Info File Description" />
    <motd file="config/MOTD.txt" gc="true" ep3="false" bb="false" />
</sylverant_config>
The xml links to an older DTD file than what the latest includes, not sure if that makes a difference.
wewlad
DCEmu Newbie
DCEmu Newbie
Posts: 4
Joined: Mon Nov 07, 2016 9:49 am
Has thanked: 0
Been thanked: 0

Re: Buffer Overflow Detected

Post by wewlad »

I just ran the shipgate with valgrind -v. The output is below:
Spoiler!

Code: Select all

==8833== Memcheck, a memory error detector
==8833== Copyright (C) 2002-2015, and GNU GPL'd, by Julian Seward et al.
==8833== Using Valgrind-3.11.0 and LibVEX; rerun with -h for copyright info
==8833== Command: shipgate --nodaemon
==8833== 
--8833-- Valgrind options:
--8833--    -v
--8833-- Contents of /proc/version:
--8833--   Linux version 4.4.0-45-generic (buildd@lgw01-34) (gcc version 5.4.0 20160609 (Ubuntu 5.4.0-6ubuntu1~16.04.2) ) #66-Ubuntu SMP Wed Oct 19 14:12:37 UTC 2016
--8833-- 
--8833-- Arch and hwcaps: AMD64, LittleEndian, amd64-cx16-lzcnt-rdtscp-sse3-avx-avx2-bmi
--8833-- Page sizes: currently 4096, max supported 4096
--8833-- Valgrind library directory: /usr/lib/valgrind
--8833-- Reading syms from /usr/local/bin/shipgate
--8833-- Reading syms from /lib/x86_64-linux-gnu/ld-2.23.so
--8833--   Considering /lib/x86_64-linux-gnu/ld-2.23.so ..
--8833--   .. CRC mismatch (computed d3da0723 wanted a1c29704)
--8833--   Considering /usr/lib/debug/lib/x86_64-linux-gnu/ld-2.23.so ..
--8833--   .. CRC is valid
--8833-- Reading syms from /usr/lib/valgrind/memcheck-amd64-linux
--8833--   Considering /usr/lib/valgrind/memcheck-amd64-linux ..
--8833--   .. CRC mismatch (computed 5529a2c7 wanted 5bd23904)
--8833--    object doesn't have a symbol table
--8833--    object doesn't have a dynamic symbol table
--8833-- Scheduler: using generic scheduler lock implementation.
--8833-- Reading suppressions file: /usr/lib/valgrind/default.supp
==8833== embedded gdbserver: reading from /tmp/vgdb-pipe-from-vgdb-to-8833-by-logan-on-???
==8833== embedded gdbserver: writing to   /tmp/vgdb-pipe-to-vgdb-from-8833-by-logan-on-???
==8833== embedded gdbserver: shared mem   /tmp/vgdb-pipe-shared-mem-vgdb-8833-by-logan-on-???
==8833== 
==8833== TO CONTROL THIS PROCESS USING vgdb (which you probably
==8833== don't want to do, unless you know exactly what you're doing,
==8833== or are doing some strange experiment):
==8833==   /usr/lib/valgrind/../../bin/vgdb --pid=8833 ...command...
==8833== 
==8833== TO DEBUG THIS PROCESS USING GDB: start GDB like this
==8833==   /path/to/gdb shipgate
==8833== and then give GDB the following command
==8833==   target remote | /usr/lib/valgrind/../../bin/vgdb --pid=8833
==8833== --pid is optional if only one valgrind process is running
==8833== 
--8833-- REDIR: 0x401cdc0 (ld-linux-x86-64.so.2:strlen) redirected to 0x3809e181 (???)
--8833-- Reading syms from /usr/lib/valgrind/vgpreload_core-amd64-linux.so
--8833--   Considering /usr/lib/valgrind/vgpreload_core-amd64-linux.so ..
--8833--   .. CRC mismatch (computed a30c8eaa wanted 7ae2fed4)
--8833--    object doesn't have a symbol table
--8833-- Reading syms from /usr/lib/valgrind/vgpreload_memcheck-amd64-linux.so
--8833--   Considering /usr/lib/valgrind/vgpreload_memcheck-amd64-linux.so ..
--8833--   .. CRC mismatch (computed 402c2ab5 wanted 745f25ae)
--8833--    object doesn't have a symbol table
==8833== WARNING: new redirection conflicts with existing -- ignoring it
--8833--     old: 0x0401cdc0 (strlen              ) R-> (0000.0) 0x3809e181 ???
--8833--     new: 0x0401cdc0 (strlen              ) R-> (2007.0) 0x04c31020 strlen
--8833-- REDIR: 0x401b710 (ld-linux-x86-64.so.2:index) redirected to 0x4c30bc0 (index)
--8833-- REDIR: 0x401b930 (ld-linux-x86-64.so.2:strcmp) redirected to 0x4c320d0 (strcmp)
--8833-- REDIR: 0x401db20 (ld-linux-x86-64.so.2:mempcpy) redirected to 0x4c35270 (mempcpy)
--8833-- Reading syms from /usr/lib/x86_64-linux-gnu/libxml2.so.2.9.3
--8833--    object doesn't have a symbol table
--8833-- Reading syms from /usr/lib/x86_64-linux-gnu/libgnutls.so.30.6.2
--8833--    object doesn't have a symbol table
--8833-- Reading syms from /usr/lib/x86_64-linux-gnu/libmysqlclient.so.20.3.3
--8833--    object doesn't have a symbol table
--8833-- Reading syms from /lib/x86_64-linux-gnu/libpthread-2.23.so
--8833--   Considering /usr/lib/debug/.build-id/b7/7847cc9cacbca3b5753d0d25a32e5795afe75b.debug ..
--8833--   .. build-id is valid
--8833-- Reading syms from /lib/x86_64-linux-gnu/libz.so.1.2.8
--8833--    object doesn't have a symbol table
--8833-- Reading syms from /lib/x86_64-linux-gnu/libc-2.23.so
--8833--   Considering /lib/x86_64-linux-gnu/libc-2.23.so ..
--8833--   .. CRC mismatch (computed 2adb2e50 wanted 9b73f606)
--8833--   Considering /usr/lib/debug/lib/x86_64-linux-gnu/libc-2.23.so ..
--8833--   .. CRC is valid
--8833-- Reading syms from /lib/x86_64-linux-gnu/libdl-2.23.so
--8833--   Considering /lib/x86_64-linux-gnu/libdl-2.23.so ..
--8833--   .. CRC mismatch (computed b7ff3c20 wanted 623a46c3)
--8833--   Considering /usr/lib/debug/lib/x86_64-linux-gnu/libdl-2.23.so ..
--8833--   .. CRC is valid
--8833-- Reading syms from /usr/lib/x86_64-linux-gnu/libicuuc.so.55.1
--8833--    object doesn't have a symbol table
--8833-- Reading syms from /lib/x86_64-linux-gnu/liblzma.so.5.0.0
--8833--    object doesn't have a symbol table
--8833-- Reading syms from /lib/x86_64-linux-gnu/libm-2.23.so
--8833--   Considering /lib/x86_64-linux-gnu/libm-2.23.so ..
--8833--   .. CRC mismatch (computed f7791cb7 wanted 92acf4be)
--8833--   Considering /usr/lib/debug/lib/x86_64-linux-gnu/libm-2.23.so ..
--8833--   .. CRC is valid
--8833-- Reading syms from /usr/lib/x86_64-linux-gnu/libp11-kit.so.0.1.0
--8833--    object doesn't have a symbol table
--8833-- Reading syms from /usr/lib/x86_64-linux-gnu/libidn.so.11.6.15
--8833--    object doesn't have a symbol table
--8833-- Reading syms from /usr/lib/x86_64-linux-gnu/libtasn1.so.6.5.1
--8833--    object doesn't have a symbol table
--8833-- Reading syms from /usr/lib/x86_64-linux-gnu/libnettle.so.6.2
--8833--   Considering /usr/lib/x86_64-linux-gnu/libnettle.so.6.2 ..
--8833--   .. CRC mismatch (computed a14a17f5 wanted fa879d1a)
--8833--    object doesn't have a symbol table
--8833-- Reading syms from /usr/lib/x86_64-linux-gnu/libhogweed.so.4.2
--8833--   Considering /usr/lib/x86_64-linux-gnu/libhogweed.so.4.2 ..
--8833--   .. CRC mismatch (computed 57620cf8 wanted 23fe0919)
--8833--    object doesn't have a symbol table
--8833-- Reading syms from /usr/lib/x86_64-linux-gnu/libgmp.so.10.3.0
--8833--    object doesn't have a symbol table
--8833-- Reading syms from /usr/lib/x86_64-linux-gnu/libstdc++.so.6.0.21
--8833--   Considering /usr/lib/x86_64-linux-gnu/libstdc++.so.6.0.21 ..
--8833--   .. CRC mismatch (computed 6b58a14c wanted 340d19a8)
--8833--    object doesn't have a symbol table
--8833-- Reading syms from /lib/x86_64-linux-gnu/libgcc_s.so.1
--8833--   Considering /lib/x86_64-linux-gnu/libgcc_s.so.1 ..
--8833--   .. CRC mismatch (computed b9a68419 wanted 29d51b00)
--8833--    object doesn't have a symbol table
--8833-- Reading syms from /usr/lib/x86_64-linux-gnu/libicudata.so.55.1
--8833--    object doesn't have a symbol table
--8833-- Reading syms from /usr/lib/x86_64-linux-gnu/libffi.so.6.0.4
--8833--    object doesn't have a symbol table
--8833-- REDIR: 0x5ff9fd0 (libc.so.6:strcasecmp) redirected to 0x4a286f0 (_vgnU_ifunc_wrapper)
--8833-- REDIR: 0x5ff5850 (libc.so.6:strcspn) redirected to 0x4a286f0 (_vgnU_ifunc_wrapper)
--8833-- REDIR: 0x5ffc2c0 (libc.so.6:strncasecmp) redirected to 0x4a286f0 (_vgnU_ifunc_wrapper)
--8833-- REDIR: 0x5ff7cc0 (libc.so.6:strpbrk) redirected to 0x4a286f0 (_vgnU_ifunc_wrapper)
--8833-- REDIR: 0x5ff8050 (libc.so.6:strspn) redirected to 0x4a286f0 (_vgnU_ifunc_wrapper)
--8833-- REDIR: 0x5ff971b (libc.so.6:memcpy@GLIBC_2.2.5) redirected to 0x4a286f0 (_vgnU_ifunc_wrapper)
--8833-- REDIR: 0x5ff8c00 (libc.so.6:strstr) redirected to 0x4a286f0 (_vgnU_ifunc_wrapper)
--8833-- REDIR: 0x5ff4050 (libc.so.6:index) redirected to 0x4a286f0 (_vgnU_ifunc_wrapper)
--8833-- REDIR: 0x5ff9180 (libc.so.6:bcmp) redirected to 0x4a286f0 (_vgnU_ifunc_wrapper)
--8833-- REDIR: 0x5ff60f0 (libc.so.6:strncmp) redirected to 0x4a286f0 (_vgnU_ifunc_wrapper)
--8833-- REDIR: 0x5ff7990 (libc.so.6:strncpy) redirected to 0x4a286f0 (_vgnU_ifunc_wrapper)
--8833-- REDIR: 0x5ff9780 (libc.so.6:memset) redirected to 0x4a286f0 (_vgnU_ifunc_wrapper)
--8833-- REDIR: 0x5ff60b0 (libc.so.6:strncat) redirected to 0x4a286f0 (_vgnU_ifunc_wrapper)
--8833-- REDIR: 0x60809e0 (libc.so.6:__memmove_chk) redirected to 0x4a286f0 (_vgnU_ifunc_wrapper)
--8833-- REDIR: 0x5ffe9c0 (libc.so.6:memcpy@@GLIBC_2.14) redirected to 0x4a286f0 (_vgnU_ifunc_wrapper)
--8833-- REDIR: 0x5ff5730 (libc.so.6:strcpy) redirected to 0x4a286f0 (_vgnU_ifunc_wrapper)
--8833-- REDIR: 0x5ff42a0 (libc.so.6:strcmp) redirected to 0x4a286f0 (_vgnU_ifunc_wrapper)
--8833-- REDIR: 0x6080950 (libc.so.6:__memcpy_chk) redirected to 0x4a286f0 (_vgnU_ifunc_wrapper)
--8833-- REDIR: 0x5ff3e50 (libc.so.6:strcat) redirected to 0x4a286f0 (_vgnU_ifunc_wrapper)
--8833-- REDIR: 0x5ff9e20 (libc.so.6:stpcpy) redirected to 0x4a286f0 (_vgnU_ifunc_wrapper)
--8833-- REDIR: 0x5ff79d0 (libc.so.6:rindex) redirected to 0x4c308a0 (rindex)
--8833-- REDIR: 0x5fee550 (libc.so.6:malloc) redirected to 0x4c2db20 (malloc)
--8833-- REDIR: 0x5ff5cf0 (libc.so.6:strlen) redirected to 0x4c30f60 (strlen)
--8833-- REDIR: 0x5ff6140 (libc.so.6:__GI_strncmp) redirected to 0x4c31710 (__GI_strncmp)
--8833-- REDIR: 0x5ffea40 (libc.so.6:__GI_memcpy) redirected to 0x4c32b00 (__GI_memcpy)
--8833-- REDIR: 0x5ff42e0 (libc.so.6:__GI_strcmp) redirected to 0x4c31fe0 (__GI_strcmp)
--8833-- REDIR: 0x5fef290 (libc.so.6:calloc) redirected to 0x4c2faa0 (calloc)
--8833-- REDIR: 0x60b86d0 (libc.so.6:__memcpy_avx_unaligned) redirected to 0x4c324a0 (memcpy@@GLIBC_2.14)
--8833-- REDIR: 0x5ff4080 (libc.so.6:__GI_strchr) redirected to 0x4c30a00 (__GI_strchr)
--8833-- REDIR: 0x60b86c0 (libc.so.6:__memcpy_chk_avx_unaligned) redirected to 0x4c35360 (__memcpy_chk)
--8833-- REDIR: 0x6009b40 (libc.so.6:__strcmp_sse2_unaligned) redirected to 0x4c31f90 (strcmp)
--8833-- REDIR: 0x5feea70 (libc.so.6:free) redirected to 0x4c2ed80 (free)
--8833-- REDIR: 0x60dd1a0 (libc.so.6:__memset_avx2) redirected to 0x4c344c0 (memset)
--8833-- REDIR: 0x5feec40 (libc.so.6:realloc) redirected to 0x4c2fce0 (realloc)
--8833-- REDIR: 0x60d8c60 (libc.so.6:__memcmp_sse4_1) redirected to 0x4c33cd0 (__memcmp_sse4_1)
--8833-- REDIR: 0x600ffa0 (libc.so.6:__strcpy_sse2_unaligned) redirected to 0x4c31040 (strcpy)
--8833-- REDIR: 0x60105d0 (libc.so.6:__strncpy_sse2_unaligned) redirected to 0x4c31570 (__strncpy_sse2_unaligned)
--8833-- REDIR: 0x60b02c0 (libc.so.6:__strncmp_sse42) redirected to 0x4c317f0 (__strncmp_sse42)
--8833-- REDIR: 0x60b81e0 (libc.so.6:__memmove_avx_unaligned) redirected to 0x4c32230 (memcpy@GLIBC_2.2.5)
--8833-- REDIR: 0x5ff8630 (libc.so.6:__GI_strstr) redirected to 0x4c354d0 (__strstr_sse2)
--8833-- REDIR: 0x5ff8e30 (libc.so.6:memchr) redirected to 0x4c32170 (memchr)
--8833-- REDIR: 0x6000d30 (libc.so.6:strchrnul) redirected to 0x4c34da0 (strchrnul)
--8833-- REDIR: 0x5ff9980 (libc.so.6:__GI_mempcpy) redirected to 0x4c34fa0 (__GI_mempcpy)
--8833-- REDIR: 0x60b6820 (libc.so.6:__strncasecmp_avx) redirected to 0x4c31940 (strncasecmp)
--8833-- REDIR: 0x6009af0 (libc.so.6:__GI_strncpy) redirected to 0x4c31310 (__GI_strncpy)
--8833-- REDIR: 0x5ff9e60 (libc.so.6:__GI_stpcpy) redirected to 0x4c33f80 (__GI_stpcpy)
--8833-- Reading syms from /lib/x86_64-linux-gnu/libnss_files-2.23.so
--8833--   Considering /lib/x86_64-linux-gnu/libnss_files-2.23.so ..
--8833--   .. CRC mismatch (computed 787ef17f wanted 48302948)
--8833--   Considering /usr/lib/debug/lib/x86_64-linux-gnu/libnss_files-2.23.so ..
--8833--   .. CRC is valid
--8833-- REDIR: 0x5ff5770 (libc.so.6:__GI_strcpy) redirected to 0x4c31110 (__GI_strcpy)
--8833-- REDIR: 0x6000b20 (libc.so.6:rawmemchr) redirected to 0x4c34dd0 (rawmemchr)
--8833-- REDIR: 0x60b51b0 (libc.so.6:__strcasecmp_avx) redirected to 0x4c31860 (strcasecmp)
--8833-- Reading syms from /lib/x86_64-linux-gnu/libnss_mdns4_minimal.so.2
--8833--    object doesn't have a symbol table
--8833-- REDIR: 0x401dc70 (ld-linux-x86-64.so.2:stpcpy) redirected to 0x4c342c0 (stpcpy)
--8833-- Reading syms from /lib/x86_64-linux-gnu/libnss_dns-2.23.so
--8833--   Considering /lib/x86_64-linux-gnu/libnss_dns-2.23.so ..
--8833--   .. CRC mismatch (computed e00aebb5 wanted afe962a6)
--8833--   Considering /usr/lib/debug/lib/x86_64-linux-gnu/libnss_dns-2.23.so ..
--8833--   .. CRC is valid
--8833-- Reading syms from /lib/x86_64-linux-gnu/libresolv-2.23.so
--8833--   Considering /lib/x86_64-linux-gnu/libresolv-2.23.so ..
--8833--   .. CRC mismatch (computed 87659676 wanted 8389f31d)
--8833--   Considering /usr/lib/debug/lib/x86_64-linux-gnu/libresolv-2.23.so ..
--8833--   .. CRC is valid
--8833-- REDIR: 0x5ff91c0 (libc.so.6:__GI_memcmp) redirected to 0x4c33b90 (__GI_memcmp)
[2016:11:07: 20:01:28.355]: Generating Diffie-Hellman parameters...
This may take a little while.
[2016:11:07: 20:01:29.374]: Done!
--8833-- Reading syms from /usr/lib/x86_64-linux-gnu/gconv/UTF-16.so
--8833--   Considering /usr/lib/x86_64-linux-gnu/gconv/UTF-16.so ..
--8833--   .. CRC mismatch (computed b03c450e wanted 425e109b)
--8833--   Considering /usr/lib/debug/usr/lib/x86_64-linux-gnu/gconv/UTF-16.so ..
--8833--   .. CRC is valid
--8833-- Reading syms from /usr/lib/x86_64-linux-gnu/gconv/SJIS.so
--8833--   Considering /usr/lib/x86_64-linux-gnu/gconv/SJIS.so ..
--8833--   .. CRC mismatch (computed 83635a3f wanted 8290b6d0)
--8833--   Considering /usr/lib/debug/usr/lib/x86_64-linux-gnu/gconv/SJIS.so ..
--8833--   .. CRC is valid
--8833-- Reading syms from /usr/lib/x86_64-linux-gnu/gconv/ISO8859-1.so
--8833--   Considering /usr/lib/x86_64-linux-gnu/gconv/ISO8859-1.so ..
--8833--   .. CRC mismatch (computed d872b97c wanted 2237059d)
--8833--   Considering /usr/lib/debug/usr/lib/x86_64-linux-gnu/gconv/ISO8859-1.so ..
--8833--   .. CRC is valid
[2016:11:07: 20:01:29.402]: Connecting to the database...
--8833-- REDIR: 0x5ff5e90 (libc.so.6:strnlen) redirected to 0x4c30ee0 (strnlen)
[2016:11:07: 20:01:29.559]: Clearing online_ships...
[2016:11:07: 20:01:29.867]: Clearing online_clients...
[2016:11:07: 20:01:29.933]: Reading events from the database...
[2016:11:07: 20:01:29.942]: No events in database.
[2016:11:07: 20:01:36.990]: Accepted TLS ship connection from 155.92.56.200
--8833-- REDIR: 0x6080bc0 (libc.so.6:__strcpy_chk) redirected to 0x4c34e10 (__strcpy_chk)
**8833** *** strcpy_chk: buffer overflow detected ***: program terminated
==8833==    at 0x4C3085C: ??? (in /usr/lib/valgrind/vgpreload_memcheck-amd64-linux.so)
==8833==    by 0x4C34E46: __strcpy_chk (in /usr/lib/valgrind/vgpreload_memcheck-amd64-linux.so)
==8833==    by 0x403E3C: strcpy (string3.h:110)
==8833==    by 0x403E3C: send_ship_status (packets.c:239)
==8833==    by 0x40486F: handle_shipgate_login6t (ship.c:464)
==8833==    by 0x4096D4: process_ship_pkt (ship.c:3275)
==8833==    by 0x40B04F: handle_pkt (ship.c:3418)
==8833==    by 0x40B6B7: run_server (shipgate.c:463)
==8833==    by 0x40342D: main (shipgate.c:734)
--8833-- Discarding syms at 0xae34600-0xae3508d in /usr/lib/x86_64-linux-gnu/gconv/ISO8859-1.so due to munmap()
--8833-- Discarding syms at 0xaa18700-0xaa19dd9 in /usr/lib/x86_64-linux-gnu/gconv/UTF-16.so due to munmap()
--8833-- Discarding syms at 0xac1c600-0xac1dddf in /usr/lib/x86_64-linux-gnu/gconv/SJIS.so due to munmap()
--8833-- Discarding syms at 0xa1e31b0-0xa1e92a1 in /lib/x86_64-linux-gnu/libnss_files-2.23.so due to munmap()
--8833-- Discarding syms at 0xa3f3bd0-0xa3f4925 in /lib/x86_64-linux-gnu/libnss_mdns4_minimal.so.2 due to munmap()
--8833-- Discarding syms at 0xa5f7020-0xa5fa643 in /lib/x86_64-linux-gnu/libnss_dns-2.23.so due to munmap()
--8833-- Discarding syms at 0xa800990-0xa810398 in /lib/x86_64-linux-gnu/libresolv-2.23.so due to munmap()
==8833== 
==8833== HEAP SUMMARY:
==8833==     in use at exit: 401,688 bytes in 1,020 blocks
==8833==   total heap usage: 6,079 allocs, 5,059 frees, 1,883,457 bytes allocated
==8833== 
==8833== Searching for pointers to 1,020 not-freed blocks
==8833== Checked 1,207,688 bytes
==8833== 
==8833== LEAK SUMMARY:
==8833==    definitely lost: 0 bytes in 0 blocks
==8833==    indirectly lost: 0 bytes in 0 blocks
==8833==      possibly lost: 36,004 bytes in 19 blocks
==8833==    still reachable: 365,684 bytes in 1,001 blocks
==8833==         suppressed: 0 bytes in 0 blocks
==8833== Rerun with --leak-check=full to see details of leaked memory
==8833== 
==8833== ERROR SUMMARY: 0 errors from 0 contexts (suppressed: 0 from 0)
==8833== ERROR SUMMARY: 0 errors from 0 contexts (suppressed: 0 from 0)
The output for the ship server is below:
Spoiler!

Code: Select all

==8882== Memcheck, a memory error detector
==8882== Copyright (C) 2002-2015, and GNU GPL'd, by Julian Seward et al.
==8882== Using Valgrind-3.11.0 and LibVEX; rerun with -h for copyright info
==8882== Command: ship_server --nodaemon
==8882== 
--8882-- Valgrind options:
--8882--    -v
--8882-- Contents of /proc/version:
--8882--   Linux version 4.4.0-45-generic (buildd@lgw01-34) (gcc version 5.4.0 20160609 (Ubuntu 5.4.0-6ubuntu1~16.04.2) ) #66-Ubuntu SMP Wed Oct 19 14:12:37 UTC 2016
--8882-- 
--8882-- Arch and hwcaps: AMD64, LittleEndian, amd64-cx16-lzcnt-rdtscp-sse3-avx-avx2-bmi
--8882-- Page sizes: currently 4096, max supported 4096
--8882-- Valgrind library directory: /usr/lib/valgrind
--8882-- Reading syms from /usr/local/bin/ship_server
--8882-- Reading syms from /lib/x86_64-linux-gnu/ld-2.23.so
--8882--   Considering /lib/x86_64-linux-gnu/ld-2.23.so ..
--8882--   .. CRC mismatch (computed d3da0723 wanted a1c29704)
--8882--   Considering /usr/lib/debug/lib/x86_64-linux-gnu/ld-2.23.so ..
--8882--   .. CRC is valid
--8882-- Reading syms from /usr/lib/valgrind/memcheck-amd64-linux
--8882--   Considering /usr/lib/valgrind/memcheck-amd64-linux ..
--8882--   .. CRC mismatch (computed 5529a2c7 wanted 5bd23904)
--8882--    object doesn't have a symbol table
--8882--    object doesn't have a dynamic symbol table
--8882-- Scheduler: using generic scheduler lock implementation.
--8882-- Reading suppressions file: /usr/lib/valgrind/default.supp
==8882== embedded gdbserver: reading from /tmp/vgdb-pipe-from-vgdb-to-8882-by-logan-on-???
==8882== embedded gdbserver: writing to   /tmp/vgdb-pipe-to-vgdb-from-8882-by-logan-on-???
==8882== embedded gdbserver: shared mem   /tmp/vgdb-pipe-shared-mem-vgdb-8882-by-logan-on-???
==8882== 
==8882== TO CONTROL THIS PROCESS USING vgdb (which you probably
==8882== don't want to do, unless you know exactly what you're doing,
==8882== or are doing some strange experiment):
==8882==   /usr/lib/valgrind/../../bin/vgdb --pid=8882 ...command...
==8882== 
==8882== TO DEBUG THIS PROCESS USING GDB: start GDB like this
==8882==   /path/to/gdb ship_server
==8882== and then give GDB the following command
==8882==   target remote | /usr/lib/valgrind/../../bin/vgdb --pid=8882
==8882== --pid is optional if only one valgrind process is running
==8882== 
--8882-- REDIR: 0x401cdc0 (ld-linux-x86-64.so.2:strlen) redirected to 0x3809e181 (???)
--8882-- Reading syms from /usr/lib/valgrind/vgpreload_core-amd64-linux.so
--8882--   Considering /usr/lib/valgrind/vgpreload_core-amd64-linux.so ..
--8882--   .. CRC mismatch (computed a30c8eaa wanted 7ae2fed4)
--8882--    object doesn't have a symbol table
--8882-- Reading syms from /usr/lib/valgrind/vgpreload_memcheck-amd64-linux.so
--8882--   Considering /usr/lib/valgrind/vgpreload_memcheck-amd64-linux.so ..
--8882--   .. CRC mismatch (computed 402c2ab5 wanted 745f25ae)
--8882--    object doesn't have a symbol table
==8882== WARNING: new redirection conflicts with existing -- ignoring it
--8882--     old: 0x0401cdc0 (strlen              ) R-> (0000.0) 0x3809e181 ???
--8882--     new: 0x0401cdc0 (strlen              ) R-> (2007.0) 0x04c31020 strlen
--8882-- REDIR: 0x401b710 (ld-linux-x86-64.so.2:index) redirected to 0x4c30bc0 (index)
--8882-- REDIR: 0x401b930 (ld-linux-x86-64.so.2:strcmp) redirected to 0x4c320d0 (strcmp)
--8882-- REDIR: 0x401db20 (ld-linux-x86-64.so.2:mempcpy) redirected to 0x4c35270 (mempcpy)
--8882-- Reading syms from /usr/local/lib/libpsoarchive.so.0.0.0
--8882-- Reading syms from /usr/lib/libmini18n.so.1.0.1
--8882--   Considering /usr/lib/libmini18n.so.1.0.1 ..
--8882--   .. CRC mismatch (computed 34d5d551 wanted cec4e396)
--8882--    object doesn't have a symbol table
--8882-- Reading syms from /usr/lib/x86_64-linux-gnu/libxml2.so.2.9.3
--8882--    object doesn't have a symbol table
--8882-- Reading syms from /usr/lib/x86_64-linux-gnu/libgnutls.so.30.6.2
--8882--    object doesn't have a symbol table
--8882-- Reading syms from /lib/x86_64-linux-gnu/libpthread-2.23.so
--8882--   Considering /usr/lib/debug/.build-id/b7/7847cc9cacbca3b5753d0d25a32e5795afe75b.debug ..
--8882--   .. build-id is valid
--8882-- Reading syms from /lib/x86_64-linux-gnu/libc-2.23.so
--8882--   Considering /lib/x86_64-linux-gnu/libc-2.23.so ..
--8882--   .. CRC mismatch (computed 2adb2e50 wanted 9b73f606)
--8882--   Considering /usr/lib/debug/lib/x86_64-linux-gnu/libc-2.23.so ..
--8882--   .. CRC is valid
--8882-- Reading syms from /lib/x86_64-linux-gnu/libdl-2.23.so
--8882--   Considering /lib/x86_64-linux-gnu/libdl-2.23.so ..
--8882--   .. CRC mismatch (computed b7ff3c20 wanted 623a46c3)
--8882--   Considering /usr/lib/debug/lib/x86_64-linux-gnu/libdl-2.23.so ..
--8882--   .. CRC is valid
--8882-- Reading syms from /usr/lib/x86_64-linux-gnu/libicuuc.so.55.1
--8882--    object doesn't have a symbol table
--8882-- Reading syms from /lib/x86_64-linux-gnu/libz.so.1.2.8
--8882--    object doesn't have a symbol table
--8882-- Reading syms from /lib/x86_64-linux-gnu/liblzma.so.5.0.0
--8882--    object doesn't have a symbol table
--8882-- Reading syms from /lib/x86_64-linux-gnu/libm-2.23.so
--8882--   Considering /lib/x86_64-linux-gnu/libm-2.23.so ..
--8882--   .. CRC mismatch (computed f7791cb7 wanted 92acf4be)
--8882--   Considering /usr/lib/debug/lib/x86_64-linux-gnu/libm-2.23.so ..
--8882--   .. CRC is valid
--8882-- Reading syms from /usr/lib/x86_64-linux-gnu/libp11-kit.so.0.1.0
--8882--    object doesn't have a symbol table
--8882-- Reading syms from /usr/lib/x86_64-linux-gnu/libidn.so.11.6.15
--8882--    object doesn't have a symbol table
--8882-- Reading syms from /usr/lib/x86_64-linux-gnu/libtasn1.so.6.5.1
--8882--    object doesn't have a symbol table
--8882-- Reading syms from /usr/lib/x86_64-linux-gnu/libnettle.so.6.2
--8882--   Considering /usr/lib/x86_64-linux-gnu/libnettle.so.6.2 ..
--8882--   .. CRC mismatch (computed a14a17f5 wanted fa879d1a)
--8882--    object doesn't have a symbol table
--8882-- Reading syms from /usr/lib/x86_64-linux-gnu/libhogweed.so.4.2
--8882--   Considering /usr/lib/x86_64-linux-gnu/libhogweed.so.4.2 ..
--8882--   .. CRC mismatch (computed 57620cf8 wanted 23fe0919)
--8882--    object doesn't have a symbol table
--8882-- Reading syms from /usr/lib/x86_64-linux-gnu/libgmp.so.10.3.0
--8882--    object doesn't have a symbol table
--8882-- Reading syms from /usr/lib/x86_64-linux-gnu/libicudata.so.55.1
--8882--    object doesn't have a symbol table
--8882-- Reading syms from /usr/lib/x86_64-linux-gnu/libstdc++.so.6.0.21
--8882--   Considering /usr/lib/x86_64-linux-gnu/libstdc++.so.6.0.21 ..
--8882--   .. CRC mismatch (computed 6b58a14c wanted 340d19a8)
--8882--    object doesn't have a symbol table
--8882-- Reading syms from /lib/x86_64-linux-gnu/libgcc_s.so.1
--8882--   Considering /lib/x86_64-linux-gnu/libgcc_s.so.1 ..
--8882--   .. CRC mismatch (computed b9a68419 wanted 29d51b00)
--8882--    object doesn't have a symbol table
--8882-- Reading syms from /usr/lib/x86_64-linux-gnu/libffi.so.6.0.4
--8882--    object doesn't have a symbol table
--8882-- REDIR: 0x5bdcfd0 (libc.so.6:strcasecmp) redirected to 0x4a286f0 (_vgnU_ifunc_wrapper)
--8882-- REDIR: 0x5bd8850 (libc.so.6:strcspn) redirected to 0x4a286f0 (_vgnU_ifunc_wrapper)
--8882-- REDIR: 0x5bdf2c0 (libc.so.6:strncasecmp) redirected to 0x4a286f0 (_vgnU_ifunc_wrapper)
--8882-- REDIR: 0x5bdacc0 (libc.so.6:strpbrk) redirected to 0x4a286f0 (_vgnU_ifunc_wrapper)
--8882-- REDIR: 0x5bdb050 (libc.so.6:strspn) redirected to 0x4a286f0 (_vgnU_ifunc_wrapper)
--8882-- REDIR: 0x5bdc71b (libc.so.6:memcpy@GLIBC_2.2.5) redirected to 0x4a286f0 (_vgnU_ifunc_wrapper)
--8882-- REDIR: 0x5bdbc00 (libc.so.6:strstr) redirected to 0x4a286f0 (_vgnU_ifunc_wrapper)
--8882-- REDIR: 0x5bd7050 (libc.so.6:index) redirected to 0x4a286f0 (_vgnU_ifunc_wrapper)
--8882-- REDIR: 0x5bdc180 (libc.so.6:bcmp) redirected to 0x4a286f0 (_vgnU_ifunc_wrapper)
--8882-- REDIR: 0x5bd90f0 (libc.so.6:strncmp) redirected to 0x4a286f0 (_vgnU_ifunc_wrapper)
--8882-- REDIR: 0x5bda990 (libc.so.6:strncpy) redirected to 0x4a286f0 (_vgnU_ifunc_wrapper)
--8882-- REDIR: 0x5bdc780 (libc.so.6:memset) redirected to 0x4a286f0 (_vgnU_ifunc_wrapper)
--8882-- REDIR: 0x5bd90b0 (libc.so.6:strncat) redirected to 0x4a286f0 (_vgnU_ifunc_wrapper)
--8882-- REDIR: 0x5c639e0 (libc.so.6:__memmove_chk) redirected to 0x4a286f0 (_vgnU_ifunc_wrapper)
--8882-- REDIR: 0x5be19c0 (libc.so.6:memcpy@@GLIBC_2.14) redirected to 0x4a286f0 (_vgnU_ifunc_wrapper)
--8882-- REDIR: 0x5bd8730 (libc.so.6:strcpy) redirected to 0x4a286f0 (_vgnU_ifunc_wrapper)
--8882-- REDIR: 0x5bd72a0 (libc.so.6:strcmp) redirected to 0x4a286f0 (_vgnU_ifunc_wrapper)
--8882-- REDIR: 0x5c63950 (libc.so.6:__memcpy_chk) redirected to 0x4a286f0 (_vgnU_ifunc_wrapper)
--8882-- REDIR: 0x5bd6e50 (libc.so.6:strcat) redirected to 0x4a286f0 (_vgnU_ifunc_wrapper)
--8882-- REDIR: 0x5bdce20 (libc.so.6:stpcpy) redirected to 0x4a286f0 (_vgnU_ifunc_wrapper)
--8882-- REDIR: 0x5bda9d0 (libc.so.6:rindex) redirected to 0x4c308a0 (rindex)
--8882-- REDIR: 0x5bd1550 (libc.so.6:malloc) redirected to 0x4c2db20 (malloc)
--8882-- REDIR: 0x5bd8cf0 (libc.so.6:strlen) redirected to 0x4c30f60 (strlen)
--8882-- REDIR: 0x5bd9140 (libc.so.6:__GI_strncmp) redirected to 0x4c31710 (__GI_strncmp)
--8882-- REDIR: 0x5be1a40 (libc.so.6:__GI_memcpy) redirected to 0x4c32b00 (__GI_memcpy)
--8882-- REDIR: 0x5bd72e0 (libc.so.6:__GI_strcmp) redirected to 0x4c31fe0 (__GI_strcmp)
--8882-- REDIR: 0x5bd2290 (libc.so.6:calloc) redirected to 0x4c2faa0 (calloc)
--8882-- REDIR: 0x5c9b6d0 (libc.so.6:__memcpy_avx_unaligned) redirected to 0x4c324a0 (memcpy@@GLIBC_2.14)
--8882-- REDIR: 0x5bd7080 (libc.so.6:__GI_strchr) redirected to 0x4c30a00 (__GI_strchr)
--8882-- REDIR: 0x5c9b6c0 (libc.so.6:__memcpy_chk_avx_unaligned) redirected to 0x4c35360 (__memcpy_chk)
--8882-- REDIR: 0x5becb40 (libc.so.6:__strcmp_sse2_unaligned) redirected to 0x4c31f90 (strcmp)
--8882-- REDIR: 0x5bd1a70 (libc.so.6:free) redirected to 0x4c2ed80 (free)
--8882-- REDIR: 0x5cc01a0 (libc.so.6:__memset_avx2) redirected to 0x4c344c0 (memset)
--8882-- REDIR: 0x5bd1c40 (libc.so.6:realloc) redirected to 0x4c2fce0 (realloc)
--8882-- REDIR: 0x5cbbc60 (libc.so.6:__memcmp_sse4_1) redirected to 0x4c33cd0 (__memcmp_sse4_1)
--8882-- REDIR: 0x5bf2fa0 (libc.so.6:__strcpy_sse2_unaligned) redirected to 0x4c31040 (strcpy)
--8882-- REDIR: 0x5bf35d0 (libc.so.6:__strncpy_sse2_unaligned) redirected to 0x4c31570 (__strncpy_sse2_unaligned)
--8882-- REDIR: 0x5c932c0 (libc.so.6:__strncmp_sse42) redirected to 0x4c317f0 (__strncmp_sse42)
--8882-- REDIR: 0x5c9b1e0 (libc.so.6:__memmove_avx_unaligned) redirected to 0x4c32230 (memcpy@GLIBC_2.2.5)
--8882-- REDIR: 0x5bdb630 (libc.so.6:__GI_strstr) redirected to 0x4c354d0 (__strstr_sse2)
--8882-- REDIR: 0x5bdbe30 (libc.so.6:memchr) redirected to 0x4c32170 (memchr)
--8882-- REDIR: 0x5be3d30 (libc.so.6:strchrnul) redirected to 0x4c34da0 (strchrnul)
--8882-- REDIR: 0x5bdc980 (libc.so.6:__GI_mempcpy) redirected to 0x4c34fa0 (__GI_mempcpy)
--8882-- REDIR: 0x5c99820 (libc.so.6:__strncasecmp_avx) redirected to 0x4c31940 (strncasecmp)
--8882-- REDIR: 0x5becaf0 (libc.so.6:__GI_strncpy) redirected to 0x4c31310 (__GI_strncpy)
--8882-- REDIR: 0x5bdce60 (libc.so.6:__GI_stpcpy) redirected to 0x4c33f80 (__GI_stpcpy)
--8882-- Reading syms from /lib/x86_64-linux-gnu/libnss_files-2.23.so
--8882--   Considering /lib/x86_64-linux-gnu/libnss_files-2.23.so ..
--8882--   .. CRC mismatch (computed 787ef17f wanted 48302948)
--8882--   Considering /usr/lib/debug/lib/x86_64-linux-gnu/libnss_files-2.23.so ..
--8882--   .. CRC is valid
--8882-- REDIR: 0x5bd8770 (libc.so.6:__GI_strcpy) redirected to 0x4c31110 (__GI_strcpy)
--8882-- REDIR: 0x5be3b20 (libc.so.6:rawmemchr) redirected to 0x4c34dd0 (rawmemchr)
--8882-- REDIR: 0x5c981b0 (libc.so.6:__strcasecmp_avx) redirected to 0x4c31860 (strcasecmp)
--8882-- Reading syms from /lib/x86_64-linux-gnu/libnss_mdns4_minimal.so.2
--8882--    object doesn't have a symbol table
--8882-- REDIR: 0x401dc70 (ld-linux-x86-64.so.2:stpcpy) redirected to 0x4c342c0 (stpcpy)
--8882-- Reading syms from /lib/x86_64-linux-gnu/libnss_dns-2.23.so
--8882--   Considering /lib/x86_64-linux-gnu/libnss_dns-2.23.so ..
--8882--   .. CRC mismatch (computed e00aebb5 wanted afe962a6)
--8882--   Considering /usr/lib/debug/lib/x86_64-linux-gnu/libnss_dns-2.23.so ..
--8882--   .. CRC is valid
--8882-- Reading syms from /lib/x86_64-linux-gnu/libresolv-2.23.so
--8882--   Considering /lib/x86_64-linux-gnu/libresolv-2.23.so ..
--8882--   .. CRC mismatch (computed 87659676 wanted 8389f31d)
--8882--   Considering /usr/lib/debug/lib/x86_64-linux-gnu/libresolv-2.23.so ..
--8882--   .. CRC is valid
--8882-- REDIR: 0x5bdc1c0 (libc.so.6:__GI_memcmp) redirected to 0x4c33b90 (__GI_memcmp)
[2016:11:07: 20:05:48.347]: Ignoring unknown language in info/motd tag on line 17: EN
[2016:11:07: 20:05:48.383]: Configured parameters:
[2016:11:07: 20:05:48.383]: Shipgate Host: 155.92.56.200
[2016:11:07: 20:05:48.383]: Shipgate Port: 3100
[2016:11:07: 20:05:48.384]: Ship Name: Anime Titties
[2016:11:07: 20:05:48.384]: Ship IPv4 Host: 192.168.226.160
[2016:11:07: 20:05:48.384]: Ship IPv6 Host: Autoconfig or None
[2016:11:07: 20:05:48.384]: Base Port: 3001
[2016:11:07: 20:05:48.384]: Blocks: 1
[2016:11:07: 20:05:48.385]: Default Lobby Event: 0
[2016:11:07: 20:05:48.385]: Default Game Event: 0
[2016:11:07: 20:05:48.385]: Menu: US
[2016:11:07: 20:05:48.386]: Units +/- limit: v2: false, GC: false, BB: false
[2016:11:07: 20:05:48.387]: Flags: 0x00000640
[2016:11:07: 20:05:48.387]: Looking up ship address...
[2016:11:07: 20:05:48.390]:     Found IPv4: 192.168.226.160
[2016:11:07: 20:05:48.619]: Generating Diffie-Hellman parameters...
This may take a little while.
[2016:11:07: 20:05:49.675]: Done!
[2016:11:07: 20:05:49.682]: No BB ItemPT file specified, disabling Blue Burst support!
[2016:11:07: 20:05:49.683]: No BB ItemPT file specified, disabling Blue Burst support!
--8882-- Reading syms from /usr/lib/x86_64-linux-gnu/gconv/UTF-16.so
--8882--   Considering /usr/lib/x86_64-linux-gnu/gconv/UTF-16.so ..
--8882--   .. CRC mismatch (computed b03c450e wanted 425e109b)
--8882--   Considering /usr/lib/debug/usr/lib/x86_64-linux-gnu/gconv/UTF-16.so ..
--8882--   .. CRC is valid
--8882-- Reading syms from /usr/lib/x86_64-linux-gnu/gconv/ISO8859-1.so
--8882--   Considering /usr/lib/x86_64-linux-gnu/gconv/ISO8859-1.so ..
--8882--   .. CRC mismatch (computed d872b97c wanted 2237059d)
--8882--   Considering /usr/lib/debug/usr/lib/x86_64-linux-gnu/gconv/ISO8859-1.so ..
--8882--   .. CRC is valid
--8882-- Reading syms from /usr/lib/x86_64-linux-gnu/gconv/SJIS.so
--8882--   Considering /usr/lib/x86_64-linux-gnu/gconv/SJIS.so ..
--8882--   .. CRC mismatch (computed 83635a3f wanted 8290b6d0)
--8882--   Considering /usr/lib/debug/usr/lib/x86_64-linux-gnu/gconv/SJIS.so ..
--8882--   .. CRC is valid
[2016:11:07: 20:05:49.710]: Starting server for ship Anime Titties...
[2016:11:07: 20:05:49.714]: No quests configured!
[2016:11:07: 20:05:49.715]: Anime Titties: Reading Local GM List...
[2016:11:07: 20:05:49.778]: Anime Titties: Read 1 Local GMs
[2016:11:07: 20:05:49.779]: Anime Titties: Looking up shipgate (155.92.56.200)...
[2016:11:07: 20:05:49.780]: Anime Titties: Connecting to shipgate...
[2016:11:07: 20:05:49.780]:     Trying 155.92.56.200
[2016:11:07: 20:05:49.781]:         Success!
[2016:11:07: 20:05:50.333]: Anime Titties: Starting server for block 1...
[2016:11:07: 20:05:50.342]: Anime Titties(1): Up and running
[2016:11:07: 20:05:50.404]: Anime Titties: Connected to Shipgate Version 0.1.0
[2016:11:07: 20:05:50.493]: Anime Titties: Shipgate connection established
[2016:11:07: 20:05:50.528]: Anime Titties: Lost connection with shipgate
[2016:11:07: 20:05:50.540]: Anime Titties: Looking up shipgate (155.92.56.200)...
[2016:11:07: 20:05:50.540]: Anime Titties: Connecting to shipgate...
[2016:11:07: 20:05:50.540]:     Trying 155.92.56.200
[2016:11:07: 20:05:50.542]: connect: Connection refused
[2016:11:07: 20:05:50.542]: Couldn't connect to shipgate!
^C==8882== 
==8882== Process terminating with default action of signal 2 (SIGINT)
==8882==    at 0x59399CD: pthread_join (pthread_join.c:90)
==8882==    by 0x404493: main (ship_server.c:632)
--8882-- Discarding syms at 0xaa19600-0xaa1a08d in /usr/lib/x86_64-linux-gnu/gconv/ISO8859-1.so due to munmap()
--8882-- Discarding syms at 0xa815700-0xa816dd9 in /usr/lib/x86_64-linux-gnu/gconv/UTF-16.so due to munmap()
--8882-- Discarding syms at 0xac1c600-0xac1dddf in /usr/lib/x86_64-linux-gnu/gconv/SJIS.so due to munmap()
--8882-- Discarding syms at 0x9fe01b0-0x9fe62a1 in /lib/x86_64-linux-gnu/libnss_files-2.23.so due to munmap()
--8882-- Discarding syms at 0xa1f0bd0-0xa1f1925 in /lib/x86_64-linux-gnu/libnss_mdns4_minimal.so.2 due to munmap()
--8882-- Discarding syms at 0xa3f4020-0xa3f7643 in /lib/x86_64-linux-gnu/libnss_dns-2.23.so due to munmap()
--8882-- Discarding syms at 0xa5fd990-0xa60d398 in /lib/x86_64-linux-gnu/libresolv-2.23.so due to munmap()
==8882== 
==8882== HEAP SUMMARY:
==8882==     in use at exit: 729,398 bytes in 1,038 blocks
==8882==   total heap usage: 6,904 allocs, 5,866 frees, 2,544,021 bytes allocated
==8882== 
==8882== Searching for pointers to 1,038 not-freed blocks
==8882== Checked 18,053,136 bytes
==8882== 
==8882== LEAK SUMMARY:
==8882==    definitely lost: 0 bytes in 0 blocks
==8882==    indirectly lost: 0 bytes in 0 blocks
==8882==      possibly lost: 576 bytes in 2 blocks
==8882==    still reachable: 728,822 bytes in 1,036 blocks
==8882==         suppressed: 0 bytes in 0 blocks
==8882== Rerun with --leak-check=full to see details of leaked memory
==8882== 
==8882== ERROR SUMMARY: 0 errors from 0 contexts (suppressed: 0 from 0)
==8882== ERROR SUMMARY: 0 errors from 0 contexts (suppressed: 0 from 0)
The code seems to error right around here:

Code: Select all

--8833-- REDIR: 0x6080bc0 (libc.so.6:__strcpy_chk) redirected to 0x4c34e10 (__strcpy_chk)
**8833** *** strcpy_chk: buffer overflow detected ***: program terminated
It apears that it seems to be from the shipgate dropping the connection. THe valgrind mentions an strcpy which makes me think that I might be putting too many characters in a title or something.
User avatar
BlueCrab
The Crabby Overlord
The Crabby Overlord
Posts: 5652
Joined: Mon May 27, 2002 11:31 am
Location: Sailing the Skies of Arcadia
Has thanked: 9 times
Been thanked: 69 times
Contact:

Re: Buffer Overflow Detected

Post by BlueCrab »

Yep. That's almost certainly what the problem is.

That said, I really should be checking properly for that, so there is indeed a bug there. :wink:
wewlad
DCEmu Newbie
DCEmu Newbie
Posts: 4
Joined: Mon Nov 07, 2016 9:49 am
Has thanked: 0
Been thanked: 0

Re: Buffer Overflow Detected

Post by wewlad »

Yeah I'm glad this is documented. Changed the name to just "anime" (no titties :cry: ) and it worked fine. Thanks for forcing me to actually debug things haha.
User avatar
BlueCrab
The Crabby Overlord
The Crabby Overlord
Posts: 5652
Joined: Mon May 27, 2002 11:31 am
Location: Sailing the Skies of Arcadia
Has thanked: 9 times
Been thanked: 69 times
Contact:

Re: Buffer Overflow Detected

Post by BlueCrab »

Just as an aside, Sylverant isn't really suited all that well for a simple LAN setup, as you've probably noticed with how difficult it is to set up in general. There are other options out there, like Fuzziqer's khyller server that are a lot easier to set up, at least if you have a Windows box handy to run them on.
Post Reply