extrawurst / gitui

Blazing 💥 fast terminal-ui for git written in rust 🦀
MIT License
18.44k stars 568 forks source link

gitui coredumps #2381

Open 766F6964 opened 2 weeks ago

766F6964 commented 2 weeks ago

Describe the bug Running gitui from the terminal on my Arch Linux system results in a coredump. It worked fine in the past, so I assume it is some sort of dependency-missmatch caused by an update? Reinstalling gitui didn't fix the issue. I attached the coredump output below.

To Reproduce Steps to reproduce the behavior:

  1. Run gitui and observe the coredump

Expected behavior gitui should start normally

Context (please complete the following information):

stable-x86_64-unknown-linux-gnu (default) rustc 1.80.0 (051478957 2024-07-21)


**Additional context**
**Crash output:**

❯ gitui

GitUI was close due to an unexpected panic. Please file an issue on https://github.com/extrawurst/gitui/issues with the following info:

PanicHookInfo { payload: Any { .. }, location: Location { file: "asyncgit/src/revlog.rs", line: 186, col: 14 }, can_unwind: true, force_no_backtrace: false } trace: 0: 1: 2: 3: 4: 5: 6: 7: 8: 9: 10: 11: 12: 13: 14:

GitUI was close due to an unexpected panic. Please file an issue on https://github.com/extrawurst/gitui/issues with the following info:

Any { .. } trace: 0: 1: 2: 3: 4: 5: 6: 7:

zsh: IOT instruction (core dumped) gitui


**Coredump info:**

