-
Notifications
You must be signed in to change notification settings - Fork 180
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
Crash #291
Comments
Original comment by Lars Kanis (Bitbucket: larskanis, GitHub: larskanis). Only the ruby level stack trace is complete, but not the C level trace. So we know that the segfault is somewhere in
Segfaults while connection can also be a result of changed OpenSSL versions. If this doesn't work, a valgrind output would be useful and a minimal example. |
@ged did you find a solution to this? |
Unfortunately the stack trace is less expressive, further information wasn't posted and no solution was found. So I think there's no way to go and we can close the ticket. |
FWIW, does look like a bug; noted here separately by another user on stack overflow: |
I am the person who posted the bug on stackoverflow. This bug happens to me ONLY in I 'fixed' it for a couple of days by replacing my database.yml file with the default one coming from a test application. But, without any changes to that file, it has stopped working again. I have uninstalled and reinstalled both postgresql and the pg gem. Incredibly, on the same machine - so pointing to the same postgresql, and using the same version (1.1.4) of the gem, though in a different bundle - I CAN access the database from the command line from inside rails console of the test app (literally just create a new app, create a model). To me, this means there is a configuration issue or a conflict between perhaps another gem or something. My database.yml looks like this:
I am uploading the stack trace. I am giving up and moving my project over to mysql. This is my first time to use postgresql - after 15 years of rails/mysql (yes, I started at rails 0.9!). |
If I'm reading correctly, I see the last call in libpq is |
I'm getting this too. In case it helps: It has started happening after ran |
I'll add my experience here in case it helps. I'm also experiencing a crash from ActiveRecord after upgrading to PostgreSQL 12 via Homebrew. I "fixed" the problem by brew installing My Rails app is working fine with PostgreSQL 12 since. |
@tadast, @jrun, this information is helpful, but I think we should track these separately. If you can, please open a new issue with a log of your crash including the C level backtrace information. Thanks! |
@jrun I don't quite understand your last line...if you brew install postgresql@9.6, isn't your app running on 9.6 and not 12? |
Sorry if I am spamming this thread. Anyway, I did a completely clean install (i.e. reformatted hard drive) of MacOS 10.14 Mojave. I did nothing 'fancy', just installed homebrew and rbenv. I installed postgresql by
I ran that. cd'ed into my project directory, did build install, and....everything worked fine. Now, that being said, this has 'worked fine' before. See my comment above that in one rails app I could do ActiveRecord from within rails console while in another app I could not. So we shall see what happens over time. If it helps, here is a list of the brews I have installed with their versions.
|
My temporary workaround for this was to brew install postgresql version 11, compile the pg gem, then brew install postgresql version 12 and (re)start the server. Now I've got a client gem compiled with version 11 code that doesn't segfault, and a server running the latest version 12 code. |
@cbandy I can confirm that adding |
Adding |
Original report by Yosi Attias (Bitbucket: yosiat, GitHub: yosiat).
Hi,
I have crashes started since I upgraded my postgres to 11 (via Homebrew)
This is stack trace:
I failed to reproduce it to minimal test case.
Please let me know which information I can supply to help resolve this issue.
The text was updated successfully, but these errors were encountered: