• core dump - seg fault in term

    From Nigel Reed@1:103/705 to GitLab issue in main/sbbs on Tue Aug 6 18:00:20 2024
    open https://gitlab.synchro.net/main/sbbs/-/issues/769

    ```
    [Thread debugging using libthread_db enabled]
    Using host libthread_db library "/lib/x86_64-linux-gnu/libthread_db.so.1".
    Core was generated by `/sbbs/exec/sbbs t! d'.
    Program terminated with signal SIGSEGV, Segmentation fault.
    #0 0x00007fec3112be7c in JSObject::getClass (this=0x0) at /home/bbs/sbbs-git/3rdp/src/mozjs/js-1.8.5/js/src/jsobj.h:427
    427 js::Class *getClass() const { return clasp; }
    [Current thread is 1 (Thread 0x7febbbfff640 (LWP 508186))]
    ```
    ```
    (gdb) bt
    #0 0x00007fec3112be7c in JSObject::getClass (this=0x0) at /home/bbs/sbbs-git/3rdp/src/mozjs/js-1.8.5/js/src/jsobj.h:427
    #1 0x00007fec3112be9e in JSObject::getOps (this=0x0) at /home/bbs/sbbs-git/3rdp/src/mozjs/js-1.8.5/js/src/jsobj.h:435
    #2 0x00007fec3112c2ec in JSObject::getProperty (this=0x0, cx=0x7febdc125330, receiver=0x0, id=140652418296480,
    vp=0x7febbbff4228) at /home/bbs/sbbs-git/3rdp/src/mozjs/js-1.8.5/js/src/jsobj.h:1228
    #3 0x00007fec3112c35b in JSObject::getProperty (this=0x0, cx=0x7febdc125330, id=140652418296480, vp=0x7febbbff4228)
    at /home/bbs/sbbs-git/3rdp/src/mozjs/js-1.8.5/js/src/jsobj.h:1233
    #4 0x00007fec31124d2c in JS_GetPropertyById (cx=0x7febdc125330, obj=0x0, id=140652418296480, vp=0x7febbbff4228)
    at jsapi.cpp:3806
    #5 0x00007fec31124e78 in JS_GetProperty (cx=0x7febdc125330, obj=0x0, name=0x7fec3157ccac "x", vp=0x7febbbff4228)
    at jsapi.cpp:3825
    #6 0x00007fec30f921d0 in js_gotoxy (cx=0x7febdc125330, argc=1, arglist=0x7febbabfe378) at js_console.cpp:1933
    #7 0x00007fec313d216d in js::CallJSNative (vp=0x7febbabfe378, argc=1,
    native=0x7fec30f92061 <js_gotoxy(JSContext*, uintN, jsval*)>, cx=0x7febdc125330)
    at /home/bbs/sbbs-git/3rdp/src/mozjs/js-1.8.5/js/src/jscntxtinlines.h:701 #8 js::Interpret (cx=0x7febdc125330, entryFrame=0x7febbabfe048, inlineCallCount=3, interpMode=JSINTERP_NORMAL)
    at jsinterp.cpp:4799
    #9 0x00007fec311c466c in js::RunScript (cx=0x7febdc125330, script=0x7febdcd8f6a0, fp=0x7febbabfe048)
    at /home/bbs/sbbs-git/3rdp/src/mozjs/js-1.8.5/js/src/jsinterp.cpp:653
    #10 0x00007fec311c7605 in js::Execute (cx=0x7febdc125330, chain=0x7fec0c2691b0, script=0x7febdcd8f6a0, prev=0x0, flags=0,
    result=0x7febbbff7b28) at /home/bbs/sbbs-git/3rdp/src/mozjs/js-1.8.5/js/src/jsinterp.cpp:1028
    #11 0x00007fec3112845d in JS_ExecuteScript (cx=0x7febdc125330, obj=0x7fec0c2691b0, scriptObj=0x7fec0c2694c8,
    rval=0x7febbbff7b28) at jsapi.cpp:4998
    #12 0x00007fec30f38a18 in sbbs_t::js_execfile (this=0x7fec221457b0,
    cmd=0x7febbbffd3a0 "../xtrn/DDMsgReader/DDMsgReader.js munnewal 256", startup_dir=0x0, scope=0x0, js_cx=0x7febdc125330,
    js_glob=0x7fec0cd03048) at exec.cpp:693
    #13 0x00007fec30f39180 in sbbs_t::exec_bin (this=0x7fec221457b0,
    cmdline=0x7febbbffd3a0 "../xtrn/DDMsgReader/DDMsgReader.js munnewal 256", csi=0x7fec221581a8, startup_dir=0x0)
    at exec.cpp:796
    #14 0x00007fec3109fb43 in sbbs_t::listsub (this=0x7fec221457b0, subnum=1512, mode=256, start=0, search=0x0)
    at readmsgs.cpp:1643
    #15 0x00007fec30f4ede5 in sbbs_t::exec_msg (this=0x7fec221457b0, csi=0x7fec221581a8) at execmsg.cpp:326
    #16 0x00007fec30f447d5 in sbbs_t::exec_function (this=0x7fec221457b0, csi=0x7fec221581a8) at execfunc.cpp:422
    #17 0x00007fec30f3a87e in sbbs_t::exec (this=0x7fec221457b0, csi=0x7fec221581a8) at exec.cpp:1216
    #18 0x00007fec3105c998 in node_thread (arg=0x7fec221457b0) at main.cpp:4518
    #19 0x00007fec30b87ac3 in start_thread (arg=<optimized out>) at ./nptl/pthread_create.c:442
    #20 0x00007fec30c19850 in clone3 () at ../sysdeps/unix/sysv/linux/x86_64/clone3.S:81
    ```
    I was using DDMsgReader at the time so may need input from Nightfox if we can find the offending line. Thanks.
    --- SBBSecho 3.20-Linux
    * Origin: Vertrauen - [vert/cvs/bbs].synchro.net (1:103/705)
  • From Rob Swindell@1:103/705 to GitLab issue in main/sbbs on Tue Aug 6 18:10:59 2024
    close https://gitlab.synchro.net/main/sbbs/-/issues/769
    --- SBBSecho 3.20-Linux
    * Origin: Vertrauen - [vert/cvs/bbs].synchro.net (1:103/705)
  • From Rob Swindell@1:103/705 to GitLab note in main/sbbs on Tue Aug 6 18:18:34 2024
    https://gitlab.synchro.net/main/sbbs/-/issues/769#note_5446

    Looks like one can reproduce this crash by calling `console.gotoxy(null)`
    --- SBBSecho 3.20-Linux
    * Origin: Vertrauen - [vert/cvs/bbs].synchro.net (1:103/705)