bvaisvil / zenith

Zenith - sort of like top or htop but with zoom-able charts, CPU, GPU, network, and disk usage

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Aborted (core dump) on ARMv7 Linux

lexxvir opened this issue · comments

Hi @bvaisvil,

I've tried zenith 0.10.0 on the ARMv7 Linux board.
It is custom yocto-based Linux build:

# uname -a
Linux msm8909 3.18.71 #1 SMP PREEMPT Wed Aug 12 17:26:02 UTC 2020 armv7l armv7l armv7l GNU/Linux

I've cross-compiled zenith on Ubuntu 18.04 for the armv7-unknown-linux-gnueabihf target.
I always get crush at the startup.

# RUST_LOG=debug zenith --db=/tmp/zenith
[DEBUG zenith::render] Setup Constraints
[DEBUG zenith::render] Create Metrics App
[DEBUG zenith::metrics] Create Histogram Map
[DEBUG zenith::histogram] Opening DB
[DEBUG zenith::histogram] Starting a new database.

thread 'main' has overflowed its stack
fatal runtime error: stack overflow
Aborted (core dumped)

Db path need to be changed because home folder is read-only.

Thanks for reporting the error. I'll look into it. Is this board roughly similar to raspberry pi? I've got one of those around to test with.

I've reproduced the same behavior on RPi4. Also in this case I compiled zenith by the RPi itself (i.e. not cross-compiled from x86).

RPi info just in case:

$ cat /proc/cpuinfo 
processor	: 0
model name	: ARMv7 Processor rev 3 (v7l)
BogoMIPS	: 108.00
Features	: half thumb fastmult vfp edsp neon vfpv3 tls vfpv4 idiva idivt vfpd32 lpae evtstrm crc32 
CPU implementer	: 0x41
CPU architecture: 7
CPU variant	: 0x0
CPU part	: 0xd08
CPU revision	: 3

Hardware	: BCM2835
Model		: Raspberry Pi 4 Model B Rev 1.1

Thank you, that'll be helpful in tracking down the issue.

I was able to reproduce (on RPi3B) and narrow the issue down to System::new_all() which is the initializer for sysinfo. I think this may be related to issue: GuillaumeGomez/sysinfo#324

Zenith uses a fork of sysinfo to add some additional process information. So I think this may be fixed by updating the fork to a newer version of sysinfo

I confirmed that updating zenith's fork of sysinfo fixed the issue. I've got a little more testing to do before I update it for everyone though.

In my testing this is fixed - but if it isn't feel free to re-open.

I confirm, the issue is fixed.