Jump to content
  • 0
Sign in to follow this  
Nott

Buffer Overflow & Compilation Errors Ubuntu 14.04

Question

Hi there, I am experiencing the following errors when attempting to execute 'make' on Ubuntu 14.04.

 

 

Stats and things that might matter:

Ubuntu 14.04

2GB ram w/ 4GB swapfile

GCC -v:

 

gcc -vUsing built-in specs.COLLECT_GCC=gccCOLLECT_LTO_WRAPPER=/usr/lib/gcc/x86_64-linux-gnu/4.8/lto-wrapperTarget: x86_64-linux-gnuConfigured with: ../src/configure -v --with-pkgversion='Ubuntu 4.8.2-19ubuntu1' --with-bugurl=file:///usr/share/doc/gcc-4.8/README.Bugs --enable-languages=c,c++,java,go,d,fortran,objc,obj-c++ --prefix=/usr --program-suffix=-4.8 --enable-shared --enable-linker-build-id --libexecdir=/usr/lib --without-included-gettext --enable-threads=posix --with-gxx-include-dir=/usr/include/c++/4.8 --libdir=/usr/lib --enable-nls --with-sysroot=/ --enable-clocale=gnu --enable-libstdcxx-debug --enable-libstdcxx-time=yes --enable-gnu-unique-object --disable-libmudflap --enable-plugin --with-system-zlib --disable-browser-plugin --enable-java-awt=gtk --enable-gtk-cairo --with-java-home=/usr/lib/jvm/java-1.5.0-gcj-4.8-amd64/jre --enable-java-home --with-jvm-root-dir=/usr/lib/jvm/java-1.5.0-gcj-4.8-amd64 --with-jvm-jar-dir=/usr/lib/jvm-exports/java-1.5.0-gcj-4.8-amd64 --with-arch-directory=amd64 --with-ecj-jar=/usr/share/java/eclipse-ecj.jar --enable-objc-gc --enable-multiarch --disable-werror --with-arch-32=i686 --with-abi=m64 --with-multilib-list=m32,m64,mx32 --with-tune=generic --enable-checking=release --build=x86_64-linux-gnu --host=x86_64-linux-gnu --target=x86_64-linux-gnuThread model: posixgcc version 4.8.2 (Ubuntu 4.8.2-19ubuntu1)

 

Steps to reproduce:

 

git clone ~hercules~

./configure

make

 

Here is the make log:

 

 

