• Error when running programs

    From Stephen Atkins@1:342/13 to Vince Coen on Wed Sep 2 10:17:47 2015
    Hello. I seem to have hit a snag with v1.0.6. It took me over a week to notice this but some of my mail was not leaving the system. Also mbindex was throwing a buffer overflow error when compiling the sysops tech net nodelist. I tought it was just something in the nodelist at first. Once I removed STN from my BBS I was able to compile the nodelist no problem.

    Then I was trying to get the mail in one of my ~/var/boxes to send and gave it the manual command of mbout p f100.n1.z46 which worked. Then to check the out stats I have it mbout stat and it gave me this error which is pretty close to the same error (buffer overflow) from the mbindex.

    mbse@dionysis ~/var/boxes/nicholas_boel $ mbout stat

    MBOUT: MBSE BBS 1.0.6 Outbound Manager
    Copyright (C) 1997-2015 Michiel Broek, All Rights Reserved

    flavor try size age address
    *** buffer overflow detected ***: mbout terminated
    ======= Backtrace: ========= /lib/x86_64-linux-gnu/libc.so.6(+0x7338f)[0x7f3da528838f] /lib/x86_64-linux-gnu/libc.so.6(__fortify_fail+0x5c)[0x7f3da531fc9c] /lib/x86_64-linux-gnu/libc.so.6(+0x109b60)[0x7f3da531eb60]
    mbout[0x40375c]
    mbout[0x402a35] /lib/x86_64-linux-gnu/libc.so.6(__libc_start_main+0xf5)[0x7f3da5236ec5] mbout[0x402c1d]
    ======= Memory map: ========
    00400000-00415000 r-xp 00000000 08:11 27525880 /opt/mbse/bin/mbout
    00614000-00615000 r--p 00014000 08:11 27525880 /opt/mbse/bin/mbout
    00615000-00616000 rw-p 00015000 08:11 27525880 /opt/mbse/bin/mbout
    00616000-00631000 rw-p 00000000 00:00 0
    02009000-0202a000 rw-p 00000000 00:00 0 [heap]
    7f3da47c3000-7f3da47d9000 r-xp 00000000 08:11 33689615 /lib/x86_64-linux-gnu/libgcc_s.so.1
    7f3da47d9000-7f3da49d8000 ---p 00016000 08:11 33689615 /lib/x86_64-linux-gnu/libgcc_s.so.1
    7f3da49d8000-7f3da49d9000 rw-p 00015000 08:11 33689615 /lib/x86_64-linux-gnu/libgcc_s.so.1
    7f3da49d9000-7f3da49e4000 r-xp 00000000 08:11 33685722 /lib/x86_64-linux-gnu/libnss_files-2.19.so
    7f3da49e4000-7f3da4be3000 ---p 0000b000 08:11 33685722 /lib/x86_64-linux-gnu/libnss_files-2.19.so
    7f3da4be3000-7f3da4be4000 r--p 0000a000 08:11 33685722 /lib/x86_64-linux-gnu/libnss_files-2.19.so
    7f3da4be4000-7f3da4be5000 rw-p 0000b000 08:11 33685722 /lib/x86_64-linux-gnu/libnss_files-2.19.so
    7f3da4be5000-7f3da4bf0000 r-xp 00000000 08:11 33685742 /lib/x86_64-linux-gnu/libnss_nis-2.19.so
    7f3da4bf0000-7f3da4def000 ---p 0000b000 08:11 33685742 /lib/x86_64-linux-gnu/libnss_nis-2.19.so
    7f3da4def000-7f3da4df0000 r--p 0000a000 08:11 33685742 /lib/x86_64-linux-gnu/libnss_nis-2.19.so
    7f3da4df0000-7f3da4df1000 rw-p 0000b000 08:11 33685742 /lib/x86_64-linux-gnu/libnss_nis-2.19.so
    7f3da4df1000-7f3da4e08000 r-xp 00000000 08:11 33685731 /lib/x86_64-linux-gnu/libnsl-2.19.so
    7f3da4e08000-7f3da5007000 ---p 00017000 08:11 33685731 /lib/x86_64-linux-gnu/libnsl-2.19.so
    7f3da5007000-7f3da5008000 r--p 00016000 08:11 33685731 /lib/x86_64-linux-gnu/libnsl-2.19.so
    7f3da5008000-7f3da5009000 rw-p 00017000 08:11 33685731 /lib/x86_64-linux-gnu/libnsl-2.19.so
    7f3da5009000-7f3da500b000 rw-p 00000000 00:00 0
    7f3da500b000-7f3da5014000 r-xp 00000000 08:11 33685730 /lib/x86_64-linux-gnu/libnss_compat-2.19.so
    7f3da5014000-7f3da5213000 ---p 00009000 08:11 33685730 /lib/x86_64-linux-gnu/libnss_compat-2.19.so
    7f3da5213000-7f3da5214000 r--p 00008000 08:11 33685730 /lib/x86_64-linux-gnu/libnss_compat-2.19.so
    7f3da5214000-7f3da5215000 rw-p 00009000 08:11 33685730 /lib/x86_64-linux-gnu/libnss_compat-2.19.so
    7f3da5215000-7f3da53d0000 r-xp 00000000 08:11 33685736 /lib/x86_64-linux-gnu/libc-2.19.so
    7f3da53d0000-7f3da55cf000 ---p 001bb000 08:11 33685736 /lib/x86_64-linux-gnu/libc-2.19.so
    7f3da55cf000-7f3da55d3000 r--p 001ba000 08:11 33685736 /lib/x86_64-linux-gnu/libc-2.19.so
    7f3da55d3000-7f3da55d5000 rw-p 001be000 08:11 33685736 /lib/x86_64-linux-gnu/libc-2.19.so
    7f3da55d5000-7f3da55da000 rw-p 00000000 00:00 0
    7f3da55da000-7f3da55fd000 r-xp 00000000 08:11 33685733 /lib/x86_64-linux-gnu/ld-2.19.so
    7f3da57d2000-7f3da57d5000 rw-p 00000000 00:00 0
    7f3da57f8000-7f3da57fc000 rw-p 00000000 00:00 0
    7f3da57fc000-7f3da57fd000 r--p 00022000 08:11 33685733 /lib/x86_64-linux-gnu/ld-2.19.so
    7f3da57fd000-7f3da57fe000 rw-p 00023000 08:11 33685733 /lib/x86_64-linux-gnu/ld-2.19.so
    7f3da57fe000-7f3da57ff000 rw-p 00000000 00:00 0
    7ffe668d0000-7ffe668f1000 rw-p 00000000 00:00 0 [stack]
    7ffe66902000-7ffe66904000 r--p 00000000 00:00 0 [vvar]
    7ffe66904000-7ffe66906000 r-xp 00000000 00:00 0 [vdso]
    ffffffffff600000-ffffffffff601000 r-xp 00000000 00:00 0 [vsyscall]


    I've downgraded to 1.0.4 until I can figure this out. No problems running the same command with 1.0.4.

    Thanks for your help

    Stephen Atkins








    ---
    The Bit Bucket BBS - telnet://bbs.thebitbucket.ca

    --- MBSE BBS v1.0.4 (GNU/Linux-x86_64)
    * Origin: The Bit Bucket BBS (1:342/13)
  • From Vince Coen@2:250/1 to Stephen Atkins on Wed Sep 2 20:08:46 2015
    Hello Stephen!

    Wednesday September 02 2015 10:17, you wrote to me:

    Hello. I seem to have hit a snag with v1.0.6. It took me over a week
    to notice this but some of my mail was not leaving the system. Also
    mbindex was throwing a buffer overflow error when compiling the sysops
    tech net nodelist. I tought it was just something in the nodelist at
    first. Once I removed STN from my BBS I was able to compile the
    nodelist no problem.


    Just in case it is:

    Go to the directory containing the sources of mbsebbs-1.0.6

    make clean

    ./configure
    make > build.log 2>build.err

    less build.err

    Now see if you have any error messages and likewise warnings to make sure that none are important.

    In my case I have warning regarding case, defererencing, and time-t and a fair few if computed or referenced but unused.

    These are not causing me any noticable issues. Been there for yonks anyway.
    Oh, I run under Mageia v4 X64.


    With that done now check build.log and go to the end and that should look clear
    as well.

    If you are getting any error messages you must act on them.

    If all is well install it via
    su
    make install

    Then exit the terminal prog and reload it and log in to user mbse and restart mbtask. IF neede stop then start - in my case its a :
    /etc/rc.d/init.d/mbsed stop
    /etc/rc.d/init.d/mbsed start

    You must not get error messages also see INSTALL and read the Upgrading
    section to ensure you have not missed anything.

    One small point - I use Golded and it sometimes causes me problems that
    written messages vanish and/or do not get processed by mbfido s (or with -f).

    This could be a curruption of the message base and the issue is usually with netmail so I just delete the lot in my netmail areas having coping them to another area if really needed but tend to avoid that just in case.

    Must find another editor sometime.


    Vince

    --- Mageia Linux v4/Mbse v1.0.6/GoldED+/LNX 1.1.501-b20150715
    * Origin: Air Applewood, The Linux Gateway to the UK (2:250/1)