❯ coredumpctl info 48433 PID: 48433 (gitui) UID: 1000 (void) GID: 1000 (void) Signal: 6 (ABRT) Timestamp: Fri 2024-10-04 13:04:37 CEST (34s ago) Command Line: gitui Executable: /usr/bin/gitui Control Group: /user.slice/user-1000.slice/user@1000.service/kitty-3147-0.scope Unit: user@1000.service User Unit: kitty-3147-0.scope Slice: user-1000.slice Owner UID: 1000 (void) Boot ID: 321087cd7b91474591a1fd60d6d64f76 Machine ID: b15e183e367b46548750737d88c93b8d Hostname: arch Storage: /var/lib/systemd/coredump/core.gitui.1000.321087cd7b91474591a1fd60d6d64f76.48433.1728039877000000.zst (present) Size on Disk: 559.7K Message: Process 48433 (gitui) of user 1000 dumped core.

            Stack trace of thread 48436:
            #0  0x00007ff7662943f4 n/a (libc.so.6 + 0x963f4)
            #1  0x00007ff76623b120 raise (libc.so.6 + 0x3d120)
            #2  0x00007ff7662224c3 abort (libc.so.6 + 0x244c3)
            #3  0x000060c997a8c46a n/a (gitui + 0x35b46a)
            #4  0x000060c9977b5c99 n/a (gitui + 0x84c99)
            #5  0x000060c99786a697 n/a (gitui + 0x139697)
            #6  0x000060c9978b656e n/a (gitui + 0x18556e)
            #7  0x000060c9977b1c0b n/a (gitui + 0x80c0b)
            #8  0x000060c997a0b3a2 n/a (gitui + 0x2da3a2)
            #9  0x000060c997a0b239 n/a (gitui + 0x2da239)
            #10 0x000060c997ac79cb n/a (gitui + 0x3969cb)
            #11 0x00007ff76629239d n/a (libc.so.6 + 0x9439d)
            #12 0x00007ff76631749c n/a (libc.so.6 + 0x11949c)

            Stack trace of thread 48433:
            #0  0x00007ff76630594e fstatat (libc.so.6 + 0x10794e)
            #1  0x00007ff766678a53 git_config_add_file_ondisk (libgit2.so.1.8 + 0x48a53)
            #2  0x00007ff7666eee02 n/a (libgit2.so.1.8 + 0xbee02)
            #3  0x00007ff7666ef291 n/a (libgit2.so.1.8 + 0xbf291)
            #4  0x00007ff7666ef3f6 git_repository_config_snapshot (libgit2.so.1.8 + 0xbf3f6)
            #5  0x00007ff7666efbad n/a (libgit2.so.1.8 + 0xbfbad)
            #6  0x00007ff7666f01b5 git_repository_open_ext (libgit2.so.1.8 + 0xc01b5)
            #7  0x000060c9978a64f0 n/a (gitui + 0x1754f0)
            #8  0x000060c9978a4341 n/a (gitui + 0x173341)
            #9  0x000060c9978d0ad0 n/a (gitui + 0x19fad0)
            #10 0x000060c9978d072a n/a (gitui + 0x19f72a)
            #11 0x000060c99780d984 n/a (gitui + 0xdc984)
            #12 0x000060c997864905 n/a (gitui + 0x133905)
            #13 0x000060c99786132a n/a (gitui + 0x13032a)
            #14 0x000060c9977cbfdc n/a (gitui + 0x9afdc)
            #15 0x000060c997877b2c n/a (gitui + 0x146b2c)
            #16 0x00007ff766223e08 n/a (libc.so.6 + 0x25e08)
            #17 0x00007ff766223ecc __libc_start_main (libc.so.6 + 0x25ecc)
            #18 0x000060c9977b6e65 n/a (gitui + 0x85e65)

            Stack trace of thread 48434:
            #0  0x00007ff76630594e fstatat (libc.so.6 + 0x10794e)
            #1  0x00007ff7666edfe8 n/a (libgit2.so.1.8 + 0xbdfe8)
            #2  0x00007ff76673718c n/a (libgit2.so.1.8 + 0x10718c)
            #3  0x00007ff7666efff8 git_repository_open_ext (libgit2.so.1.8 + 0xbfff8)
            #4  0x000060c9978a64f0 n/a (gitui + 0x1754f0)
            #5  0x000060c9978a4341 n/a (gitui + 0x173341)
            #6  0x000060c9978b2a5e n/a (gitui + 0x181a5e)
            #7  0x000060c9978b1d12 n/a (gitui + 0x180d12)
            #8  0x000060c9977b1c0b n/a (gitui + 0x80c0b)
            #9  0x000060c997a0b3a2 n/a (gitui + 0x2da3a2)
            #10 0x000060c997a0b239 n/a (gitui + 0x2da239)
            #11 0x000060c997ac79cb n/a (gitui + 0x3969cb)
            #12 0x00007ff76629239d n/a (libc.so.6 + 0x9439d)
            #13 0x00007ff76631749c n/a (libc.so.6 + 0x11949c)

            Stack trace of thread 48437:
            #0  0x00007ff7662fda8b __sched_yield (libc.so.6 + 0xffa8b)
            #1  0x000060c9977b199e n/a (gitui + 0x8099e)
            #2  0x000060c997a0b3a2 n/a (gitui + 0x2da3a2)
            #3  0x000060c997a0b239 n/a (gitui + 0x2da239)
            #4  0x000060c997ac79cb n/a (gitui + 0x3969cb)
            #5  0x00007ff76629239d n/a (libc.so.6 + 0x9439d)
            #6  0x00007ff76631749c n/a (libc.so.6 + 0x11949c)

            Stack trace of thread 48435:
            #0  0x00007ff7663151fd syscall (libc.so.6 + 0x1171fd)
            #1  0x000060c997a0b632 n/a (gitui + 0x2da632)
            #2  0x000060c9977b1b37 n/a (gitui + 0x80b37)
            #3  0x000060c997a0b3a2 n/a (gitui + 0x2da3a2)
            #4  0x000060c997a0b239 n/a (gitui + 0x2da239)
            #5  0x000060c997ac79cb n/a (gitui + 0x3969cb)
            #6  0x00007ff76629239d n/a (libc.so.6 + 0x9439d)
            #7  0x00007ff76631749c n/a (libc.so.6 + 0x11949c)

            Stack trace of thread 48438:
            #0  0x00007ff7663178b2 epoll_wait (libc.so.6 + 0x1198b2)
            #1  0x000060c9979d5a4d n/a (gitui + 0x2a4a4d)
            #2  0x000060c99794a488 n/a (gitui + 0x219488)
            #3  0x000060c99794c9cc n/a (gitui + 0x21b9cc)
            #4  0x000060c9977c8982 n/a (gitui + 0x97982)
            #5  0x000060c9977d46ec n/a (gitui + 0xa36ec)
            #6  0x000060c997ac79cb n/a (gitui + 0x3969cb)
            #7  0x00007ff76629239d n/a (libc.so.6 + 0x9439d)
            #8  0x00007ff76631749c n/a (libc.so.6 + 0x11949c)
            ELF object binary architecture: AMD x86-64
danshearer commented 1 week ago

I have had the same dump and same behaviour, but I can add little.

It happens only in one directory, and only when I press "2" for "Log". All other menu items seem to work correctly.

Toni500github commented 1 week ago

same issue here with gitui nightly 2024-09-12 (0f5cf89)


