-
Notifications
You must be signed in to change notification settings - Fork 46
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
Segfault while using lmdb 2.7.x #206
Comments
@LekoArts Have you tried using [email protected]? It does have one important fix for MacOS (#203, although this has been manifested in hanging for other users, so not sure). Does gatsby use/open any of the same databases that parcel uses (wondering if it is an issue with different versions of lmdb connecting to the same database, which I have tried to maintain, but it is... challenging)? Anyway, I will try to take a look at this repo, thank you for the detailed info. |
No, haven't tried 2.7.3 yet!
No, I don't think so. We use Parcel's LMDBCache (https://github.com/gatsbyjs/gatsby/blob/204825250ca302a73e1ce695222ec29b96112782/packages/gatsby/src/utils/parcel/compile-gatsby-files.ts#L111-L112) but that shouldn't interfere at all with our usage. I just had difficulties with multiple versions for other projects (e.g. graphql, sharp) so it was just an assumption that maybe diff lmdb versions would cause a problem. But then again, 2.5.2 and 2.5.3 seemed to have worked fine together. So maybe that's just a red herring and actual problem is something in > 2.5.3 |
I've seen a segfault in #205 maybe it's connected? |
@LekoArts Did upgrading fix the issue for you? |
Hi Kris!
For the Gatsby 5.3 release we bumped our usage of lmdb from 2.5.3 to 2.7.1 (gatsbyjs/gatsby#37160). Gatsby also uses Parcel (which we bumped to 2.8.1) which itself uses 2.5.2 (via
@parcel/cache#[email protected]
).Shortly after the release we saw users on Mac (we couldn't reproduce on WSL/Ubuntu or Windows) hit an issue with hard segfaults: gatsbyjs/gatsby#37246
Internally we also saw this and told one of our engineers to attach the segfault-handler:
I also prepared a repository for you to reproduce it: https://github.com/LekoArts/lmdb-gatsby-5.3.0-segfault-repro
I didn't test yet if this has to do with different lmdb versions (gatsby & parcel) or if this would happen if you'd force lmdb via resolutions to 2.7.x also in Parcel.
For now we're reverting the upgrade (gatsbyjs/gatsby#37255) and it works now again.
The text was updated successfully, but these errors were encountered: