Replies: 2 comments
-
Same mine too. I built using skywalk by go build -toolexec="/path/to/skywalking-go/bin/skywalking-go-agent-3981a26-darwin-arm64" -a -o main . My app is using zap for logging. Now when I just ran runtime error: invalid memory address or nil pointer dereference
/usr/local/go/src/runtime/panic.go:261 (0x102f8fab7)
panicmem: panic(memoryError)
/usr/local/go/src/runtime/signal_unix.go:881 (0x102f8fa84)
sigpanic: panicmem()
skywalking_zap_context.go:82 (0x1033132dc)
skywalking_zap_zap_root.go:40 (0x103313507)
/Users/rifkysatyana/go/pkg/mod/go.uber.org/[email protected]/logger.go:260 (0x1033109b3)
(*Logger).check.func1: const callerSkipOffset = 2
/Users/rifkysatyana/go/pkg/mod/go.uber.org/[email protected]/logger.go:328 (0x103310867)
(*Logger).check: // getCallerFrame gets caller frame. The argument skip is the number of stack
/Users/rifkysatyana/go/pkg/mod/go.uber.org/[email protected]/logger.go:189 (0x10330fe9f)
(*Logger).Info: }
/Users/rifkysatyana/go/pkg/mod/bitbucket.org/kawancicil/[email protected]/logger.go:139 (0x10
33166c7)
(*zapLogger).Info: l.logger.Info(message, fields...)
/Users/rifkysatyana/go/pkg/mod/bitbucket.org/kawancicil/[email protected]/session/session.go:
93 (0x1037c7bbb)
(*Session).T1: session.Logger.Info("|", logRecord...,
/Users/rifkysatyana/go/pkg/mod/bitbucket.org/kawancicil/[email protected]/middleware/request_
middleware.go:38 (0x1037ca507)
SetupMiddlewareLogger.requestHandler.func1: session.T1(readBody(logBody))
/Users/rifkysatyana/go/pkg/mod/github.com/gin-gonic/[email protected]/context.go:161 (0x10363187b)
(*Context).Next: c.handlers[c.index](c)
/Users/rifkysatyana/go/pkg/mod/github.com/gin-gonic/[email protected]/recovery.go:83 (0x10363185c)
RecoveryWithWriter.func1: c.Next()
/Users/rifkysatyana/go/pkg/mod/github.com/gin-gonic/[email protected]/context.go:161 (0x103630d13)
(*Context).Next: c.handlers[c.index](c)
/Users/rifkysatyana/go/pkg/mod/github.com/gin-gonic/[email protected]/logger.go:241 (0x103630cf0)
LoggerWithConfig.func1: c.Next()
/Users/rifkysatyana/go/pkg/mod/github.com/gin-gonic/[email protected]/context.go:161 (0x1036302af)
(*Context).Next: c.handlers[c.index](c)
/Users/rifkysatyana/go/pkg/mod/github.com/gin-gonic/[email protected]/gin.go:409 (0x10362ffd0)
(*Engine).handleHTTPRequest: c.Next()
/Users/rifkysatyana/go/pkg/mod/github.com/gin-gonic/[email protected]/gin.go:367 (0x10362fc0f)
(*Engine).ServeHTTP: engine.handleHTTPRequest(c)
/usr/local/go/src/net/http/server.go:3142 (0x1032e096b)
serverHandler.ServeHTTP: handler.ServeHTTP(rw, req)
/usr/local/go/src/net/http/server.go:2044 (0x1032dbfd7)
(*conn).serve: serverHandler{c.server}.ServeHTTP(w, w.req)
/usr/local/go/src/runtime/asm_arm64.s:1222 (0x102fade93)
goexit: MOVD R0, R0 // NOP Really frustrating |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
My application crash after enhance build by skywalking-go-agent.
To test robustness, I intentionally invalidated the back-end address.
If logrus is used then the application gets stuck quickly, so I set SW_AGENT_LOG_TYPE=std
Attached are the application logs, the stack messages are so long that I suspect that using agent will affect the performance of my application.
Beta Was this translation helpful? Give feedback.
All reactions