Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[BUG] Crash in btop 1.3.2 #843

Open
sztomi opened this issue May 9, 2024 · 0 comments
Open

[BUG] Crash in btop 1.3.2 #843

sztomi opened this issue May 9, 2024 · 0 comments
Assignees
Labels
bug Something isn't working

Comments

@sztomi
Copy link

sztomi commented May 9, 2024

Describe the bug

Lately I've been getting crashes in btop every couple of days. This might be Fedora-specific (I'm going to report there as well), but I thought it might be relevant for upstream as well.

I'm not doing anything special, just running btop in a window for an extended time (a couple days pass until a crash occurs). After the crash, the terminal is in a weird state with no cursor and some terminal escape sequences dumped as clear text. reset brings it back to normal.

To Reproduce

I'm not sure how to reproduce this crash, I'm not even interacting with btop.

Expected behavior

btop should run for an extended period of time without crashing.

Screenshots

n/a

Info (please complete the following information):

  • btop++ version: btop --version: 1.3.2
    • If using snap: snap info btop
  • Binary: Binary from Fedora btop/1.3.2-1.fc39
  • Architecture: [x86_64, aarch64, etc.] uname -m: x86_64
  • Platform: [Linux, FreeBSD, OsX]: Linux (Fedora 39, but also 40 just recently)
  • (Linux) Kernel: uname -r: 6.1.89-200.fc40.x86_64
  • (OSX/FreeBSD) Os release version: n/a
  • Terminal used: kitty
  • Font used: Iosevka Custom Extended

Additional context

Contents of ~/.config/btop/btop.log

2024/02/12 (12:13:13) | ===> btop++ v.1.3.0
2024/02/12 (12:13:13) | ERROR: Stall in Runner thread, restarting!
2024/02/13 (16:24:13) | ERROR: Stall in Runner thread, restarting!
2024/02/16 (10:11:42) | ERROR: Stall in Runner thread, restarting!
2024/02/17 (19:04:52) | ERROR: Stall in Runner thread, restarting!
2024/02/18 (10:39:43) | ERROR: Stall in Runner thread, restarting!

2024/02/19 (12:43:46) | ===> btop++ v.1.3.0
2024/02/19 (12:43:46) | ERROR: Stall in Runner thread, restarting!
2024/02/19 (23:17:06) | ERROR: Stall in Runner thread, restarting!

2024/02/21 (10:03:59) | ===> btop++ v.1.3.0
2024/02/21 (10:03:59) | ERROR: Stall in Runner thread, restarting!
2024/02/22 (09:41:57) | ERROR: Stall in Runner thread, restarting!
2024/02/23 (00:05:27) | ERROR: Stall in Runner thread, restarting!
2024/02/23 (10:30:09) | ERROR: Stall in Runner thread, restarting!
2024/02/24 (10:37:32) | ERROR: Stall in Runner thread, restarting!
2024/02/25 (12:34:06) | ERROR: Stall in Runner thread, restarting!
2024/02/26 (10:17:27) | ERROR: Stall in Runner thread, restarting!
2024/02/27 (11:02:05) | ERROR: Stall in Runner thread, restarting!

2024/02/28 (10:36:14) | ===> btop++ v.1.3.2
2024/02/28 (10:36:14) | ERROR: Stall in Runner thread, restarting!
2024/02/28 (23:28:51) | ERROR: Stall in Runner thread, restarting!
2024/02/29 (11:10:37) | ERROR: Stall in Runner thread, restarting!
2024/03/01 (11:27:05) | ERROR: Stall in Runner thread, restarting!
2024/03/02 (13:03:41) | ERROR: Stall in Runner thread, restarting!
2024/03/03 (11:55:16) | ERROR: Stall in Runner thread, restarting!
2024/03/04 (13:01:00) | ERROR: Stall in Runner thread, restarting!

2024/03/05 (10:00:53) | ===> btop++ v.1.3.2
2024/03/05 (10:00:53) | ERROR: Stall in Runner thread, restarting!

2024/03/06 (11:30:25) | ===> btop++ v.1.3.2
2024/03/06 (11:30:25) | ERROR: Stall in Runner thread, restarting!

2024/03/07 (10:51:52) | ===> btop++ v.1.3.2
2024/03/07 (10:51:52) | ERROR: Stall in Runner thread, restarting!

