Project

General

Profile

Bug #12053

Issue with installing pubnub gem on Arduino Yun

Added by maranhao (Bruno Maranhao) over 3 years ago. Updated about 1 month ago.

Status:
Closed
Priority:
Normal
Assignee:
-
Target version:
-
[ruby-core:73704]

Description

Hi, I've installed all of the Ruby packages available here (http://download.rsdev.16mb.com/OpenWrt/ChaosCalmer_15.05/ArduinoYun/packages/packages/), including ruby-gems. Now I'm trying to install the Pubnub Ruby SDK with the command "gem install pubnub" and I am getting the output below. I'm new to Ruby and can't make heads from tails. Any help is appreciated. I've also downloaded the code from GitHub, so if someone can explain to me how to install it from that folder rather than this automated fashion that would work as well.

Thanks!


Files

bug-12053.log (9.84 KB) bug-12053.log nobu (Nobuyoshi Nakada), 02/05/2016 05:09 AM

History

Updated by nobu (Nobuyoshi Nakada) over 3 years ago

I think we've fixed a similar bug.
Could you try 2.2.4?

Updated by maranhao (Bruno Maranhao) over 3 years ago

I would love to, but I'm sort of at the mercy of individuals who build the ruby packages for the Arduino. I did try to execute "gem update --system 2.2.4" which I saw as a potential way of circumventing this, but got the following very similar output.

/usr/lib/ruby/2.2/rubygems/core_ext/kernel_require.rb:54: [BUG] Segmentation fault at 0x000000
ruby 2.2.2p95 (2015-04-13 revision 50295) [mips-linux-gnu]

-- Control frame information -----------------------------------------------
c:0013 p:---- s:0073 e:000072 CFUNC :require
c:0012 p:0113 s:0069 e:000068 METHOD /usr/lib/ruby/2.2/rubygems/core_ext/kernel_require.rb:54
c:0011 p:0103 s:0059 e:000058 TOP /usr/lib/ruby/2.2/psych.rb:13 [FINISH]
c:0010 p:---- s:0057 e:000056 CFUNC :require
c:0009 p:0113 s:0053 e:000052 METHOD /usr/lib/ruby/2.2/rubygems/core_ext/kernel_require.rb:54
c:0008 p:0077 s:0043 e:000042 METHOD /usr/lib/ruby/2.2/rubygems.rb:609
c:0007 p:0013 s:0039 e:000038 METHOD /usr/lib/ruby/2.2/rubygems/config_file.rb:328
c:0006 p:0145 s:0033 e:000032 METHOD /usr/lib/ruby/2.2/rubygems/config_file.rb:197 [FINISH]
c:0005 p:---- s:0022 e:000021 CFUNC :new
c:0004 p:0018 s:0018 e:000016 METHOD /usr/lib/ruby/2.2/rubygems/gem_runner.rb:74
c:0003 p:0018 s:0013 e:000012 METHOD /usr/lib/ruby/2.2/rubygems/gem_runner.rb:39
c:0002 p:0115 s:0007 E:001b50 EVAL /usr/bin/gem:21 [FINISH]
c:0001 p:0000 s:0002 E:000314 TOP [FINISH]

-- Ruby level backtrace information ----------------------------------------
/usr/bin/gem:21:in <main>'
/usr/lib/ruby/2.2/rubygems/gem_runner.rb:39:in
run'
/usr/lib/ruby/2.2/rubygems/gem_runner.rb:74:in do_configuration'
/usr/lib/ruby/2.2/rubygems/gem_runner.rb:74:in
new'
/usr/lib/ruby/2.2/rubygems/config_file.rb:197:in initialize'
/usr/lib/ruby/2.2/rubygems/config_file.rb:328:in
load_file'
/usr/lib/ruby/2.2/rubygems.rb:609:in load_yaml'
/usr/lib/ruby/2.2/rubygems/core_ext/kernel_require.rb:54:in
require'
/usr/lib/ruby/2.2/rubygems/core_ext/kernel_require.rb:54:in require'
/usr/lib/ruby/2.2/psych.rb:13:in
'
/usr/lib/ruby/2.2/rubygems/core_ext/kernel_require.rb:54:in require'
/usr/lib/ruby/2.2/rubygems/core_ext/kernel_require.rb:54:in
require'

