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

SIGSEGV: segmentation violation on route53-resolver-rules.go:159 #287

Closed
tmax22 opened this issue Sep 11, 2024 · 4 comments · Fixed by #289
Closed

SIGSEGV: segmentation violation on route53-resolver-rules.go:159 #287

tmax22 opened this issue Sep 11, 2024 · 4 comments · Fixed by #289
Labels

Comments

@tmax22
Copy link

tmax22 commented Sep 11, 2024

looks exactly the same as this issue rebuy-de/aws-nuke#1134. but it strange because it apears to be solved in #15

my error:

eu-west-1 - Route53ResolverRule - rslvr-autodefined-rr-internet-resolver (Internet Resolver) - [ID: "rslvr-autodefined-rr-internet-resolver", Name: "Internet Resolver"] - filtering DomainName "."
panic: runtime error: invalid memory address or nil pointer dereference [recovered]
      panic: runtime error: invalid memory address or nil pointer dereference
[signal SIGSEGV: segmentation violation code=0x1 addr=0x0 pc=0x435c3f0]

goroutine 1 [running]:
main.main.func1()
      github.com/ekristen/aws-nuke/v3/main.go:26 +0x54
panic({0x52a3820?, 0xa7d6a30?})
      runtime/panic.go:914 +0x21f
github.com/ekristen/aws-nuke/v3/resources.(*Route53ResolverRule).String(0xc000992180)
      github.com/ekristen/aws-nuke/v3/resources/route53-resolver-rules.go:159 +0x50
github.com/ekristen/libnuke/pkg/nuke.(*Nuke).Filter(0xc000744280, 0xc000d5a8a0)
      github.com/ekristen/[email protected]/pkg/nuke/nuke.go:433 +0x222
github.com/ekristen/libnuke/pkg/nuke.(*Nuke).runScanner(0xc000744280, {0x6ca4478?, 0xc0000be050?}, 0xc0003a68a0, 0xc000728318)
      github.com/ekristen/[email protected]/pkg/nuke/nuke.go:387 +0x245
github.com/ekristen/libnuke/pkg/nuke.(*Nuke).Scan(0xc000744280, {0x6ca4478, 0xc0000be050})
      github.com/ekristen/[email protected]/pkg/nuke/nuke.go:412 +0x1b6
github.com/ekristen/libnuke/pkg/nuke.(*Nuke).Run(0xc000744280, {0x6ca4478, 0xc0000be050})
      github.com/ekristen/[email protected]/pkg/nuke/nuke.go:198 +0xda
github.com/ekristen/aws-nuke/v3/pkg/commands/nuke.execute(0xc000050480)
      github.com/ekristen/aws-nuke/v3/pkg/commands/nuke/nuke.go:205 +0x180a
github.com/urfave/cli/v2.(*Command).Run(0xc00040e000, 0xc000050480, {0xc00037e8d0, 0x3, 0x3})
      github.com/urfave/cli/[email protected]/command.go:276 +0x9dd
github.com/urfave/cli/v2.(*Command).Run(0xc00040e6e0, 0xc000050340, {0xc000050080, 0x4, 0x4})
      github.com/urfave/cli/[email protected]/command.go:269 +0xc2e
github.com/urfave/cli/v2.(*App).RunContext(0xc000474000, {0x6ca4210?, 0xa818e40}, {0xc000050080, 0x4, 0x4})
      github.com/urfave/cli/[email protected]/app.go:333 +0x5db
github.com/urfave/cli/v2.(*App).Run(...)
      github.com/urfave/cli/[email protected]/app.go:307
main.main()
      github.com/ekristen/aws-nuke/v3/main.go:46 +0x1eb

a workaround for now would be filtering the default Internet Resolver by:

Route53ResolverRule:
  - property: Name
    value: "Internet Resolver"
@ekristen
Copy link
Owner

@tmax22 what version are you running? aws-nuke --version

@tmax22
Copy link
Author

tmax22 commented Sep 11, 2024

latest v3.17.3.

@ekristen
Copy link
Owner

Can you please run and provide me the output, please sanitize any account ids.

aws route53resolver list-resolver-rules 

@ekristen
Copy link
Owner

🎉 This issue has been resolved in version 3.18.1 🎉

The release is available on GitHub release

Your semantic-release bot 📦🚀

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

Successfully merging a pull request may close this issue.

2 participants