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

Windows: Start testing classes with multithreading enabled fails #31

Closed
infeo opened this issue Apr 5, 2023 · 2 comments
Closed

Windows: Start testing classes with multithreading enabled fails #31

infeo opened this issue Apr 5, 2023 · 2 comments
Assignees
Labels
bug Something isn't working
Milestone

Comments

@infeo
Copy link
Member

infeo commented Apr 5, 2023

Omitting the FUSE single thread option (-s), activates mulithreading.

But on Windows all adequate test classes fail to start with:

org.cryptomator.jfuse.api.FuseMountFailedException: Exception when starting fuse_loop. Message: unresolved symbol: fuse3_loop_mt
	at [email protected]/org.cryptomator.jfuse.api.Fuse.mount(Fuse.java:138)
	at [email protected]/org.cryptomator.jfuse.win.FuseImpl.mount(FuseImpl.java:37)
	at [email protected]/org.cryptomator.jfuse.examples.WindowsMirrorFileSystem.main(WindowsMirrorFileSystem.java:34)

I believe this is related to the fact, that in the winfsp DLL, fuse3_loop_mt and fuse3_loop_mt_31 map to the same virtual address, as it can be see with the Dependencies app:
grafik

@infeo infeo added the bug Something isn't working label Apr 5, 2023
@infeo infeo self-assigned this Apr 5, 2023
@infeo infeo added this to the 0.5.1 milestone Apr 5, 2023
@infeo infeo closed this as completed in c5851bb Apr 6, 2023
@infeo
Copy link
Member Author

infeo commented Apr 6, 2023

Info: Using fsp_fuse3_loop_mt_31 does the trick. I guess, because the symbol is defined after the normal loop function, it overwrites some internal definition.

@overheadhunter
Copy link
Member

@infeo can you ask on the panama-dev mailing list whether this is a problem with the linker?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants