-
Notifications
You must be signed in to change notification settings - Fork 203
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
[Bug] Out of bounds memory access #339
Comments
Hey @rhuanbarreto Thanks for the report. If you could narrow down the cause and produce a reproduction it would be super helpful. If you want to dig in yourself, setting the debug level to 1 with |
Upgraded to v0.2.8 and enabled debug. Got a new related error (still happens at initdb):
|
Why does "bun test v1.1.29 (6d43b366)" appears in the initdb flow ? is something trying to run concurrently ? i don't get where this block is coming from
|
I just started getting this in my tests after upgrading from 0.2.7 to 0.2.10, using Jest. Looks like 0.2.8 is where it starts failing. I can try to isolate more tomorrow...
UPDATE: I was closing the database too quickly and it hadn't completed unlistening to a channel. In 0.2.8 and above this seems important! |
A few versions before 0.2.8 had a bug that was resulting in a .close() not checkpointing the WAL. Postgres then always had to replay the WAL on start. We fixed that, but it may be something odd is happen as a result (we may have messed something) Is the error happing on restart or after the close call? I'm keen to reproduce this so we can sure it's prevented. Do you have a rough idea of the sequence that triggers it? |
I'm working on checking if it's a race condition. We are using pglite in the test suite but we are not initializing the DB in the beforeAll phase. So maybe this is generating a race condition |
I'm tempted to say I'm in the wrong! I didn't await the |
When running tests using pglite, i'm getting this error many times:
I'm using PGlite v0.2.6 and Bun v1.1.29
This is flaky. Sometimes it works, sometimes doesn't. Any help on fixing this?
The text was updated successfully, but these errors were encountered: