Gommit SIGSEGV #39

Open
opened 2023-02-22 20:42:44 +01:00 by Georg · 1 comment
Owner

Sometimes Gommit does not commit lint correctly:

$ bin/lint-commits.pl production
+++++++++++++++++++++++++++++++
++++ LYSERGIC GIT SERVICES ++++
+++++++++++++++++++++++++++++++
panic: runtime error: invalid memory address or nil pointer dereference
[signal SIGSEGV: segmentation violation code=0x1 addr=0x0 pc=0x55d234e43781]

goroutine 1 [running]:
gopkg.in/src-d/go-git.v4/plumbing/object.(*Commit).ID(...)
    /home/abuild/rpmbuild/BUILD/gommit-2.9.0/vendor/gopkg.in/src-d/go-git.v4/plumbing/object/commit.go:150
github.com/antham/gommit/reference.buildOriginCommitList(0x0)
    /home/abuild/rpmbuild/BUILD/gommit-2.9.0/reference/reference_history.go:127 +0xc1
github.com/antham/gommit/reference.FetchCommitInterval(0xc000030094?, {0x7fff54efa2c6, 0x28}, {0x7fff54efa2ef, 0x28})
    /home/abuild/rpmbuild/BUILD/gommit-2.9.0/reference/reference_history.go:57 +0x9f
github.com/antham/gommit/gommit.fetchCommits({0xc000030094?, 0x55d234f600d7?}, {0x7fff54efa2c6, 0x28}, {0x7fff54efa2ef, 0x28})
    /home/abuild/rpmbuild/BUILD/gommit-2.9.0/gommit/gommit.go:59 +0x6f
github.com/antham/gommit/gommit.MatchRangeQuery({{0xc000030094, 0x25}, {0x7fff54efa2c6, 0x28}, {0x7fff54efa2ef, 0x28}, 0xc0001c32f0, {0x1, 0x1, 0x32}})
    /home/abuild/rpmbuild/BUILD/gommit-2.9.0/gommit/gommit.go:180 +0x3b
github.com/antham/gommit/cmd.glob..func4(0x55d2355cfce0?, {0xc0001591a0, 0x2, 0x2})
    /home/abuild/rpmbuild/BUILD/gommit-2.9.0/cmd/check_range.go:41 +0x1cb
github.com/spf13/cobra.(*Command).execute(0x55d2355cfce0, {0xc000159140, 0x2, 0x2})
    /home/abuild/rpmbuild/BUILD/gommit-2.9.0/vendor/github.com/spf13/cobra/command.go:920 +0x847
github.com/spf13/cobra.(*Command).ExecuteC(0x55d2355cf160)
    /home/abuild/rpmbuild/BUILD/gommit-2.9.0/vendor/github.com/spf13/cobra/command.go:1044 +0x3bd
github.com/spf13/cobra.(*Command).Execute(...)
    /home/abuild/rpmbuild/BUILD/gommit-2.9.0/vendor/github.com/spf13/cobra/command.go:968
github.com/antham/gommit/cmd.Execute()
    /home/abuild/rpmbuild/BUILD/gommit-2.9.0/cmd/root.go:19 +0x25
main.main()
    /home/abuild/rpmbuild/BUILD/gommit-2.9.0/main.go:6 +0x17

Better disable it until resolved.

Sometimes Gommit does not commit lint correctly: ``` $ bin/lint-commits.pl production +++++++++++++++++++++++++++++++ ++++ LYSERGIC GIT SERVICES ++++ +++++++++++++++++++++++++++++++ panic: runtime error: invalid memory address or nil pointer dereference [signal SIGSEGV: segmentation violation code=0x1 addr=0x0 pc=0x55d234e43781] goroutine 1 [running]: gopkg.in/src-d/go-git.v4/plumbing/object.(*Commit).ID(...) /home/abuild/rpmbuild/BUILD/gommit-2.9.0/vendor/gopkg.in/src-d/go-git.v4/plumbing/object/commit.go:150 github.com/antham/gommit/reference.buildOriginCommitList(0x0) /home/abuild/rpmbuild/BUILD/gommit-2.9.0/reference/reference_history.go:127 +0xc1 github.com/antham/gommit/reference.FetchCommitInterval(0xc000030094?, {0x7fff54efa2c6, 0x28}, {0x7fff54efa2ef, 0x28}) /home/abuild/rpmbuild/BUILD/gommit-2.9.0/reference/reference_history.go:57 +0x9f github.com/antham/gommit/gommit.fetchCommits({0xc000030094?, 0x55d234f600d7?}, {0x7fff54efa2c6, 0x28}, {0x7fff54efa2ef, 0x28}) /home/abuild/rpmbuild/BUILD/gommit-2.9.0/gommit/gommit.go:59 +0x6f github.com/antham/gommit/gommit.MatchRangeQuery({{0xc000030094, 0x25}, {0x7fff54efa2c6, 0x28}, {0x7fff54efa2ef, 0x28}, 0xc0001c32f0, {0x1, 0x1, 0x32}}) /home/abuild/rpmbuild/BUILD/gommit-2.9.0/gommit/gommit.go:180 +0x3b github.com/antham/gommit/cmd.glob..func4(0x55d2355cfce0?, {0xc0001591a0, 0x2, 0x2}) /home/abuild/rpmbuild/BUILD/gommit-2.9.0/cmd/check_range.go:41 +0x1cb github.com/spf13/cobra.(*Command).execute(0x55d2355cfce0, {0xc000159140, 0x2, 0x2}) /home/abuild/rpmbuild/BUILD/gommit-2.9.0/vendor/github.com/spf13/cobra/command.go:920 +0x847 github.com/spf13/cobra.(*Command).ExecuteC(0x55d2355cf160) /home/abuild/rpmbuild/BUILD/gommit-2.9.0/vendor/github.com/spf13/cobra/command.go:1044 +0x3bd github.com/spf13/cobra.(*Command).Execute(...) /home/abuild/rpmbuild/BUILD/gommit-2.9.0/vendor/github.com/spf13/cobra/command.go:968 github.com/antham/gommit/cmd.Execute() /home/abuild/rpmbuild/BUILD/gommit-2.9.0/cmd/root.go:19 +0x25 main.main() /home/abuild/rpmbuild/BUILD/gommit-2.9.0/main.go:6 +0x17 ``` Better disable it until resolved.
Author
Owner

It seems to work with the latest configuration available in the production branch however - maybe it’s magically resolved already?

It seems to work with the latest configuration available in the `production` branch however - maybe it's magically resolved already?
Sign in to join this conversation.
No Milestone
No Assignees
1 Participants
Notifications
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: LibertaCasa/salt#39
No description provided.