Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Deadlock during Entry.Infof after upgrade to v1.5.0 #1128

Closed
tzvatot opened this issue Apr 13, 2020 · 1 comment · Fixed by #1131
Closed

Deadlock during Entry.Infof after upgrade to v1.5.0 #1128

tzvatot opened this issue Apr 13, 2020 · 1 comment · Fixed by #1131

Comments

@tzvatot
Copy link

tzvatot commented Apr 13, 2020

Issue does not happen when using v1.4.2.
When I upgrade to v1.5.0 I get a deadlock immediately upon application startup.

Killing stack trace:

goroutine 1 [semacquire, 3 minutes]:
sync.runtime_SemacquireMutex(0xc000140034, 0x2078100, 0x1)
	/home/tzvatot/go/src/runtime/sema.go:71 +0x47
sync.(*Mutex).lockSlow(0xc000140030)
	/home/tzvatot/go/src/sync/mutex.go:138 +0xfc
sync.(*Mutex).Lock(...)
	/home/tzvatot/go/src/sync/mutex.go:81
github.com/sirupsen/logrus.(*MutexWrap).Lock(...)
	/home/tzvatot/go/pkg/mod/github.com/sirupsen/[email protected]/logger.go:53
github.com/sirupsen/logrus.(*Entry).WithFields(0xc0001b8ee0, 0xc000724f20, 0x0)
	/home/tzvatot/go/pkg/mod/github.com/sirupsen/[email protected]/entry.go:125 +0x68d
github.com/sirupsen/logrus.(*Entry).WithField(...)
	/home/tzvatot/go/pkg/mod/github.com/sirupsen/[email protected]/entry.go:120
github.com/onrik/logrus/filename.(*wrapper).Format(0xc0004271a0, 0xc0001b8ee0, 0x30, 0x23bc480, 0xc00053ac01, 0xc0003cef30, 0xc0006650c0)
	/home/tzvatot/go/pkg/mod/github.com/onrik/[email protected]/filename/filename.go:19 +0x184
github.com/sirupsen/logrus.(*Entry).write(0xc0001b8ee0)
	/home/tzvatot/go/pkg/mod/github.com/sirupsen/[email protected]/entry.go:277 +0xa1
github.com/sirupsen/logrus.Entry.log(0xc000140000, 0xc0003ceea0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, ...)
	/home/tzvatot/go/pkg/mod/github.com/sirupsen/[email protected]/entry.go:253 +0x1c1
github.com/sirupsen/logrus.(*Entry).Log(0xc0001b8cb0, 0x4, 0xc0006652e0, 0x1, 0x1)
	/home/tzvatot/go/pkg/mod/github.com/sirupsen/[email protected]/entry.go:289 +0xeb
github.com/sirupsen/logrus.(*Entry).Logf(0xc0001b8cb0, 0xc000000004, 0x27353c8, 0x8f, 0xc000665450, 0x1, 0x1)
	/home/tzvatot/go/pkg/mod/github.com/sirupsen/[email protected]/entry.go:335 +0xe2
github.com/sirupsen/logrus.(*Entry).Infof(...)
	/home/tzvatot/go/pkg/mod/github.com/sirupsen/[email protected]/entry.go:348

Using go version go1.13.5 linux/amd64

@xialu4820723
Copy link

May be caused by #1122

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants