• JSEXEC Seg fault

    From Ray Quinn@1:103/705 to All on Tue Aug 21 14:29:58 2018
    Hello from the Hirz fire in Northern California.

    I just downloaded the latest source tar file and recompiled SBBS, which runs fine. My issue is I also updated the /sbbs/exec directory and need to run -

    jsexec update.js

    When I do, the only thing showing on the screen is " Segmentation fault". I tried GDB, but says the program is not running. I use symlinks from the /sbbs/exec directory and am running debug.

    I have no other information to provide, but I can answer questions, so long
    as I have Internet at whatever location I am.

    THank you!
    ---

    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
    * Origin: Vertrauen - [vert/cvs/bbs].synchro.net (1:103/705)
  • From Digital Man@1:103/705 to Ray Quinn on Tue Aug 21 15:53:12 2018
    Re: JSEXEC Seg fault
    By: Ray Quinn to All on Tue Aug 21 2018 02:29 pm

    Hello from the Hirz fire in Northern California.

    I just downloaded the latest source tar file and recompiled SBBS, which runs fine. My issue is I also updated the /sbbs/exec directory and need to run -

    jsexec update.js

    When I do, the only thing showing on the screen is " Segmentation fault". I tried GDB, but says the program is not running.

    You have to either pass a core dump file to gdb (along with the executable) or run the program *from* gdb, like so: "gdb /path/to/program", then "run".

    I use symlinks from the
    /sbbs/exec directory and am running debug.

    I have no other information to provide, but I can answer questions, so long as I have Internet at whatever location I am.

    It sounds like the version of jsexec that is being pointed to by your symlink is bad. Try a clean rebuild of sbbs. See "Clean Rebuild" instructions at http://wiki.synchro.net/install:nix#updating

    digital man

    Synchronet "Real Fact" #38:
    Synchronet first supported Windows NT-based operating systems w/v3.00b (2000). Norco, CA WX: 87.4oF, 51.0% humidity, 6 mph NE wind, 0.00 inches rain/24hrs
    --- SBBSecho 3.06-Linux
    * Origin: Vertrauen - [vert/cvs/bbs].synchro.net (1:103/705)
  • From Nelgin@1:103/705 to Ray Quinn on Tue Aug 21 18:01:08 2018
    Ray wrote:
    Hello from the Hirz fire in Northern California.

    I just downloaded the latest source tar file and recompiled SBBS, which runs fine. My issue is I also updated the /sbbs/exec directory and need to run -

    jsexec update.js

    When I do, the only thing showing on the screen is " Segmentation fault". I tried GDB, but says the program is not running. I use symlinks from the /sbbs/exec directory and am running debug.

    I have no other information to provide, but I can answer questions, so long as I have Internet at whatever location I am.

    You need to start gdb with the program then use run with the parameter

    gdb /sbbs/src/sbbs3/gcc.linux.x64.exe.debug/jsexec

    then run update.js

    If you're using the release version then use the gcc.linux.x64.exe.release path, though this won't likely give as much debug information.

    Once you get your seg fault then do a backtrace by entering bt
    and paste that here for Digitalman to look at. He can then let you know if there's anything else you need to provide him.

    ---
    * Synchronet * End Of The Line BBS - endofthelinebbs.com
    * Origin: Vertrauen - [vert/cvs/bbs].synchro.net (1:103/705)
  • From Nightfox@1:103/705 to Ray Quinn on Tue Aug 21 16:53:44 2018
    Re: JSEXEC Seg fault
    By: Ray Quinn to All on Tue Aug 21 2018 02:29 pm

    jsexec update.js

    When I do, the only thing showing on the screen is " Segmentation fault". I tried GDB, but says the program is not running. I use symlinks from the /sbbs/exec directory and am running debug.

    To use GDB, I think your best bet would be to run "jsexec update.js" from within GDB. It would also help to use a debug build (as opposed to a release build) to debug the issue.

    Nightfox

    ---
    * Synchronet * Digital Distortion: digitaldistortionbbs.com
    * Origin: Vertrauen - [vert/cvs/bbs].synchro.net (1:103/705)
  • From Ray Quinn@1:103/705 to Digital Man on Wed Aug 29 21:15:03 2018
    Re: JSEXEC Seg fault
    By: Digital Man to Ray Quinn on Tue Aug 21 2018 15:53:12

    I just downloaded the latest source tar file and recompiled SBBS, which
    runs fine. My issue is I also updated the /sbbs/exec directory and need
    to run -
    jsexec update.js

    When I do, the only thing showing on the screen is " Segmentation
    fault". I tried GDB, but says the program is not running.

    You have to either pass a core dump file to gdb (along with the executable) or run the program *from* gdb, like so: "gdb /path/to/program", then "run".

    I use symlinks from the
    /sbbs/exec directory and am running debug.

    I have no other information to provide, but I can answer questions, so
    long as I have Internet at whatever location I am.

    It sounds like the version of jsexec that is being pointed to by your symlink is bad. Try a clean rebuild of sbbs. See "Clean Rebuild" instructions at http://wiki.synchro.net/install:nix#updating

    I did a clean rebuild following the above instructions before I posted the message. I ran GDB using all the suggested methods, still got the SEG FAULT.

    I returned home yesterday (Tuesday, 28 Aug 2018) and tonight ran

    jsexec update.js

    and it ran without error. I did nothing except log into the server from my desktop computer instead of my laptop. That is the ONLY difference.

    I appreciate your (and others) assistance, but it seems to be fine now.
    ---

    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
    * Origin: Vertrauen - [vert/cvs/bbs].synchro.net (1:103/705)