arton / rjb

Ruby Java Bridge
https://www.artonx.org/collabo/backyard/?RubyJavaBridge
GNU Lesser General Public License v2.1
117 stars 34 forks source link

Segfaults with Ubuntu 14.04 x64 #58

Open alexchee opened 7 years ago

alexchee commented 7 years ago

We have recently been running into this issue on newly updated ubuntu images with 14.04 where any calls to Rjb::load or Rjb::import just segfaults. This would only happen to newly launched AWS instances, but older ones with the same version do not run into this problem.

After a while, we noticed that there's a minor kernel patch that causes user-space apps to crash: https://bugs.launchpad.net/ubuntu/+source/linux/+bug/1699772

It seems to be affecting these linux images: linux-image-4.10.0-24-generic, linux-image-4.8.0-56-generic, linux-image-4.4.0-81-generic, linux-image-3.13.0-121-generic

Just a heads up for anyone running into segfaults recently. The devs are working on a fix, and there's a workaround for now to set the env:

export JAVA_TOOL_OPTIONS=-Xss1280k

@ericgoedtel, @davidkiser, @gadogado on my team figured out this issue.

arton commented 6 years ago

Thanks alexchee for this great information!