2024/03/08 (12:00:39) | ===> btop++ v.1.3.2
2024/03/08 (12:00:39) | ERROR: Stall in Runner thread, restarting!
2024/03/09 (09:05:01) | ERROR: Stall in Runner thread, restarting!
2024/03/09 (19:20:21) | ERROR: Stall in Runner thread, restarting!
2024/03/09 (19:20:41) | ERROR: Stall in Runner thread, restarting!
2024/03/09 (19:20:53) | ERROR: Stall in Runner thread, restarting!
2024/03/09 (19:21:10) | ERROR: Stall in Runner thread, restarting!
2024/03/09 (19:22:16) | ERROR: Stall in Runner thread, restarting!
2024/03/09 (19:22:56) | ERROR: Stall in Runner thread, restarting!
2024/03/09 (19:23:08) | ERROR: Stall in Runner thread, restarting!
2024/03/09 (19:23:20) | ERROR: Stall in Runner thread, restarting!
2024/03/09 (19:23:28) | ERROR: Stall in Runner thread, restarting!
2024/03/09 (19:23:39) | ERROR: Stall in Runner thread, restarting!
2024/03/09 (19:23:47) | ERROR: Stall in Runner thread, restarting!
2024/03/09 (19:23:57) | ERROR: Stall in Runner thread, restarting!
2024/03/09 (19:24:04) | ERROR: Stall in Runner thread, restarting!
2024/03/09 (19:24:28) | ERROR: Stall in Runner thread, restarting!

2024/03/13 (10:04:24) | ===> btop++ v.1.3.2
2024/03/13 (10:04:24) | ERROR: Stall in Runner thread, restarting!

2024/03/17 (11:10:31) | ===> btop++ v.1.3.2
2024/03/17 (11:10:31) | ERROR: Stall in Runner thread, restarting!

2024/03/18 (08:31:44) | ===> btop++ v.1.3.2
2024/03/18 (08:31:44) | ERROR: Stall in Runner thread, restarting!
2024/03/19 (09:55:45) | ERROR: Stall in Runner thread, restarting!
2024/03/20 (09:43:03) | ERROR: Stall in Runner thread, restarting!

2024/03/28 (10:45:09) | ===> btop++ v.1.3.2
2024/03/28 (10:45:09) | ERROR: Stall in Runner thread, restarting!

2024/03/29 (10:00:31) | ===> btop++ v.1.3.2
2024/03/29 (10:00:31) | ERROR: Stall in Runner thread, restarting!

2024/04/02 (09:43:29) | ===> btop++ v.1.3.2
2024/04/02 (09:43:29) | ERROR: Stall in Runner thread, restarting!

2024/04/03 (09:12:24) | ===> btop++ v.1.3.2
2024/04/03 (09:12:24) | ERROR: Stall in Runner thread, restarting!

2024/04/04 (09:35:06) | ===> btop++ v.1.3.2
2024/04/04 (09:35:06) | ERROR: Stall in Runner thread, restarting!
2024/04/04 (23:25:31) | ERROR: Stall in Runner thread, restarting!
2024/04/05 (10:11:01) | ERROR: Stall in Runner thread, restarting!

2024/04/07 (15:53:45) | ===> btop++ v.1.3.2
2024/04/07 (15:53:45) | ERROR: Stall in Runner thread, restarting!
2024/04/07 (16:23:09) | ERROR: Stall in Runner thread, restarting!

2024/04/09 (09:32:35) | ===> btop++ v.1.3.2
2024/04/09 (09:32:35) | ERROR: Stall in Runner thread, restarting!
2024/04/09 (14:14:09) | ERROR: Stall in Runner thread, restarting!
2024/04/12 (22:25:29) | ERROR: Stall in Runner thread, restarting!

2024/04/16 (11:05:35) | ===> btop++ v.1.3.2
2024/04/16 (11:05:35) | ERROR: Stall in Runner thread, restarting!

2024/04/20 (11:49:21) | ===> btop++ v.1.3.2
2024/04/20 (11:49:21) | ERROR: Stall in Runner thread, restarting!

2024/04/24 (14:30:42) | ===> btop++ v.1.3.2
2024/04/24 (14:30:42) | ERROR: Stall in Runner thread, restarting!