checking for gcc... gccchecking whether the C compiler works... yeschecking for C compiler default output file name... a.outchecking for suffix of executables...checking whether we are cross compiling... nochecking for suffix of object files... ochecking whether we are using the GNU C compiler... yeschecking whether gcc accepts -g... yeschecking for gcc option to accept ISO C89... none neededchecking how to run the C preprocessor... gcc -Echecking for grep that handles long lines and -e... /bin/grepchecking for egrep... /bin/grep -Echecking for ANSI C header files... yeschecking for sys/types.h... yeschecking for sys/stat.h... yeschecking for stdlib.h... yeschecking for string.h... yeschecking for memory.h... yeschecking for strings.h... yeschecking for inttypes.h... yeschecking for stdint.h... yeschecking for unistd.h... yeschecking minix/config.h usability... nochecking minix/config.h presence... nochecking for minix/config.h... nochecking whether it is safe to define __EXTENSIONS__... yeschecking whether make sets $(MAKE)... yeschecking for gcc... (cached) gccchecking whether we are using the GNU C compiler... (cached) yeschecking whether gcc accepts -g... (cached) yeschecking for gcc option to accept ISO C89... (cached) none neededchecking how to run the C preprocessor... gcc -Echecking for ar... /usr/bin/archecking whether byte ordering is bigendian... nochecking whether gcc produces 32bit code... nochecking whether gcc supports __thread specifier (TLS)... yeschecking whether gcc supports -flto... yeschecking whether gcc supports -Wno-unused-parameter... yeschecking whether gcc can actually use -Wno-unused-parameter... yeschecking whether gcc supports -Wno-maybe-uninitialized... yeschecking whether gcc supports -Wno-clobbered... yeschecking whether gcc supports -Wempty-body... yeschecking whether gcc supports -Wnewline-eof... nochecking whether gcc supports -Wint-conversion... nochecking whether gcc supports -Wenum-conversion... nochecking whether gcc supports -Wshorten-64-to-32... nochecking whether gcc supports -Wconstant-conversion... nochecking whether gcc supports -Wbool-conversion... nochecking whether gcc supports -Wno-switch... yeschecking whether gcc supports -Wno-missing-field-initializers... yeschecking whether gcc supports -Wshadow... yeschecking whether gcc can efficiently use -Wshadow... yeschecking whether gcc supports -fPIC... yeschecking how to make shared objects... -shared yeschecking whether gcc needs -Wl,--no-undefined to check for undefined references in shared objects... nochecking whether gcc needs -fPIC for shared objects... yeschecking whether gcc supports -fno-strict-aliasing... yeschecking for setrlimit... yeschecking for strnlen... yeschecking for uselocale... yeschecking for newlocale... yeschecking for freelocale... yeschecking xlocale.h usability... yeschecking xlocale.h presence... yeschecking for xlocale.h... yeschecking for library containing inflateEnd... -lzchecking zlib.h usability... yeschecking zlib.h presence... yeschecking for zlib.h... yeschecking for library containing sqrt... -lmchecking for library containing clock_gettime... none requiredchecking whether CLOCK_MONOTONIC is supported and works... yeschecking for library containing pthread_create... -lpthreadchecking for library containing pthread_sigmask... none requiredchecking for library containing pthread_attr_init... none requiredchecking for library containing pthread_attr_setstacksize... none requiredchecking for library containing pthread_attr_destroy... none requiredchecking for library containing pthread_cancel... none requiredchecking for library containing pthread_join... none requiredchecking for mysql_config... /usr/bin/mysql_configchecking for mysql_init in -lmysqlclient... yeschecking mysql.h usability... yeschecking mysql.h presence... yeschecking for mysql.h... yeschecking MySQL library (required)... yes (5.5.37)checking for pcre_study in -lpcre... yeschecking PCRE library (optional)... yeschecking for doxygen... nochecking for perl... yeschecking host OS... Linuxchecking for MinGW... noconfigure: creating ./config.statusconfig.status: creating Makefileconfig.status: creating src/common/Makefileconfig.status: creating 3rdparty/mt19937ar/Makefileconfig.status: creating 3rdparty/libconfig/Makefileconfig.status: creating src/char/Makefileconfig.status: creating src/login/Makefileconfig.status: creating src/map/Makefileconfig.status: creating src/plugins/Makefileconfig.status: creating src/tool/Makefileconfig.status: creating src/test/Makefileconfig.status: creating tools/HPMHookGen/Makefilevnc@exult:~/Hercules2$ make    MAKE    mt19937armake[1]: Entering directory `/home/vnc/Hercules2/3rdparty/mt19937ar'    CC    mt19937ar.cmake[1]: Leaving directory `/home/vnc/Hercules2/3rdparty/mt19937ar'    MAKE    libconfigmake[1]: Entering directory `/home/vnc/Hercules2/3rdparty/libconfig'    CC    libconfig.c    CC    grammar.c    CC    scanctx.c    CC    scanner.c    CC    strbuf.cmake[1]: Leaving directory `/home/vnc/Hercules2/3rdparty/libconfig'    MAKE    common_sqlmake[1]: Entering directory `/home/vnc/Hercules2/src/common'    MKDIR    obj_all    CC    conf.c    CC    db.c    CC    des.c    CC    ers.c    CC    grfio.c    CC    HPM.c    CC    mapindex.c    CC    md5calc.c    CC    mutex.c    CC    nullpo.c    CC    random.c    CC    showmsg.c    CC    strlib.c    CC    sysinfo.c    CC    thread.c    CC    timer.c    CC    utils.c    CC    console.c    CC    core.c    CC    malloc.c    CC    socket.c    AR    obj_all/common.a    MKDIR    obj_sql    CC    sql.c    AR    obj_sql/common_sql.a    CC    console.c    CC    core.c    CC    malloc.c    CC    socket.c    AR    obj_all/common_mini.amake[1]: Leaving directory `/home/vnc/Hercules2/src/common'    MAKE    login_sqlmake[1]: Entering directory `/home/vnc/Hercules2/src/login'    MKDIR    obj_sql    CC    account_sql.c    CC    ipban_sql.c    CC    login.c    CC    loginlog_sql.c    LD    login-serverconsole.o (symbol from plugin): warning: memset used with constant zero length parameter; this could be due to transposed parameters/usr/include/x86_64-linux-gnu/bits/stdio2.h: In function ‘yy_get_next_buffer’:/usr/include/x86_64-linux-gnu/bits/stdio2.h:290:2: warning: call to ‘__fread_chk_warn’ declared with attribute warning: fread called with bigger size * nmemb than length of destination buffer [enabled by default]  return __fread_chk (__ptr, __bos0 (__ptr), __size, __n, __stream);  ^/usr/include/x86_64-linux-gnu/bits/stdio2.h:293:2: warning: call to ‘__fread_chk_warn’ declared with attribute warning: fread called with bigger size * nmemb than length of destination buffer [enabled by default]  return __fread_chk_warn (__ptr, __bos0 (__ptr), __size, __n, __stream);  ^/usr/include/x86_64-linux-gnu/bits/string3.h: In function ‘console_parse_list_subs’:/usr/include/x86_64-linux-gnu/bits/string3.h:81:30: warning: call to ‘__warn_memset_zero_len’ declared with attribute warning: memset used with constant zero length parameter; this could be due to transposed parameters [enabled by default]	   __warn_memset_zero_len ();							  ^/usr/include/x86_64-linux-gnu/bits/string3.h:81:30: warning: call to ‘__warn_memset_zero_len’ declared with attribute warning: memset used with constant zero length parameter; this could be due to transposed parameters [enabled by default]	   __warn_memset_zero_len ();							  ^socket.c: In function ‘do_close.part.4’:socket.c:1252:2: warning: call to ‘__fdelt_warn’ declared with attribute warning: bit outside of fd_set selected [enabled by default]/usr/include/x86_64-linux-gnu/bits/socket2.h: In function ‘recv_to_fifo’:/usr/include/x86_64-linux-gnu/bits/socket2.h:39:2: warning: call to ‘__recv_chk_warn’ declared with attribute warning: recv called with bigger length than size of destination buffer [enabled by default]  return __recv_chk (__fd, __buf, __n, __bos0 (__buf), __flags);  ^/usr/include/x86_64-linux-gnu/bits/socket2.h:42:2: warning: call to ‘__recv_chk_warn’ declared with attribute warning: recv called with bigger length than size of destination buffer [enabled by default]  return __recv_chk_warn (__fd, __buf, __n, __bos0 (__buf), __flags);  ^socket.c: In function ‘connect_client’:socket.c:487:2: warning: call to ‘__fdelt_warn’ declared with attribute warning: bit outside of fd_set selected [enabled by default]socket.c: In function ‘make_listen_bind’:socket.c:537:2: warning: call to ‘__fdelt_warn’ declared with attribute warning: bit outside of fd_set selected [enabled by default]socket.c: In function ‘make_connection’:socket.c:588:2: warning: call to ‘__fdelt_warn’ declared with attribute warning: bit outside of fd_set selected [enabled by default]socket.c: In function ‘do_sockets’:socket.c:827:6: warning: call to ‘__fdelt_warn’ declared with attribute warning: bit outside of fd_set selected [enabled by default]make[1]: Leaving directory `/home/vnc/Hercules2/src/login'    MAKE    char_sqlmake[1]: Entering directory `/home/vnc/Hercules2/src/char'    MKDIR    obj_sql    CC    char.c    CC    inter.cinter.c: In function ‘geoip_init’:inter.c:507:8: warning: ignoring return value of ‘fread’, declared with attribute warn_unused_result [-Wunused-result]   fread(delim, sizeof(delim[0]), 3, db);	    ^inter.c:509:9: warning: ignoring return value of ‘fread’, declared with attribute warn_unused_result [-Wunused-result]    fread(&db_type, sizeof(db_type), 1, db);		 ^    CC    int_auction.c    CC    int_elemental.c    CC    int_guild.c    CC    int_homun.c    CC    int_mail.c    CC    int_mercenary.c    CC    int_party.c    CC    int_pet.c    CC    int_quest.c    CC    int_storage.c    CC    pincode.c    LD    char-serverconsole.o (symbol from plugin): warning: memset used with constant zero length parameter; this could be due to transposed parameters/usr/include/x86_64-linux-gnu/bits/stdio2.h: In function ‘yy_get_next_buffer’:/usr/include/x86_64-linux-gnu/bits/stdio2.h:290:2: warning: call to ‘__fread_chk_warn’ declared with attribute warning: fread called with bigger size * nmemb than length of destination buffer [enabled by default]  return __fread_chk (__ptr, __bos0 (__ptr), __size, __n, __stream);  ^/usr/include/x86_64-linux-gnu/bits/stdio2.h:293:2: warning: call to ‘__fread_chk_warn’ declared with attribute warning: fread called with bigger size * nmemb than length of destination buffer [enabled by default]  return __fread_chk_warn (__ptr, __bos0 (__ptr), __size, __n, __stream);  ^/usr/include/x86_64-linux-gnu/bits/string3.h: In function ‘console_parse_list_subs’:/usr/include/x86_64-linux-gnu/bits/string3.h:81:30: warning: call to ‘__warn_memset_zero_len’ declared with attribute warning: memset used with constant zero length parameter; this could be due to transposed parameters [enabled by default]	   __warn_memset_zero_len ();							  ^/usr/include/x86_64-linux-gnu/bits/string3.h:81:30: warning: call to ‘__warn_memset_zero_len’ declared with attribute warning: memset used with constant zero length parameter; this could be due to transposed parameters [enabled by default]	   __warn_memset_zero_len ();							  ^socket.c: In function ‘do_close.part.4’:socket.c:1252:2: warning: call to ‘__fdelt_warn’ declared with attribute warning: bit outside of fd_set selected [enabled by default]/usr/include/x86_64-linux-gnu/bits/socket2.h: In function ‘recv_to_fifo’:/usr/include/x86_64-linux-gnu/bits/socket2.h:39:2: warning: call to ‘__recv_chk_warn’ declared with attribute warning: recv called with bigger length than size of destination buffer [enabled by default]  return __recv_chk (__fd, __buf, __n, __bos0 (__buf), __flags);  ^/usr/include/x86_64-linux-gnu/bits/socket2.h:42:2: warning: call to ‘__recv_chk_warn’ declared with attribute warning: recv called with bigger length than size of destination buffer [enabled by default]  return __recv_chk_warn (__fd, __buf, __n, __bos0 (__buf), __flags);  ^socket.c: In function ‘connect_client’:socket.c:487:2: warning: call to ‘__fdelt_warn’ declared with attribute warning: bit outside of fd_set selected [enabled by default]socket.c: In function ‘make_listen_bind’:socket.c:537:2: warning: call to ‘__fdelt_warn’ declared with attribute warning: bit outside of fd_set selected [enabled by default]socket.c: In function ‘make_connection’:socket.c:588:2: warning: call to ‘__fdelt_warn’ declared with attribute warning: bit outside of fd_set selected [enabled by default]socket.c: In function ‘do_sockets’:socket.c:827:6: warning: call to ‘__fdelt_warn’ declared with attribute warning: bit outside of fd_set selected [enabled by default]/usr/include/x86_64-linux-gnu/bits/stdio2.h: In function ‘geoip_init’:/usr/include/x86_64-linux-gnu/bits/stdio2.h:290:2: warning: call to ‘__fread_chk_warn’ declared with attribute warning: fread called with bigger size * nmemb than length of destination buffer [enabled by default]  return __fread_chk (__ptr, __bos0 (__ptr), __size, __n, __stream);  ^/usr/include/x86_64-linux-gnu/bits/stdio2.h:293:2: warning: call to ‘__fread_chk_warn’ declared with attribute warning: fread called with bigger size * nmemb than length of destination buffer [enabled by default]  return __fread_chk_warn (__ptr, __bos0 (__ptr), __size, __n, __stream);  ^make[1]: Leaving directory `/home/vnc/Hercules2/src/char'    MAKE    map_sqlmake[1]: Entering directory `/home/vnc/Hercules2/src/map'    MKDIR    obj_sql    CC    atcommand.c    CC    battle.c    CC    battleground.c    CC    buyingstore.c    CC    chat.c    CC    chrif.c    CC    clif.c    CC    date.c    CC    duel.c    CC    elemental.c    CC    guild.c    CC    homunculus.c    CC    HPMmap.c    CC    instance.c    CC    intif.c    CC    irc-bot.c    CC    itemdb.c    CC    log.c    CC    mail.c    CC    map.c    CC    mapreg_sql.c    CC    mercenary.c    CC    mob.c    CC    npc.c    CC    npc_chat.c    CC    party.c    CC    path.c    CC    pc.c    CC    pc_groups.c    CC    pet.c    CC    quest.c    CC    script.c    CC    searchstore.c    CC    skill.c    CC    status.c    CC    storage.c    CC    trade.c    CC    unit.c    CC    vending.c    LD    map-serverconsole.o (symbol from plugin): warning: memset used with constant zero length parameter; this could be due to transposed parameters/usr/include/x86_64-linux-gnu/bits/stdio2.h: In function ‘hread’:/usr/include/x86_64-linux-gnu/bits/stdio2.h:290:2: warning: call to ‘__fread_chk_warn’ declared with attribute warning: fread called with bigger size * nmemb than length of destination buffer [enabled by default]  return __fread_chk (__ptr, __bos0 (__ptr), __size, __n, __stream);  ^/usr/include/x86_64-linux-gnu/bits/stdio2.h:293:2: warning: call to ‘__fread_chk_warn’ declared with attribute warning: fread called with bigger size * nmemb than length of destination buffer [enabled by default]  return __fread_chk_warn (__ptr, __bos0 (__ptr), __size, __n, __stream);  ^/usr/include/x86_64-linux-gnu/bits/socket2.h: In function ‘recv_to_fifo’:/usr/include/x86_64-linux-gnu/bits/socket2.h:39:2: warning: call to ‘__recv_chk_warn’ declared with attribute warning: recv called with bigger length than size of destination buffer [enabled by default]  return __recv_chk (__fd, __buf, __n, __bos0 (__buf), __flags);  ^/usr/include/x86_64-linux-gnu/bits/socket2.h:42:2: warning: call to ‘__recv_chk_warn’ declared with attribute warning: recv called with bigger length than size of destination buffer [enabled by default]  return __recv_chk_warn (__fd, __buf, __n, __bos0 (__buf), __flags);  ^socket.c: In function ‘connect_client’:socket.c:487:2: warning: call to ‘__fdelt_warn’ declared with attribute warning: bit outside of fd_set selected [enabled by default]socket.c: In function ‘make_listen_bind’:socket.c:537:2: warning: call to ‘__fdelt_warn’ declared with attribute warning: bit outside of fd_set selected [enabled by default]socket.c: In function ‘make_connection’:socket.c:588:2: warning: call to ‘__fdelt_warn’ declared with attribute warning: bit outside of fd_set selected [enabled by default]socket.c: In function ‘do_sockets’:socket.c:827:6: warning: call to ‘__fdelt_warn’ declared with attribute warning: bit outside of fd_set selected [enabled by default]socket.c: In function ‘do_close.part.4’:socket.c:1252:2: warning: call to ‘__fdelt_warn’ declared with attribute warning: bit outside of fd_set selected [enabled by default]/usr/include/x86_64-linux-gnu/bits/string3.h: In function ‘console_parse_list_subs’:/usr/include/x86_64-linux-gnu/bits/string3.h:81:30: warning: call to ‘__warn_memset_zero_len’ declared with attribute warning: memset used with constant zero length parameter; this could be due to transposed parameters [enabled by default]	   __warn_memset_zero_len ();							  ^/usr/include/x86_64-linux-gnu/bits/string3.h:81:30: warning: call to ‘__warn_memset_zero_len’ declared with attribute warning: memset used with constant zero length parameter; this could be due to transposed parameters [enabled by default]	   __warn_memset_zero_len ();							  ^/usr/include/x86_64-linux-gnu/bits/stdio2.h: In function ‘yy_get_next_buffer’:/usr/include/x86_64-linux-gnu/bits/stdio2.h:290:2: warning: call to ‘__fread_chk_warn’ declared with attribute warning: fread called with bigger size * nmemb than length of destination buffer [enabled by default]  return __fread_chk (__ptr, __bos0 (__ptr), __size, __n, __stream);  ^/usr/include/x86_64-linux-gnu/bits/stdio2.h:293:2: warning: call to ‘__fread_chk_warn’ declared with attribute warning: fread called with bigger size * nmemb than length of destination buffer [enabled by default]  return __fread_chk_warn (__ptr, __bos0 (__ptr), __size, __n, __stream);  ^/usr/include/x86_64-linux-gnu/bits/stdio2.h: In function ‘grfio_reads’:/usr/include/x86_64-linux-gnu/bits/stdio2.h:290:2: warning: call to ‘__fread_chk_warn’ declared with attribute warning: fread called with bigger size * nmemb than length of destination buffer [enabled by default]  return __fread_chk (__ptr, __bos0 (__ptr), __size, __n, __stream);  ^/usr/include/x86_64-linux-gnu/bits/stdio2.h:293:2: warning: call to ‘__fread_chk_warn’ declared with attribute warning: fread called with bigger size * nmemb than length of destination buffer [enabled by default]  return __fread_chk_warn (__ptr, __bos0 (__ptr), __size, __n, __stream);  ^/usr/include/x86_64-linux-gnu/bits/stdio2.h:290:2: warning: call to ‘__fread_chk_warn’ declared with attribute warning: fread called with bigger size * nmemb than length of destination buffer [enabled by default]  return __fread_chk (__ptr, __bos0 (__ptr), __size, __n, __stream);  ^/usr/include/x86_64-linux-gnu/bits/stdio2.h:293:2: warning: call to ‘__fread_chk_warn’ declared with attribute warning: fread called with bigger size * nmemb than length of destination buffer [enabled by default]  return __fread_chk_warn (__ptr, __bos0 (__ptr), __size, __n, __stream);  ^/usr/include/x86_64-linux-gnu/bits/stdio2.h: In function ‘grfio_entryread’:/usr/include/x86_64-linux-gnu/bits/stdio2.h:290:2: warning: call to ‘__fread_chk_warn’ declared with attribute warning: fread called with bigger size * nmemb than length of destination buffer [enabled by default]  return __fread_chk (__ptr, __bos0 (__ptr), __size, __n, __stream);  ^/usr/include/x86_64-linux-gnu/bits/stdio2.h:293:2: warning: call to ‘__fread_chk_warn’ declared with attribute warning: fread called with bigger size * nmemb than length of destination buffer [enabled by default]  return __fread_chk_warn (__ptr, __bos0 (__ptr), __size, __n, __stream);  ^/usr/include/x86_64-linux-gnu/bits/stdio2.h:290:2: warning: call to ‘__fread_chk_warn’ declared with attribute warning: fread called with bigger size * nmemb than length of destination buffer [enabled by default]  return __fread_chk (__ptr, __bos0 (__ptr), __size, __n, __stream);  ^/usr/include/x86_64-linux-gnu/bits/stdio2.h:293:2: warning: call to ‘__fread_chk_warn’ declared with attribute warning: fread called with bigger size * nmemb than length of destination buffer [enabled by default]  return __fread_chk_warn (__ptr, __bos0 (__ptr), __size, __n, __stream);  ^/usr/include/x86_64-linux-gnu/bits/stdio2.h: In function ‘npc_parsesrcfile’:/usr/include/x86_64-linux-gnu/bits/stdio2.h:290:2: warning: call to ‘__fread_chk_warn’ declared with attribute warning: fread called with bigger size * nmemb than length of destination buffer [enabled by default]  return __fread_chk (__ptr, __bos0 (__ptr), __size, __n, __stream);  ^/usr/include/x86_64-linux-gnu/bits/stdio2.h:293:2: warning: call to ‘__fread_chk_warn’ declared with attribute warning: fread called with bigger size * nmemb than length of destination buffer [enabled by default]  return __fread_chk_warn (__ptr, __bos0 (__ptr), __size, __n, __stream);  ^/usr/include/x86_64-linux-gnu/bits/stdio2.h: In function ‘map_init_mapcache’:/usr/include/x86_64-linux-gnu/bits/stdio2.h:290:2: warning: call to ‘__fread_chk_warn’ declared with attribute warning: fread called with bigger size * nmemb than length of destination buffer [enabled by default]  return __fread_chk (__ptr, __bos0 (__ptr), __size, __n, __stream);  ^/usr/include/x86_64-linux-gnu/bits/stdio2.h:293:2: warning: call to ‘__fread_chk_warn’ declared with attribute warning: fread called with bigger size * nmemb than length of destination buffer [enabled by default]  return __fread_chk_warn (__ptr, __bos0 (__ptr), __size, __n, __stream);  ^make[1]: Leaving directory `/home/vnc/Hercules2/src/map'    MAKE    toolsmake[1]: Entering directory `/home/vnc/Hercules2/src/tool'    MKDIR    obj_all    CC    mapcache.c    LD    mapcache/usr/include/x86_64-linux-gnu/bits/stdio2.h: In function ‘grfio_reads’:/usr/include/x86_64-linux-gnu/bits/stdio2.h:290:2: warning: call to ‘__fread_chk_warn’ declared with attribute warning: fread called with bigger size * nmemb than length of destination buffer [enabled by default]  return __fread_chk (__ptr, __bos0 (__ptr), __size, __n, __stream);  ^/usr/include/x86_64-linux-gnu/bits/stdio2.h:293:2: warning: call to ‘__fread_chk_warn’ declared with attribute warning: fread called with bigger size * nmemb than length of destination buffer [enabled by default]  return __fread_chk_warn (__ptr, __bos0 (__ptr), __size, __n, __stream);  ^/usr/include/x86_64-linux-gnu/bits/stdio2.h:290:2: warning: call to ‘__fread_chk_warn’ declared with attribute warning: fread called with bigger size * nmemb than length of destination buffer [enabled by default]  return __fread_chk (__ptr, __bos0 (__ptr), __size, __n, __stream);  ^/usr/include/x86_64-linux-gnu/bits/stdio2.h:293:2: warning: call to ‘__fread_chk_warn’ declared with attribute warning: fread called with bigger size * nmemb than length of destination buffer [enabled by default]  return __fread_chk_warn (__ptr, __bos0 (__ptr), __size, __n, __stream);  ^/usr/include/x86_64-linux-gnu/bits/stdio2.h: In function ‘grfio_entryread’:/usr/include/x86_64-linux-gnu/bits/stdio2.h:290:2: warning: call to ‘__fread_chk_warn’ declared with attribute warning: fread called with bigger size * nmemb than length of destination buffer [enabled by default]  return __fread_chk (__ptr, __bos0 (__ptr), __size, __n, __stream);  ^/usr/include/x86_64-linux-gnu/bits/stdio2.h:293:2: warning: call to ‘__fread_chk_warn’ declared with attribute warning: fread called with bigger size * nmemb than length of destination buffer [enabled by default]  return __fread_chk_warn (__ptr, __bos0 (__ptr), __size, __n, __stream);  ^/usr/include/x86_64-linux-gnu/bits/stdio2.h:290:2: warning: call to ‘__fread_chk_warn’ declared with attribute warning: fread called with bigger size * nmemb than length of destination buffer [enabled by default]  return __fread_chk (__ptr, __bos0 (__ptr), __size, __n, __stream);  ^/usr/include/x86_64-linux-gnu/bits/stdio2.h:293:2: warning: call to ‘__fread_chk_warn’ declared with attribute warning: fread called with bigger size * nmemb than length of destination buffer [enabled by default]  return __fread_chk_warn (__ptr, __bos0 (__ptr), __size, __n, __stream);  ^make[1]: Leaving directory `/home/vnc/Hercules2/src/tool'building conf/import folder...    MAKE    pluginsmake[1]: Entering directory `/home/vnc/Hercules2/src/plugins'    CC    sample.c    CC    db2sql.c    CC    HPMHooking.cmake[1]: Leaving directory `/home/vnc/Hercules2/src/plugins'

 

 

At the end of the day, ./athena-start start results in this buffer overflow that terminates the char-server.

 

 buffer overflow detected ***: ./char-server terminated==== Backtrace ========b/x86_64-linux-gnu/libc.so.6(+0x741cf)[0x7ff69bea81cf]b/x86_64-linux-gnu/libc.so.6(__fortify_fail+0x5c)[0x7ff69bf3fb2c]b/x86_64-linux-gnu/libc.so.6~lists the ips for the servers which are correct~(+0x10a9f0)[0x7ff69bf3e9f0]./char-server[0x43d37b]./char-server[0x4389e7]./char-server[0x43fc7a]./char-server[0x41d2f2]/lib/x86_64-linux-gnu/libc.so.6

 

Please let me know if I can provide any other helpful information.

Edited by Nott

Share this post


Link to post
Share on other sites

1 answer to this question

Recommended Posts

  • 0

For whatever it is worth I just rebuilt my database and now the buffer overflow is gone. Still seeing the errors from gcc when compiling though, but the server seems to be working even with them. 

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...
Sign in to follow this  

×
×
  • Create New...

Important Information

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