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

Glog seems to be a bad idea #289

Closed
olekukonko opened this issue Oct 28, 2021 · 1 comment
Closed

Glog seems to be a bad idea #289

olekukonko opened this issue Oct 28, 2021 · 1 comment

Comments

@olekukonko
Copy link

Moving to glog panics in race detector and occasionally in production.

harmony-dev(25123,0x10267600) malloc: *** error for object 0x6000035002c0: pointer being freed was not allocated
harmony-dev(25123,0x10267600) malloc: *** set a breakpoint in malloc_error_break to debug
SIGABRT: abort
PC=0x7ff81fd94112 m=0 sigcode=0
signal arrived during cgo execution

goroutine 1 [syscall, locked to thread]:
runtime.cgocall(0x4ae94f0, 0xc0004c7278)
	/usr/local/go/src/runtime/cgocall.go:156 +0x6e fp=0xc0004c7250 sp=0xc0004c7218 pc=0x4006bae
os/user._Cfunc_mygetpwuid_r(0x1f5, 0xc00018e280, 0xf808200, 0x1000, 0xc000010120)
	_cgo_gotypes.go:181 +0x85 fp=0xc0004c7278 sp=0xc0004c7250 pc=0x486f425
os/user.lookupUnixUid.func1.1(0x1f5, 0x63a9108, 0xc0000322f0, 0x5720ba0)
	/usr/local/go/src/os/user/cgo_lookup_unix.go:105 +0xdc fp=0xc0004c72e0 sp=0xc0004c7278 pc=0x486fe7c
os/user.lookupUnixUid.func1()
	/usr/local/go/src/os/user/cgo_lookup_unix.go:105 +0x5e fp=0xc0004c7338 sp=0xc0004c72e0 pc=0x486fd7e
os/user.retryWithBuffer(0xc0000322f0, 0xc0004c7490)
	/usr/local/go/src/os/user/cgo_lookup_unix.go:249 +0x42 fp=0xc0004c7398 sp=0xc0004c7338 pc=0x4870702
os/user.lookupUnixUid(0x1f5)
	/usr/local/go/src/os/user/cgo_lookup_unix.go:98 +0x1de fp=0xc0004c74c8 sp=0xc0004c7398 pc=0x486fa9e
os/user.current()
	/usr/local/go/src/os/user/cgo_lookup_unix.go:51 +0x2a fp=0xc0004c74f8 sp=0xc0004c74c8 pc=0x486f88a
os/user.Current.func1()
	/usr/local/go/src/os/user/lookup.go:15 +0x2a fp=0xc0004c7528 sp=0xc0004c74f8 pc=0x487082a
sync.(*Once).doSlow(0x571f8e0, 0x4e3fe68)
	/usr/local/go/src/sync/once.go:68 +0x128 fp=0xc0004c7610 sp=0xc0004c7528 pc=0x4091aa8
sync.(*Once).Do(0x571f8e0, 0xd)
	/usr/local/go/src/sync/once.go:59 +0x47 fp=0xc0004c7638 sp=0xc0004c7610 pc=0x4091947
os/user.Current()
	/usr/local/go/src/os/user/lookup.go:15 +0x38 fp=0xc0004c7680 sp=0xc0004c7638 pc=0x486f0f8
github.com/golang/glog.init.1()
	/Users/simba/gopath/pkg/mod/github.com/golang/[email protected]/glog_file.go:63 +0xae fp=0xc0004c76f8 sp=0xc0004c7680 pc=0x4875d2e
runtime.doInit(0x5669700)
	/usr/local/go/src/runtime/proc.go:6498 +0x123 fp=0xc0004c7830 sp=0xc0004c76f8 pc=0x4049523
runtime.doInit(0x566b460)
	/usr/local/go/src/runtime/proc.go:6475 +0x71 fp=0xc0004c7968 sp=0xc0004c7830 pc=0x4049471
runtime.doInit(0x5664440)
	/usr/local/go/src/runtime/proc.go:6475 +0x71 fp=0xc0004c7aa0 sp=0xc0004c7968 pc=0x4049471
runtime.doInit(0x5669400)
	/usr/local/go/src/runtime/proc.go:6475 +0x71 fp=0xc0004c7bd8 sp=0xc0004c7aa0 pc=0x4049471
runtime.doInit(0x566e040)
	/usr/local/go/src/runtime/proc.go:6475 +0x71 fp=0xc0004c7d10 sp=0xc0004c7bd8 pc=0x4049471
runtime.doInit(0x5666320)
	/usr/local/go/src/runtime/proc.go:6475 +0x71 fp=0xc0004c7e48 sp=0xc0004c7d10 pc=0x4049471
runtime.doInit(0x56645c0)
	/usr/local/go/src/runtime/proc.go:6475 +0x71 fp=0xc0004c7f80 sp=0xc0004c7e48 pc=0x4049471
runtime.main()
	/usr/local/go/src/runtime/proc.go:238 +0x1e6 fp=0xc0004c7fe0 sp=0xc0004c7f80 pc=0x403be46
runtime.goexit()
	/usr/local/go/src/runtime/asm_amd64.s:1581 +0x1 fp=0xc0004c7fe8 sp=0xc0004c7fe0 pc=0x406ee61

goroutine 5 [chan receive]:
github.com/golang/glog.(*loggingT).flushDaemon(0x0)
	/Users/simba/gopath/pkg/mod/github.com/golang/[email protected]/glog.go:882 +0x8b
created by github.com/golang/glog.init.0
	/Users/simba/gopath/pkg/mod/github.com/golang/[email protected]/glog.go:410 +0x265

rax    0x0
rbx    0x10267600
rcx    0x7ff7bfeff1f8
rdx    0x0
rdi    0x103
rsi    0x6
rbp    0x7ff7bfeff220
rsp    0x7ff7bfeff1f8
r8     0x0
r9     0x0
r10    0x0
r11    0x246
r12    0x103
r13    0x50
r14    0x6
r15    0x16
rip    0x7ff81fd94112
rflags 0x246
cs     0x7
fs     0x0
gs     0x0


@github-actions
Copy link

Use Discuss Issues for reporting issues about this repository.

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

No branches or pull requests

1 participant