2024/04/30 (11:24:34) | ===> btop++ v.1.3.2
2024/04/30 (11:24:34) | ERROR: Stall in Runner thread, restarting!
2024/05/01 (14:22:15) | ERROR: Stall in Runner thread, restarting!
2024/05/01 (19:42:44) | ERROR: Stall in Runner thread, restarting!
2024/05/02 (12:23:33) | ERROR: Stall in Runner thread, restarting!
2024/05/03 (11:02:01) | ERROR: Stall in Runner thread, restarting!

2024/05/06 (12:40:15) | ===> btop++ v.1.3.2
2024/05/06 (12:40:15) | ERROR: Stall in Runner thread, restarting!

2024/05/07 (11:30:30) | ===> btop++ v.1.3.2
2024/05/07 (11:30:30) | ERROR: Stall in Runner thread, restarting!
2024/05/08 (10:40:00) | ERROR: Stall in Runner thread, restarting!
2024/05/09 (11:36:24) | ERROR: Stall in Runner thread, restarting!

It looks like Stall in Runner thread, restarting! coincides with the crash (bar a few seconds). For completeness, coredumpctl lists the following crashes on my system:

TIME                             PID  UID  GID SIG     COREFILE EXE             SIZE
Sun 2024-02-18 10:39:45 CET    66383 1000 1000 SIGABRT missing  /usr/bin/btop      -
Mon 2024-02-19 23:17:08 CET  1800059 1000 1000 SIGABRT missing  /usr/bin/btop      -
Tue 2024-02-27 11:02:08 CET  2158319 1000 1000 SIGABRT missing  /usr/bin/btop      -
Mon 2024-03-04 13:01:03 CET   799199 1000 1000 SIGABRT missing  /usr/bin/btop      -
Tue 2024-03-05 10:00:55 CET  2728784 1000 1000 SIGABRT missing  /usr/bin/btop      -
Wed 2024-03-06 11:30:27 CET  2918685 1000 1000 SIGABRT missing  /usr/bin/btop      -
Thu 2024-03-07 10:51:54 CET  3098213 1000 1000 SIGABRT missing  /usr/bin/btop      -
Wed 2024-03-13 10:04:26 CET     6033 1000 1000 SIGABRT missing  /usr/bin/btop      -
Sun 2024-03-17 11:10:33 CET  2176201 1000 1000 SIGABRT missing  /usr/bin/btop      -
Wed 2024-03-20 09:43:04 CET  2405689 1000 1000 SIGABRT missing  /usr/bin/btop      -
Thu 2024-03-28 10:45:11 CET   570858 1000 1000 SIGABRT missing  /usr/bin/btop      -
Wed 2024-04-03 09:12:26 CEST 1828000 1000 1000 SIGABRT missing  /usr/bin/btop      -
Fri 2024-04-05 10:11:04 CEST 2199085 1000 1000 SIGABRT missing  /usr/bin/btop      -
Sun 2024-04-07 16:23:09 CEST 3118394 1000 1000 SIGABRT missing  /usr/bin/btop      -
Fri 2024-04-12 22:25:32 CEST 3187773 1000 1000 SIGABRT missing  /usr/bin/btop      -
Tue 2024-04-16 11:05:38 CEST 4048104 1000 1000 SIGABRT missing  /usr/bin/btop      -
Sat 2024-04-20 11:49:23 CEST   88530 1000 1000 SIGABRT missing  /usr/bin/btop      -
Wed 2024-04-24 14:30:45 CEST  289726 1000 1000 SIGABRT present  /usr/bin/btop 676.4K
Fri 2024-05-03 11:02:04 CEST  725139 1000 1000 SIGABRT present  /usr/bin/btop   1.7M
Mon 2024-05-06 12:40:16 CEST   12462 1000 1000 SIGABRT present  /usr/bin/btop 527.7K

So there is some correlation, but not all time. Particularly, note that the logs from 2024/05/07 were from my own compiled btop from master and it did not crash. The 1.7M dump is a different crash which I will report separately. The last one (PID 12462) is identical to the one I'm reporting here (PID 289726).

