gitui-org / gitui-org/gitui

Segfault during push

Offen
#2,405 5 Kommentare 1 Reaktion 0 zugewiesene Personen Auf GitHub ansehen
bug
Vorherrschende Sprache
Rust
Sterne
22.5k
Forks
773
PR-Merge-Kennzahlen
Keine gemergten PRs in 30 T.

Beschreibung

**Describe the bug**
When I would like to push a commit, I got segmentation fault.

**To Reproduce**
Steps to reproduce the behavior:
1. Go to a git dir
2. Commit a message
3. Push the commit to the origin
4. See error

**Expected behavior**
Push w/o crashing.

**Logs**
Journal logs

```bash
okt 25 13:02:35 AMANDA kernel: gitui[346571]: segfault at 73e830002308 ip 000073e830002308 sp 000073e8553fe8c8 error 15 likely on CPU 6 (core 12, socket 0)
okt 25 13:02:35 AMANDA kernel: Code: 00 00 00 00 00 00 00 00 00 00 c0 f5 3f 55 e8 73 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 02 00 00 00 05 00 00 00 <01> 44 00 00 00 00 00 00 ff ff ff ff ff ff ff ff 01 00 01 00 91 01
okt 25 13:02:35 AMANDA systemd-coredump[346582]: Process 346539 (gitui) of user 1000 terminated abnormally with signal 11/SEGV, processing...
okt 25 13:02:35 AMANDA systemd[1]: Started Process Core Dump (PID 346582/UID 0).
okt 25 13:02:35 AMANDA systemd-coredump[346583]: [🡕] Process 346539 (gitui) of user 1000 dumped core.

Stack trace of thread 346571:
#0 0x000073e830002308 n/a (n/a + 0x0)
#1 0x000073e85745ac5e n/a (libgit2.so.1.8 + 0xdfc5e)
#2 0x000073e85745b1d8 n/a (libgit2.so.1.8 + 0xe01d8)
#3 0x000073e8574624fa n/a (libgit2.so.1.8 + 0xe74fa)
#4 0x000073e8574649e6 n/a (libgit2.so.1.8 + 0xe99e6)
#5 0x000073e857468340 n/a (libgit2.so.1.8 + 0xed340)
#6 0x000073e857431759 git_remote_connect_ext (libgit2.so.1.8 + 0xb6759)
#7 0x000073e857436875 git_remote_upload (libgit2.so.1.8 + 0xbb875)
#8 0x000073e85743777f git_remote_push (libgit2.so.1.8 + 0xbc77f)
#9 0x000056efa4a158f7 n/a (gitui + 0x18f8f7)
#10 0x000056efa4a19654 n/a (gitui + 0x193654)
#11 0x000056efa4a1bebb n/a (gitui + 0x195ebb)
#12 0x000056efa4c1c9cb n/a (gitui + 0x3969cb)
#13 0x000073e856fdd39d n/a (libc.so.6 + 0x9439d)
#14 0x000073e85706249c n/a (libc.so.6 + 0x11949c)

Stack trace of thread 346539:
#0 0x000073e8570601fd syscall (libc.so.6 + 0x1171fd)
#1 0x000056efa4be3784 n/a (gitui + 0x35d784)
#2 0x000056efa4a9ad66 n/a (gitui + 0x214d66)
#3 0x000056efa49b8c63 n/a (gitui + 0x132c63)
#4 0x000056efa49b632a n/a (gitui + 0x13032a)
#5 0x000056efa4920fdc n/a (gitui + 0x9afdc)
#6 0x000056efa49ccb2c n/a (gitui + 0x146b2c)
#7 0x000073e856f6ee08 n/a (libc.so.6 + 0x25e08)
#8 0x000073e856f6eecc __libc_start_main (libc.so.6 + 0x25ecc)
#9 0x000056efa490be65 n/a (gitui + 0x85e65)

Stack trace of thread 346542:
#0 0x000073e8570601fd syscall (libc.so.6 + 0x1171fd)
#1 0x000056efa4b60632 n/a (gitui + 0x2da632)
#2 0x000056efa4906b37 n/a (gitui + 0x80b37)
#3 0x000056efa4b603a2 n/a (gitui + 0x2da3a2)
#4 0x000056efa4b60239 n/a (gitui + 0x2da239)
#5 0x000056efa4c1c9cb n/a (gitui + 0x3969cb)
#6 0x000073e856fdd39d n/a (libc.so.6 + 0x9439d)
#7 0x000073e85706249c n/a (libc.so.6 + 0x11949c)

Stack trace of thread 346541:
#0 0x000073e8570601fd syscall (libc.so.6 + 0x1171fd)
#1 0x000056efa4b60632 n/a (gitui + 0x2da632)
#2 0x000056efa4906b37 n/a (gitui + 0x80b37)
#3 0x000056efa4b603a2 n/a (gitui + 0x2da3a2)
#4 0x000056efa4b60239 n/a (gitui + 0x2da239)
#5 0x000056efa4c1c9cb n/a (gitui + 0x3969cb)
#6 0x000073e856fdd39d n/a (libc.so.6 + 0x9439d)
#7 0x000073e85706249c n/a (libc.so.6 + 0x11949c)

Stack trace of thread 346545:
#0 0x000073e8570628b2 epoll_wait (libc.so.6 + 0x1198b2)
#1 0x000056efa4b2aa4d n/a (gitui + 0x2a4a4d)
#2 0x000056efa4a9f488 n/a (gitui + 0x219488)
#3 0x000056efa4aa19cc n/a (gitui + 0x21b9cc)
#4 0x000056efa491d982 n/a (gitui + 0x97982)
#5 0x000056efa49296ec n/a (gitui + 0xa36ec)
#6 0x000056efa4c1c9cb n/a (gitui + 0x3969cb)
#7 0x000073e856fdd39d n/a (libc.so.6 + 0x9439d)
#8 0x000073e85706249c n/a (libc.so.6 + 0x11949c)

Stack trace of thread 346543:
#0 0x000073e8570601fd syscall (libc.so.6 + 0x1171fd)
#1 0x000056efa4b60632 n/a (gitui + 0x2da632)
#2 0x000056efa4906b37 n/a (gitui + 0x80b37)
#3 0x000056efa4b603a2 n/a (gitui + 0x2da3a2)
#4 0x000056efa4b60239 n/a (gitui + 0x2da239)
#5 0x000056efa4c1c9cb n/a (gitui + 0x3969cb)
#6 0x000073e856fdd39d n/a (libc.so.6 + 0x9439d)
#7 0x000073e85706249c n/a (libc.so.6 + 0x11949c)

Stack trace of thread 346575:
#0 0x000073e8570601fd syscall (libc.so.6 + 0x1171fd)
#1 0x000056efa4be35d4 n/a (gitui + 0x35d5d4)
#2 0x000056efa49facff n/a (gitui + 0x174cff)
#3 0x000056efa4a12f1d n/a (gitui + 0x18cf1d)
#4 0x000056efa4a18860 n/a (gitui + 0x192860)
#5 0x000056efa4a1aed0 n/a (gitui + 0x194ed0)
#6 0x000056efa4c1c9cb n/a (gitui + 0x3969cb)
#7 0x000073e856fdd39d n/a (libc.so.6 + 0x9439d)
#8 0x000073e85706249c n/a (libc.so.6 + 0x11949c)

Stack trace of thread 346544:
#0 0x000073e8570601fd syscall (libc.so.6 + 0x1171fd)
#1 0x000056efa4b60632 n/a (gitui + 0x2da632)
#2 0x000056efa4906b37 n/a (gitui + 0x80b37)
#3 0x000056efa4b603a2 n/a (gitui + 0x2da3a2)
#4 0x000056efa4b60239 n/a (gitui + 0x2da239)
#5 0x000056efa4c1c9cb n/a (gitui + 0x3969cb)
#6 0x000073e856fdd39d n/a (libc.so.6 + 0x9439d)
#7 0x000073e85706249c n/a (libc.so.6 + 0x11949c)
ELF object binary architecture: AMD x86-64
```


**Context (please complete the following information):**
- OS/Distro + Version: Arch linux, rolling release
- GitUI Version gitui nightly 2024-09-12 (0f5cf89)

**Additional context**
#### Software version

gitui 0.26.3 (v0.19.0-789-g0f5cf893)

#### Operating system

Linux 6.11.5-arch1-1

#### Compile time information

- Profile: release
- Target triple: x86_64-unknown-linux-gnu
- Family: unix
- OS: linux
- Architecture: x86_64
- Pointer width: 64
- Endian: little
- CPU features: fxsr,sse,sse2
- Host: x86_64-unknown-linux-gnu

#### Environment variables

```bash
SHELL=/bin/bash
EDITOR=/usr/bin/nano
GIT_EDITOR=
VISUAL=
```

#### Command-line

```bash
gitui --bugreport
```

Beitragsleitfaden

Beitragsleitfaden öffnen

Rechercherichtung

Beginne damit, einen Push in gitui mit dem gemeldeten Arch-Linux- und gitui-Nightly-Kontext zu reproduzieren, und untersuche dann den Absturzpfad rund um die Frames libgit2's git_remote_connect_ext, git_remote_upload und git_remote_push. Im Bericht wird keine Quelldatei und kein Test genannt; als erledigt gilt die Aufgabe, wenn ein Push nicht mehr dazu führt, dass gitui mit Signal 11 beendet wird, und der Fehler durch einen geeigneten Regressionstest abgedeckt ist.

Vom Indexierungsmodell aus dem Issue-Text verfasst.

Bewertung

Tech-Stack
git, rust
Bereich
cli
Issue-Typ
Bug
Schwierigkeit
4/5
Geschätzter Aufwand
3-5 Tage
Aktivitätsstatus
Veraltet
Klarheit
Muss geklärt werden
Anfängerfreundlichkeit
25/100

Neue Issues direkt in Ihr Postfach

Eine kurze Übersicht über anfängerfreundliche GitHub-Issues.