slang-users mailing list

[2023 Date Index] [2023 Thread Index] [Other years]
[Thread Prev] [Thread Next]      [Date Prev] [Date Next]

[slang-users] Possible FPE in tt_sprintf()


Hello,

mc is one application that uses the S-Lang library. While running mc on
Ubuntu 22.04, we observed one FPE bug as follows:

Program received signal SIGFPE, Arithmetic exception.
0x00007ffde904e6fe in tt_sprintf (buf=0x7fffffffdab0
"{1000}/\203\065\065.2X/0.2X\033\\", buflen=1024, fmt=0x5555556ba925
"%2.2X\033\\", x=0, y=0) at ./src/sldisply.c:644
644 ./src/sldisply.c: No such file or directory.
(gdb) bt
#0  0x00007ffde904e6fe in tt_sprintf (buf=0x7fffffffdab0
"{1000}/\203\065\065.2X/0.2X\033\\", buflen=1024, fmt=0x5555556ba925
"%2.2X\033\\", x=0, y=0) at ./src/sldisply.c:644
#1  0x00007ffde904ec4e in tt_printf (fmt=0x5555556ba91d
"{1000}%/%2.2X\033\\", x=0, y=0) at ./src/sldisply.c:759
#2  0x00007ffde9050c3c in write_attributes (fgbg=1792) at
./src/sldisply.c:1708
#3  0x00007ffde9050ccf in SLtt_reverse_video (color=0) at
./src/sldisply.c:1737
#4  0x00007ffde9050ce9 in SLtt_normal_video () at ./src/sldisply.c:1742
#5  0x00007ffde9053c47 in SLtt_reset_video () at ./src/sldisply.c:3176
#6  0x00007ffde9095a22 in SLsmg_reset_smg () at ./src/slsmg.c:1676
#7  0x00007ffde909593d in init_smg_for_mode (mode=1) at ./src/slsmg.c:1625
#8  0x00007ffde90959a4 in SLsmg_init_smg () at ./src/slsmg.c:1645
#9  0x0000555555573792 in ?? ()
#10 0x00007ffde9429d90 in __libc_start_call_main
(main=main@entry=0x555555571450,
argc=argc@entry=1, argv=argv@entry=0x7fffffffe2c8)
    at ../sysdeps/nptl/libc_start_call_main.h:58
#11 0x00007ffde9429e40 in __libc_start_main_impl (main=0x555555571450,
argc=1, argv=0x7fffffffe2c8, init=<optimized out>, fini=<optimized out>,
    rtld_fini=<optimized out>, stack_end=0x7fffffffe2b8) at
../csu/libc-start.c:392
#12 0x0000555555575135 in ?? ()


*The version information of mc and S-Lang:*

GNU Midnight Commander 4.8.27
Built with GLib 2.68.4
Built with S-Lang 2.3.2 with terminfo database
With builtin Editor and Aspell support
With subshell support as default
With support for background operations
With mouse support on xterm and Linux console
With support for X11 events
With internationalization support
With multiple codepages support
With ext2fs attributes support
Virtual File Systems:
 cpiofs, tarfs, sfs, extfs, ext2undelfs, ftpfs, sftpfs, fish
Data types:
 char: 8; int: 32; long: 64; void *: 64; size_t: 64; off_t: 64;


*The steps to reproduce:*

Copy the attached file to ~/.terminfo/x/
Run mc


----
Kind Regards,
Jerry Meng

Attachment: xterm-256color
Description: Binary data


[2023 date index] [2023 thread index]
[Thread Prev] [Thread Next]      [Date Prev] [Date Next]