Backtrace

           PID: 289726 (btop)
           UID: 1000 (tamas)
           GID: 1000 (tamas)
        Signal: 6 (ABRT)
     Timestamp: Wed 2024-04-24 14:30:45 CEST (2 weeks 0 days ago)
  Command Line: btop
    Executable: /usr/bin/btop
 Control Group: /user.slice/user-1000.slice/user@1000.service/app.slice/app-gnome-kitty-1827614.scope
          Unit: user@1000.service
     User Unit: app-gnome-kitty-1827614.scope
         Slice: user-1000.slice
     Owner UID: 1000 (tamas)
       Boot ID: f42d80b77aed449fb3e9fa279ac3dfed
    Machine ID: 8286faa99f954fb097775124f72b276a
      Hostname: mamut
       Storage: /var/lib/systemd/coredump/core.btop.1000.f42d80b77aed449fb3e9fa279ac3dfed.289726.1713961845000000.zst (present)
  Size on Disk: 676.4K
       Package: btop/1.3.2-1.fc39
      build-id: c9b3a094508d658ce740af40137dc483e6ec608d
       Message: Process 289726 (btop) of user 1000 dumped core.
                
                Module btop from rpm btop-1.3.2-1.fc39.x86_64
                Stack trace of thread 289733:
                #0  0x00007f1eaaaae834 __pthread_kill_implementation (libc.so.6 + 0x90834)
                #1  0x00007f1eaaa5c8ee raise (libc.so.6 + 0x3e8ee)
                #2  0x00007f1eaaa448ff abort (libc.so.6 + 0x268ff)
                #3  0x00007f1eaaca4d39 __gnu_cxx::__verbose_terminate_handler() [clone .cold] (libstdc++.so.6 + 0xa4d39)
                #4  0x00007f1eaacb4f6c __cxxabiv1::__terminate(void (*)()) (libstdc++.so.6 + 0xb4f6c)
                #5  0x00007f1eaacb4fd7 std::terminate() (libstdc++.so.6 + 0xb4fd7)
                #6  0x000055e37e8560da Gpu::collect(bool) (btop + 0xe80da)
                #7  0x000055e37e7b5d26 Runner::_runner(void*) (btop + 0x47d26)
                #8  0x00007f1eaaaac897 start_thread (libc.so.6 + 0x8e897)
                #9  0x00007f1eaab33a5c __clone3 (libc.so.6 + 0x115a5c)
                
                Stack trace of thread 289726:
                #0  0x00007f1eaaaf7163 clock_nanosleep@GLIBC_2.2.5 (libc.so.6 + 0xd9163)
                #1  0x00007f1eaab09c97 __nanosleep (libc.so.6 + 0xebc97)
                #2  0x000055e37e877c8e Tools::atomic_wait_for(std::atomic<bool> const&, bool, unsigned long) [clone .constprop.0] (btop + 0x109c8e)
                #3  0x000055e37e7b2470 Runner::run(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, bool, bool) (btop + 0x44470)
                #4  0x000055e37e796c9b main (btop + 0x28c9b)
                #5  0x00007f1eaaa4614a __libc_start_call_main (libc.so.6 + 0x2814a)
                #6  0x00007f1eaaa4620b __libc_start_main@@GLIBC_2.34 (libc.so.6 + 0x2820b)
                #7  0x000055e37e7ae215 _start (btop + 0x40215)
                
                Stack trace of thread 392111:
                #0  0x00007f1eaaaf7163 clock_nanosleep@GLIBC_2.2.5 (libc.so.6 + 0xd9163)
                #1  0x00007f1eaab09c97 __nanosleep (libc.so.6 + 0xebc97)
                #2  0x00007f1eaab335bc usleep (libc.so.6 + 0x1155bc)
                #3  0x00007f1e9c04ff60 nvmlDeviceGetPcieThroughput (libnvidia-ml.so + 0x4ff60)
                #4  0x000055e37e86c16c std::thread::_State_impl<std::thread::_Invoker<std::tuple<Gpu::Nvml::collect<false>(Gpu::gpu_info*)::{lambda()#1}> > >::_M_run() (btop + 0xfe16c)
                #5  0x00007f1eaace33c3 execute_native_thread_routine (libstdc++.so.6 + 0xe33c3)
                #6  0x00007f1eaaaac897 start_thread (libc.so.6 + 0x8e897)
                #7  0x00007f1eaab33a5c __clone3 (libc.so.6 + 0x115a5c)
                
                Stack trace of thread 392251:
                #0  0x00007f1eaaaa9169 __futex_abstimed_wait_common (libc.so.6 + 0x8b169)
                #1  0x00007f1eaaaae5d3 __pthread_clockjoin_ex (libc.so.6 + 0x905d3)
                #2  0x00007f1eaace3437 std::thread::join() (libstdc++.so.6 + 0xe3437)
                #3  0x000055e37e8545f4 Gpu::collect(bool) (btop + 0xe65f4)
                #4  0x000055e37e7b5d26 Runner::_runner(void*) (btop + 0x47d26)
                #5  0x00007f1eaaaac897 start_thread (libc.so.6 + 0x8e897)
                #6  0x00007f1eaab33a5c __clone3 (libc.so.6 + 0x115a5c)
                
                Stack trace of thread 392254:
                #0  0x00007f1eaaaf7163 clock_nanosleep@GLIBC_2.2.5 (libc.so.6 + 0xd9163)
                #1  0x00007f1eaab09c97 __nanosleep (libc.so.6 + 0xebc97)
                #2  0x00007f1eaab335bc usleep (libc.so.6 + 0x1155bc)
                #3  0x00007f1e9c04ff60 nvmlDeviceGetPcieThroughput (libnvidia-ml.so + 0x4ff60)
                #4  0x000055e37e86c16c std::thread::_State_impl<std::thread::_Invoker<std::tuple<Gpu::Nvml::collect<false>(Gpu::gpu_info*)::{lambda()#1}> > >::_M_run() (btop + 0xfe16c)
                #5  0x00007f1eaace33c3 execute_native_thread_routine (libstdc++.so.6 + 0xe33c3)
                #6  0x00007f1eaaaac897 start_thread (libc.so.6 + 0x8e897)
                #7  0x00007f1eaab33a5c __clone3 (libc.so.6 + 0x115a5c)
                
                Stack trace of thread 392112:
                #0  0x00007f1eaaaf7163 clock_nanosleep@GLIBC_2.2.5 (libc.so.6 + 0xd9163)
                #1  0x00007f1eaab09c97 __nanosleep (libc.so.6 + 0xebc97)
                #2  0x00007f1eaab335bc usleep (libc.so.6 + 0x1155bc)
                #3  0x00007f1e9c04ff60 nvmlDeviceGetPcieThroughput (libnvidia-ml.so + 0x4ff60)
                #4  0x000055e37e86bf6f std::thread::_State_impl<std::thread::_Invoker<std::tuple<Gpu::Nvml::collect<false>(Gpu::gpu_info*)::{lambda()#2}> > >::_M_run() (btop + 0xfdf6f)
                #5  0x00007f1eaace33c3 execute_native_thread_routine (libstdc++.so.6 + 0xe33c3)
                #6  0x00007f1eaaaac897 start_thread (libc.so.6 + 0x8e897)
                #7  0x00007f1eaab33a5c __clone3 (libc.so.6 + 0x115a5c)
                
                Stack trace of thread 392255:
                #0  0x00007f1eaaaf7163 clock_nanosleep@GLIBC_2.2.5 (libc.so.6 + 0xd9163)
                #1  0x00007f1eaab09c97 __nanosleep (libc.so.6 + 0xebc97)
                #2  0x00007f1eaab335bc usleep (libc.so.6 + 0x1155bc)
                #3  0x00007f1e9c04ff60 nvmlDeviceGetPcieThroughput (libnvidia-ml.so + 0x4ff60)
                #4  0x000055e37e86bf6f std::thread::_State_impl<std::thread::_Invoker<std::tuple<Gpu::Nvml::collect<false>(Gpu::gpu_info*)::{lambda()#2}> > >::_M_run() (btop + 0xfdf6f)
                #5  0x00007f1eaace33c3 execute_native_thread_routine (libstdc++.so.6 + 0xe33c3)
                #6  0x00007f1eaaaac897 start_thread (libc.so.6 + 0x8e897)
                #7  0x00007f1eaab33a5c __clone3 (libc.so.6 + 0x115a5c)
                ELF object binary architecture: AMD x86-64

Core dump: crash3.zip

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants