[jruby-user] JRuby 1.7.4 warning - You have loaded ... arm-Linux/libjffi-1.2.so

145 views
Skip to first unread message

cr...@coot.net

unread,
May 19, 2013, 12:43:36 AM5/19/13
to us...@jruby.codehaus.org
This is on an Intel I7 machine running ubuntu 13.04.

craig@lug:~$ jruby -v
jruby 1.7.4 (1.9.3p392) 2013-05-16 2390d3b on Java HotSpot(TM) 64-Bit Server VM 1.8.0-ea-b90 +indy [linux-amd64]

craig@lug:~$ which gem
/opt/ruby/jruby/bin/gem

craig@lug:~$ gem list
Java HotSpot(TM) 64-Bit Server VM warning: You have loaded library /opt/ruby/jruby-1.7.4/lib/native/arm-Linux/libjffi-1.2.so which might have disabled stack guard. The VM will try to fix the stack guard now.
It's highly recommended that you fix the library with 'execstack -c <libfile>', or link it with '-z noexecstack'.

*** LOCAL GEMS ***

rake (10.0.3)


--------------------------------------------------------------------- To unsubscribe from this list, please visit: http://xircles.codehaus.org/manage_email

Wayne Meissner

unread,
May 19, 2013, 1:02:39 AM5/19/13
to us...@jruby.codehaus.org
That sounds like this issue: https://github.com/jruby/jruby/issues/626

Not sure why it is still cropping up, but I haven't had time to create
a linux vm, with openjdk8 on it and try to repro.

If you run via jruby.sh, does the same error show up?

cr...@coot.net

unread,
May 19, 2013, 1:54:18 AM5/19/13
to us...@jruby.codehaus.org, cr...@coot.net

> From: Wayne Meissner <wmei...@gmail.com> (Add as Preferred Sender)  
> Date: Sat, May 18, 2013 10:02 pm
> That sounds like this issue: https://github.com/jruby/jruby/issues/626
> Not sure why it is still cropping up, but I haven't had time to create
> a linux vm, with openjdk8 on it and try to repro.
> If you run via jruby.sh, does the same error show up?

When I did this I got an error:

craig@lug:/opt/ruby/jruby/bin$ jruby.sh gem
/opt/ruby/jruby/bin/jruby.sh: 61: /opt/ruby/jruby/bin/jruby.sh: Bad substitution

Is this what you meant?

Wayne Meissner

unread,
May 19, 2013, 2:29:27 AM5/19/13
to us...@jruby.codehaus.org
That's a different error, but you can work around it by executing
jruby.sh with bash

e.g.

bash /opt/ruby/jruby/bin/jruby.sh -S gem

cr...@coot.net

unread,
May 20, 2013, 6:23:42 PM5/20/13
to us...@jruby.codehaus.org, cr...@coot.net

> From: Wayne Meissner <wmei...@gmail.com> (Add as Preferred Sender)  
> Date: Sat, May 18, 2013 11:29 pm
> That's a different error, but you can work around it by executing
> jruby.sh with bash
> e.g.
> bash /opt/ruby/jruby/bin/jruby.sh -S gem

bash /opt/ruby/jruby/bin/jruby.sh -S gem list
works.

gem list
warning.

Output below
=====================================
craig@craigs:~$ uname -a
Linux craigs 3.8.0-21-generic #32-Ubuntu SMP Tue May 14 22:16:46 UTC 2013 x86_64 x86_64 x86_64 GNU/Linux

=====================================
craig@craigs:~$ jruby -v
jruby 1.7.4 (1.9.3p392) 2013-05-16 2390d3b on Java HotSpot(TM) 64-Bit Server VM 1.7.0_21-b11 [linux-amd64]
craig@craigs:~$ gem list

*** LOCAL GEMS ***

rake (10.0.3)

=====================================
craig@craigs:/opt/ruby/jruby/bin$ jruby -v
jruby 1.7.4 (1.9.3p392) 2013-05-16 2390d3b on Java HotSpot(TM) 64-Bit Server VM 1.8.0-ea-b90 +indy [linux-amd64]
craig@craigs:/opt/ruby/jruby/bin$ bash /opt/ruby/jruby/bin/jruby.sh -S gem list

*** LOCAL GEMS ***

rake (10.0.3)

=====================================
craig@craigs:~$ which gem
/opt/ruby/jruby/bin/gem
craig@craigs:~$ gem list
Java HotSpot(TM) 64-Bit Server VM warning: You have loaded library /opt/ruby/jruby-1.7.4/lib/native/arm-Linux/libjffi-1.2.so which might have disabled stack guard. The VM will try to fix the stack guard now.
It's highly recommended that you fix the library with 'execstack -c <libfile>', or link it with '-z noexecstack'.

*** LOCAL GEMS ***

rake (10.0.3)

cootcraig

unread,
May 21, 2013, 3:30:39 AM5/21/13
to jruby...@googlegroups.com, us...@jruby.codehaus.org, cr...@coot.net

Charles Oliver Nutter

unread,
May 21, 2013, 11:36:48 AM5/21/13
to jruby-user
Hiro released a new jruby-launcher; perhaps you can try that out and see if it fixes your issues?

- Charlie


Reply all
Reply to author
Forward
0 new messages