euannliu opened a new issue, #23647:
URL: https://github.com/apache/beam/issues/23647

   I'm getting an error initializing Apache Beam for my Go service deployed to 
kubernetes. The error in question is:
   ```panic: runtime error: invalid memory address or nil pointer dereference
   [signal SIGSEGV: segmentation violation code=0x1 addr=0x40 pc=0xb94949]
   
   goroutine 1 [running]:
   
github.com/apache/beam/sdks/v2/go/pkg/beam/core/runtime/xlangx/expansionx.newJarGetter()
        
/go/src/groups/vendor/github.com/apache/beam/sdks/v2/go/pkg/beam/core/runtime/xlangx/expansionx/download.go:50
 +0x29
   
github.com/apache/beam/sdks/v2/go/pkg/beam/core/runtime/xlangx/expansionx.init()
        
/go/src/groups/vendor/github.com/apache/beam/sdks/v2/go/pkg/beam/core/runtime/xlangx/expansionx/download.go:40
 +0x17
   ```
        
   Looking at the code, it seems like the culprit is `usr` in
    ```
        cacheDir := filepath.Join(usr.HomeDir, jarCache[2:])
   ```
   I am wondering if there is a potential bug or problem with `usr, _ := 
user.Current()` in the line before.
   
        


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

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to