Valac hangs with calling "UDisks.Filesystem.call_mount_sync" inside a try...finally
While working on a program using UDisk2, I ran into a case where valac will cause ninja to hang. I commented out the code and eventually came to the conclusion of a try...finally block causing valac to get stuck. I've tried commenting out portions and discovered it only crashes when "UDisks.Filesystem.call_mount_sync" is used. The issue only occurs if that particular method is called in a try...finally. The whole file is available here along with the particular line: https://github.com/ExpidusOS/sdk/blob/0319cd7fb398535e087cfc7c0a2731be2ab1a746/src/modules/metabuild/disk-build.vala#L73.
Edit: I've also found cases where the methods called in the finally block causes the hang. This might need more looking into.
Edited by Tristan Ross