zzzming opened a new issue #181: Crash on 
[email protected]/pulsar/client_impl.go:146 
+0x14a
URL: https://github.com/apache/pulsar-client-go/issues/181
 
 
   #### Expected behavior
   
   Do not crash
   
   #### Actual behavior
   INFO[70204] Connecting to broker                          
remote_addr="pulsar+ssl://useast1.gcp.pulsarcluster.com:6651"
   INFO[70204] TCP connection established                    
local_addr="162.177.7.2:50200" 
remote_addr="pulsar+ssl://useast1.gcp.pulsarcluster.com:6651"
   INFO[70205] Connection is ready                           
local_addr="162.177.7.2:50200" 
remote_addr="pulsar+ssl://useast1.gcp.pulsarcluster.com:6651"
   panic: runtime error: invalid memory address or nil pointer dereference
   [signal SIGSEGV: segmentation violation code=0x1 addr=0x18 pc=0x84f47a]
   
   goroutine 8 [running]:
   
github.com/apache/pulsar-client-go/pulsar.(*client).TopicPartitions(0xc000caf140,
 0xc0000261e0, 0x43, 0xc000e05980, 0xc000450c00, 0xc00049d8a8, 0x40d936, 
0xc001011860)
        
/go/pkg/mod/github.com/apache/[email protected]/pulsar/client_impl.go:146
 +0x14a
   github.com/apache/pulsar-client-go/pulsar.newProducer(0xc000caf140, 
0xc001011860, 0x0, 0xc00049d938, 0x4d0d71)
        
/go/pkg/mod/github.com/apache/[email protected]/pulsar/producer_impl.go:66
 +0xc3
   
github.com/apache/pulsar-client-go/pulsar.(*client).CreateProducer(0xc000caf140,
 0xc0000261e0, 0x43, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, ...)
        
/go/pkg/mod/github.com/apache/[email protected]/pulsar/client_impl.go:104
 +0x78
   main.PubSubLatency(0xc0003d4000, 0x186, 0xc0003be090, 0x2b, 0xc0000261e0, 
0x43, 0x0, 0x0, 0x0)
        /root/src/pulsar-latency.go:58 +0x11b
   
   #### Steps to reproduce
   A Go client to create a producer and a consumer that sends and receives a 
message , then close both producer and consumer every two minutes in a loop. 
The client is only created once in the bootstrap. The crash signature described 
above can be seen within 24 hours.
   
   #### System configuration
   Pulsar-client-go version 
   commit - 6943327c9690c126fc94bf3249b23a6e316d0e7f
   go mod dep - github.com/apache/pulsar-client-go 
v0.0.0-20200129234600-6943327c9690
   **Pulsar version**: 2.4.2
   

----------------------------------------------------------------
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:
[email protected]


With regards,
Apache Git Services

Reply via email to