"segmentation violation" issue on executing generate command
Personne n'a encore pris cette issue.
Évaluation
- Difficulté
- 3/5
- Temps estimé
- 1-2 jours
- Accessibilité débutants
- 55/100
Piste de recherche
Reproduisez le crash en exécutant commitlog generate après une nouvelle installation, puis inspectez pkg/generator.go au niveau de Generator.readCommitsInTags, ligne 91, ainsi que son appel depuis ReadCommmits. Suivez les entrées depuis commands/commitlog.go et confirmez que la commande se termine sans nil-pointer panic dans la configuration signalée.
Rédigé par le modèle d'indexation à partir du texte de l'issue.
Description
Hey ! I got an issue by running commitlog generate after a fresh install
panic: runtime error: invalid memory address or nil pointer dereference
[signal SIGSEGV: segmentation violation code=0x2 addr=0x0 pc=0x102fecdbc]
goroutine 1 [running]:
github.com/barelyhuman/commitlog/pkg.(*Generator).readCommitsInTags(0x140001b2140)
/root/go/pkg/mod/github.com/barelyhuman/[email protected]/pkg/generator.go:91 +0x1bc
github.com/barelyhuman/commitlog/pkg.(*Generator).ReadCommmits(0x140001b2140)
/root/go/pkg/mod/github.com/barelyhuman/[email protected]/pkg/generator.go:175 +0x4c
github.com/barelyhuman/commitlog/commands.Commitlog(0x14000136230?)
/root/go/pkg/mod/github.com/barelyhuman/[email protected]/commands/commitlog.go:57 +0x538
main.main.func2(0x14000000a20?)
/root/go/pkg/mod/github.com/barelyhuman/[email protected]/main.go:32 +0x1c
github.com/urfave/cli/v2.(*Command).Run(0x14000000a20, 0x1400010d840)
/root/go/pkg/mod/github.com/urfave/cli/[email protected]/command.go:169 +0x4f8
github.com/urfave/cli/v2.(*App).RunContext(0x14000140680, {0x1031ffb90?, 0x103551e20}, {0x1400001e040, 0x2, 0x2})
/root/go/pkg/mod/github.com/urfave/cli/[email protected]/app.go:341 +0x85c
github.com/urfave/cli/v2.(*App).Run(...)
/root/go/pkg/mod/github.com/urfave/cli/[email protected]/app.go:247
main.main()
/root/go/pkg/mod/github.com/barelyhuman/[email protected]/main.go:143 +0xc60
- Langage dominant
- Go
- Étoiles
- 82
- Forks
- 3
- Métriques de merge des PR
- Aucune PR mergée en 30 j
Préparer son environnement
- Aucun Dockerfile ni fichier Docker Compose
- Aucun modèle de pull request
- Lire le guide de contribution
Par où commencer
- Lisez l'issue en entier, puis le guide de contribution du projet.
- Signalez en commentaire que vous la prenez — cela évite que deux personnes fassent le même travail.
- Forkez le dépôt et travaillez sur une branche.
- Ouvrez une pull request qui référence le numéro de l'issue.
Autres issues de barelyhuman/commitlog
-
STDIN support for categorizationPeut-être à nouveau libre @barelyhuman l’a pris il y a 1054 jours, et aucune pull request n’est ouverte. Ouverteenhancement
barelyhuman/commitlog#15 · 1 personne assignée ·
-
Category Labels (RFC)Ouverte
Difficulté 5/5 Plus d'une semaine Accessibilité débutants 25/100
barelyhuman/commitlog#13 ·
-
Overwrite ModeOuverteenhancement
Difficulté 3/5 1-2 jours Accessibilité débutants 45/100
barelyhuman/commitlog#12 ·
-
Test CasesOuvertegood first issue tests
Difficulté 3/5 1-2 jours Accessibilité débutants 35/100
barelyhuman/commitlog#3 ·
Toutes les issues de barelyhuman/commitlog
Issues similaires
-
bug
Difficulté 2/5 1-3 heures Accessibilité débutants 75/100
open-telemetry/opentelemetry-go-compile-instrumentation#1467 ·
Les mainteneurs répondent en général sous 3 jours
-
Python 3.15 supportPeut-être pris @amnesiaof l’a pris aujourd’hui. OuverteL: python L: python:uv
Difficulté 2/5 1-3 heures Accessibilité débutants 72/100
dependabot/dependabot-core#16524 · 1 commentaire ·
Les mainteneurs répondent en général sous 1 jour
-
Difficulté 2/5 1-3 heures Accessibilité débutants 78/100
Les mainteneurs répondent en général sous 1 jour
-
duplication
Difficulté 2/5 1-3 heures Accessibilité débutants 78/100
openvibely/openvibely#1443 ·
Les mainteneurs répondent en général sous 2 jours
-
Difficulté 2/5 1-3 heures Accessibilité débutants 60/100
canonical/service-mesh#845 ·
Les mainteneurs répondent en général sous 1 jour