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

On windows AsyncSubscriber causes exception in libuv upon destruction #575

Open
borisu opened this issue Jun 23, 2024 · 0 comments
Open

Comments

@borisu
Copy link

borisu commented Jun 23, 2024

Not sure it bug or not but I am experiencing mentioned exception when destroying the object.

I am using redis++ via vcpkg for the https://github.com/borisu/bricks

In general, code template looks like that

auto redis = new AsyncRedis("....");
auto subscriber = new AsyncSubscriber(redis->subscriber());

/* do things */

try {
	auto f = subscriber->unsubscribe();
	f.wait();
}
catch (std::exception&) {};
delete subscriber;
delete redis

what happens is crash like that :-
Assertion failed: 0, file \vcpkg\buildtrees\libuv\src\v1.46.0-608af35d5c.clean\src\win\handle.c, line 71

Environment:

  • OS: Windows
  • Compiler: MSVC
  • hiredis version: latest of vcpkg
  • redis-plus-plus version: latest of vcpkg

Additional context
Add any other context about the problem here.

@borisu borisu changed the title On windows AsyncSubscriber causes exception in libuv On windows AsyncSubscriber causes exception in libuv upon destruction Jun 23, 2024
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