lspgn opened a new issue #5695: Go: Segfault on messageId serialize after getting it from producer URL: https://github.com/apache/pulsar/issues/5695 **Describe the bug** Looks like the following Go code (also happens with async): ``` id, err := producer.SendAndGetMsgID(context.Background(), msg) if err != nil { log.Fatal(err) } fmt.Printf("the %s successfully published with id %v\n", string(msg.Payload), id.Serialize()) ``` causes the following: ``` fatal error: unexpected signal during runtime execution [signal SIGSEGV: segmentation violation code=0x1 addr=0x0 pc=0x49a2965] runtime stack: runtime.throw(0x44a9483, 0x2a) /usr/local/Cellar/go/1.13.3/libexec/src/runtime/panic.go:774 +0x72 runtime.sigpanic() /usr/local/Cellar/go/1.13.3/libexec/src/runtime/signal_unix.go:378 +0x47c goroutine 8 [syscall]: runtime.cgocall(0x43c0490, 0xc0000cfc28, 0x0) /usr/local/Cellar/go/1.13.3/libexec/src/runtime/cgocall.go:128 +0x5b fp=0xc0000cfbf8 sp=0xc0000cfbc0 pc=0x400494b github.com/apache/pulsar/pulsar-client-go/pulsar._Cfunc_pulsar_message_id_serialize(0x700b7f0, 0xc00018a010, 0x0) _cgo_gotypes.go:1265 +0x4e fp=0xc0000cfc28 sp=0xc0000cfbf8 pc=0x43a2eae github.com/apache/pulsar/pulsar-client-go/pulsar.(*messageID).Serialize.func1(0xc0000100a8, 0xc00018a010, 0x4528cc0) /Users/me/go/pkg/mod/github.com/apache/pulsar/pulsar-client-go@v0.0.0-20191115070645-69cd6eb660af/pulsar/c_message.go:187 +0x68 fp=0xc0000cfc68 sp=0xc0000cfc28 pc=0x43b2378 github.com/apache/pulsar/pulsar-client-go/pulsar.(*messageID).Serialize(0xc0000100a8, 0x0, 0x0, 0x0) /Users/me/go/pkg/mod/github.com/apache/pulsar/pulsar-client-go@v0.0.0-20191115070645-69cd6eb660af/pulsar/c_message.go:187 +0x63 fp=0xc0000cfce8 sp=0xc0000cfc68 pc=0x43a9ff3 main.produceData(0x45352a0, 0xc000013420, 0x449b5fb, 0xa) /Users/me/project/test/main.go:146 +0x40c fp=0xc0000cffc0 sp=0xc0000cfce8 pc=0x43be50c runtime.goexit() /usr/local/Cellar/go/1.13.3/libexec/src/runtime/asm_amd64.s:1357 +0x1 fp=0xc0000cffc8 sp=0xc0000cffc0 pc=0x405caa1 created by main.main /Users/me/project/test/main.go:177 +0x269 ``` Note: `id` is not null, it's a `*pulsar.messageId` pointer. **Desktop:** Mac OS 10.14.6 github.com/apache/pulsar/pulsar-client-go v0.0.0-20191115070645-69cd6eb660af Thank you :)
---------------------------------------------------------------- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. For queries about this service, please contact Infrastructure at: us...@infra.apache.org With regards, Apache Git Services