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

runtime: out of memory: cannot allocate 4194304-byte block (2771943424 in use) #39

Open
Archurcl4w opened this issue Nov 8, 2021 · 0 comments

Comments

@Archurcl4w
Copy link

I am not possible to run kiterunner on Raspberry Pi 4 8GB Ram , armv7 (ARMhf) with Kali Linux by having the following errors each time when giving the commands like :-
kr scan my_wordlist.txt -w routes-large.kite -A=apiroutes-210328:20000 -x 5 -j 50 --fail-status-codes 400,401,404,403,501,502,426,411 -o output.txt
runtime: out of memory: cannot allocate 4194304-byte block (2771943424 in use)
fatal error: out of memory

goroutine 1 [running]:
runtime.throw({0x700ba7, 0xd})
/usr/local/go/src/runtime/panic.go:1198 +0x5c fp=0xe165008 sp=0xe164ff4 pc=0x4ae5c
runtime.(*mcache).allocLarge(0xb6da7538, 0x5aae0, 0x0, 0x1)
/usr/local/go/src/runtime/mcache.go:229 +0x270 fp=0xe16503c sp=0xe165008 pc=0x27fa8
runtime.mallocgc(0x5aae0, 0x0, 0x0)
/usr/local/go/src/runtime/malloc.go:1082 +0x6d4 fp=0xe165080 sp=0xe16503c pc=0x1dcb4
runtime.slicebytetostring(0x0, 0xbeb90000, 0x5aae0)
/usr/local/go/src/runtime/string.go:110 +0x60 fp=0xe165094 sp=0xe165080 pc=0x6937c
net/url.escape({0xbeb3a000, 0x54548}, 0x6)
/usr/local/go/src/net/url/url.go:337 +0x2d8 fp=0xe16510c sp=0xe165094 pc=0x1bf8b0
net/url.QueryEscape(...)
/usr/local/go/src/net/url/url.go:275
net/url.Values.Encode(0xe16529c)
/usr/local/go/src/net/url/url.go:993 +0x4cc fp=0xe1651cc sp=0xe16510c pc=0x1c3100
github.com/assetnote/kiterunner/pkg/proute.ObjectCrumb.Value({{0x6fbbdc, 0x4}, {0x518a27a0, 0x1, 0x1}}, {0xaa4aaf8, 0x1, 0x1})
/home/kali/kiterunner/pkg/proute/crumb.go:387 +0x91c fp=0xe16536c sp=0xe1651cc pc=0x4e64a8
github.com/assetnote/kiterunner/pkg/proute.Route.Body({{0x322576c0, 0x39}, {0x51864ba0, 0x2, 0x2}, {0x0, 0x0, 0x0}, {0x0, 0x0, ...}, ...}, ...)
/home/kali/kiterunner/pkg/proute/route.go:133 +0x3b8 fp=0xe1653dc sp=0xe16536c pc=0x519b9c
github.com/assetnote/kiterunner/pkg/proute.Route.ToKiterunner({{0x322576c0, 0x39}, {0x51864ba0, 0x2, 0x2}, {0x0, 0x0, 0x0}, {0x0, 0x0, ...}, ...}, ...)
/home/kali/kiterunner/pkg/proute/kiterunner.go:80 +0x3f8 fp=0xe1654c8 sp=0xe1653dc pc=0x4f0ae0
github.com/assetnote/kiterunner/pkg/proute.ToKiterunnerRoutes({{0x3231a3f0, 0x10}, {0x322e9200, 0x28}, {0x518c2000, 0xaa, 0x12d}, {0x0, 0x0, 0x0}, ...})
/home/kali/kiterunner/pkg/proute/kiterunner.go:29 +0xf4 fp=0xe165624 sp=0xe1654c8 pc=0x4f0388
github.com/assetnote/kiterunner/internal/scan.LoadKitebuilderFile.func1(0x1c6aee0)
/home/kali/kiterunner/internal/scan/options.go:456 +0x320 fp=0xe16578c sp=0xe165624 pc=0x57bc4c
github.com/assetnote/kiterunner/internal/scan.ScanDomainOrFile({0x7e7978, 0x1e360f0}, {0xbefea32d, 0x1a}, {0xe165e84, 0x15, 0x15})
/home/kali/kiterunner/internal/scan/scan.go:61 +0x270 fp=0xe165d94 sp=0xe16578c pc=0x57f0a0
github.com/assetnote/kiterunner/cmd/kiterunner/cmd.glob..func6(0xbc89a0, {0x1e32360, 0x1, 0xc})
/home/kali/kiterunner/cmd/kiterunner/cmd/scan.go:120 +0x674 fp=0xe165edc sp=0xe165d94 pc=0x623750
github.com/spf13/cobra.(*Command).execute(0xbc89a0, {0x1e32300, 0xc, 0xc})
/root/go/pkg/mod/github.com/spf13/[email protected]/command.go:856 +0x644 fp=0xe165f38 sp=0xe165edc pc=0x5a7ba4
github.com/spf13/cobra.(*Command).ExecuteC(0xbc9670)
/root/go/pkg/mod/github.com/spf13/[email protected]/command.go:960 +0x408 fp=0xe165fa4 sp=0xe165f38 pc=0x5a82ac
github.com/spf13/cobra.(*Command).Execute(...)
/root/go/pkg/mod/github.com/spf13/[email protected]/command.go:897
github.com/assetnote/kiterunner/cmd/kiterunner/cmd.Execute()
/home/kali/kiterunner/cmd/kiterunner/cmd/root.go:37 +0x20 fp=0xe165fb8 sp=0xe165fa4 pc=0x620558
main.main()
/home/kali/kiterunner/cmd/kiterunner/main.go:5 +0x14 fp=0xe165fbc sp=0xe165fb8 pc=0x624504
runtime.main()
/usr/local/go/src/runtime/proc.go:255 +0x278 fp=0xe165fe4 sp=0xe165fbc pc=0x4db58
runtime.goexit()
/usr/local/go/src/runtime/asm_arm.s:838 +0x4 fp=0xe165fe4 sp=0xe165fe4 pc=0x81010

goroutine 6 [IO wait, 1 minutes]:
internal/poll.runtime_pollWait(0xa6319390, 0x72)
/usr/local/go/src/runtime/netpoll.go:229 +0xac
internal/poll.(*pollDesc).wait(0x1d2a244, 0x72, 0x0)
/usr/local/go/src/internal/poll/fd_poll_runtime.go:84 +0x30
internal/poll.(*pollDesc).waitRead(...)
/usr/local/go/src/internal/poll/fd_poll_runtime.go:89
internal/poll.(*FD).Accept(0x1d2a230)
/usr/local/go/src/internal/poll/fd_unix.go:402 +0x234
net.(*netFD).accept(0x1d2a230)
/usr/local/go/src/net/fd_unix.go:173 +0x20
net.(*TCPListener).accept(0x1d160b0)
/usr/local/go/src/net/tcpsock_posix.go:140 +0x20
net.(*TCPListener).Accept(0x1d160b0)
/usr/local/go/src/net/tcpsock.go:262 +0x30
net/http.(*Server).Serve(0x1d12000, {0x7e75d4, 0x1d160b0})
/usr/local/go/src/net/http/server.go:3001 +0x320
net/http.(*Server).ListenAndServe(0x1d12000)
/usr/local/go/src/net/http/server.go:2930 +0xa4
net/http.ListenAndServe(...)
/usr/local/go/src/net/http/server.go:3184
github.com/assetnote/kiterunner/cmd/kiterunner/cmd.glob..func6.1()
/home/kali/kiterunner/cmd/kiterunner/cmd/scan.go:102 +0x60
created by github.com/assetnote/kiterunner/cmd/kiterunner/cmd.glob..func6
/home/kali/kiterunner/cmd/kiterunner/cmd/scan.go:101 +0x4a4

goroutine 18 [syscall, 1 minutes]:
os/signal.signal_recv()
/usr/local/go/src/runtime/sigqueue.go:169 +0xf0
os/signal.loop()
/usr/local/go/src/os/signal/signal_unix.go:24 +0x14
created by os/signal.Notify.func1.1
/usr/local/go/src/os/signal/signal.go:151 +0x30

goroutine 8 [select, 1 minutes]:
github.com/assetnote/kiterunner/pkg/context.AddInterruptCancellation.func1(0x1e31a00, 0x1e18ff8, {0x7e7978, 0x1e360f0})
/home/kali/kiterunner/pkg/context/context.go:28 +0x80
created by github.com/assetnote/kiterunner/pkg/context.AddInterruptCancellation
/home/kali/kiterunner/pkg/context/context.go:25 +0xb4

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