Created
March 23, 2012 01:45
-
-
Save tagomoris/2166103 to your computer and use it in GitHub Desktop.
Yajl::Parser#<< crashed on ruby 1.9.3-p125
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
1.9.2p180 :001 > require 'yajl' | |
=> true | |
1.9.2p180 :002 > y = Yajl::Parser.new | |
=> #<Yajl::Parser:0x007f895d098038> | |
1.9.2p180 :003 > y.on_parse_complete = lambda {|msg| p msg} | |
=> #<Proc:0x007f895d08de80@(irb):3 (lambda)> | |
1.9.2p180 :004 > y << '{"message":1}' | |
{"message"=>1} | |
=> nil | |
1.9.2p180 :005 > | |
1.9.3p125 :001 > require 'yajl' | |
=> true | |
1.9.3p125 :002 > y = Yajl::Parser.new | |
=> #<Yajl::Parser:0x007fff3923b0c8> | |
1.9.3p125 :003 > y.on_parse_complete = lambda {|msg| p msg} | |
=> #<Proc:0x007fff392339e0@(irb):3 (lambda)> | |
1.9.3p125 :004 > y << '{"message":1}' | |
dyld: lazy symbol binding failed: Symbol not found: _yajl_set_static_value | |
Referenced from: /Users/tagomoris/.rvm/gems/ruby-1.9.3-p125/gems/yajl-ruby-1.0.0/lib/yajl/yajl.bundle | |
Expected in: flat namespace | |
dyld: Symbol not found: _yajl_set_static_value | |
Referenced from: /Users/tagomoris/.rvm/gems/ruby-1.9.3-p125/gems/yajl-ruby-1.0.0/lib/yajl/yajl.bundle | |
Expected in: flat namespace | |
(irb):4: [BUG] Segmentation fault | |
ruby 1.9.3p125 (2012-02-16 revision 34643) [x86_64-darwin11.3.0] | |
-- Control frame information ----------------------------------------------- | |
c:0024 p:---- s:0086 b:0086 l:000085 d:000085 CFUNC :<< | |
c:0023 p:0009 s:0082 b:0082 l:002018 d:000081 EVAL (irb):4 | |
c:0022 p:---- s:0080 b:0080 l:000079 d:000079 FINISH | |
c:0021 p:---- s:0078 b:0078 l:000077 d:000077 CFUNC :eval | |
c:0020 p:0028 s:0071 b:0071 l:000070 d:000070 METHOD /Users/tagomoris/.rvm/rubies/ruby-1.9.3-p125/lib/ruby/1.9.1/irb/workspace.rb:80 | |
c:0019 p:0033 s:0064 b:0063 l:000062 d:000062 METHOD /Users/tagomoris/.rvm/rubies/ruby-1.9.3-p125/lib/ruby/1.9.1/irb/context.rb:254 | |
c:0018 p:0031 s:0058 b:0058 l:000808 d:000057 BLOCK /Users/tagomoris/.rvm/rubies/ruby-1.9.3-p125/lib/ruby/1.9.1/irb.rb:159 | |
c:0017 p:0042 s:0050 b:0050 l:000049 d:000049 METHOD /Users/tagomoris/.rvm/rubies/ruby-1.9.3-p125/lib/ruby/1.9.1/irb.rb:273 | |
c:0016 p:0011 s:0045 b:0045 l:000808 d:000044 BLOCK /Users/tagomoris/.rvm/rubies/ruby-1.9.3-p125/lib/ruby/1.9.1/irb.rb:156 | |
c:0015 p:0144 s:0041 b:0041 l:000024 d:000040 BLOCK /Users/tagomoris/.rvm/rubies/ruby-1.9.3-p125/lib/ruby/1.9.1/irb/ruby-lex.rb:243 | |
c:0014 p:---- s:0038 b:0038 l:000037 d:000037 FINISH | |
c:0013 p:---- s:0036 b:0036 l:000035 d:000035 CFUNC :loop | |
c:0012 p:0009 s:0033 b:0033 l:000024 d:000032 BLOCK /Users/tagomoris/.rvm/rubies/ruby-1.9.3-p125/lib/ruby/1.9.1/irb/ruby-lex.rb:229 | |
c:0011 p:---- s:0031 b:0031 l:000030 d:000030 FINISH | |
c:0010 p:---- s:0029 b:0029 l:000028 d:000028 CFUNC :catch | |
c:0009 p:0023 s:0025 b:0025 l:000024 d:000024 METHOD /Users/tagomoris/.rvm/rubies/ruby-1.9.3-p125/lib/ruby/1.9.1/irb/ruby-lex.rb:228 | |
c:0008 p:0046 s:0022 b:0022 l:000808 d:000808 METHOD /Users/tagomoris/.rvm/rubies/ruby-1.9.3-p125/lib/ruby/1.9.1/irb.rb:155 | |
c:0007 p:0011 s:0019 b:0019 l:000c38 d:000018 BLOCK /Users/tagomoris/.rvm/rubies/ruby-1.9.3-p125/lib/ruby/1.9.1/irb.rb:70 | |
c:0006 p:---- s:0017 b:0017 l:000016 d:000016 FINISH | |
c:0005 p:---- s:0015 b:0015 l:000014 d:000014 CFUNC :catch | |
c:0004 p:0183 s:0011 b:0011 l:000c38 d:000c38 METHOD /Users/tagomoris/.rvm/rubies/ruby-1.9.3-p125/lib/ruby/1.9.1/irb.rb:69 | |
c:0003 p:0142 s:0006 b:0006 l:0014c8 d:002458 EVAL /Users/tagomoris/.rvm/rubies/ruby-1.9.3-p125/bin/irb:16 | |
c:0002 p:---- s:0004 b:0004 l:000003 d:000003 FINISH | |
c:0001 p:0000 s:0002 b:0002 l:0014c8 d:0014c8 TOP | |
-- Ruby level backtrace information ---------------------------------------- | |
/Users/tagomoris/.rvm/rubies/ruby-1.9.3-p125/bin/irb:16:in `<main>' | |
/Users/tagomoris/.rvm/rubies/ruby-1.9.3-p125/lib/ruby/1.9.1/irb.rb:69:in `start' | |
/Users/tagomoris/.rvm/rubies/ruby-1.9.3-p125/lib/ruby/1.9.1/irb.rb:69:in `catch' | |
/Users/tagomoris/.rvm/rubies/ruby-1.9.3-p125/lib/ruby/1.9.1/irb.rb:70:in `block in start' | |
/Users/tagomoris/.rvm/rubies/ruby-1.9.3-p125/lib/ruby/1.9.1/irb.rb:155:in `eval_input' | |
/Users/tagomoris/.rvm/rubies/ruby-1.9.3-p125/lib/ruby/1.9.1/irb/ruby-lex.rb:228:in `each_top_level_statement' | |
/Users/tagomoris/.rvm/rubies/ruby-1.9.3-p125/lib/ruby/1.9.1/irb/ruby-lex.rb:228:in `catch' | |
/Users/tagomoris/.rvm/rubies/ruby-1.9.3-p125/lib/ruby/1.9.1/irb/ruby-lex.rb:229:in `block in each_top_level_statement' | |
/Users/tagomoris/.rvm/rubies/ruby-1.9.3-p125/lib/ruby/1.9.1/irb/ruby-lex.rb:229:in `loop' | |
/Users/tagomoris/.rvm/rubies/ruby-1.9.3-p125/lib/ruby/1.9.1/irb/ruby-lex.rb:243:in `block (2 levels) in each_top_level_statement' | |
/Users/tagomoris/.rvm/rubies/ruby-1.9.3-p125/lib/ruby/1.9.1/irb.rb:156:in `block in eval_input' | |
/Users/tagomoris/.rvm/rubies/ruby-1.9.3-p125/lib/ruby/1.9.1/irb.rb:273:in `signal_status' | |
/Users/tagomoris/.rvm/rubies/ruby-1.9.3-p125/lib/ruby/1.9.1/irb.rb:159:in `block (2 levels) in eval_input' | |
/Users/tagomoris/.rvm/rubies/ruby-1.9.3-p125/lib/ruby/1.9.1/irb/context.rb:254:in `evaluate' | |
/Users/tagomoris/.rvm/rubies/ruby-1.9.3-p125/lib/ruby/1.9.1/irb/workspace.rb:80:in `evaluate' | |
/Users/tagomoris/.rvm/rubies/ruby-1.9.3-p125/lib/ruby/1.9.1/irb/workspace.rb:80:in `eval' | |
(irb):4:in `irb_binding' | |
(irb):4:in `<<' | |
-- C level backtrace information ------------------------------------------- | |
See Crash Report log file under ~/Library/Logs/CrashReporter or | |
/Library/Logs/CrashReporter, for the more detail of. | |
-- Other runtime information ----------------------------------------------- | |
* Loaded script: irb | |
* Loaded features: | |
0 enumerator.so | |
1 /Users/tagomoris/.rvm/rubies/ruby-1.9.3-p125/lib/ruby/1.9.1/x86_64-darwin11.3.0/enc/encdb.bundle | |
2 /Users/tagomoris/.rvm/rubies/ruby-1.9.3-p125/lib/ruby/1.9.1/x86_64-darwin11.3.0/enc/trans/transdb.bundle | |
3 /Users/tagomoris/.rvm/rubies/ruby-1.9.3-p125/lib/ruby/site_ruby/1.9.1/rubygems/defaults.rb | |
4 /Users/tagomoris/.rvm/rubies/ruby-1.9.3-p125/lib/ruby/1.9.1/x86_64-darwin11.3.0/rbconfig.rb | |
5 /Users/tagomoris/.rvm/rubies/ruby-1.9.3-p125/lib/ruby/site_ruby/1.9.1/rubygems/deprecate.rb | |
6 /Users/tagomoris/.rvm/rubies/ruby-1.9.3-p125/lib/ruby/site_ruby/1.9.1/rubygems/exceptions.rb | |
7 /Users/tagomoris/.rvm/rubies/ruby-1.9.3-p125/lib/ruby/site_ruby/1.9.1/rubygems/custom_require.rb | |
8 /Users/tagomoris/.rvm/rubies/ruby-1.9.3-p125/lib/ruby/site_ruby/1.9.1/rubygems.rb | |
9 /Users/tagomoris/.rvm/rubies/ruby-1.9.3-p125/lib/ruby/1.9.1/e2mmap.rb | |
10 /Users/tagomoris/.rvm/rubies/ruby-1.9.3-p125/lib/ruby/1.9.1/irb/init.rb | |
11 /Users/tagomoris/.rvm/rubies/ruby-1.9.3-p125/lib/ruby/1.9.1/irb/workspace.rb | |
12 /Users/tagomoris/.rvm/rubies/ruby-1.9.3-p125/lib/ruby/1.9.1/irb/inspector.rb | |
13 /Users/tagomoris/.rvm/rubies/ruby-1.9.3-p125/lib/ruby/1.9.1/irb/context.rb | |
14 /Users/tagomoris/.rvm/rubies/ruby-1.9.3-p125/lib/ruby/1.9.1/irb/extend-command.rb | |
15 /Users/tagomoris/.rvm/rubies/ruby-1.9.3-p125/lib/ruby/1.9.1/irb/output-method.rb | |
16 /Users/tagomoris/.rvm/rubies/ruby-1.9.3-p125/lib/ruby/1.9.1/irb/notifier.rb | |
17 /Users/tagomoris/.rvm/rubies/ruby-1.9.3-p125/lib/ruby/1.9.1/irb/slex.rb | |
18 /Users/tagomoris/.rvm/rubies/ruby-1.9.3-p125/lib/ruby/1.9.1/irb/ruby-token.rb | |
19 /Users/tagomoris/.rvm/rubies/ruby-1.9.3-p125/lib/ruby/1.9.1/irb/ruby-lex.rb | |
20 /Users/tagomoris/.rvm/rubies/ruby-1.9.3-p125/lib/ruby/1.9.1/irb/src_encoding.rb | |
21 /Users/tagomoris/.rvm/rubies/ruby-1.9.3-p125/lib/ruby/1.9.1/irb/magic-file.rb | |
22 /Users/tagomoris/.rvm/rubies/ruby-1.9.3-p125/lib/ruby/1.9.1/x86_64-darwin11.3.0/readline.bundle | |
23 /Users/tagomoris/.rvm/rubies/ruby-1.9.3-p125/lib/ruby/1.9.1/irb/input-method.rb | |
24 /Users/tagomoris/.rvm/rubies/ruby-1.9.3-p125/lib/ruby/1.9.1/irb/locale.rb | |
25 /Users/tagomoris/.rvm/rubies/ruby-1.9.3-p125/lib/ruby/1.9.1/irb.rb | |
26 /Users/tagomoris/.rvm/rubies/ruby-1.9.3-p125/lib/ruby/site_ruby/1.9.1/rubygems/version.rb | |
27 /Users/tagomoris/.rvm/rubies/ruby-1.9.3-p125/lib/ruby/site_ruby/1.9.1/rubygems/requirement.rb | |
28 /Users/tagomoris/.rvm/rubies/ruby-1.9.3-p125/lib/ruby/site_ruby/1.9.1/rubygems/platform.rb | |
29 /Users/tagomoris/.rvm/rubies/ruby-1.9.3-p125/lib/ruby/site_ruby/1.9.1/rubygems/specification.rb | |
30 /Users/tagomoris/.rvm/rubies/ruby-1.9.3-p125/lib/ruby/site_ruby/1.9.1/rubygems/path_support.rb | |
31 /Users/tagomoris/.rvm/rubies/ruby-1.9.3-p125/lib/ruby/site_ruby/1.9.1/rubygems/dependency.rb | |
32 /Users/tagomoris/.rvm/rubies/ruby-1.9.3-p125/lib/ruby/1.9.1/irb/completion.rb | |
33 /Users/tagomoris/.rvm/scripts/irbrc.rb | |
34 /Users/tagomoris/.rvm/gems/ruby-1.9.3-p125/gems/yajl-ruby-1.0.0/lib/yajl/yajl.bundle | |
35 /Users/tagomoris/.rvm/gems/ruby-1.9.3-p125/gems/yajl-ruby-1.0.0/lib/yajl.rb | |
[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 | |
Abort trap: 6 |
Yajl 1.1.0 works with 1.9.3-p125, i found later.
yea, I kept reading the Google – thanks though!
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I'm also experiencing this problem.