-
-
Notifications
You must be signed in to change notification settings - Fork 228
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
AddressSanitizer issue on multihreaded insert #40
Comments
Hi, just to let you know I finally found the issue. In documentation, you're using |
@chybz where did you see that reference to |
Thanks @greg7mdp for your update. It's there in the code block right after "and here is the code for the multi-threaded insert". I've another question, though. Could you please add an Thanks for any help. |
Sounds good @chybz I'll try to get this done this week-end. Thanks for pointing out the location of the code! |
Hi @chybz I tried adding the insert() with the hash value provided, but in my tests it doesn't make any speed difference, so I am not sure it is worth it. |
Hi @greg7mdp, thank you very much for the time you spent on the subject ! |
Hi @chybz pas de problème, merci d'utiliser parallel_hashmap! |
Hello @greg7mdp !
I'm using a
parallel_flat_hash_map<uint64_t, uint32_t>
to store information about some groups, much like a SQL GROUP BY. Map key is a XXH3 cumulative hash of the grouped columns and value is the position of that group.I submit to 16 worker threads a list of group keys to insert, following example code from your documentation:
When compiled with AddressSanitizer under GCC 8.3.0, I get the attached trace. When compiled without AddressSanitizer, it segfaults at the same location. I've banged my head around (though it starts to hurt a bit now) checking and re-checking to no-avail.
Could you please help me ?
log.txt
The text was updated successfully, but these errors were encountered: