This is a creation in Article, where the information may have evolved or changed. Ask a question about Golang Debug. I use Shopify/sarama this library to connect Kafka, run the program error, general such an error how to view? Can see, I this error stack information can only go back 10 layer, to Sarama open.func1 here. ' Created by Github.com/shopify/sarama. (*broker). Open.func1 '/paic/dev/oracle/11g/odsz11g/mygo/src/github.com/shopify/sarama/broker.go:148 ' But I can't find out which part of my code triggers this function, is there a way to increase the number of layers in the error stack? "' Unexpected fault address 0xa31800fatal error:fault[signal sigsegv:segmentation violation code=0x2 addr=0xa31800 pc=0 Xa31800]goroutine [Running]:runtime.throw (0x6ea68e, 0x5)/paic/dev/oracle/11g/odsz11g/go/src/runtime/panic.go : 566 +0x95 fp=0xc4200a2cd8 sp=0xc4200a2cb8runtime.sigpanic ()/paic/dev/oracle/11g/odsz11g/go/src/runtime/sigpanic_ Unix.go:27 +0x288 fp=0xc4200a2d30 sp=0xc4200a2cd8github.com/rcrowley/go-metrics. (*standardhistogram). Update (0xc4201d6060, 0x1)/paic/dev/oracle/11g/odsz11g/mygo/src/github.com/rcrowley/go-metrics/histogram.go:199 + 0x3d FP=0XC4200A2D50 Sp=0xc4200a2d30github.com/shopify/sarama. (*broker). Updaterequestlatencymetrics (0xc4201582c0, 0x166b87)/paic/dev/oracle/11g/odsz11g/mygo/src/github.com/shopify/sarama/broker.go:656 +0x9b fp=0xc4200a2d78 sp= 0xc4200a2d50github.com/shopify/sarama. (*broker). Updateincomingcommunicationmetrics (0xc4201582c0, 0x24, 0x166b87)/paic/dev/oracle/11g/odsz11g/mygo/src/ github.com/shopify/sarama/broker.go:636 +0x39 fp=0xc4200a2d98 Sp=0xc4200a2d78github.com/shopify/sarama. (*broker). Responsereceiver (0XC4201582C0)/paic/dev/oracle/11g/odsz11g/mygo/src/github.com/shopify/sarama/ broker.go:514 +0x77a fp=0xc4200a2f70 Sp=0xc4200a2d98github.com/shopify/sarama. (*broker). (Github.com/shopify/sarama.responsereceiver)-FM ()/paic/dev/oracle/11g/odsz11g/mygo/src/github.com/shopify/ sarama/broker.go:148 +0x2a fp=0xc4200a2f88 sp=0xc4200a2f70github.com/shopify/sarama.withrecover (0xc4201d60d0)/ paic/dev/oracle/11g/odsz11g/mygo/src/github.com/shopify/sarama/utils.go:46 +0x43 fp=0xc4200a2fa8 sp= 0xc4200a2f88runtime.goexit ()/paic/dev/oracle/11g/odsz11g/go/src/runtime/asm_amd64.s:2086 +0x1 fp=0xc4200a2fb0 sp= 0xc4200a2fa8created byGithub.com/shopify/sarama. (*broker). open.func1/paic/dev/oracle/11g/odsz11g/mygo/src/github.com/shopify/sarama/broker.go:148 +0x8ae "284 reads
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.
A Free Trial That Lets You Build Big!
Start building with 50+ products and up to 12 months usage for Elastic Compute Service