• umonitor: Segmentation fault (core dumped)

    From Rampage@VERT/SESTAR to digital man on Sun Mar 15 11:03:42 2020
    i'm trying to view my sbbsecho.log file from umonitor...

    i've looked and adjusted things but still cannot get a core file to analyze... i've also apparently not done a proper job of pointing gdb to the source files but i have done the best i can running umonitor in gdb to get the following...


    /sbbs/data$ ls -la sbbsecho.log
    -rw------- 1 sbbs sbbs 15127005 Mar 15 10:43 sbbsecho.log


    blank lines added to the following to avoid word wrap muck...

    ----->8 snip 8<-----

    Thread 1 "umonitor" received signal SIGSEGV, Segmentation fault.

    0x000055555558140c in view_log (filename=0x7fffffff4bc0 "/sbbs/data/sbbsecho.log", title=0x5555555f37ce "SBBSEcho Log") at umonitor.c:414

    414 read(buffile,buf,j);

    (gdb) bt

    #0 0x000055555558140c in view_log (filename=0x7fffffff4bc0 "/sbbs/data/sbbsecho.log", title=0x5555555f37ce "SBBSEcho Log") at umonitor.c:414

    #1 0x0000555555581be8 in view_logs (cfg=0x7fffffff6310) at umonitor.c:510

    #2 0x000055555558476e in CIOLIB_main (argc=2, argv=0x7fffffffe418) at umonitor.c:1099

    #3 0x00005555555c1e54 in main (argc=2, argv=0x7fffffffe418, env=0x7fffffffe430) at sdlfuncs.c:443

    (gdb)

    ----->8 snip 8<-----

    i'm guessing the problem is the size of my sbbsecho.log but this could be handled more gracefully, i think...


    )\/(ark

    ---
    þ Synchronet þ The SouthEast Star Mail HUB - SESTAR
  • From Digital Man@VERT to Rampage on Sun Mar 15 12:55:29 2020
    Re: umonitor: Segmentation fault (core dumped)
    By: Rampage to digital man on Sun Mar 15 2020 11:03 am

    i'm trying to view my sbbsecho.log file from umonitor...

    i've looked and adjusted things but still cannot get a core file to analyze... i've also apparently not done a proper job of pointing gdb to the source files but i have done the best i can running umonitor in gdb to get the following...

    i'm guessing the problem is the size of my sbbsecho.log but this could be handled more gracefully, i think...

    Yes, it was allocating the memory for the call stack and 15MB is really too big for most stacks. I just committed a change to allocate that memory from the heap instead. Give that a shot.

    digital man

    Synchronet/BBS Terminology Definition #54:
    Phreak = Telephone system hack[er]
    Norco, CA WX: 57.6øF, 74.0% humidity, 1 mph NW wind, 0.00 inches rain/24hrs

    ---
    þ Synchronet þ Vertrauen þ Home of Synchronet þ [vert/cvs/bbs].synchro.net
  • From Rampage@VERT/SESTAR to Digital Man on Sun Mar 15 16:29:21 2020
    Re: umonitor: Segmentation fault (core dumped)
    By: Digital Man to Rampage on Sun Mar 15 2020 12:55:29


    Rampage>> i'm guessing the problem is the size of my sbbsecho.log but this could
    Rampage>> be handled more gracefully, i think...

    Yes, it was allocating the memory for the call stack and 15MB is really too
    big for most stacks.

    no doubt, eh? :)


    I just committed a change to allocate that memory from the heap instead. Give
    that a shot.

    it seems to work now... thanks :)


    )\/(ark

    ---
    þ Synchronet þ The SouthEast Star Mail HUB - SESTAR