barelyhuman / barelyhuman/commitlog

"segmentation violation" issue on executing generate command

Ouverte
#14 2 commentaires 0 réactions 0 personnes assignées Voir sur GitHub
Langage dominant
Go
Étoiles
81
Forks
3
Métriques de merge des PR
Aucune PR mergée en 30 j

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/commitlog@v0.0.11-0.20220919094556-faf22fe8c91a/pkg/generator.go:91 +0x1bc
github.com/barelyhuman/commitlog/pkg.(*Generator).ReadCommmits(0x140001b2140)
/root/go/pkg/mod/github.com/barelyhuman/commitlog@v0.0.11-0.20220919094556-faf22fe8c91a/pkg/generator.go:175 +0x4c
github.com/barelyhuman/commitlog/commands.Commitlog(0x14000136230?)
/root/go/pkg/mod/github.com/barelyhuman/commitlog@v0.0.11-0.20220919094556-faf22fe8c91a/commands/commitlog.go:57 +0x538
main.main.func2(0x14000000a20?)
/root/go/pkg/mod/github.com/barelyhuman/commitlog@v0.0.11-0.20220919094556-faf22fe8c91a/main.go:32 +0x1c
github.com/urfave/cli/v2.(*Command).Run(0x14000000a20, 0x1400010d840)
/root/go/pkg/mod/github.com/urfave/cli/v2@v2.8.1/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/v2@v2.8.1/app.go:341 +0x85c
github.com/urfave/cli/v2.(*App).Run(...)
/root/go/pkg/mod/github.com/urfave/cli/v2@v2.8.1/app.go:247
main.main()
/root/go/pkg/mod/github.com/barelyhuman/commitlog@v0.0.11-0.20220919094556-faf22fe8c91a/main.go:143 +0xc60
```

Guide de contribution

Ouvrir le guide de contribution

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.

Évaluation

Stack technique
go
Domaine
cli
Type d'issue
Bug
Difficulté
3/5
Temps estimé
1-2 jours
Activité
À l'abandon
Clarté
Plutôt claire
Accessibilité débutants
55/100

Recevez les nouvelles issues par e-mail

Un résumé court des issues GitHub adaptées aux débutants.