Skip to content
This repository has been archived by the owner on Sep 8, 2020. It is now read-only.

htop crashes at start on system with more than 100 cores #997

Open
dkasper26 opened this issue May 6, 2020 · 1 comment
Open

htop crashes at start on system with more than 100 cores #997

dkasper26 opened this issue May 6, 2020 · 1 comment

Comments

@dkasper26
Copy link

htop-2.2.0-4.fc30.x86_64
just type 'htop' will result in 'Segmentation fault (core dumped)' always

$ lscpu
Architecture: x86_64
(...)
CPU(s): 104
On-line CPU(s) list: 0-103
Thread(s) per core: 2
Core(s) per socket: 26
Socket(s): 2
(...)
Model name: Intel(R) Xeon(R) Platinum 8270 CPU @ 2.70GHz(gdb)

$ gdb ...
Starting program: /usr/bin/htop

Program received signal SIGSEGV, Segmentation fault.
0x00007ffff7f8c7a9 in termattrs_sp () from /lib/libncursesw.so.6
(gdb)

I can reproduce it quick and easy

@natoscott
Copy link
Collaborator

@dkasper26 I just tried reproducing this on a 144 CPU el7 machine, but htop runs without issues there. Tried both the 2.2.0 release and master branch, both ran fine.

I did have to build with --disable-unicode since addnwstr is not present in libncurses[w] there - perhaps the problem could be related? The gdb header from your report also points this way.
Could you provide the rest of the stack trace? ('bt' at your gdb command prompt)

And also as another data point try a build with Unicode to see if the problem goes away?

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants