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

Examples not working with very largearray #1

Closed
idan1109 opened this issue Jul 11, 2022 · 4 comments
Closed

Examples not working with very largearray #1

idan1109 opened this issue Jul 11, 2022 · 4 comments

Comments

@idan1109
Copy link

Hello, first of all thank you for all the very good examples. I've noticed that both with string but also with arrays of strings, gives the error
panic: can't allocate something that big (16760 bytes)

https://github.com/fluhus/snopher/blob/master/src/join/join.go
any idea about it?

@fluhus
Copy link
Owner

fluhus commented Jul 11, 2022

Hi, thank you very much for reporting.
Can you provide a code example that reproduces this error?
Also, what Go and GCC versions are you using?
That would help me debug the issue.

@idan1109
Copy link
Author

Hi, i think i got why. The package i'm using https://github.com/inetaf/wf/blob/main/malloc.go is using arena allocator. The slabSize limit is 4096 so this is why it's trowing the error so the issure is not related to your code.

I have very little experience on golang do you have any idea how can i overcome this?

@fluhus
Copy link
Owner

fluhus commented Jul 11, 2022

I can see that the panic gets thrown from Alloc. I am not familiar with this package though. Do you call this function directly?

@fluhus
Copy link
Owner

fluhus commented Jul 14, 2022

Closing as this seems unrelated to snopher.

@fluhus fluhus closed this as completed Jul 14, 2022
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