-- Other runtime information -----------------------------------------------

  • Loaded script: /usr/bin/gem

  • Loaded features:

    0 enumerator.so
    1 rational.so
    2 complex.so
    3 /usr/lib/ruby/2.2/mips-linux-gnu/enc/encdb.so
    4 /usr/lib/ruby/2.2/mips-linux-gnu/enc/trans/transdb.so
    5 /usr/lib/ruby/2.2/mips-linux-gnu/rbconfig.rb
    6 thread.rb
    7 /usr/lib/ruby/2.2/mips-linux-gnu/thread.so
    8 /usr/lib/ruby/2.2/rubygems/compatibility.rb
    9 /usr/lib/ruby/2.2/rubygems/defaults.rb
    10 /usr/lib/ruby/2.2/rubygems/deprecate.rb
    11 /usr/lib/ruby/2.2/rubygems/errors.rb
    12 /usr/lib/ruby/2.2/rubygems/version.rb
    13 /usr/lib/ruby/2.2/rubygems/requirement.rb
    14 /usr/lib/ruby/2.2/rubygems/platform.rb
    15 /usr/lib/ruby/2.2/rubygems/basic_specification.rb
    16 /usr/lib/ruby/2.2/rubygems/stub_specification.rb
    17 /usr/lib/ruby/2.2/rubygems/util/stringio.rb
    18 /usr/lib/ruby/2.2/rubygems/specification.rb
    19 /usr/lib/ruby/2.2/rubygems/exceptions.rb
    20 /usr/lib/ruby/2.2/rubygems/core_ext/kernel_gem.rb
    21 /usr/lib/ruby/2.2/monitor.rb
    22 /usr/lib/ruby/2.2/rubygems/core_ext/kernel_require.rb
    23 /usr/lib/ruby/2.2/rubygems.rb
    24 /usr/lib/ruby/2.2/optparse.rb
    25 /usr/lib/ruby/2.2/rubygems/path_support.rb
    26 /usr/lib/ruby/2.2/rubygems/user_interaction.rb
    27 /usr/lib/ruby/2.2/rubygems/command.rb
    28 /usr/lib/ruby/2.2/rubygems/command_manager.rb
    29 /usr/lib/ruby/2.2/mips-linux-gnu/etc.so
    30 /usr/lib/ruby/2.2/rubygems/config_file.rb
    31 /usr/lib/ruby/2.2/rubygems/gem_runner.rb
    32 /usr/lib/ruby/2.2/rubygems/dependency.rb
    33 /usr/lib/ruby/2.2/psych/exception.rb
    34 /usr/lib/ruby/2.2/psych/syntax_error.rb
    35 /usr/lib/ruby/2.2/mips-linux-gnu/psych.so
    36 /usr/lib/ruby/2.2/mips-linux-gnu/stringio.so
    37 /usr/lib/ruby/2.2/psych/omap.rb
    38 /usr/lib/ruby/2.2/psych/set.rb
    39 /usr/lib/ruby/2.2/psych/class_loader.rb
    40 /usr/lib/ruby/2.2/mips-linux-gnu/strscan.so
    41 /usr/lib/ruby/2.2/psych/scalar_scanner.rb
    42 /usr/lib/ruby/2.2/psych/nodes/node.rb
    43 /usr/lib/ruby/2.2/psych/nodes/stream.rb
    44 /usr/lib/ruby/2.2/psych/nodes/document.rb
    45 /usr/lib/ruby/2.2/psych/nodes/sequence.rb
    46 /usr/lib/ruby/2.2/psych/nodes/scalar.rb
    47 /usr/lib/ruby/2.2/psych/nodes/mapping.rb
    48 /usr/lib/ruby/2.2/psych/nodes/alias.rb
    49 /usr/lib/ruby/2.2/psych/nodes.rb
    50 /usr/lib/ruby/2.2/psych/streaming.rb
    51 /usr/lib/ruby/2.2/psych/visitors/visitor.rb
    52 /usr/lib/ruby/2.2/psych/visitors/to_ruby.rb
    53 /usr/lib/ruby/2.2/psych/visitors/emitter.rb
    54 /usr/lib/ruby/2.2/psych/handler.rb
    55 /usr/lib/ruby/2.2/psych/tree_builder.rb
    56 /usr/lib/ruby/2.2/psych/visitors/yaml_tree.rb
    57 /usr/lib/ruby/2.2/psych/json/ruby_events.rb
    58 /usr/lib/ruby/2.2/psych/visitors/json_tree.rb
    59 /usr/lib/ruby/2.2/psych/visitors/depth_first.rb
    60 /usr/lib/ruby/2.2/psych/visitors.rb
    61 /usr/lib/ruby/2.2/psych/parser.rb
    62 /usr/lib/ruby/2.2/psych/coder.rb
    63 /usr/lib/ruby/2.2/psych/core_ext.rb
    64 /usr/lib/ruby/2.2/mips-linux-gnu/date_core.so
    65 /usr/lib/ruby/2.2/date.rb
    66 /usr/lib/ruby/2.2/psych/deprecated.rb

  • Process memory map:

