Jump to content

htop is broken?


Go to solution Solved by Igor,

Recommended Posts

Hello,

 

While testing adding efuse_xlate to extract the efuse version for h616 'opiz2' so that h6 and h616 can coexist, found the following with htop.

 

Issue raised with: htop 2.2.0 aborting. Please report bug at  http://hisham.hm/htop  >>>> pointed me back here. 

 

Please have a look and let me know if help needed.

 

Thanks,

Alistair

 

Welcome to ARMBIAN!

Documentation: https://docs.armbian.com | Community: https://forum.armbian.com

IP address: 10.0.0.14

Create root password: *******
Repeat root password: *******

Shell: BASH

Creating a new user account. Press <Ctrl-C> to abort

Please provide a username (eg. your first name): alistair
Create user (alistair) password: *******
Repeat user (alistair) password: *******

Please provide your real name: Alistair

Dear Alistair, your account alistair has been created and is sudo enabled.
Please use this account for your daily work from now on.

Detected timezone: Africa/Johannesburg

Set user language based on your location? [Y/n] Y

At your location, more locales are possible:

1) af_ZA.UTF-8              4) xh_ZA.UTF-8
2) en_ZA.UTF-8              5) zu_ZA.UTF-8
3) st_ZA.UTF-8              6) Skip generating locales
Please enter your choice:2

Generating locales: en_ZA.UTF-8
root@orangepizero2:~# htop


htop 2.2.0 aborting. Please report bug at http://hisham.hm/htop

 Please include in your report the following backtrace:
htop(CRT_handleSIGSEGV+0x44)[0xaaaabbfc560c]
linux-vdso.so.1(__kernel_rt_sigreturn+0x0)[0xffffbd51d788]
/lib/aarch64-linux-gnu/libc.so.6(cfree+0x1c)[0xffffbd2bfc8c]
htop(String_freeArray+0x24)[0xaaaabbfb9624]
htop(Settings_delete+0x38)[0xaaaabbfb89c0]
htop(main+0x53c)[0xaaaabbfae13c]
/lib/aarch64-linux-gnu/libc.so.6(__libc_start_main+0xe8)[0xffffbd266e18]
htop(+0xe2c0)[0xaaaabbfae2c0]

Additionally, in order to make the above backtrace useful,
please also run the following command to generate a disassembly of your binary:

   objdump -d `which htop` > ~/htop.objdump

and then attach the file ~/htop.objdump to your bug report.

Thank you for helping to improve htop!

Aborted
root@orangepizero2:~#

 

Here is the objdump:

 

op1z2_htop.7z

 

Link to comment
Share on other sites

Thanks Leo,

 

That was straight from output of 'my' minimal test build conf. Built on win 7 virtual disk, I think mistakenly as oracle(64-bit) and not ubuntu, then quick check htop from root to see if the patches are working as expected.

 

It looks like old version, unsure why, haven't delved that deep into build scripts.

 

  ___  ____  _   _____             ____
 / _ \|  _ \(_) |__  /___ _ __ ___|___ \
| | | | |_) | |   / // _ \ '__/ _ \ __) |
| |_| |  __/| |  / /|  __/ | | (_) / __/
 \___/|_|   |_| /____\___|_|  \___/_____|

Welcome to Armbian 23.02.0-trunk Bullseye with Linux 5.19.17-sunxi64

No end-user support: built from trunk

System load:   2%               Up time:       4:00
Memory usage:  9% of 984M       IP:            10.0.0.14
CPU temp:      46°C             Usage of /:    10% of 29G

Tip of the day: Looking for snap-free Ubuntu for Intel / AMD? https://www.armbian.com/uefi-x86/

Last login: Thu Jan 19 00:18:56 2023 from 10.0.0.10
alistair@orangepizero2:~$ htop --version
htop 2.2.0 - (C) 2004-2020 Hisham Muhammad
Released under the GNU GPL.

alistair@orangepizero2:~$

 

Have now started build from older ubuntu(64-bit) virtual disk, really don't know if that difference could be reason, not so clued up on this part of things, and probably not an effect.

 

Will let you know effect of different build and update the 'oracle' builds htop.

 

 

 

 

Link to comment
Share on other sites

Well that strange apt says already latest?

 

alistair@orangepizero2:~$ sudo apt install htop
[sudo] password for alistair:
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
htop is already the newest version (3.1.0-0~armbian20.08.2+1).
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
alistair@orangepizero2:~$

 

Link to comment
Share on other sites

If am doing this right here result.

 

Cpufreq and temperature not displaying.

 

alistair@orangepizero2:~$ sudo apt remove htop
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
The following packages will be REMOVED:
  htop
0 upgraded, 0 newly installed, 1 to remove and 0 not upgraded.
After this operation, 257 kB disk space will be freed.
Do you want to continue? [Y/n] y
(Reading database ... 131780 files and directories currently installed.)
Removing htop (3.1.0-0~armbian20.08.2+1) ...
Processing triggers for man-db (2.9.4-2) ...
Processing triggers for mailcap (3.69) ...
Processing triggers for desktop-file-utils (0.26-1) ...
alistair@orangepizero2:~$ sudo apt install htop
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
Suggested packages:
  strace
The following NEW packages will be installed:
  htop
0 upgraded, 1 newly installed, 0 to remove and 0 not upgraded.
Need to get 88.5 kB of archives.
After this operation, 257 kB of additional disk space will be used.
Get:1 http://apt.armbian.com bullseye/bullseye-utils arm64 htop arm64 3.1.0-0~armbian20.08.2+1 [88.5 kB]
Fetched 88.5 kB in 3s (34.7 kB/s)
Selecting previously unselected package htop.
(Reading database ... 131772 files and directories currently installed.)
Preparing to unpack .../htop_3.1.0-0~armbian20.08.2+1_arm64.deb ...
Unpacking htop (3.1.0-0~armbian20.08.2+1) ...
Setting up htop (3.1.0-0~armbian20.08.2+1) ...
Processing triggers for mailcap (3.69) ...
Processing triggers for desktop-file-utils (0.26-1) ...
Processing triggers for man-db (2.9.4-2) ...
alistair@orangepizero2:~$ htop --version
htop 2.2.0 - (C) 2004-2020 Hisham Muhammad
Released under the GNU GPL.

 

Link to comment
Share on other sites

39 минут назад, ALIGMSTEN сказал:
Bullseye with Linux 5.19.17-sunxi64

Unfortunately, the system package from this OS will not work properly for CPU temperature and frequency.


I learned how to make the latest version from the developer's website:

https://github.com/htop-dev/htop/releases/tag/3.2.1

But it shows the processor frequency not constantly, but with some different time intervals. The temperature does not show at all.

 

The situation for today is like this. The old package that currently exists in the build system is either not being built (jammy) or is being built but does not work (Bullseye).

Link to comment
Share on other sites

Right thank you both for the reasons and solutions, to add must be bullseye here, because same issue with new build.

 

19 minutes ago, going said:

The situation for today is like this. The old package that currently exists in the build system is either not being built (jammy) or is being built but does not work (Bullseye).

 

Other info: from htop-dev

 

Quote

NB: htop relies on libsensors for temperature and fan readings, and libsensors is not known to the State of California (or us) to be particularly good on ARM (especially the Pi and its clones).

 

Link to comment
Share on other sites

5 минут назад, ALIGMSTEN сказал:

NB: htop relies on libsensors for temperature

 

pkg libsensors-config :
/etc/sensors3.conf      /etc/sensors.d/

Скрытый текст

# libsensors configuration file
# -----------------------------
#
# This default configuration file only includes statements which do not
# differ from one mainboard to the next. Only label, compute and set
# statements for internal voltage and temperature sensors are included.
#
# In general, local changes should not be added to this file, but rather
# placed in custom configuration files located in /etc/sensors.d. This
# approach makes further updates much easier.
#
# Such custom configuration files for specific mainboards can be found in
# "configs" directory of lm-sensors package.
#
# Please contribute back a configuration of your board so other users with
# the same hardware won't need to recreate it again and again.

chip "lm78-*" "lm79-*" "lm80-*" "lm96080-*"

   label temp1 "M/B Temp"


chip "w83792d-*"
..........

Now that Igor has cleared the repository of broken packages, you can install the system package and try to configure the library using this file

Link to comment
Share on other sites

12 часов назад, Женя Сидоров сказал:

Does htop avaible in future ?

Женя конечно ДА.

Of course YES.

Now it will be possible to install the package that is already provided by the base operating system.
In the future, perhaps we will collect the latest version being developed with our own fixes.

Link to comment
Share on other sites

Building from htop source on the board and configuring very simple exercise.

 

alistair@orangepizero2:~$ htop --version
htop 3.2.2-dev

 

libsensors finds thermal on device 'opiz2' without configuration. I had a try to use the library by writing to it in c++, unfortunately had numerous compile issues, have not been able to extract the info I wanted yet. Time intervals are as @going has noted I did not look at source, beyond build at all and did not find configuration option, could easily missed if there.

 

image.thumb.png.4547dd51d9cab7f3f3ec6ccb89c244f9.png

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
×
×
  • Create New...

Important Information

Terms of Use - Privacy Policy - Guidelines