lspgn commented on issue #5695: Go: Segfault on messageId serialize after getting it from producer URL: https://github.com/apache/pulsar/issues/5695#issuecomment-561059864 I created a branch with more debug: https://github.com/lspgn/pulsar/commit/7d1c0f4c2074f2240b888306822d81092042a490 The following C prints more information about the messageId structure: ``` static void myprint(pulsar_message_id_t* messageId) { printf(" messageId: %x\n", messageId); char *a = messageId; printf(" strlen: %d\n", strlen(a)); printf(" "); for(int i = 0; i < strlen(a);i++) { printf("0x%x ", a[i]); } printf("\n"); } ``` The output of this is: ``` getMessageId messageID String &{} messageId: a401c60 strlen: 0 The message Id value is: [6e6f6e65] getMessageId messageID String &{} messageId: a401c60 strlen: 0 The message Id value is: [6e6f6e65] getMessageId messageID String &{} messageId: a401c60 strlen: 0 The message Id value is: [6e6f6e65] getMessageId messageID String &{} messageId: a300fa0 strlen: 0 The message Id value is: [6e6f6e65] getMessageId messageID String &{} messageId: 6e032f0 strlen: 3 0xffffff93 0x2 0x6e The message Id value is: [6e6f6e65] getMessageId messageID String &{} messageId: 6f16380 strlen: 4 0xfffffff8 0x63 0xfffffff1 0x6 The message Id value is: [6e6f6e65] getMessageId messageID String &{} messageId: 6f165c0 strlen: 0 The message Id value is: [6e6f6e65] getMessageId messageID String &{} messageId: 6e035a0 strlen: 4 0xffffffc8 0x76 0xffffffe0 0x6 The message Id value is: [6e6f6e65] getMessageId messageID String &{} messageId: a402770 strlen: 4 0xffffffe8 0x2c 0x40 0xa The message Id value is: [6e6f6e65] getMessageId messageID String &{} messageId: 6f16380 strlen: 4 0x48 0x67 0xfffffff1 0x6 The message Id value is: [6e6f6e65] ``` Quite a few messages have a length of zero?
---------------------------------------------------------------- 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