• weird config logs dir error and umonitor crash

    From Ragnarok@1:103/705 to DOVE-Net.Synchronet_Programming_C+ on Mon Dec 3 03:36:19 2018
    i found a crash when umonitor try to read spam log

    Program received signal SIGSEGV, Segmentation fault.
    0x0000000000426989 in view_log (filename=0x7fffffff5940 "/sbbs/data/logs/spam.log", title=0x481346 "SPAM Log") at umonitor.c:414
    414
    read(buffile,buf,j);
    (gdb) bt
    #0 0x0000000000426989 in view_log (filename=0x7fffffff5940 "/sbbs/data/logs/spam.log", title=0x481346 "SPAM Log") at umonitor.c:414
    #1 0x0000000000427067 in view_logs (cfg=0x7fffffff80d0) at umonitor.c:506
    #2 0x00000000004298dc in main (argc=1, argv=0x7fffffffe108) at
    umonitor.c:1108
    (gdb)

    Then, when i research and verify my config scfg->system->advance->logs,
    i'm surprised to see that the value are ../data/
    .
    I update it to ../data/logs/ but now i have a /sbbs/data/logs/logs/ with
    the http log and daily logs here

    the sbbs.ini HttpLogFile are empty (as default)

    ---
    ■ Synchronet ■ Dock Sud BBS TLD 24 HS - http://bbs.docksud.com.ar - telnet://bbs.docksud.com.ar
    * Origin: Vertrauen - [vert/cvs/bbs].synchro.net (1:103/705)
  • From Digital Man@1:103/705 to Ragnarok on Mon Dec 3 12:57:57 2018
    Re: weird config logs dir error and umonitor crash
    By: Ragnarok to DOVE-Net.Synchronet_Programming_C+ on Mon Dec 03 2018 03:36 am

    i found a crash when umonitor try to read spam log

    Program received signal SIGSEGV, Segmentation fault.
    0x0000000000426989 in view_log (filename=0x7fffffff5940 "/sbbs/data/logs/spam.log", title=0x481346 "SPAM Log") at umonitor.c:414
    414
    read(buffile,buf,j);

    How big is your spam.log file? It might be too big to put on the stack (but I would expect the alloca to fail in that case).

    Then, when i research and verify my config scfg->system->advance->logs,
    i'm surprised to see that the value are ../data/

    That's the normal/default value.

    .
    I update it to ../data/logs/ but now i have a /sbbs/data/logs/logs/ with
    the http log and daily logs here

    Yeah, don't do that. Read the online help (F1 in SCFG) for that configuration setting.

    the sbbs.ini HttpLogFile are empty (as default)

    Okay.

    digital man

    Synchronet/BBS Terminology Definition #7:
    BinkP = BinkD Protocol
    Norco, CA WX: 65.7°F, 28.0% humidity, 4 mph WSW wind, 0.00 inches rain/24hrs --- SBBSecho 3.06-Linux
    * Origin: Vertrauen - [vert/cvs/bbs].synchro.net (1:103/705)
  • From Ragnarok@1:103/705 to Digital Man on Mon Dec 3 23:40:29 2018
    Re: weird config logs dir error and umonitor crash
    By: Digital Man to Ragnarok on Mon Dec 03 2018 12:57:57

    Re: weird config logs dir error and umonitor crash
    By: Ragnarok to DOVE-Net.Synchronet_Programming_C+ on Mon Dec 03 2018 03:36 am

    i found a crash when umonitor try to read spam log

    Program received signal SIGSEGV, Segmentation fault.
    0x0000000000426989 in view_log (filename=0x7fffffff5940 "/sbbs/data/logs/spam.log", title=0x481346 "SPAM Log") at umonitor.c:414 414
    read(buffile,buf,j);

    How big is your spam.log file? It might be too big to put on the stack (but I would expect the alloca to fail in that case).

    -rw------- 1 root root 8,3M dic 3 22:21 spam.log

    can i put it on logrotate to perform a daily cleanup?

    .
    I update it to ../data/logs/ but now i have a /sbbs/data/logs/logs/ with the http log and daily logs here

    Yeah, don't do that. Read the online help (F1 in SCFG) for that configuration setting.


    ok i reverted to ../data/
    thanks!

    Ragnarok
    ---
    Dock sud BBS
    http://bbs.docksud.com.ar
    ■ Synchronet ■ Dock Sud BBS TLD 24 HS - http://bbs.docksud.com.ar - telnet://bbs.docksud.com.ar
    * Origin: Vertrauen - [vert/cvs/bbs].synchro.net (1:103/705)
  • From Digital Man@1:103/705 to Ragnarok on Mon Dec 3 19:25:51 2018
    Re: weird config logs dir error and umonitor crash
    By: Ragnarok to Digital Man on Mon Dec 03 2018 11:40 pm

    Re: weird config logs dir error and umonitor crash
    By: Digital Man to Ragnarok on Mon Dec 03 2018 12:57:57

    Re: weird config logs dir error and umonitor crash
    By: Ragnarok to DOVE-Net.Synchronet_Programming_C+ on Mon Dec 03 2018 03:36 am

    i found a crash when umonitor try to read spam log

    Program received signal SIGSEGV, Segmentation fault. 0x0000000000426989 in view_log (filename=0x7fffffff5940 "/sbbs/data/logs/spam.log", title=0x481346 "SPAM Log") at umonitor.c:414 414
    read(buffile,buf,j);

    How big is your spam.log file? It might be too big to put on the stack (but I would expect the alloca to fail in that case).

    -rw------- 1 root root 8,3M dic 3 22:21 spam.log

    can i put it on logrotate to perform a daily cleanup?

    Sure. umonitor probably shouldn't be using alloca() to load/read log files, so that also should be fixed.

    digital man

    Synchronet/BBS Terminology Definition #16:
    DCD = Data Carrier Detect
    Norco, CA WX: 55.5°F, 35.0% humidity, 0 mph WSW wind, 0.00 inches rain/24hrs --- SBBSecho 3.06-Linux
    * Origin: Vertrauen - [vert/cvs/bbs].synchro.net (1:103/705)