Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                
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

Vegeta not working with ipv6 hosts #649

Closed
romain-neil opened this issue Sep 24, 2023 · 3 comments
Closed

Vegeta not working with ipv6 hosts #649

romain-neil opened this issue Sep 24, 2023 · 3 comments

Comments

@romain-neil
Copy link

Version and Runtime

Version: v12.11.0
Commit: e49c367a014978b5b7228d0e2d6bed6c0555e1e3
Runtime: go1.20.6 linux/amd64
Date: 2023-07-24T19:10:47Z+0000

Expected Behaviour

I expect to test the loading test of a ipv6 only host

Actual Behaviour

Vegeta crash with the following output :

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

goroutine 10 [running]:
net/http.(*persistConn).closeLocked(0xc00008eea0, {0xab4680, 0xc000034c80})
        /opt/hostedtoolcache/go/1.20.6/x64/src/net/http/transport.go:2732 +0x12a
net/http.(*persistConn).close(0xc0000325f8?, {0xab4680?, 0xc000034c80?})
        /opt/hostedtoolcache/go/1.20.6/x64/src/net/http/transport.go:2717 +0xb0
net/http.(*persistConn).readLoop.func1()
        /opt/hostedtoolcache/go/1.20.6/x64/src/net/http/transport.go:2075 +0x2d
panic({0x941b20, 0xe28e80})
        /opt/hostedtoolcache/go/1.20.6/x64/src/runtime/panic.go:884 +0x213
net/http.(*persistConn).Read(0xc00008eea0, {0xc0000f8000?, 0x405c66?, 0x60?})
        /opt/hostedtoolcache/go/1.20.6/x64/src/net/http/transport.go:1943 +0x42
bufio.(*Reader).fill(0xc00006ade0)
        /opt/hostedtoolcache/go/1.20.6/x64/src/bufio/bufio.go:106 +0xff
bufio.(*Reader).Peek(0xc00006ade0, 0x1)
        /opt/hostedtoolcache/go/1.20.6/x64/src/bufio/bufio.go:144 +0x5d
net/http.(*persistConn).readLoop(0xc00008eea0)
        /opt/hostedtoolcache/go/1.20.6/x64/src/net/http/transport.go:2107 +0x1ac
created by net/http.(*Transport).dialConn
        /opt/hostedtoolcache/go/1.20.6/x64/src/net/http/transport.go:1765 +0x16ea

Steps to Reproduce

  1. Run the command :
    echo "GET http://[ipv6 host or ipv6 litteral]/" | ./vegeta attack -duration=20s -rate=60

Additional Context

The command run with the local ipv4 address of the host, to make a plot.

@tsenart
Copy link
Owner

tsenart commented Sep 25, 2023

Can you try the v12.9.0 release? I bet this was introduced in v12.10.0 with DNS caching.

@romain-neil
Copy link
Author

romain-neil commented Sep 25, 2023

Hello, thanks for the reply. Effectively, vegeta working as expected in v12.9

@tsenart tsenart closed this as completed in 6fbe391 Oct 2, 2023
@tsenart
Copy link
Owner

tsenart commented Oct 2, 2023

New release should fix this: https://github.com/tsenart/vegeta/releases/tag/v12.11.1

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

2 participants