-
-
Notifications
You must be signed in to change notification settings - Fork 1k
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
Stack Overflow error in dev enviroment when table and embed resource do not exist #3329
Comments
Hm, so the solution should be pinning a previous version of |
At first glance, it should. But IIRC, previous versions have conflicts with the current GHC version. Particularly the |
Seems related commercialhaskell/stackage#7341 (comment) |
I don't think this is related.
Correct, we can't downgrade. But I don't see why we should here, I don't see a connection to |
Of course the only code changes in that are about |
The most likely explanation though is, that I just broke it with the code changes about fuzzyset that I made. So it might be worth reviewing them carefully. |
Ah, I thought of it as evidence that something happened there. But cool, it isn't related to a broken library, then.
Cool, will do both to check what's happening. |
Tried to upgrade to It may be that the library itself has the leaks, not really sure. Regardless, I think the best course of action is to downgrade to |
Environment
Description of issue
When requesting a table that does not exist with any embedded resource, it shows a
stack overflow
error in the logs and fails the request. To reproduce:$ nix-shell --pure --run "postgrest-with-postgresql-16 -f ./test/spec/fixtures/load.sql postgrest-run"
Expected:
This only happens in the Nix development environment for now (not for spec tests), since it enables the leak detection with
-K1K
:postgrest/postgrest.cabal
Line 185 in ec7ab27
It appears that the
fuzzyset
package, used to build the "hint" of the error, is the culprit. The evidence is that it is marked as "broken" in the latest update of nixpkgs/GHC in commit 6682bae (previous commits do not throw the error even with-K1K
):postgrest/nix/overlays/haskell-packages.nix
Lines 48 to 49 in ec7ab27
The text was updated successfully, but these errors were encountered: