You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@pulsar.apache.org by "quinniup (via GitHub)" <gi...@apache.org> on 2023/01/31 07:07:40 UTC

[GitHub] [pulsar] quinniup opened a new issue, #19367: [Bug] [pulsar-function-go] function process `ackInputMessage` error

quinniup opened a new issue, #19367:
URL: https://github.com/apache/pulsar/issues/19367

   ### Search before asking
   
   - [X] I searched in the [issues](https://github.com/apache/pulsar/issues) and found nothing similar.
   
   
   ### Version
   
   + branch: master
   + commit: 785fb82966d0e152e65bd86de0c695ce5d6cf45f
   
   ### Minimal reproduce step
   
   1. write function-go code;
   
   2. start function with golang:
   ```shelll
    ./bin/pulsar-admin functions localrun \
   --go ./func-test/publishFunc \
   --inputs privatetenant/functions/input-test \
   --tenant privatetenant \
   --namespace functions \
   --output privatetenant/functions/event \
   --name test-hello \
   --auto-ack true
   ```
   
   3. when functions receive msg, ack message had panic: `runtime error: invalid memory address or nil pointer dereference`
   
   
   ### What did you expect to see?
   
   Functions normal ack message.
   
   ### What did you see instead?
   
   ```shell
   [signal SIGSEGV: segmentation violation code=0x1 addr=0x18 pc=0xaf9cf3]
   
   goroutine 1 [running]:
   github.com/apache/pulsar/pulsar-function-go/pf.(*goInstance).ackInputMessage(0xc000198640, {0xdaefe0, 0xc000186b40})
           /Users/cheneyin/project/intelliJ/github/apache/pulsar/pulsar-function-go/pf/instance.go:395 +0xb3
   github.com/apache/pulsar/pulsar-function-go/pf.(*goInstance).processResult(0xc000198640, {0xdaefe0?, 0xc000186b40?}, {0x0?, 0x0?, 0x1?})
           /Users/cheneyin/project/intelliJ/github/apache/pulsar/pulsar-function-go/pf/instance.go:387 +0x1bd
   github.com/apache/pulsar/pulsar-function-go/pf.(*goInstance).startFunction(0xc000198640, {0xda5aa0?, 0xc0000afec0?})
           /Users/cheneyin/project/intelliJ/github/apache/pulsar/pulsar-function-go/pf/instance.go:179 +0x4f6
   github.com/apache/pulsar/pulsar-function-go/pf.Start({0xb7d020?, 0xcd6c88?})
           /Users/cheneyin/project/intelliJ/github/apache/pulsar/pulsar-function-go/pf/function.go:171 +0x45
   main.main()
           /Users/cheneyin/project/intelliJ/github/apache/pulsar/pulsar-function-go/examples/publishFunc/publishFunc.go:53 +0x27
   ```
   
   ### Anything else?
   
   _No response_
   
   ### Are you willing to submit a PR?
   
   - [X] I'm willing to submit a PR!


-- 
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.

To unsubscribe, e-mail: commits-unsubscribe@pulsar.apache.org.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


[GitHub] [pulsar] Technoboy- closed issue #19367: [Bug] [pulsar-function-go] function process `ackInputMessage` error

Posted by "Technoboy- (via GitHub)" <gi...@apache.org>.
Technoboy- closed issue #19367: [Bug] [pulsar-function-go] function process `ackInputMessage`  error
URL: https://github.com/apache/pulsar/issues/19367


-- 
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.

To unsubscribe, e-mail: commits-unsubscribe@pulsar.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


[GitHub] [pulsar] github-actions[bot] commented on issue #19367: [Bug] [pulsar-function-go] function process `ackInputMessage` error

Posted by "github-actions[bot] (via GitHub)" <gi...@apache.org>.
github-actions[bot] commented on issue #19367:
URL: https://github.com/apache/pulsar/issues/19367#issuecomment-1452856725

   The issue had no activity for 30 days, mark with Stale label.


-- 
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.

To unsubscribe, e-mail: commits-unsubscribe@pulsar.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


[GitHub] [pulsar] pocockn commented on issue #19367: [Bug] [pulsar-function-go] function process `ackInputMessage` error

Posted by "pocockn (via GitHub)" <gi...@apache.org>.
pocockn commented on issue #19367:
URL: https://github.com/apache/pulsar/issues/19367#issuecomment-1554685166

   I am also seeing this issue on `github.com/apache/pulsar/pulsar-function-go v0.0.0-20230518181313-2ebb3797c3f3`


-- 
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.

To unsubscribe, e-mail: commits-unsubscribe@pulsar.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org