#999588 cpufetch: Floating point exception

Package:
cpufetch
Source:
cpufetch
Description:
Simple yet fancy CPU architecture fetching tool
Submitter:
Axel Beckert
Date:
2021-11-18 17:15:04 UTC
Severity:
normal
#999588#5
Date:
2021-11-12 21:37:08 UTC
From:
To:
On one Xen DomU (i.e. a Xen guest VM; not the system I'm writing this
bug report on) running Debian Testing, I get the following error when
running cpufetch:

# cpufetch
Floating point exception

Details about the CPU:

# cat /proc/cpuinfo
processor       : 0
vendor_id       : GenuineIntel
cpu family      : 6
model           : 26
model name      : Intel(R) Core(TM) i7 CPU         920  @ 2.67GHz
stepping        : 5
microcode       : 0x11
cpu MHz         : 2673.428
cache size      : 8192 KB
physical id     : 0
siblings        : 1
core id         : 1
cpu cores       : 1
apicid          : 3
initial apicid  : 3
fpu             : yes
fpu_exception   : yes
cpuid level     : 11
wp              : yes
flags           : fpu de tsc msr pae cx8 apic sep cmov pat clflush mmx fxsr sse sse2 ht syscall nx lm constant_tsc rep_good nopl cpuid tsc_known_freq pni ssse3 cx16 sse4_1 sse4_2 popcnt hypervisor lahf_lm dtherm ida
bugs            : null_seg cpu_meltdown spectre_v1 spectre_v2 spec_store_bypass l1tf mds swapgs itlb_multihit
bogomips        : 5346.81
clflush size    : 64
cache_alignment : 64
address sizes   : 36 bits physical, 48 bits virtual
power management:

Trying to strace the call:

# strace cpufetch
execve("/usr/bin/cpufetch", ["cpufetch"], 0x7fff81e838d0 /* 23 vars */) = 0
brk(NULL)                               = 0x55b19526b000
openat(AT_FDCWD, "/usr/lib/olla/libolla.so", O_RDONLY|O_CLOEXEC) = 3
read(3, "\177ELF\2\1\1\0\0\0\0\0\0\0\0\0\3\0>\0\1\0\0\0\0\n\0\0\0\0\0\0"..., 832) = 832
fstat(3, {st_mode=S_IFREG|0644, st_size=6728, ...}) = 0
mmap(NULL, 8192, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x7fce2cea7000
mmap(NULL, 2102064, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 3, 0) = 0x7fce2cca5000
mprotect(0x7fce2cca7000, 2093056, PROT_NONE) = 0
mmap(0x7fce2cea6000, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x1000) = 0x7fce2cea6000
close(3)                                = 0
access("/etc/ld.so.preload", R_OK)      = -1 ENOENT (No such file or directory)
openat(AT_FDCWD, "/etc/ld.so.cache", O_RDONLY|O_CLOEXEC) = 3
fstat(3, {st_mode=S_IFREG|0644, st_size=80036, ...}) = 0
mmap(NULL, 80036, PROT_READ, MAP_PRIVATE, 3, 0) = 0x7fce2cc91000
close(3)                                = 0
openat(AT_FDCWD, "/lib/x86_64-linux-gnu/libc.so.6", O_RDONLY|O_CLOEXEC) = 3
read(3, "\177ELF\2\1\1\3\0\0\0\0\0\0\0\0\3\0>\0\1\0\0\0\200\177\2\0\0\0\0\0"..., 832) = 832
fstat(3, {st_mode=S_IFREG|0755, st_size=1839168, ...}) = 0
mmap(NULL, 1852480, PROT_READ, MAP_PRIVATE|MAP_DENYWRITE, 3, 0) = 0x7fce2cacc000
mprotect(0x7fce2caf2000, 1658880, PROT_NONE) = 0
mmap(0x7fce2caf2000, 1347584, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x26000) = 0x7fce2caf2000
mmap(0x7fce2cc3b000, 307200, PROT_READ, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x16f000) = 0x7fce2cc3b000
mmap(0x7fce2cc87000, 24576, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x1ba000) = 0x7fce2cc87000
mmap(0x7fce2cc8d000, 13376, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_ANONYMOUS, -1, 0) = 0x7fce2cc8d000
close(3)                                = 0
openat(AT_FDCWD, "/lib/x86_64-linux-gnu/libdl.so.2", O_RDONLY|O_CLOEXEC) = 3
read(3, "\177ELF\2\1\1\0\0\0\0\0\0\0\0\0\3\0>\0\1\0\0\0000\21\0\0\0\0\0\0"..., 832) = 832
fstat(3, {st_mode=S_IFREG|0644, st_size=18688, ...}) = 0
mmap(NULL, 20752, PROT_READ, MAP_PRIVATE|MAP_DENYWRITE, 3, 0) = 0x7fce2cac6000
mmap(0x7fce2cac7000, 8192, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x1000) = 0x7fce2cac7000
mmap(0x7fce2cac9000, 4096, PROT_READ, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x3000) = 0x7fce2cac9000
mmap(0x7fce2caca000, 8192, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x3000) = 0x7fce2caca000
close(3)                                = 0
mmap(NULL, 12288, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x7fce2cac3000
arch_prctl(ARCH_SET_FS, 0x7fce2cac3740) = 0
mprotect(0x7fce2cc87000, 12288, PROT_READ) = 0
mprotect(0x7fce2caca000, 4096, PROT_READ) = 0
mprotect(0x55b1947b7000, 4096, PROT_READ) = 0
mprotect(0x7fce2ced3000, 4096, PROT_READ) = 0
munmap(0x7fce2cc91000, 80036)           = 0
brk(NULL)                               = 0x55b19526b000
brk(0x55b19528c000)                     = 0x55b19528c000
openat(AT_FDCWD, "/sys/devices/system/cpu/cpu0/cpufreq/cpuinfo_max_freq", O_RDONLY) = -1 ENOENT (No such file or directory)
openat(AT_FDCWD, "/sys/devices/system/cpu/online", O_RDONLY|O_CLOEXEC) = 3
read(3, "0\n", 8192)                    = 2
close(3)                                = 0
sched_setaffinity(0, 128, [0])          = 0
--- SIGFPE {si_signo=SIGFPE, si_code=FPE_INTDIV, si_addr=0x55b1947aeb06} ---
+++ killed by SIGFPE +++
Floating point exception

Anything else I can provide?

#999588#12
Date:
2021-11-18 16:30:57 UTC
From:
To:
Axel Beckert <abe@debian.org> 于2021年11月13日周六 上午5:39写道:
1.0+git20211101+a5b321a9668f-3
Can you test it again and tell me the result? thanks

Kind regards
Clay Stan

#999588#17
Date:
2021-11-18 16:30:57 UTC
From:
To:
Axel Beckert <abe@debian.org> 于2021年11月13日周六 上午5:39写道:
1.0+git20211101+a5b321a9668f-3
Can you test it again and tell me the result? thanks

Kind regards
Clay Stan

#999588#22
Date:
2021-11-18 17:12:31 UTC
From:
To:
Hi,

clay stan wrote:
[…]

Well, this is weird and might have been like this before, but if so, I
didn't notice it:

It seems to be random if it works or crashes with a Floating point
exception. So, no, not really fixed although it sometimes seems so.

Some examples in chronological order:

As root:

# cpufetch




                                                              Name:              Intel Core i7 920
                                                              Microarchitecture: Nehalem
                                                              Technology:        45nm
                                                              Max Frequency:     Unknown
                                                              Cores:             1 cores (HT disabled)
                                                              AVX:               No
                                                              FMA:               No
                                                              L1i Size:          32KB
                                                              L1d Size:          32KB
                                                              L2 Size:           256KB
                                                              L3 Size:           8MB
                                                              Peak Performance:  Unknown




# cpufetch --style legacy
Floating point exception
# cpufetch --style legacy

                               ###############@
                       ######@                ######@
                  ###@                              ###@
              ##@                                     ###@    Name:              Intel Core i7 920
         ##@                                             ##@  Microarchitecture: Nehalem
         ##@                                             ##@  Technology:        45nm
      @                    ##@                ##@        ##@  Max Frequency:     Unknown
    #@   ##@   ########@   #####@   #####@    ##@        ##@  Cores:             1 cores (HT disabled)
   #@    ##@   ##@    ##@  ##@    ###@  ###@  ##@        ##@  AVX:               No
  #@     ##@   ##@    ##@  ##@    ##@    ##@  ##@       ##@   FMA:               No
 #@      ##@   ##@    ##@  ##@    #########@  ##@     ###@    L1i Size:          32KB
 #@      ##@   ##@    ##@  ##@    ##@         ##@   ####@     L1d Size:          32KB
 #@       #@   ##@    ##@   ####@  ########@   #@  ##@        L2 Size:           256KB
 ##@                                                          L3 Size:           8MB
  ##@                                                         Peak Performance:  Unknown
  ###@                                        ###@
    ####@                               #########@
      #########@               ###############@
          ##############################@
#

As user:

$ cpufetch
[1]    31108 floating point exception  cpufetch
$ cpufetch




                                                              Name:              Intel Core i7 920
                                                              Microarchitecture: Nehalem
                                                              Technology:        45nm
                                                              Max Frequency:     Unknown
                                                              Cores:             1 cores (HT disabled)
                                                              AVX:               No
                                                              FMA:               No
                                                              L1i Size:          32KB
                                                              L1d Size:          32KB
                                                              L2 Size:           256KB
                                                              L3 Size:           8MB
                                                              Peak Performance:  Unknown




$ cpufetch --style legacy

                               ###############@
                       ######@                ######@
                  ###@                              ###@
              ##@                                     ###@    Name:              Intel Core i7 920
         ##@                                             ##@  Microarchitecture: Nehalem
         ##@                                             ##@  Technology:        45nm
      @                    ##@                ##@        ##@  Max Frequency:     Unknown
    #@   ##@   ########@   #####@   #####@    ##@        ##@  Cores:             1 cores (HT disabled)
   #@    ##@   ##@    ##@  ##@    ###@  ###@  ##@        ##@  AVX:               No
  #@     ##@   ##@    ##@  ##@    ##@    ##@  ##@       ##@   FMA:               No
 #@      ##@   ##@    ##@  ##@    #########@  ##@     ###@    L1i Size:          32KB
 #@      ##@   ##@    ##@  ##@    ##@         ##@   ####@     L1d Size:          32KB
 #@       #@   ##@    ##@   ####@  ########@   #@  ##@        L2 Size:           256KB
 ##@                                                          L3 Size:           8MB
  ##@                                                         Peak Performance:  Unknown
  ###@                                        ###@
    ####@                               #########@
      #########@               ###############@
          ##############################@
$ cpufetch --style legacy
[1]    31695 floating point exception  cpufetch --style legacy
$ cpufetch --style legacy
[1]    31703 floating point exception  cpufetch --style legacy
$ cpufetch --style legacy
[1]    31711 floating point exception  cpufetch --style legacy
$ cpufetch --style legacy

                               ###############@
                       ######@                ######@
                  ###@                              ###@
              ##@                                     ###@    Name:              Intel Core i7 920
         ##@                                             ##@  Microarchitecture: Nehalem
         ##@                                             ##@  Technology:        45nm
      @                    ##@                ##@        ##@  Max Frequency:     Unknown
    #@   ##@   ########@   #####@   #####@    ##@        ##@  Cores:             1 cores (HT disabled)
   #@    ##@   ##@    ##@  ##@    ###@  ###@  ##@        ##@  AVX:               No
  #@     ##@   ##@    ##@  ##@    ##@    ##@  ##@       ##@   FMA:               No
 #@      ##@   ##@    ##@  ##@    #########@  ##@     ###@    L1i Size:          32KB
 #@      ##@   ##@    ##@  ##@    ##@         ##@   ####@     L1d Size:          32KB
 #@       #@   ##@    ##@   ####@  ########@   #@  ##@        L2 Size:           256KB
 ##@                                                          L3 Size:           8MB
  ##@                                                         Peak Performance:  Unknown
  ###@                                        ###@
    ####@                               #########@
      #########@               ###############@
          ##############################@

		Regards, Axel