GitUI was close due to an unexpected panic.
Please file an issue on https://github.com/extrawurst/gitui/issues with the following info:

PanicHookInfo { payload: Any { .. }, location: Location { file: "asyncgit/src/revlog.rs", line: 186, col: 14 }, can_unwind: true, force_no_backtrace: false }
trace:
   0: <unknown>
   1: <unknown>
   2: <unknown>
   3: <unknown>
   4: <unknown>
   5: <unknown>
   6: <unknown>
   7: <unknown>
   8: <unknown>
   9: <unknown>
  10: <unknown>
  11: <unknown>
  12: <unknown>
  13: <unknown>
  14: <unknown>

GitUI was close due to an unexpected panic.
Please file an issue on https://github.com/extrawurst/gitui/issues with the following info:

Any { .. }
trace:
   0: <unknown>
   1: <unknown>
   2: <unknown>
   3: <unknown>
   4: <unknown>
   5: <unknown>
   6: <unknown>
   7: <unknown>

[1]    170133 IOT instruction (core dumped)  gitui
           PID: 181672 (gitui)
           UID: 1000 (toni)
           GID: 1000 (toni)
        Signal: 6 (ABRT)
     Timestamp: Fri 2024-10-11 16:19:49 CEST (3min 44s ago)
  Command Line: gitui
    Executable: /usr/bin/gitui
 Control Group: /user.slice/user-1000.slice/session-2.scope
          Unit: session-2.scope
         Slice: user-1000.slice
       Session: 2
     Owner UID: 1000 (toni)
       Boot ID: nah
    Machine ID: nah
      Hostname: arch2
       Storage: /var/lib/systemd/coredump/core.gitui.1000.bbc878f58dbc4c9882af57efc5f1e374.181672.1728656389000000.zst (present)
  Size on Disk: 575.7K
       Message: Process 181672 (gitui) of user 1000 dumped core.

                Stack trace of thread 181674:
                #0  0x000079406b1553f4 n/a (libc.so.6 + 0x963f4)
                #1  0x000079406b0fc120 raise (libc.so.6 + 0x3d120)
                #2  0x000079406b0e34c3 abort (libc.so.6 + 0x244c3)
                #3  0x0000650c70bce46a n/a (gitui + 0x35b46a)
                #4  0x0000650c708f7c99 n/a (gitui + 0x84c99)
                #5  0x0000650c709ac697 n/a (gitui + 0x139697)
                #6  0x0000650c709f856e n/a (gitui + 0x18556e)
                #7  0x0000650c708f3c0b n/a (gitui + 0x80c0b)
                #8  0x0000650c70b4d3a2 n/a (gitui + 0x2da3a2)
                #9  0x0000650c70b4d239 n/a (gitui + 0x2da239)
                #10 0x0000650c70c099cb n/a (gitui + 0x3969cb)
                #11 0x000079406b15339d n/a (libc.so.6 + 0x9439d)
                #12 0x000079406b1d849c n/a (libc.so.6 + 0x11949c)

                Stack trace of thread 181672:
                #0  0x000079406b1ca355 __open64 (libc.so.6 + 0x10b355)
                #1  0x000079406b5087c5 n/a (libgit2.so.1.8 + 0x177c5)
                #2  0x000079406b50b0aa n/a (libgit2.so.1.8 + 0x1a0aa)
                #3  0x000079406b556897 n/a (libgit2.so.1.8 + 0x65897)
                #4  0x000079406b557093 n/a (libgit2.so.1.8 + 0x66093)
                #5  0x000079406b5adb6b n/a (libgit2.so.1.8 + 0xbcb6b)
                #6  0x000079406b5b11c4 git_repository_open_ext (libgit2.so.1.8 + 0xc01c4)
                #7  0x0000650c709e84f0 n/a (gitui + 0x1754f0)
                #8  0x0000650c709e6341 n/a (gitui + 0x173341)
                #9  0x0000650c709f2cfa n/a (gitui + 0x17fcfa)
                #10 0x0000650c7095ea5b n/a (gitui + 0xeba5b)
                #11 0x0000650c709922a5 n/a (gitui + 0x11f2a5)
                #12 0x0000650c7094f92d n/a (gitui + 0xdc92d)
                #13 0x0000650c709a6905 n/a (gitui + 0x133905)
                #14 0x0000650c709a332a n/a (gitui + 0x13032a)
                #15 0x0000650c7090dfdc n/a (gitui + 0x9afdc)
                #16 0x0000650c709b9b2c n/a (gitui + 0x146b2c)
                #17 0x000079406b0e4e08 n/a (libc.so.6 + 0x25e08)
                #18 0x000079406b0e4ecc __libc_start_main (libc.so.6 + 0x25ecc)
                #19 0x0000650c708f8e65 n/a (gitui + 0x85e65)

                Stack trace of thread 181673:
                #0  0x000079406b1d61fd syscall (libc.so.6 + 0x1171fd)
                #1  0x0000650c70b4d632 n/a (gitui + 0x2da632)
                #2  0x0000650c708f3b37 n/a (gitui + 0x80b37)
                #3  0x0000650c70b4d3a2 n/a (gitui + 0x2da3a2)
                #4  0x0000650c70b4d239 n/a (gitui + 0x2da239)
                #5  0x0000650c70c099cb n/a (gitui + 0x3969cb)
                #6  0x000079406b15339d n/a (libc.so.6 + 0x9439d)
                #7  0x000079406b1d849c n/a (libc.so.6 + 0x11949c)

                Stack trace of thread 181675:
                #0  0x000079406b1d61fd syscall (libc.so.6 + 0x1171fd)
                #1  0x0000650c70b4d632 n/a (gitui + 0x2da632)
                #2  0x0000650c708f3b37 n/a (gitui + 0x80b37)
                #3  0x0000650c70b4d3a2 n/a (gitui + 0x2da3a2)
                #4  0x0000650c70b4d239 n/a (gitui + 0x2da239)
                #5  0x0000650c70c099cb n/a (gitui + 0x3969cb)
                #6  0x000079406b15339d n/a (libc.so.6 + 0x9439d)
                #7  0x000079406b1d849c n/a (libc.so.6 + 0x11949c)

                Stack trace of thread 181677:
                #0  0x000079406b1d88b2 epoll_wait (libc.so.6 + 0x1198b2)
                #1  0x0000650c70b17a4d n/a (gitui + 0x2a4a4d)
                #2  0x0000650c70a8c488 n/a (gitui + 0x219488)
                #3  0x0000650c70a8e9cc n/a (gitui + 0x21b9cc)
                #4  0x0000650c7090a982 n/a (gitui + 0x97982)
                #5  0x0000650c709166ec n/a (gitui + 0xa36ec)
                #6  0x0000650c70c099cb n/a (gitui + 0x3969cb)
                #7  0x000079406b15339d n/a (libc.so.6 + 0x9439d)
                #8  0x000079406b1d849c n/a (libc.so.6 + 0x11949c)

                Stack trace of thread 181676:
                #0  0x000079406b1d61fd syscall (libc.so.6 + 0x1171fd)
                #1  0x0000650c70b4d632 n/a (gitui + 0x2da632)
                #2  0x0000650c708f3b37 n/a (gitui + 0x80b37)
                #3  0x0000650c70b4d3a2 n/a (gitui + 0x2da3a2)
                #4  0x0000650c70b4d239 n/a (gitui + 0x2da239)
                #5  0x0000650c70c099cb n/a (gitui + 0x3969cb)
                #6  0x000079406b15339d n/a (libc.so.6 + 0x9439d)
                #7  0x000079406b1d849c n/a (libc.so.6 + 0x11949c)
                ELF object binary architecture: AMD x86-64
extrawurst commented 1 week ago

same issue here with gitui nightly 2024-09-12 (0f5cf89)

can you try a more recent nightly?

extrawurst commented 1 week ago

This is probably a duplicate of #2358 which is fixed in nightly.

Toni500github commented 1 week ago

same issue here with gitui nightly 2024-09-12 (0f5cf89)

can you try a more recent nightly?

sorry, I don't wanna compile from source rn, I am using the version from archlinux packages. Maybe later or i'll wait until release patiently

extrawurst commented 1 week ago

Don’t the nightly binaries we provide work on arch? They are self contained

Toni500github commented 1 week ago

Don’t the nightly binaries we provide work on arch? They are self contained

Looks like not, since they have this issue

extrawurst commented 1 week ago

Like I said the one you use is old. My question is if you need a special build or if you can try the binaries build nightly by our pipeline: https://github.com/extrawurst/gitui/blob/master/NIGHTLIES.md

Toni500github commented 1 week ago

Like I said the one you use is old. My question is if you need a special build or if you can try the binaries build nightly by our pipeline: https://github.com/extrawurst/gitui/blob/master/NIGHTLIES.md

Ohh ok, when I come back I'll try