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

Multiple concurrent executions causing SIGSEGV #3

Open
jphhofmann opened this issue May 27, 2021 · 0 comments
Open

Multiple concurrent executions causing SIGSEGV #3

jphhofmann opened this issue May 27, 2021 · 0 comments

Comments

@jphhofmann
Copy link

Hello!

Recently, I've used your cstrftime function within a go project, in order to create timestamps for go-elasticsearch search queries, backed by fasthttp. Unfortunately, under heavy load, random segfaults are seen. It looks like, the function uses a somtimes unallocated or in general shared memory space, which is prone to memory corruption. That said, I've switched to go time.Format() which works fine and stable, even under multiple hundred executions per second.

You should probably warn potential users about the negative impact concurrent executions can have on their application. It was quite hard to debug the issue, even while using well known debuggers such as GDB. Random SIGSEGV was seen without any clear details available in stacktraces.

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