-
Notifications
You must be signed in to change notification settings - Fork 191
Segfault in 24.1.0-dev GFTC builds with pg driver #3590
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
Comments
So that sounds like an issue in TruffleNFI. Could you try with 24.0.1 (JVM) too? |
I'm sorry. I had tested with 24.0.1 but forgot to note it. I'm only seeing the problem with the 24.1.0-dev GFTC JVM build. I don't see it with native builds and I don't see it with a CE JVM build. I also tried with the cext lock enabled and disabled -- that has no impact. The stack does look NFI related, but I wonder if it's something about the pg driver. I tried the sqlite3 benchmark and that didn't crash. |
I can reproduce this using your docker containers. Strangely enough I can't reproduce it on my host system. I'm pretty sure the issue is that there is a second libffi coming from somewhere. The first one is statically linked into What's happening here is that the dynamic loader is confusing those two libraries, and it seems to be mixing symbols from them. E.g. use I tried to rename all the libffi symbols in |
@rschatz Interesting. If it helps any, I'm seeing the crash when running on my Ubuntu 24.04 host. Is there something in particular I can search for that would help you see if it's a naming conflict? |
This was actually easier than I thought. Just adding I made a PR: oracle/graal#9146 This fixes the problem for me on your containers. |
Thanks. I can confirm the process no longer segfaults. |
While running the benchmarks from the ORM benchmarks discussion, I ran into a segfault using the latest 24.1.0-dev GFTC JVM builds. I haven't seen the issue with the GFTC native builds. The crash occurs 100% reliably on my Ubuntu 24.04 x86_64 system.
Steps:
cd activerecord_truffleruby
bundle install
DATABASE_URL
environment variable to connect into the container (e.g., the value ispostgres://postgres:postgres@localhost:36319/TestAR
on my machine because local post 36319 forwards to 5432 in the container)ruby benchmark.rb
hs_err_pid700062.log
internal issue:
[GR-54771]
The text was updated successfully, but these errors were encountered: