"segmentation violation" issue on executing generate command
Chưa có ai nhận issue này.
Đánh giá
- Độ khó
- 3/5
- Thời gian dự kiến
- 1-2 ngày
- Mức phù hợp với người mới
- 55/100
Hướng nghiên cứu
Tái hiện sự cố bằng cách chạy commitlog generate sau khi cài đặt mới, sau đó kiểm tra pkg/generator.go tại Generator.readCommitsInTags ở dòng 91 và lời gọi của nó từ ReadCommmits. Theo dõi các đầu vào từ commands/commitlog.go và xác nhận rằng lệnh hoàn tất mà không xảy ra nil-pointer panic trong thiết lập được báo cáo.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Mô tả
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
- Ngôn ngữ chính
- Go
- Star
- 81
- Fork
- 3
- Chỉ số merge pull request
- Không có pull request nào được merge trong 30 ngày
Hướng dẫn đóng góp
Bắt đầu từ đâu
- Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
- Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
- Fork repository và làm thay đổi trên một nhánh.
- Mở pull request có tham chiếu số hiệu của issue.
Issue khác của barelyhuman/commitlog
-
STDIN support for categorization Đang mởenhancement
barelyhuman/commitlog#15 · 1 người được giao ·
-
Category Labels (RFC) Đang mở
Độ khó 5/5 Hơn một tuần Mức phù hợp với người mới 25/100
barelyhuman/commitlog#13 ·
-
Overwrite Mode Đang mởenhancement
Độ khó 3/5 1-2 ngày Mức phù hợp với người mới 45/100
barelyhuman/commitlog#12 ·
-
Test Cases Đang mởgood first issue tests
Độ khó 3/5 1-2 ngày Mức phù hợp với người mới 35/100
barelyhuman/commitlog#3 ·
Tất cả issue của barelyhuman/commitlog
Issue tương tự
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 65/100
-
bug group: validation priority: low
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 75/100
codecheckers/chekhov#51 ·
-
Creating worktree from an existing remote branch with a slash in it, has unexpected behaviour Đang mở
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 70/100
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 75/100
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 75/100