andmarti1424 / sc-im

sc-im - Spreadsheet Calculator Improvised -- An ncurses spreadsheet program for terminal
Other
4.77k stars 201 forks source link

sc script with csv produces segfault #846

Closed dinosv closed 10 months ago

dinosv commented 10 months ago

First, thanks andmarti1424 for the effort of providing an usable and modern terminal spreadsheet program.

I reinstalled my OS (Debian 12), and it seems that broke sc-im.

Code to reproduce:

cat test.sc | sc-im

content of test.sc

EXECUTE "load test.csv"

content of test.csv

10,20

Version

sc-im - version 0.8.4
-DNCURSES
-DMAXROWS 65536
-DUNDO
-DDEFAULT_COPY_TO_CLIPBOARD_CMD="xclip -i -selection clipboard <"
-DDEFAULT_PASTE_FROM_CLIPBOARD_CMD="xclip -o -selection clipboard"
-DDEFAULT_OPEN_FILE_UNDER_CURSOR_CMD="scopen"
-DUSELOCALE
-DMOUSE
-DUSECOLORS
-D_XOPEN_SOURCE_EXTENDED
-D_GNU_SOURCE
-DSNAME="sc-im"
-DHELP_PATH="/usr/local/share/sc-im"
-DLIBDIR="/usr/local/share/doc/sc-im"
-DDFLT_PAGER="less"
-DDFLT_EDITOR="vim"
-DCONFIG_DIR=".config/sc-im"
-DCONFIG_FILE="scimrc"
-DHISTORY_DIR=".cache"
-DHISTORY_FILE="sc-iminfo"
-DINS_HISTORY_FILE="sc-iminfo"
-DHAVE_PTHREAD
-DAUTOBACKUP

ldd

        linux-vdso.so.1 (0x00007ffe3bba9000)
        libm.so.6 => /lib/x86_64-linux-gnu/libm.so.6 (0x00007f66a9f72000)
        libncursesw.so.6 => /lib/x86_64-linux-gnu/libncursesw.so.6 (0x00007f66a9f39000)
        libtinfo.so.6 => /lib/x86_64-linux-gnu/libtinfo.so.6 (0x00007f66a9f04000)
        libc.so.6 => /lib/x86_64-linux-gnu/libc.so.6 (0x00007f66a9d22000)
        /lib64/ld-linux-x86-64.so.2 (0x00007f66aa0df000)
andmarti1424 commented 10 months ago

I am afraid I cannot reproduce this.

dinosv commented 10 months ago

Finally, installed the distribution version (0.8.3). No problem now. Will monitor to see what happened.