00400000-00401000 r-xp 00000000 08:01 4858 /usr/lib/ruby/ruby2.2-bin
00410000-00411000 rw-p 00000000 08:01 4858 /usr/lib/ruby/ruby2.2-bin
00b8e000-00ef9000 rwxp 00000000 00:00 0 [heap]
778f1000-77913000 r-xp 00000000 08:01 4910 /usr/lib/ruby/2.2/mips-linux-gnu/date_core.so
77913000-77922000 ---p 00000000 00:00 0
77922000-77924000 rw-p 00021000 08:01 4910 /usr/lib/ruby/2.2/mips-linux-gnu/date_core.so
77924000-77928000 r-xp 00000000 08:01 4965 /usr/lib/ruby/2.2/mips-linux-gnu/strscan.so
77928000-77937000 ---p 00000000 00:00 0
77937000-77938000 rw-p 00003000 08:01 4965 /usr/lib/ruby/2.2/mips-linux-gnu/strscan.so
77938000-7793d000 r-xp 00000000 08:01 4970 /usr/lib/ruby/2.2/mips-linux-gnu/stringio.so
7793d000-7794d000 ---p 00000000 00:00 0
7794d000-7794e000 rw-p 00005000 08:01 4970 /usr/lib/ruby/2.2/mips-linux-gnu/stringio.so
7794e000-77961000 r-xp 00000000 08:01 5541 /usr/lib/libyaml-0.so.2.0.4
77961000-77970000 ---p 00000000 00:00 0
77970000-77971000 rw-p 00012000 08:01 5541 /usr/lib/libyaml-0.so.2.0.4
77971000-77976000 r-xp 00000000 08:01 5521 /usr/lib/ruby/2.2/mips-linux-gnu/psych.so
77976000-77985000 ---p 00000000 00:00 0
77985000-77986000 rw-p 00004000 08:01 5521 /usr/lib/ruby/2.2/mips-linux-gnu/psych.so
77986000-7798b000 r-xp 00000000 08:01 4969 /usr/lib/ruby/2.2/mips-linux-gnu/etc.so
7798b000-7799a000 ---p 00000000 00:00 0
7799a000-7799b000 rw-p 00004000 08:01 4969 /usr/lib/ruby/2.2/mips-linux-gnu/etc.so
7799b000-7799e000 r-xp 00000000 08:01 5006 /usr/lib/ruby/2.2/mips-linux-gnu/thread.so
7799e000-779ad000 ---p 00000000 00:00 0
779ad000-779ae000 rw-p 00002000 08:01 5006 /usr/lib/ruby/2.2/mips-linux-gnu/thread.so
779ae000-779b1000 r-xp 00000000 08:01 5753 /usr/lib/ruby/2.2/mips-linux-gnu/enc/trans/transdb.so
779b1000-779c0000 ---p 00000000 00:00 0
779c0000-779c1000 rw-p 00002000 08:01 5753 /usr/lib/ruby/2.2/mips-linux-gnu/enc/trans/transdb.so
779c1000-779c4000 r-xp 00000000 08:01 4943 /usr/lib/ruby/2.2/mips-linux-gnu/enc/encdb.so
779c4000-779d3000 ---p 00000000 00:00 0
779d3000-779d4000 rw-p 00002000 08:01 4943 /usr/lib/ruby/2.2/mips-linux-gnu/enc/encdb.so
779d4000-77a55000 rw-p 00000000 00:00 0
77a55000-77aac000 r-xp 00000000 1f:02 547 /lib/libuClibc-0.9.33.2.so
77aac000-77abb000 ---p 00000000 00:00 0
77abb000-77abc000 r--p 00056000 1f:02 547 /lib/libuClibc-0.9.33.2.so
77abc000-77abd000 rw-p 00057000 1f:02 547 /lib/libuClibc-0.9.33.2.so
77abd000-77ac2000 rw-p 00000000 00:00 0
77ac2000-77ad6000 r-xp 00000000 1f:02 585 /lib/libgcc_s.so.1
77ad6000-77ae5000 ---p 00000000 00:00 0
77ae5000-77ae6000 rw-p 00013000 1f:02 585 /lib/libgcc_s.so.1
77ae6000-77afc000 r-xp 00000000 1f:02 581 /lib/libm-0.9.33.2.so
77afc000-77b0b000 ---p 00000000 00:00 0
77b0b000-77b0c000 rw-p 00015000 1f:02 581 /lib/libm-0.9.33.2.so
77b0c000-77b0f000 r-xp 00000000 1f:02 529 /lib/libcrypt-0.9.33.2.so
77b0f000-77b1e000 ---p 00000000 00:00 0
77b1e000-77b1f000 rw-p 00002000 1f:02 529 /lib/libcrypt-0.9.33.2.so
77b1f000-77b30000 rw-p 00000000 00:00 0
77b30000-77b33000 r-xp 00000000 1f:02 599 /lib/libdl-0.9.33.2.so
77b33000-77b42000 ---p 00000000 00:00 0
77b42000-77b43000 r--p 00002000 1f:02 599 /lib/libdl-0.9.33.2.so
77b43000-77b44000 rw-p 00003000 1f:02 599 /lib/libdl-0.9.33.2.so
77b44000-77bad000 r-xp 00000000 08:01 4877 /usr/lib/libgmp.so.10.2.0
77bad000-77bbd000 ---p 00000000 00:00 0
77bbd000-77bbe000 rw-p 00069000 08:01 4877 /usr/lib/libgmp.so.10.2.0
77bbe000-77bd1000 r-xp 00000000 1f:02 545 /lib/libpthread-0.9.33.2.so
77bd1000-77be0000 ---p 00000000 00:00 0
77be0000-77be1000 r--p 00012000 1f:02 545 /lib/libpthread-0.9.33.2.so
77be1000-77be2000 rw-p 00013000 1f:02 545 /lib/libpthread-0.9.33.2.so
77be2000-77be4000 rw-p 00000000 00:00 0
77be4000-77d8d000 r-xp 00000000 08:01 4872 /usr/lib/libruby.so.2.2.0
77d8d000-77d9d000 ---p 00000000 00:00 0
77d9d000-77da2000 rw-p 001a9000 08:01 4872 /usr/lib/libruby.so.2.2.0
77da2000-77da8000 rw-p 00000000 00:00 0
77da8000-77daf000 r-xp 00000000 1f:02 535 /lib/ld-uClibc-0.9.33.2.so
77db8000-77db9000 ---p 00000000 00:00 0
77db9000-77dbe000 rw-p 00000000 00:00 0 [stack:31673]
77dbe000-77dbf000 r--p 00006000 1f:02 535 /lib/ld-uClibc-0.9.33.2.so
77dbf000-77dc0000 rw-p 00007000 1f:02 535 /lib/ld-uClibc-0.9.33.2.so
7f451000-7fc51000 rw-p 00000000 00:00 0
7fff7000-7fff8000 r-xp 00000000 00:00 0 [vdso]

[NOTE]
You may have encountered a bug in the Ruby interpreter or extension libraries.
Bug reports are welcome.
For details: http://www.ruby-lang.org/bugreport.html

Aborted

#3

Updated by jeremyevans0 (Jeremy Evans) about 1 month ago

  • Status changed from Feedback to Closed

Also available in: Atom PDF