• syncdraw still broken

    From Ragnarok@1:103/705 to All on Wed Apr 10 10:20:09 2019
    Any change to add more debug info to help to solve the "load file" action on syncdraw?
    i really miss a native linux ansi editor. thanks all!

    Starting program: /home/toledones/src/sbbs-git/src/syncdraw/syncdraw
    [Thread debugging using libthread_db enabled]
    Using host libthread_db library "/lib/x86_64-linux-gnu/libthread_db.so.1".
    [New Thread 0x7ffff0c59700 (LWP 9877)]
    [New Thread 0x7fffebfff700 (LWP 9878)]
    [New Thread 0x7fffeb7fe700 (LWP 9879)]
    [New Thread 0x7fffeaffd700 (LWP 9880)]

    Thread 2 "SDL Main" received signal SIGSEGV, Segmentation fault.
    [Switching to Thread 0x7ffff0c59700 (LWP 9877)]
    strnlen () at ../sysdeps/x86_64/strlen.S:103
    103../sysdeps/x86_64/strlen.S: No existe el fichero o el directorio.
    (gdb) bt
    #0 strnlen () at ../sysdeps/x86_64/strlen.S:103
    #1 0x00007ffff6f0fdba in _IO_vfprintf_internal (s=s@entry=0x7ffff0c36210, format=<optimized out>, format@entry=0x55555558f33c "%-12.12s ",
    ap=ap@entry=0x7ffff0c36358) at vfprintf.c:1637
    #2 0x00007ffff6f31afb in __IO_vsprintf (string=0x7fffec00b0c0 "\310\a", format=0x55555558f33c "%-12.12s ", args=0x7ffff0c36358) at iovsprintf.c:42
    #3 0x000055555556a6c1 in bufprintf (buf=0x7ffff0c36460 "", attr=31, fmat=0x55555558f33c "%-12.12s ") at miscfunctions.c:560
    #4 0x000055555555e2f2 in load () at load.c:796
    #5 0x0000555555566025 in menuemode () at menue.c:256
    #6 0x0000555555563923 in CIOLIB_main (argnum=1, args=0x7fffffffe198) at syncdraw.c:1211
    #7 0x000055555557c74a in sdl_run_main (data=0x7fffffffe030) at sdlfuncs.c:317 #8 0x00007ffff6c42f38 in ?? () from /usr/lib/x86_64-linux-gnu/libSDL.so
    #9 0x00007ffff6c82dd9 in ?? () from /usr/lib/x86_64-linux-gnu/libSDL.so
    #10 0x00007ffff726e4a4 in start_thread (arg=0x7ffff0c59700) at pthread_create.c:456
    #11 0x00007ffff6fb0d0f in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:97
    (gdb)
    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 Wed Apr 10 11:37:03 2019
    Re: syncdraw still broken
    By: Ragnarok to All on Wed Apr 10 2019 10:20 am

    Any change to add more debug info to help to solve the "load file" action on syncdraw?
    i really miss a native linux ansi editor. thanks all!

    Starting program: /home/toledones/src/sbbs-git/src/syncdraw/syncdraw
    [Thread debugging using libthread_db enabled]
    Using host libthread_db library "/lib/x86_64-linux-gnu/libthread_db.so.1". [New Thread 0x7ffff0c59700 (LWP 9877)]
    [New Thread 0x7fffebfff700 (LWP 9878)]
    [New Thread 0x7fffeb7fe700 (LWP 9879)]
    [New Thread 0x7fffeaffd700 (LWP 9880)]

    Thread 2 "SDL Main" received signal SIGSEGV, Segmentation fault.
    [Switching to Thread 0x7ffff0c59700 (LWP 9877)]
    strnlen () at ../sysdeps/x86_64/strlen.S:103
    103../sysdeps/x86_64/strlen.S: No existe el fichero o el directorio.
    (gdb) bt
    #0 strnlen () at ../sysdeps/x86_64/strlen.S:103
    #1 0x00007ffff6f0fdba in _IO_vfprintf_internal (s=s@entry=0x7ffff0c36210, format=<optimized out>, format@entry=0x55555558f33c "%-12.12s ",
    ap=ap@entry=0x7ffff0c36358) at vfprintf.c:1637
    #2 0x00007ffff6f31afb in __IO_vsprintf (string=0x7fffec00b0c0 "\310\a", format=0x55555558f33c "%-12.12s ", args=0x7ffff0c36358) at iovsprintf.c:42 #3 0x000055555556a6c1 in bufprintf (buf=0x7ffff0c36460 "", attr=31, fmat=0x55555558f33c "%-12.12s ") at miscfunctions.c:560
    #4 0x000055555555e2f2 in load () at load.c:796
    #5 0x0000555555566025 in menuemode () at menue.c:256
    #6 0x0000555555563923 in CIOLIB_main (argnum=1, args=0x7fffffffe198) at syncdraw.c:1211
    #7 0x000055555557c74a in sdl_run_main (data=0x7fffffffe030) at sdlfuncs.c:317 #8 0x00007ffff6c42f38 in ?? () from /usr/lib/x86_64-linux-gnu/libSDL.so
    #9 0x00007ffff6c82dd9 in ?? () from /usr/lib/x86_64-linux-gnu/libSDL.so
    #10 0x00007ffff726e4a4 in start_thread (arg=0x7ffff0c59700) at pthread_create.c:456
    #11 0x00007ffff6fb0d0f in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:97
    (gdb)

    It looks like there's plenty of information there. strlen() is crashing, likely because the argument to bufprintf() called on line 796 of load.c, is an invalid pointer. Some kind of range checking of the x and z parameters in that code should likely fix it, but that's just a guess.

    digital man

    This Is Spinal Tap quote #4:
    David St. Hubbins: He died in a bizarre gardening accident...
    Norco, CA WX: 68.9°F, 25.0% humidity, 5 mph ESE wind, 0.00 inches rain/24hrs --- SBBSecho 3.07-Linux
    * Origin: Vertrauen - [vert/cvs/bbs].synchro.net (1:103/705)