Package: hexedit
Version: 1.5-1
Severity: important
Usertags: crash

hexedit crashes (SIGFPE) with empty files. This did not happen in past
versions, so this is a regression. I'm not sure when it occurred. I am
assuming that the SIGFPE is caused by a division by zero since it
doesn't occur when the file isn't empty.

$ > foo
$ gdb -batch -n -ex 'set pagination off' -ex run -ex bt -ex 'bt full' -ex 
'thread apply all bt full' -tty=/dev/null  --args hexedit foo
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/lib/x86_64-linux-gnu/libthread_db.so.1".

Program received signal SIGFPE, Arithmetic exception.
0x0000555555557738 in display () at display.c:208
208     display.c: No such file or directory.
#0  0x0000555555557738 in display () at display.c:208
#1  0x0000555555556515 in main (argc=<optimized out>, argv=<optimized out>) at 
hexedit.c:104
#0  0x0000555555557738 in display () at display.c:208
        i = <optimized out>
#1  0x0000555555556515 in main (argc=<optimized out>, argv=<optimized out>) at 
hexedit.c:104
No locals.

Thread 1 (Thread 0x7ffff7d43740 (LWP 486589)):
#0  0x0000555555557738 in display () at display.c:208
        i = <optimized out>
#1  0x0000555555556515 in main (argc=<optimized out>, argv=<optimized out>) at 
hexedit.c:104
No locals.


-- System Information:
Debian Release: bullseye/sid
  APT prefers testing-debug
  APT policy: (900, 'testing-debug'), (900, 'testing'), (800, 
'unstable-debug'), (800, 'unstable'), (790, 'buildd-unstable'), (700, 
'experimental-debug'), (700, 'experimental'), (690, 'buildd-experimental')
Architecture: amd64 (x86_64)

Kernel: Linux 5.8.0-2-amd64 (SMP w/4 CPU threads)
Locale: LANG=en_AU.utf8, LC_CTYPE=en_AU.utf8 (charmap=UTF-8), LANGUAGE=en_AU:en
Shell: /bin/sh linked to /bin/dash
Init: systemd (via /run/systemd/system)
LSM: AppArmor: enabled

Versions of packages hexedit depends on:
ii  libc6        2.31-3
ii  libncurses6  6.2+20200918-1
ii  libtinfo6    6.2+20200918-1

hexedit recommends no packages.

hexedit suggests no packages.

-- no debconf information

-- 
bye,
pabs

https://wiki.debian.org/PaulWise

Attachment: signature.asc
Description: This is a digitally signed message part

Reply via email to