Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

panic: runtime error: invalid memory address or nil pointer dereference #1

Open
jpenttinen opened this issue May 7, 2024 · 0 comments

Comments

@jpenttinen
Copy link

Hi, when I run xk6-http3 with below configuration file with command
./k6 run http3.js

import http3 from 'k6/x/http3'

export default function(){
  let resp = http3.get("https://www.google.com/")
  //console.log(resp);
}

Code panics following way right after statistics are printed to the console:

panic: runtime error: invalid memory address or nil pointer dereference
[signal SIGSEGV: segmentation violation code=0x1 addr=0x18 pc=0xec090b]

goroutine 91 [running]:
github.com/bandorko/xk6-http3.(*RootModule).NewModuleInstance.func1()
        github.com/bandorko/xk6-http3@v0.2.0/http3.go:66 +0x8b
created by github.com/bandorko/xk6-http3.(*RootModule).NewModuleInstance in goroutine 1
        github.com/bandorko/xk6-http3@v0.2.0/http3.go:61 +0x2e5

Code was compiled with:

xk6 build --with github.com/bandorko/xk6-http3

Versions are:

./k6 --version
k6 v0.48.0 (go1.21.0, linux/amd64)
Extensions:
github.com/bandorko/xk6-http3 v0.2.0, k6/x/http3 [js]

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant