• Segmentation Fault

    From Darkages@VERT to All on Friday, January 29, 2016 02:18:57
    Hi All,

    Just a FYI, I did an update on a Linux install and wound up with a segmentation fault. Untarring the exec archive did not do the trick.

    This is all the data I could come up with, hope it helps. I think it has to be something changed within the last 48 hours.

    Starting program: /sbbs/exec/sbbs -nd
    [Thread debugging using libthread_db enabled]
    Using host libthread_db library "/lib/x86_64-linux-gnu/libthread_db.so.1".

    Synchronet Console for Linux Version 3.17a Copyright 2015 Rob Swindell

    Reading /sbbs/ctrl/sbbs.ini

    Program received signal SIGSEGV, Segmentation fault.
    memset () at ../sysdeps/x86_64/memset.S:78
    78 ../sysdeps/x86_64/memset.S: No such file or directory.
    (gdb)

    Randy

    ---
    þ Synchronet þ DarkAges BBS | darkagesbbs.com | Wayne, OK
    þ Synchronet þ Vertrauen þ Home of Synchronet þ telnet://vert.synchro.net
  • From Digital Man@VERT to Darkages on Friday, January 29, 2016 15:00:44
    Re: Segmentation Fault
    By: Darkages to All on Fri Jan 29 2016 02:18 am

    Hi All,

    Just a FYI, I did an update on a Linux install and wound up with a segmentation fault. Untarring the exec archive did not do the trick.

    This is all the data I could come up with, hope it helps. I think it has to be something changed within the last 48 hours.

    Starting program: /sbbs/exec/sbbs -nd
    [Thread debugging using libthread_db enabled]
    Using host libthread_db library "/lib/x86_64-linux-gnu/libthread_db.so.1".

    Synchronet Console for Linux Version 3.17a Copyright 2015 Rob Swindell

    Reading /sbbs/ctrl/sbbs.ini

    Program received signal SIGSEGV, Segmentation fault.
    memset () at ../sysdeps/x86_64/memset.S:78
    78 ../sysdeps/x86_64/memset.S: No such file or directory.
    (gdb)

    Looks like Deuce committed a fix to CVS already. Sorry about that,

    digital man

    Synchronet "Real Fact" #72:
    SyncTERM (created by Deuce) contains portions of Synchronet and SEXYZ code. Norco, CA WX: 60.2øF, 29.0% humidity, 6 mph W wind, 0.00 inches rain/24hrs

    ---
    þ Synchronet þ Vertrauen þ Home of Synchronet þ telnet://vert.synchro.net
  • From Darkages@VERT to Digital Man on Saturday, January 30, 2016 21:29:51
    Re: Segmentation Fault
    By: Digital Man to Darkages on Fri Jan 29 2016 03:00 pm

    Re: Segmentation Fault
    By: Darkages to All on Fri Jan 29 2016 02:18 am

    Hi All,

    Just a FYI, I did an update on a Linux install and wound up with a segmentation fault. Untarring the exec archive did not do the trick.

    This is all the data I could come up with, hope it helps. I think it has be something changed within the last 48 hours.

    Starting program: /sbbs/exec/sbbs -nd
    [Thread debugging using libthread_db enabled]
    Using host libthread_db library "/lib/x86_64-linux-gnu/libthread_db.so.1"

    Synchronet Console for Linux Version 3.17a Copyright 2015 Rob Swindell

    Reading /sbbs/ctrl/sbbs.ini

    Program received signal SIGSEGV, Segmentation fault.
    memset () at ../sysdeps/x86_64/memset.S:78
    78 ../sysdeps/x86_64/memset.S: No such file or directory.
    (gdb)

    Looks like Deuce committed a fix to CVS already. Sorry about that,

    digital man

    Synchronet "Real Fact" #72:
    SyncTERM (created by Deuce) contains portions of Synchronet and SEXYZ code. Norco, CA WX: 60.2øF, 29.0% humidity, 6 mph W wind, 0.00 inches rain/24hrs

    Not a problem, I had the original copy saved in another location, copied it over and recompiled it.

    Randy

    ---
    þ Synchronet þ DarkAges BBS | darkagesbbs.com | 1:19/25 | Wayne, OK
    þ Synchronet þ Vertrauen þ Home of Synchronet þ telnet://vert.synchro.net
  • From Ray Quinn@VERT/US99 to Digital Man on Sunday, February 17, 2019 20:18:29
    Re: Binkit & Segmentation Fault
    By: Ray Quinn to All on Sun Feb 17 2019 09:14 am

    I am going to address the segmentation fault first.

    After downloading the latest development source on Tursday February 14, 2019 and compiling it, SBBS would not run. I am running Debian Stretch. I tried the GDB method to see about getting a core file, no good.

    gdb /sbbs/exec/sbbs /tmp/core.sbbs.0001

    What does that mean - no good?

    It didn't create any core, it ran as long as it did trying any other method I mentioned.


    I ran it several times in a console window and got a segmentation fault at various stages.

    Try a clean rebuild.

    I do a clean build every time.


    I went to my source backup, compiled it, and all is well. I
    likely have no other information to provide. I will try again later today and, if it fails again, get more information.

    Run src/cleanall.sh before your next build.

    I ran this script, too. A clean build usually generates fewer issues. I will try again when I have
    more time to mess with it. The older source is working for now. I just like to try to keep up with
    any new changes, etc. Thanks!





    ---

    If the right side of the brain controls the left side of the body,
    then only left handed people are in their right minds.

    _____
    , |[][]|
    ,__| ______| |
    ,__/__]|| ________ | D8 |
    |__!___!!`--'L_______\ |__________|() ___________
    "(_)[___]====(_)(_)=| \_(___________)_/__/=(_)===(_)~'

    73 de Ray Quinn W6RAY
    GMRS WQTX645
    Visalia, CA USA DM06ii
    When all else fails, ham radio works!
    ---
    þ Synchronet þ US 99 BBS - Visalia, CA - bbs.quinnnet.org
  • From Digital Man@VERT to Ray Quinn on Sunday, February 17, 2019 22:41:12
    Re: Segmentation Fault
    By: Ray Quinn to Digital Man on Sun Feb 17 2019 08:18 pm

    Re: Binkit & Segmentation Fault
    By: Ray Quinn to All on Sun Feb 17 2019 09:14 am

    I am going to address the segmentation fault first.

    After downloading the latest development source on Tursday February 14, 2019 and compiling it, SBBS would not run. I am running Debian Stretch. I tried the GDB method to see about getting a core file, no good.

    gdb /sbbs/exec/sbbs /tmp/core.sbbs.0001

    What does that mean - no good?

    It didn't create any core, it ran as long as it did trying any other method I mentioned.

    You don't have core files from the previous segfaults? You don't need to run sbbs from gdb to get a core dump file created upon segfault. Check your /tmp directory or wherever you have your system configured to save core dumps.


    digital man

    Synchronet "Real Fact" #48:
    Synchronet directory naming (i.e. ctrl, exec, data) was suggested by S. Deppe. Norco, CA WX: 45.4øF, 77.0% humidity, 8 mph ESE wind, 0.00 inches rain/24hrs

    ---
    þ Synchronet þ Vertrauen þ Home of Synchronet þ [vert/cvs/bbs].synchro.net
  • From mark lewis@VERT to Ray Quinn on Monday, February 18, 2019 12:46:30
    On 2019 Feb 17 22:41:12, Digital Man wrote to you:
    It didn't create any core, it ran as long as it did trying any other
    method I mentioned.

    You don't have core files from the previous segfaults? You don't need
    to run sbbs from gdb to get a core dump file created upon segfault.
    Check your /tmp directory or wherever you have your system configured
    to save core dumps.

    you might have to set your ulimit, too... i've had numerous programs segfault and say a core file was written when in fact none was... setting ulimit as needed allowed the core files to be created properly...

    )\/(ark

    Always Mount a Scratch Monkey
    Do you manage your own servers? If you are not running an IDS/IPS yer doin' it wrong...
    ... The ability to understand a question from all sides meant one was totally unfi
    ---
    * Origin: (1:3634/12.73)
    þ Synchronet þ Vertrauen þ Home of Synchronet þ [vert/cvs/bbs].synchro.net
  • From Digital Man@VERT to mark lewis on Monday, February 18, 2019 14:09:30
    Re: Segmentation Fault
    By: mark lewis to Ray Quinn on Mon Feb 18 2019 12:46 pm


    On 2019 Feb 17 22:41:12, Digital Man wrote to you:
    It didn't create any core, it ran as long as it did trying any other
    method I mentioned.

    You don't have core files from the previous segfaults? You don't need to run sbbs from gdb to get a core dump file created upon segfault. Check your /tmp directory or wherever you have your system configured to save core dumps.

    you might have to set your ulimit, too... i've had numerous programs segfault and say a core file was written when in fact none was... setting ulimit as needed allowed the core files to be created properly...

    And other tweaks, as outlined here:
    http://wiki.synchro.net/howto:gdb#core_file

    digital man

    Synchronet "Real Fact" #5:
    Synchronet version 3 for Win32 development began in 1999.
    Norco, CA WX: 55.0øF, 35.0% humidity, 5 mph SSW wind, 0.00 inches rain/24hrs

    ---
    þ Synchronet þ Vertrauen þ Home of Synchronet þ [vert/cvs/bbs].synchro.net
  • From Ray Quinn@VERT/US99 to Digital Man on Monday, February 18, 2019 20:06:22
    You don't have core files from the previous segfaults? You don't need to run sbbs from gdb to get a core dump file created upon segfault. Check your /tmp directory or wherever you have your system configured to save core dumps.

    There were no cores. I took Mark Lewis' suggestion regarding ulimit and noticed that
    the size was set to 0. I changed it to unlimited "ulimit -c unlimited", so next time
    I have a segfault, it should generate a core.

    Thanks!

    ---

    If the right side of the brain controls the left side of the body,
    then only left handed people are in their right minds.

    _____
    , |[][]|
    ,__| ______| |
    ,__/__]|| ________ | D8 |
    |__!___!!`--'L_______\ |__________|() ___________
    "(_)[___]====(_)(_)=| \_(___________)_/__/=(_)===(_)~'

    73 de Ray Quinn W6RAY
    GMRS WQTX645
    Visalia, CA USA DM06ii
    When all else fails, ham radio works!
    ---
    þ Synchronet þ US 99 BBS - Visalia, CA - bbs.quinnnet.org
  • From Ray Quinn@VERT/US99 to mark lewis on Monday, February 18, 2019 20:07:55
    On 2019 Feb 17 22:41:12, Digital Man wrote to you:
    It didn't create any core, it ran as long as it did trying any other
    method I mentioned.

    You don't have core files from the previous segfaults? You don't need to run sbbs from gdb to get a core dump file created upon segfault. Check your /tmp directory or wherever you have your system configured to save core dumps.

    you might have to set your ulimit, too... i've had numerous programs segfault and say a core file was written when in fact none was... setting ulimit as needed allowed the core files to be created properly...

    I took your advice and set "ulimit -c unlimited". We shall see...

    Thanks!!

    ---

    If the right side of the brain controls the left side of the body,
    then only left handed people are in their right minds.

    _____
    , |[][]|
    ,__| ______| |
    ,__/__]|| ________ | D8 |
    |__!___!!`--'L_______\ |__________|() ___________
    "(_)[___]====(_)(_)=| \_(___________)_/__/=(_)===(_)~'

    73 de Ray Quinn W6RAY
    GMRS WQTX645
    Visalia, CA USA DM06ii
    When all else fails, ham radio works!
    ---
    þ Synchronet þ US 99 BBS - Visalia, CA - bbs.quinnnet.org
  • From Ray Quinn@VERT/US99 to Digital Man on Monday, February 18, 2019 20:13:30
    Re: Segmentation Fault
    By: mark lewis to Ray Quinn on Mon Feb 18 2019 12:46 pm


    On 2019 Feb 17 22:41:12, Digital Man wrote to you:
    It didn't create any core, it ran as long as it did trying any other
    method I mentioned.

    You don't have core files from the previous segfaults? You don't need to run sbbs from gdb to get a core dump file created upon segfault. Check your /tmp directory or wherever you have your system configured to save core dumps.

    you might have to set your ulimit, too... i've had numerous programs segfault and say a core file was written when in fact none was... setting ulimit as needed allowed the core files to be created properly...

    And other tweaks, as outlined here: http://wiki.synchro.net/howto:gdb#core_file

    I had done most of these, too, but not all. I made the changes as suggested in the
    above wiki entry.

    Thanks.

    ---

    If the right side of the brain controls the left side of the body,
    then only left handed people are in their right minds.

    _____
    , |[][]|
    ,__| ______| |
    ,__/__]|| ________ | D8 |
    |__!___!!`--'L_______\ |__________|() ___________
    "(_)[___]====(_)(_)=| \_(___________)_/__/=(_)===(_)~'

    73 de Ray Quinn W6RAY
    GMRS WQTX645
    Visalia, CA USA DM06ii
    When all else fails, ham radio works!
    ---
    þ Synchronet þ US 99 BBS - Visalia, CA - bbs.quinnnet.org