Created
January 6, 2011 10:08
-
-
Save oc/767725 to your computer and use it in GitHub Desktop.
This file contains hidden or 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
| # | |
| # A fatal error has been detected by the Java Runtime Environment: | |
| # | |
| # EXCEPTION_ACCESS_VIOLATION (0xc0000005) at pc=0x6353f18f, pid=2928, tid=1072 | |
| # | |
| # JRE version: 6.0_23-b05 | |
| # Java VM: Java HotSpot(TM) Client VM (19.0-b09 mixed mode, sharing windows-x86 ) | |
| # Problematic frame: | |
| # C [libxml2.dll+0x3f18f] | |
| # | |
| # If you would like to submit a bug report, please visit: | |
| # http://java.sun.com/webapps/bugreport/crash.jsp | |
| # The crash happened outside the Java Virtual Machine in native code. | |
| # See problematic frame for where to report the bug. | |
| # | |
| --------------- T H R E A D --------------- | |
| Current thread (0x00a66c00): JavaThread "main" [_thread_in_native, id=1072, stack(0x00030000,0x00230000)] | |
| siginfo: ExceptionCode=0xc0000005, writing address 0x007cb2c8 | |
| Registers: | |
| EAX=0x007cb2c8, EBX=0x003ee008, ECX=0x003eb2a8, EDX=0x003eb2a8 | |
| ESP=0x0022e050, EBP=0x0022e088, ESI=0x00000001, EDI=0x0022e310 | |
| EIP=0x6353f18f, EFLAGS=0x00010202 | |
| Register to memory mapping: | |
| EAX=0x007cb2c8 | |
| 0x007cb2c8 is pointing to unknown location | |
| EBX=0x003ee008 | |
| 0x003ee008 is pointing to unknown location | |
| ECX=0x003eb2a8 | |
| 0x003eb2a8 is pointing to unknown location | |
| EDX=0x003eb2a8 | |
| 0x003eb2a8 is pointing to unknown location | |
| ESP=0x0022e050 | |
| 0x0022e050 is pointing into the stack for thread: 0x00a66c00 | |
| "main" prio=6 tid=0x00a66c00 nid=0x430 runnable [0x0022e000] | |
| java.lang.Thread.State: RUNNABLE | |
| EBP=0x0022e088 | |
| 0x0022e088 is pointing into the stack for thread: 0x00a66c00 | |
| "main" prio=6 tid=0x00a66c00 nid=0x430 runnable [0x0022e000] | |
| java.lang.Thread.State: RUNNABLE | |
| ESI=0x00000001 | |
| 0x00000001 is pointing to unknown location | |
| EDI=0x0022e310 | |
| 0x0022e310 is pointing into the stack for thread: 0x00a66c00 | |
| "main" prio=6 tid=0x00a66c00 nid=0x430 runnable [0x0022e000] | |
| java.lang.Thread.State: RUNNABLE | |
| Top of Stack: (sp=0x0022e050) | |
| 0x0022e050: 00000000 003eb2c8 00000fa0 77c2c3ce | |
| 0x0022e060: 0022e310 00000001 003ee008 7c9101db | |
| 0x0022e070: 00000fa1 00002002 003e0000 003e0000 | |
| 0x0022e080: 003eb2c8 003ee008 0022e0a8 63508ad5 | |
| 0x0022e090: 003eb278 003e0000 0022e0a8 6360005d | |
| 0x0022e0a0: 00000000 0022e310 0022e0e8 63559663 | |
| 0x0022e0b0: 003ee008 000000fa 00000036 77c2c42e | |
| 0x0022e0c0: 003e3a70 003e3a70 0022e0e8 635975cb | |
| Instructions: (pc=0x6353f18f) | |
| 0x6353f17f: 10 8b 45 f0 03 42 04 89 41 04 8b 45 f0 03 45 f8 | |
| 0x6353f18f: c6 00 00 8b 45 f0 89 45 e0 8b 45 e0 83 c4 34 5b | |
| Stack: [0x00030000,0x00230000], sp=0x0022e050, free space=2040k | |
| Native frames: (J=compiled Java code, j=interpreted, Vv=VM code, C=native code) | |
| C [libxml2.dll+0x3f18f] | |
| C [libxml2.dll+0x8ad5] | |
| C [libxml2.dll+0x59663] | |
| C [libxml2.dll+0x5ce5c] | |
| C [libxml2.dll+0x5d1ef] | |
| C [jffi-1.0.dll+0x5af7] | |
| C [jffi-1.0.dll+0x58ec] | |
| C [jffi-1.0.dll+0x3ca5] | |
| C [jffi-1.0.dll+0x4243] | |
| j com.kenai.jffi.Foreign.invokeArrayO1Int32(J[BLjava/lang/Object;III)I+0 | |
| j com.kenai.jffi.Invoker.invokeArrayWithObjectsInt32(Lcom/kenai/jffi/Function;Lcom/kenai/jffi/HeapInvocationBuffer;Lcom/kenai/jffi/ObjectBuffer;)I+76 | |
| j com.kenai.jffi.Invoker.invokeInt(Lcom/kenai/jffi/Function;Lcom/kenai/jffi/HeapInvocationBuffer;)I+13 | |
| j com.kenai.jffi.Invoker$ILP32.invokeAddress(Lcom/kenai/jffi/Function;Lcom/kenai/jffi/HeapInvocationBuffer;)J+3 | |
| j org.jruby.ext.ffi.jffi.DefaultMethodFactory$PointerInvoker.invoke(Lorg/jruby/runtime/ThreadContext;Lcom/kenai/jffi/Function;Lcom/kenai/jffi/HeapInvocationBuffer;)Lorg/jruby/runtime/builtin/IRubyObject;+5 | |
| j org.jruby.ext.ffi.jffi.DefaultMethod.call(Lorg/jruby/runtime/ThreadContext;Lorg/jruby/runtime/builtin/IRubyObject;Lorg/jruby/RubyModule;Ljava/lang/String;[Lorg/jruby/runtime/builtin/IRubyObject;Lorg/jruby/runtime/Block;)Lorg/jruby/runtime/builtin/IRubyObject;+92 | |
| j org.jruby.internal.runtime.methods.DynamicMethod.call(Lorg/jruby/runtime/ThreadContext;Lorg/jruby/runtime/builtin/IRubyObject;Lorg/jruby/RubyModule;Ljava/lang/String;[Lorg/jruby/runtime/builtin/IRubyObject;)Lorg/jruby/runtime/builtin/IRubyObject;+11 | |
| j org.jruby.runtime.callsite.CachingCallSite.cacheAndCall(Lorg/jruby/runtime/builtin/IRubyObject;Lorg/jruby/RubyClass;[Lorg/jruby/runtime/builtin/IRubyObject;Lorg/jruby/runtime/ThreadContext;Lorg/jruby/runtime/builtin/IRubyObject;)Lorg/jruby/runtime/builtin/IRubyObject;+57 | |
| j org.jruby.runtime.callsite.CachingCallSite.call(Lorg/jruby/runtime/ThreadContext;Lorg/jruby/runtime/builtin/IRubyObject;Lorg/jruby/runtime/builtin/IRubyObject;[Lorg/jruby/runtime/builtin/IRubyObject;)Lorg/jruby/runtime/builtin/IRubyObject;+50 | |
| j org.jruby.ast.CallManyArgsNode.interpret(Lorg/jruby/Ruby;Lorg/jruby/runtime/ThreadContext;Lorg/jruby/runtime/builtin/IRubyObject;Lorg/jruby/runtime/Block;)Lorg/jruby/runtime/builtin/IRubyObject;+41 | |
| J org.jruby.ast.NewlineNode.interpret(Lorg/jruby/Ruby;Lorg/jruby/runtime/ThreadContext;Lorg/jruby/runtime/builtin/IRubyObject;Lorg/jruby/runtime/Block;)Lorg/jruby/runtime/builtin/IRubyObject; | |
| j org.jruby.runtime.InterpretedBlock.yieldSpecific(Lorg/jruby/runtime/ThreadContext;Lorg/jruby/runtime/Binding;Lorg/jruby/runtime/Block$Type;)Lorg/jruby/runtime/builtin/IRubyObject;+4 | |
| j org.jruby.runtime.Block.yieldSpecific(Lorg/jruby/runtime/ThreadContext;)Lorg/jruby/runtime/builtin/IRubyObject;+13 | |
| j org.jruby.ast.ZYieldNode.interpret(Lorg/jruby/Ruby;Lorg/jruby/runtime/ThreadContext;Lorg/jruby/runtime/builtin/IRubyObject;Lorg/jruby/runtime/Block;)Lorg/jruby/runtime/builtin/IRubyObject;+8 | |
| J org.jruby.ast.LocalAsgnNode.interpret(Lorg/jruby/Ruby;Lorg/jruby/runtime/ThreadContext;Lorg/jruby/runtime/builtin/IRubyObject;Lorg/jruby/runtime/Block;)Lorg/jruby/runtime/builtin/IRubyObject; | |
| j org.jruby.internal.runtime.methods.DefaultMethod.call(Lorg/jruby/runtime/ThreadContext;Lorg/jruby/runtime/builtin/IRubyObject;Lorg/jruby/RubyModule;Ljava/lang/String;Lorg/jruby/runtime/Block;)Lorg/jruby/runtime/builtin/IRubyObject;+24 | |
| j org.jruby.runtime.callsite.CachingCallSite.cacheAndCall(Lorg/jruby/runtime/builtin/IRubyObject;Lorg/jruby/RubyClass;Lorg/jruby/runtime/Block;Lorg/jruby/runtime/ThreadContext;Lorg/jruby/runtime/builtin/IRubyObject;)Lorg/jruby/runtime/builtin/IRubyObject;+57 | |
| J org.jruby.runtime.callsite.CachingCallSite.callBlock(Lorg/jruby/runtime/ThreadContext;Lorg/jruby/runtime/builtin/IRubyObject;Lorg/jruby/runtime/builtin/IRubyObject;Lorg/jruby/runtime/Block;)Lorg/jruby/runtime/builtin/IRubyObject; | |
| j org.jruby.ast.FCallNoArgBlockNode.interpret(Lorg/jruby/Ruby;Lorg/jruby/runtime/ThreadContext;Lorg/jruby/runtime/builtin/IRubyObject;Lorg/jruby/runtime/Block;)Lorg/jruby/runtime/builtin/IRubyObject;+16 | |
| J org.jruby.ast.NewlineNode.interpret(Lorg/jruby/Ruby;Lorg/jruby/runtime/ThreadContext;Lorg/jruby/runtime/builtin/IRubyObject;Lorg/jruby/runtime/Block;)Lorg/jruby/runtime/builtin/IRubyObject; | |
| j org.jruby.internal.runtime.methods.InterpretedMethod.call(Lorg/jruby/runtime/ThreadContext;Lorg/jruby/runtime/builtin/IRubyObject;Lorg/jruby/RubyModule;Ljava/lang/String;[Lorg/jruby/runtime/builtin/IRubyObject;)Lorg/jruby/runtime/builtin/IRubyObject;+11 | |
| j org.jruby.internal.runtime.methods.DefaultMethod.call(Lorg/jruby/runtime/ThreadContext;Lorg/jruby/runtime/builtin/IRubyObject;Lorg/jruby/RubyModule;Ljava/lang/String;[Lorg/jruby/runtime/builtin/IRubyObject;)Lorg/jruby/runtime/builtin/IRubyObject;+24 | |
| j org.jruby.runtime.callsite.CachingCallSite.cacheAndCall(Lorg/jruby/runtime/builtin/IRubyObject;Lorg/jruby/RubyClass;[Lorg/jruby/runtime/builtin/IRubyObject;Lorg/jruby/runtime/ThreadContext;Lorg/jruby/runtime/builtin/IRubyObject;)Lorg/jruby/runtime/builtin/IRubyObject;+57 | |
| j org.jruby.runtime.callsite.CachingCallSite.call(Lorg/jruby/runtime/ThreadContext;Lorg/jruby/runtime/builtin/IRubyObject;Lorg/jruby/runtime/builtin/IRubyObject;[Lorg/jruby/runtime/builtin/IRubyObject;)Lorg/jruby/runtime/builtin/IRubyObject;+50 | |
| j org.jruby.ast.FCallManyArgsNode.interpret(Lorg/jruby/Ruby;Lorg/jruby/runtime/ThreadContext;Lorg/jruby/runtime/builtin/IRubyObject;Lorg/jruby/runtime/Block;)Lorg/jruby/runtime/builtin/IRubyObject;+26 | |
| j org.jruby.ast.ReturnNode.interpret(Lorg/jruby/Ruby;Lorg/jruby/runtime/ThreadContext;Lorg/jruby/runtime/builtin/IRubyObject;Lorg/jruby/runtime/Block;)Lorg/jruby/runtime/builtin/IRubyObject;+10 | |
| J org.jruby.ast.NewlineNode.interpret(Lorg/jruby/Ruby;Lorg/jruby/runtime/ThreadContext;Lorg/jruby/runtime/builtin/IRubyObject;Lorg/jruby/runtime/Block;)Lorg/jruby/runtime/builtin/IRubyObject; | |
| j org.jruby.internal.runtime.methods.DefaultMethod.call(Lorg/jruby/runtime/ThreadContext;Lorg/jruby/runtime/builtin/IRubyObject;Lorg/jruby/RubyModule;Ljava/lang/String;[Lorg/jruby/runtime/builtin/IRubyObject;Lorg/jruby/runtime/Block;)Lorg/jruby/runtime/builtin/IRubyObject;+26 | |
| j org.jruby.runtime.callsite.CachingCallSite.cacheAndCall(Lorg/jruby/runtime/builtin/IRubyObject;Lorg/jruby/RubyClass;Lorg/jruby/runtime/Block;[Lorg/jruby/runtime/builtin/IRubyObject;Lorg/jruby/runtime/ThreadContext;Lorg/jruby/runtime/builtin/IRubyObject;)Lorg/jruby/runtime/builtin/IRubyObject;+61 | |
| j org.jruby.runtime.callsite.CachingCallSite.callBlock(Lorg/jruby/runtime/ThreadContext;Lorg/jruby/runtime/builtin/IRubyObject;Lorg/jruby/runtime/builtin/IRubyObject;[Lorg/jruby/runtime/builtin/IRubyObject;Lorg/jruby/runtime/Block;)Lorg/jruby/runtime/builtin/IRubyObject;+54 | |
| j org.jruby.runtime.callsite.CachingCallSite.call(Lorg/jruby/runtime/ThreadContext;Lorg/jruby/runtime/builtin/IRubyObject;Lorg/jruby/runtime/builtin/IRubyObject;[Lorg/jruby/runtime/builtin/IRubyObject;Lorg/jruby/runtime/Block;)Lorg/jruby/runtime/builtin/IRubyObject;+8 | |
| j org.jruby.ast.CallManyArgsBlockPassNode.interpret(Lorg/jruby/Ruby;Lorg/jruby/runtime/ThreadContext;Lorg/jruby/runtime/builtin/IRubyObject;Lorg/jruby/runtime/Block;)Lorg/jruby/runtime/builtin/IRubyObject;+57 | |
| J org.jruby.ast.NewlineNode.interpret(Lorg/jruby/Ruby;Lorg/jruby/runtime/ThreadContext;Lorg/jruby/runtime/builtin/IRubyObject;Lorg/jruby/runtime/Block;)Lorg/jruby/runtime/builtin/IRubyObject; | |
| j org.jruby.internal.runtime.methods.DefaultMethod.call(Lorg/jruby/runtime/ThreadContext;Lorg/jruby/runtime/builtin/IRubyObject;Lorg/jruby/RubyModule;Ljava/lang/String;Lorg/jruby/runtime/builtin/IRubyObject;)Lorg/jruby/runtime/builtin/IRubyObject;+24 | |
| J org.jruby.runtime.callsite.CachingCallSite.cacheAndCall(Lorg/jruby/runtime/builtin/IRubyObject;Lorg/jruby/RubyClass;Lorg/jruby/runtime/ThreadContext;Lorg/jruby/runtime/builtin/IRubyObject;Lorg/jruby/runtime/builtin/IRubyObject;)Lorg/jruby/runtime/builtin/IRubyObject; | |
| j noko.load(Lorg/jruby/runtime/ThreadContext;Lorg/jruby/runtime/builtin/IRubyObject;[Lorg/jruby/runtime/builtin/IRubyObject;Lorg/jruby/runtime/Block;)Lorg/jruby/runtime/builtin/IRubyObject;+16 | |
| j org.jruby.Ruby.runScript(Lorg/jruby/ast/executable/Script;)Lorg/jruby/runtime/builtin/IRubyObject;+17 | |
| j org.jruby.Ruby.runNormally(Lorg/jruby/ast/Node;)Lorg/jruby/runtime/builtin/IRubyObject;+89 | |
| j org.jruby.Ruby.runFromMain(Ljava/io/InputStream;Ljava/lang/String;)V+304 | |
| j org.jruby.Main.run()Lorg/jruby/Main$Status;+638 | |
| j org.jruby.Main.run([Ljava/lang/String;)Lorg/jruby/Main$Status;+9 | |
| j org.jruby.Main.main([Ljava/lang/String;)V+28 | |
| v ~StubRoutines::call_stub | |
| V [jvm.dll+0xf33c9] | |
| V [jvm.dll+0x188a91] | |
| V [jvm.dll+0xf344d] | |
| V [jvm.dll+0xfce3c] | |
| V [jvm.dll+0x104b82] | |
| C [jruby.dll+0x1fa79] | |
| C [jruby.dll+0x10b53] | |
| C [jruby.dll+0x115bc] | |
| C [jruby.dll+0xa55b] | |
| C [jruby.dll+0xaf12] | |
| C [jruby.dll+0x11854] | |
| C [jruby.exe+0x1444] | |
| C [jruby.exe+0x124b] | |
| C [jruby.exe+0x1298] | |
| C [kernel32.dll+0x17077] | |
| Java frames: (J=compiled Java code, j=interpreted, Vv=VM code) | |
| j com.kenai.jffi.Foreign.invokeArrayO1Int32(J[BLjava/lang/Object;III)I+0 | |
| j com.kenai.jffi.Invoker.invokeArrayWithObjectsInt32(Lcom/kenai/jffi/Function;Lcom/kenai/jffi/HeapInvocationBuffer;Lcom/kenai/jffi/ObjectBuffer;)I+76 | |
| j com.kenai.jffi.Invoker.invokeInt(Lcom/kenai/jffi/Function;Lcom/kenai/jffi/HeapInvocationBuffer;)I+13 | |
| j com.kenai.jffi.Invoker$ILP32.invokeAddress(Lcom/kenai/jffi/Function;Lcom/kenai/jffi/HeapInvocationBuffer;)J+3 | |
| j org.jruby.ext.ffi.jffi.DefaultMethodFactory$PointerInvoker.invoke(Lorg/jruby/runtime/ThreadContext;Lcom/kenai/jffi/Function;Lcom/kenai/jffi/HeapInvocationBuffer;)Lorg/jruby/runtime/builtin/IRubyObject;+5 | |
| j org.jruby.ext.ffi.jffi.DefaultMethod.call(Lorg/jruby/runtime/ThreadContext;Lorg/jruby/runtime/builtin/IRubyObject;Lorg/jruby/RubyModule;Ljava/lang/String;[Lorg/jruby/runtime/builtin/IRubyObject;Lorg/jruby/runtime/Block;)Lorg/jruby/runtime/builtin/IRubyObject;+92 | |
| j org.jruby.internal.runtime.methods.DynamicMethod.call(Lorg/jruby/runtime/ThreadContext;Lorg/jruby/runtime/builtin/IRubyObject;Lorg/jruby/RubyModule;Ljava/lang/String;[Lorg/jruby/runtime/builtin/IRubyObject;)Lorg/jruby/runtime/builtin/IRubyObject;+11 | |
| j org.jruby.runtime.callsite.CachingCallSite.cacheAndCall(Lorg/jruby/runtime/builtin/IRubyObject;Lorg/jruby/RubyClass;[Lorg/jruby/runtime/builtin/IRubyObject;Lorg/jruby/runtime/ThreadContext;Lorg/jruby/runtime/builtin/IRubyObject;)Lorg/jruby/runtime/builtin/IRubyObject;+57 | |
| j org.jruby.runtime.callsite.CachingCallSite.call(Lorg/jruby/runtime/ThreadContext;Lorg/jruby/runtime/builtin/IRubyObject;Lorg/jruby/runtime/builtin/IRubyObject;[Lorg/jruby/runtime/builtin/IRubyObject;)Lorg/jruby/runtime/builtin/IRubyObject;+50 | |
| j org.jruby.ast.CallManyArgsNode.interpret(Lorg/jruby/Ruby;Lorg/jruby/runtime/ThreadContext;Lorg/jruby/runtime/builtin/IRubyObject;Lorg/jruby/runtime/Block;)Lorg/jruby/runtime/builtin/IRubyObject;+41 | |
| J org.jruby.ast.NewlineNode.interpret(Lorg/jruby/Ruby;Lorg/jruby/runtime/ThreadContext;Lorg/jruby/runtime/builtin/IRubyObject;Lorg/jruby/runtime/Block;)Lorg/jruby/runtime/builtin/IRubyObject; | |
| J org.jruby.runtime.InterpretedBlock.evalBlockBody(Lorg/jruby/runtime/ThreadContext;Lorg/jruby/runtime/builtin/IRubyObject;)Lorg/jruby/runtime/builtin/IRubyObject; | |
| j org.jruby.runtime.InterpretedBlock.yield(Lorg/jruby/runtime/ThreadContext;Lorg/jruby/runtime/Binding;Lorg/jruby/runtime/Block$Type;)Lorg/jruby/runtime/builtin/IRubyObject;+53 | |
| j org.jruby.runtime.InterpretedBlock.yieldSpecific(Lorg/jruby/runtime/ThreadContext;Lorg/jruby/runtime/Binding;Lorg/jruby/runtime/Block$Type;)Lorg/jruby/runtime/builtin/IRubyObject;+4 | |
| j org.jruby.runtime.Block.yieldSpecific(Lorg/jruby/runtime/ThreadContext;)Lorg/jruby/runtime/builtin/IRubyObject;+13 | |
| j org.jruby.ast.ZYieldNode.interpret(Lorg/jruby/Ruby;Lorg/jruby/runtime/ThreadContext;Lorg/jruby/runtime/builtin/IRubyObject;Lorg/jruby/runtime/Block;)Lorg/jruby/runtime/builtin/IRubyObject;+8 | |
| J org.jruby.ast.LocalAsgnNode.interpret(Lorg/jruby/Ruby;Lorg/jruby/runtime/ThreadContext;Lorg/jruby/runtime/builtin/IRubyObject;Lorg/jruby/runtime/Block;)Lorg/jruby/runtime/builtin/IRubyObject; | |
| J org.jruby.ast.NewlineNode.interpret(Lorg/jruby/Ruby;Lorg/jruby/runtime/ThreadContext;Lorg/jruby/runtime/builtin/IRubyObject;Lorg/jruby/runtime/Block;)Lorg/jruby/runtime/builtin/IRubyObject; | |
| J org.jruby.ast.BlockNode.interpret(Lorg/jruby/Ruby;Lorg/jruby/runtime/ThreadContext;Lorg/jruby/runtime/builtin/IRubyObject;Lorg/jruby/runtime/Block;)Lorg/jruby/runtime/builtin/IRubyObject; | |
| j org.jruby.internal.runtime.methods.InterpretedMethod.call(Lorg/jruby/runtime/ThreadContext;Lorg/jruby/runtime/builtin/IRubyObject;Lorg/jruby/RubyModule;Ljava/lang/String;Lorg/jruby/runtime/Block;)Lorg/jruby/runtime/builtin/IRubyObject;+51 | |
| j org.jruby.internal.runtime.methods.DefaultMethod.call(Lorg/jruby/runtime/ThreadContext;Lorg/jruby/runtime/builtin/IRubyObject;Lorg/jruby/RubyModule;Ljava/lang/String;Lorg/jruby/runtime/Block;)Lorg/jruby/runtime/builtin/IRubyObject;+24 | |
| j org.jruby.runtime.callsite.CachingCallSite.cacheAndCall(Lorg/jruby/runtime/builtin/IRubyObject;Lorg/jruby/RubyClass;Lorg/jruby/runtime/Block;Lorg/jruby/runtime/ThreadContext;Lorg/jruby/runtime/builtin/IRubyObject;)Lorg/jruby/runtime/builtin/IRubyObject;+57 | |
| J org.jruby.runtime.callsite.CachingCallSite.callBlock(Lorg/jruby/runtime/ThreadContext;Lorg/jruby/runtime/builtin/IRubyObject;Lorg/jruby/runtime/builtin/IRubyObject;Lorg/jruby/runtime/Block;)Lorg/jruby/runtime/builtin/IRubyObject; | |
| j org.jruby.runtime.callsite.CachingCallSite.callIter(Lorg/jruby/runtime/ThreadContext;Lorg/jruby/runtime/builtin/IRubyObject;Lorg/jruby/runtime/builtin/IRubyObject;Lorg/jruby/runtime/Block;)Lorg/jruby/runtime/builtin/IRubyObject;+6 | |
| j org.jruby.ast.FCallNoArgBlockNode.interpret(Lorg/jruby/Ruby;Lorg/jruby/runtime/ThreadContext;Lorg/jruby/runtime/builtin/IRubyObject;Lorg/jruby/runtime/Block;)Lorg/jruby/runtime/builtin/IRubyObject;+16 | |
| J org.jruby.ast.NewlineNode.interpret(Lorg/jruby/Ruby;Lorg/jruby/runtime/ThreadContext;Lorg/jruby/runtime/builtin/IRubyObject;Lorg/jruby/runtime/Block;)Lorg/jruby/runtime/builtin/IRubyObject; | |
| j org.jruby.internal.runtime.methods.InterpretedMethod.call(Lorg/jruby/runtime/ThreadContext;Lorg/jruby/runtime/builtin/IRubyObject;Lorg/jruby/RubyModule;Ljava/lang/String;[Lorg/jruby/runtime/builtin/IRubyObject;Lorg/jruby/runtime/Block;)Lorg/jruby/runtime/builtin/IRubyObject;+74 | |
| j org.jruby.internal.runtime.methods.InterpretedMethod.call(Lorg/jruby/runtime/ThreadContext;Lorg/jruby/runtime/builtin/IRubyObject;Lorg/jruby/RubyModule;Ljava/lang/String;[Lorg/jruby/runtime/builtin/IRubyObject;)Lorg/jruby/runtime/builtin/IRubyObject;+11 | |
| j org.jruby.internal.runtime.methods.DefaultMethod.call(Lorg/jruby/runtime/ThreadContext;Lorg/jruby/runtime/builtin/IRubyObject;Lorg/jruby/RubyModule;Ljava/lang/String;[Lorg/jruby/runtime/builtin/IRubyObject;)Lorg/jruby/runtime/builtin/IRubyObject;+24 | |
| j org.jruby.runtime.callsite.CachingCallSite.cacheAndCall(Lorg/jruby/runtime/builtin/IRubyObject;Lorg/jruby/RubyClass;[Lorg/jruby/runtime/builtin/IRubyObject;Lorg/jruby/runtime/ThreadContext;Lorg/jruby/runtime/builtin/IRubyObject;)Lorg/jruby/runtime/builtin/IRubyObject;+57 | |
| j org.jruby.runtime.callsite.CachingCallSite.call(Lorg/jruby/runtime/ThreadContext;Lorg/jruby/runtime/builtin/IRubyObject;Lorg/jruby/runtime/builtin/IRubyObject;[Lorg/jruby/runtime/builtin/IRubyObject;)Lorg/jruby/runtime/builtin/IRubyObject;+50 | |
| j org.jruby.ast.FCallManyArgsNode.interpret(Lorg/jruby/Ruby;Lorg/jruby/runtime/ThreadContext;Lorg/jruby/runtime/builtin/IRubyObject;Lorg/jruby/runtime/Block;)Lorg/jruby/runtime/builtin/IRubyObject;+26 | |
| j org.jruby.ast.ReturnNode.interpret(Lorg/jruby/Ruby;Lorg/jruby/runtime/ThreadContext;Lorg/jruby/runtime/builtin/IRubyObject;Lorg/jruby/runtime/Block;)Lorg/jruby/runtime/builtin/IRubyObject;+10 | |
| J org.jruby.ast.NewlineNode.interpret(Lorg/jruby/Ruby;Lorg/jruby/runtime/ThreadContext;Lorg/jruby/runtime/builtin/IRubyObject;Lorg/jruby/runtime/Block;)Lorg/jruby/runtime/builtin/IRubyObject; | |
| J org.jruby.ast.BlockNode.interpret(Lorg/jruby/Ruby;Lorg/jruby/runtime/ThreadContext;Lorg/jruby/runtime/builtin/IRubyObject;Lorg/jruby/runtime/Block;)Lorg/jruby/runtime/builtin/IRubyObject; | |
| J org.jruby.ast.IfNode.interpret(Lorg/jruby/Ruby;Lorg/jruby/runtime/ThreadContext;Lorg/jruby/runtime/builtin/IRubyObject;Lorg/jruby/runtime/Block;)Lorg/jruby/runtime/builtin/IRubyObject; | |
| J org.jruby.ast.NewlineNode.interpret(Lorg/jruby/Ruby;Lorg/jruby/runtime/ThreadContext;Lorg/jruby/runtime/builtin/IRubyObject;Lorg/jruby/runtime/Block;)Lorg/jruby/runtime/builtin/IRubyObject; | |
| J org.jruby.ast.BlockNode.interpret(Lorg/jruby/Ruby;Lorg/jruby/runtime/ThreadContext;Lorg/jruby/runtime/builtin/IRubyObject;Lorg/jruby/runtime/Block;)Lorg/jruby/runtime/builtin/IRubyObject; | |
| j org.jruby.internal.runtime.methods.InterpretedMethod.call(Lorg/jruby/runtime/ThreadContext;Lorg/jruby/runtime/builtin/IRubyObject;Lorg/jruby/RubyModule;Ljava/lang/String;[Lorg/jruby/runtime/builtin/IRubyObject;Lorg/jruby/runtime/Block;)Lorg/jruby/runtime/builtin/IRubyObject;+74 | |
| j org.jruby.internal.runtime.methods.DefaultMethod.call(Lorg/jruby/runtime/ThreadContext;Lorg/jruby/runtime/builtin/IRubyObject;Lorg/jruby/RubyModule;Ljava/lang/String;[Lorg/jruby/runtime/builtin/IRubyObject;Lorg/jruby/runtime/Block;)Lorg/jruby/runtime/builtin/IRubyObject;+26 | |
| j org.jruby.runtime.callsite.CachingCallSite.cacheAndCall(Lorg/jruby/runtime/builtin/IRubyObject;Lorg/jruby/RubyClass;Lorg/jruby/runtime/Block;[Lorg/jruby/runtime/builtin/IRubyObject;Lorg/jruby/runtime/ThreadContext;Lorg/jruby/runtime/builtin/IRubyObject;)Lorg/jruby/runtime/builtin/IRubyObject;+61 | |
| j org.jruby.runtime.callsite.CachingCallSite.callBlock(Lorg/jruby/runtime/ThreadContext;Lorg/jruby/runtime/builtin/IRubyObject;Lorg/jruby/runtime/builtin/IRubyObject;[Lorg/jruby/runtime/builtin/IRubyObject;Lorg/jruby/runtime/Block;)Lorg/jruby/runtime/builtin/IRubyObject;+54 | |
| j org.jruby.runtime.callsite.CachingCallSite.call(Lorg/jruby/runtime/ThreadContext;Lorg/jruby/runtime/builtin/IRubyObject;Lorg/jruby/runtime/builtin/IRubyObject;[Lorg/jruby/runtime/builtin/IRubyObject;Lorg/jruby/runtime/Block;)Lorg/jruby/runtime/builtin/IRubyObject;+8 | |
| j org.jruby.ast.CallManyArgsBlockPassNode.interpret(Lorg/jruby/Ruby;Lorg/jruby/runtime/ThreadContext;Lorg/jruby/runtime/builtin/IRubyObject;Lorg/jruby/runtime/Block;)Lorg/jruby/runtime/builtin/IRubyObject;+57 | |
| J org.jruby.ast.NewlineNode.interpret(Lorg/jruby/Ruby;Lorg/jruby/runtime/ThreadContext;Lorg/jruby/runtime/builtin/IRubyObject;Lorg/jruby/runtime/Block;)Lorg/jruby/runtime/builtin/IRubyObject; | |
| j org.jruby.internal.runtime.methods.InterpretedMethod.call(Lorg/jruby/runtime/ThreadContext;Lorg/jruby/runtime/builtin/IRubyObject;Lorg/jruby/RubyModule;Ljava/lang/String;Lorg/jruby/runtime/builtin/IRubyObject;)Lorg/jruby/runtime/builtin/IRubyObject;+56 | |
| j org.jruby.internal.runtime.methods.DefaultMethod.call(Lorg/jruby/runtime/ThreadContext;Lorg/jruby/runtime/builtin/IRubyObject;Lorg/jruby/RubyModule;Ljava/lang/String;Lorg/jruby/runtime/builtin/IRubyObject;)Lorg/jruby/runtime/builtin/IRubyObject;+24 | |
| J org.jruby.runtime.callsite.CachingCallSite.cacheAndCall(Lorg/jruby/runtime/builtin/IRubyObject;Lorg/jruby/RubyClass;Lorg/jruby/runtime/ThreadContext;Lorg/jruby/runtime/builtin/IRubyObject;Lorg/jruby/runtime/builtin/IRubyObject;)Lorg/jruby/runtime/builtin/IRubyObject; | |
| J org.jruby.runtime.callsite.CachingCallSite.call(Lorg/jruby/runtime/ThreadContext;Lorg/jruby/runtime/builtin/IRubyObject;Lorg/jruby/runtime/builtin/IRubyObject;Lorg/jruby/runtime/builtin/IRubyObject;)Lorg/jruby/runtime/builtin/IRubyObject; | |
| j noko.__file__(Lnoko;Lorg/jruby/runtime/ThreadContext;Lorg/jruby/runtime/builtin/IRubyObject;[Lorg/jruby/runtime/builtin/IRubyObject;Lorg/jruby/runtime/Block;)Lorg/jruby/runtime/builtin/IRubyObject;+163 | |
| j noko.load(Lorg/jruby/runtime/ThreadContext;Lorg/jruby/runtime/builtin/IRubyObject;[Lorg/jruby/runtime/builtin/IRubyObject;Lorg/jruby/runtime/Block;)Lorg/jruby/runtime/builtin/IRubyObject;+16 | |
| j org.jruby.Ruby.runScript(Lorg/jruby/ast/executable/Script;)Lorg/jruby/runtime/builtin/IRubyObject;+17 | |
| j org.jruby.Ruby.runNormally(Lorg/jruby/ast/Node;)Lorg/jruby/runtime/builtin/IRubyObject;+89 | |
| j org.jruby.Ruby.runFromMain(Ljava/io/InputStream;Ljava/lang/String;)V+304 | |
| j org.jruby.Main.run()Lorg/jruby/Main$Status;+638 | |
| j org.jruby.Main.run([Ljava/lang/String;)Lorg/jruby/Main$Status;+9 | |
| j org.jruby.Main.main([Ljava/lang/String;)V+28 | |
| v ~StubRoutines::call_stub | |
| --------------- P R O C E S S --------------- | |
| Java Threads: ( => current thread ) | |
| 0x03d76400 JavaThread "ReferenceReaper" daemon [_thread_blocked, id=3048, stack(0x043a0000,0x044a0000)] | |
| 0x03d61400 JavaThread "Thread-0" daemon [_thread_blocked, id=3144, stack(0x04240000,0x04340000)] | |
| 0x02d95800 JavaThread "Low Memory Detector" daemon [_thread_blocked, id=524, stack(0x03660000,0x03760000)] | |
| 0x02d86c00 JavaThread "CompilerThread0" daemon [_thread_blocked, id=2356, stack(0x03460000,0x03660000)] | |
| 0x02d85400 JavaThread "Attach Listener" daemon [_thread_blocked, id=1416, stack(0x03360000,0x03460000)] | |
| 0x02d84000 JavaThread "Signal Dispatcher" daemon [_thread_blocked, id=1276, stack(0x03260000,0x03360000)] | |
| 0x02d80800 JavaThread "Finalizer" daemon [_thread_blocked, id=1628, stack(0x03160000,0x03260000)] | |
| 0x02d7bc00 JavaThread "Reference Handler" daemon [_thread_blocked, id=2348, stack(0x03060000,0x03160000)] | |
| =>0x00a66c00 JavaThread "main" [_thread_in_native, id=1072, stack(0x00030000,0x00230000)] | |
| Other Threads: | |
| 0x02d7a400 VMThread [stack: 0x02e60000,0x03060000] [id=612] | |
| 0x02da9000 WatcherThread [stack: 0x03760000,0x03960000] [id=3680] | |
| VM state:not at safepoint (normal execution) | |
| VM Mutex/Monitor currently owned by a thread: None | |
| Heap | |
| def new generation total 4416K, used 3700K [0x0b5d0000, 0x0ba90000, 0x15c70000) | |
| eden space 3968K, 81% used [0x0b5d0000, 0x0b8fd258, 0x0b9b0000) | |
| from space 448K, 100% used [0x0b9b0000, 0x0ba20000, 0x0ba20000) | |
| to space 448K, 0% used [0x0ba20000, 0x0ba20000, 0x0ba90000) | |
| tenured generation total 9600K, used 7837K [0x15c70000, 0x165d0000, 0x2a9d0000) | |
| the space 9600K, 81% used [0x15c70000, 0x16417400, 0x16417400, 0x165d0000) | |
| compacting perm gen total 15104K, used 15093K [0x2a9d0000, 0x2b890000, 0x2e9d0000) | |
| the space 15104K, 99% used [0x2a9d0000, 0x2b88d548, 0x2b88d600, 0x2b890000) | |
| ro space 10240K, 51% used [0x2e9d0000, 0x2eefbd20, 0x2eefbe00, 0x2f3d0000) | |
| rw space 12288K, 54% used [0x2f3d0000, 0x2fa67d58, 0x2fa67e00, 0x2ffd0000) | |
| Dynamic libraries: | |
| 0x00400000 - 0x0041f000 c:\jruby-1.5.6\bin\jruby.exe | |
| 0x7c900000 - 0x7c9b2000 C:\WINDOWS\system32\ntdll.dll | |
| 0x7c800000 - 0x7c8f6000 C:\WINDOWS\system32\kernel32.dll | |
| 0x77dd0000 - 0x77e6b000 C:\WINDOWS\system32\ADVAPI32.DLL | |
| 0x77e70000 - 0x77f02000 C:\WINDOWS\system32\RPCRT4.dll | |
| 0x77fe0000 - 0x77ff1000 C:\WINDOWS\system32\Secur32.dll | |
| 0x77c10000 - 0x77c68000 C:\WINDOWS\system32\msvcrt.dll | |
| 0x7e410000 - 0x7e4a1000 C:\WINDOWS\system32\USER32.dll | |
| 0x77f10000 - 0x77f59000 C:\WINDOWS\system32\GDI32.dll | |
| 0x76390000 - 0x763ad000 C:\WINDOWS\system32\IMM32.DLL | |
| 0x684c0000 - 0x684fa000 c:\jruby-1.5.6\bin\jruby.dll | |
| 0x71ab0000 - 0x71ac7000 C:\WINDOWS\system32\WS2_32.DLL | |
| 0x71aa0000 - 0x71aa8000 C:\WINDOWS\system32\WS2HELP.dll | |
| 0x6d7f0000 - 0x6da9c000 c:\program files\java\jre6\bin\client\jvm.dll | |
| 0x76b40000 - 0x76b6d000 C:\WINDOWS\system32\WINMM.dll | |
| 0x7c340000 - 0x7c396000 c:\program files\java\jre6\bin\MSVCR71.dll | |
| 0x6d7a0000 - 0x6d7ac000 c:\program files\java\jre6\bin\verify.dll | |
| 0x6d320000 - 0x6d33f000 c:\program files\java\jre6\bin\java.dll | |
| 0x6d280000 - 0x6d288000 c:\program files\java\jre6\bin\hpi.dll | |
| 0x76bf0000 - 0x76bfb000 C:\WINDOWS\system32\PSAPI.DLL | |
| 0x6d7e0000 - 0x6d7ef000 c:\program files\java\jre6\bin\zip.dll | |
| 0x6d600000 - 0x6d613000 C:\Program Files\Java\jre6\bin\net.dll | |
| 0x6d620000 - 0x6d629000 C:\Program Files\Java\jre6\bin\nio.dll | |
| 0x65340000 - 0x65355000 C:\jruby-1.5.6\lib\native\i386-Windows\jffi-1.0.dll | |
| 0x7c9c0000 - 0x7d1d7000 C:\WINDOWS\system32\shell32.dll | |
| 0x77f60000 - 0x77fd6000 C:\WINDOWS\system32\SHLWAPI.dll | |
| 0x773d0000 - 0x774d3000 C:\WINDOWS\WinSxS\x86_Microsoft.Windows.Common-Controls_6595b64144ccf1df_6.0.2600.5512_x-ww_35d4ce83\comctl32.dll | |
| 0x5d090000 - 0x5d12a000 C:\WINDOWS\system32\comctl32.dll | |
| 0x769c0000 - 0x76a74000 C:\WINDOWS\system32\USERENV.dll | |
| 0x63500000 - 0x63686000 c:\jruby-1.5.6\lib\ruby\gems\1.8\gems\nokogiri-1.4.4.2-java\ext\nokogiri\libxml2.dll | |
| 0x66000000 - 0x66187000 c:\jruby-1.5.6\lib\ruby\gems\1.8\gems\nokogiri-1.4.4.2-java\ext\nokogiri\libiconv-2.dll | |
| 0x62e80000 - 0x62e9f000 c:\jruby-1.5.6\lib\ruby\gems\1.8\gems\nokogiri-1.4.4.2-java\ext\nokogiri\zlib1.dll | |
| 0x61cc0000 - 0x61d36000 c:\jruby-1.5.6\lib\ruby\gems\1.8\gems\nokogiri-1.4.4.2-java\ext\nokogiri\libxslt.dll | |
| 0x703c0000 - 0x70408000 c:\jruby-1.5.6\lib\ruby\gems\1.8\gems\nokogiri-1.4.4.2-java\ext\nokogiri\libexslt.dll | |
| 0x71a50000 - 0x71a8f000 C:\WINDOWS\system32\mswsock.dll | |
| 0x662b0000 - 0x66308000 C:\WINDOWS\system32\hnetcfg.dll | |
| 0x71a90000 - 0x71a98000 C:\WINDOWS\System32\wshtcpip.dll | |
| 0x76f20000 - 0x76f47000 C:\WINDOWS\system32\DNSAPI.dll | |
| 0x76fb0000 - 0x76fb8000 C:\WINDOWS\System32\winrnr.dll | |
| 0x76f60000 - 0x76f8c000 C:\WINDOWS\system32\WLDAP32.dll | |
| 0x751d0000 - 0x751ee000 C:\WINDOWS\system32\wshbth.dll | |
| 0x77920000 - 0x77a13000 C:\WINDOWS\system32\SETUPAPI.dll | |
| 0x76fc0000 - 0x76fc6000 C:\WINDOWS\system32\rasadhlp.dll | |
| 0x68000000 - 0x68036000 C:\WINDOWS\system32\rsaenh.dll | |
| 0x5b860000 - 0x5b8b5000 C:\WINDOWS\system32\netapi32.dll | |
| 0x6d780000 - 0x6d788000 C:\Program Files\Java\jre6\bin\sunmscapi.dll | |
| 0x77a80000 - 0x77b15000 C:\WINDOWS\system32\CRYPT32.dll | |
| 0x77b20000 - 0x77b32000 C:\WINDOWS\system32\MSASN1.dll | |
| VM Arguments: | |
| jvm_args: -Djdk.home=c:\program files\java\jre6 -Djruby.home=c:\jruby-1.5.6 -Djruby.script=jruby -Djruby.shell=cmd.exe -Djffi.boot.library.path=c:\jruby-1.5.6\lib\native\i386-Windows;c:\jruby-1.5.6\lib\native\x86_64-Windows -Xmx500m -Xss1024k -Djruby.memory.max=500m -Djruby.stack.max=1024k -Xbootclasspath/a:c:\jruby-1.5.6\lib\jruby.jar | |
| java_command: org.jruby.Main | |
| Launcher Type: generic | |
| Environment Variables: | |
| JAVA_HOME=c:\program files\java\jre6 | |
| PATH=C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32\Wbem;C:\Java\jdk1.6.0_23\bin;c:\jruby-1.5.6\bin | |
| USERNAME=Administrator | |
| OS=Windows_NT | |
| PROCESSOR_IDENTIFIER=x86 Family 6 Model 37 Stepping 5, GenuineIntel | |
| --------------- S Y S T E M --------------- | |
| OS: Windows XP Build 2600 Service Pack 3 | |
| CPU:total 1 (1 cores per cpu, 1 threads per core) family 6 model 37 stepping 5, cmov, cx8, fxsr, mmx, sse, sse2, sse3, ssse3, sse4.1, sse4.2, popcnt | |
| Memory: 4k page, physical 523752k(130676k free), swap 2585200k(2218660k free) | |
| vm_info: Java HotSpot(TM) Client VM (19.0-b09) for windows-x86 JRE (1.6.0_23-b05), built on Nov 12 2010 15:00:43 by "java_re" with MS VC++ 7.1 (VS2003) | |
| time: Thu Jan 06 11:04:54 2011 | |
| elapsed time: 4 seconds | |
This file contains hidden or 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
| C:\Documents and Settings\Administrator>gem install nokogiri | |
| JRuby limited openssl loaded. http://jruby.org/openssl | |
| gem install jruby-openssl for full support. | |
| Successfully installed weakling-0.0.4-java | |
| Successfully installed nokogiri-1.4.4.2-java | |
| 2 gems installed | |
| Installing ri documentation for weakling-0.0.4-java... | |
| Installing ri documentation for nokogiri-1.4.4.2-java... | |
| No definition for get_options | |
| No definition for set_options | |
| No definition for parse_memory | |
| No definition for parse_file | |
| No definition for parse_with | |
| Installing RDoc documentation for weakling-0.0.4-java... | |
| Installing RDoc documentation for nokogiri-1.4.4.2-java... | |
| No definition for get_options | |
| No definition for set_options | |
| No definition for parse_memory | |
| No definition for parse_file | |
| No definition for parse_with | |
| C:\Documents and Settings\Administrator>gem install jruby-openssl | |
| JRuby limited openssl loaded. http://jruby.org/openssl | |
| gem install jruby-openssl for full support. | |
| Successfully installed bouncy-castle-java-1.5.0145.2 | |
| Successfully installed jruby-openssl-0.7.2 | |
| 2 gems installed | |
| Installing ri documentation for bouncy-castle-java-1.5.0145.2... | |
| Installing ri documentation for jruby-openssl-0.7.2... | |
| Installing RDoc documentation for bouncy-castle-java-1.5.0145.2... | |
| Installing RDoc documentation for jruby-openssl-0.7.2... | |
| C:\Documents and Settings\Administrator>java -version | |
| java version "1.6.0_23" | |
| Java(TM) SE Runtime Environment (build 1.6.0_23-b05) | |
| Java HotSpot(TM) Client VM (build 19.0-b09, mixed mode, sharing) | |
| C:\Documents and Settings\Administrator>jruby -v | |
| jruby 1.5.6 (ruby 1.8.7 patchlevel 249) (2010-12-03 9cf97c3) (Java HotSpot(TM) Client VM 1.6.0_23) [x86-java] |
This file contains hidden or 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
| C:\noko>jruby noko.rb | |
| # | |
| # A fatal error has been detected by the Java Runtime Environment: | |
| # | |
| # EXCEPTION_ACCESS_VIOLATION (0xc0000005) at pc=0x6353f18f, pid=2928, tid=1072 | |
| # | |
| # JRE version: 6.0_23-b05 | |
| # Java VM: Java HotSpot(TM) Client VM (19.0-b09 mixed mode, sharing windows-x86 ) | |
| # Problematic frame: | |
| # C [libxml2.dll+0x3f18f] | |
| # | |
| # An error report file with more information is saved as: | |
| # C:\noko\hs_err_pid2928.log | |
| # | |
| # If you would like to submit a bug report, please visit: | |
| # http://java.sun.com/webapps/bugreport/crash.jsp | |
| # The crash happened outside the Java Virtual Machine in native code. | |
| # See problematic frame for where to report the bug. | |
| # |
This file contains hidden or 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
| require 'rubygems' | |
| require 'nokogiri' | |
| require 'open-uri' | |
| require 'openssl' | |
| # Ikke valider sertifikatet.. | |
| module OpenSSL | |
| module SSL | |
| remove_const :VERIFY_PEER | |
| VERIFY_PEER = VERIFY_NONE | |
| end | |
| end | |
| doc = Nokogiri::HTML(open('https://github.com/oc')) | |
| puts "My public repos" | |
| doc.css('ul#repositories li.public', 'h3 a').each do |link| | |
| puts link['href'] | |
| end | |
| puts "\nPublic activity" | |
| # css + xpath | |
| doc.search('div.public_news', '//div[@class="title"]').each do |news| | |
| puts news.text.gsub(/\s+/, ' ') unless news.text =~ /^\s+$/ | |
| end |
This file contains hidden or 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
| C:\Documents and Settings\Administrator>jruby -S nokogiri -v | |
| --- | |
| warnings: [] | |
| nokogiri: 1.4.4.2 | |
| ruby: | |
| version: 1.8.7 | |
| platform: java | |
| engine: jruby | |
| jruby: 1.5.6 | |
| libxml: | |
| loaded: 2.7.7 | |
| binding: ffi | |
| platform: jruby | |
| refs: weakling |
Author
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
C:\noko>jruby -S nokogiri http://www.google.com
Your document is stored in @doc...
irb(main):001:0> @doc
=> #<Nokogiri::HTML::Document:0x7e4 name="document" children=[#<Nokogiri::XML::DTD:0x7e6 name="html">, #<Nokogiri::XML::
Element:0x7e8 name="html" children=[#<Nokogiri::XML::Element:0x7ea name="head" children=[#<Nokogiri::XML::Element:0x7ee
name="meta" attributes=[#<Nokogiri::XML::Attr:0x7f8 name="http-equiv" value="content-type">, #<Nokogiri::XML::Attr:0x7fa
name="content" value="text/html; charset=ISO-8859-1">]>, #<Nokogiri::XML::Element:0x7f0 name="title" children=[#<Nokogi
ri::XML::Text:0x7fc "Google">]>, #<Nokogiri::XML::Element:0x7f2 name="script" children=[#<Nokogiri::XML::CDATA:0x7fe "wi
ndow.google={kEI:"UZUlTYvpOpLG-gal8JGiDQ",kEXPI:"27846",kCSI:{e:"27846",ei:"UZUlTYvpOpLG-gal8JGiDQ",expi:"27846
"},ml:function(){},kHL:"no",time:function(){return(new Date).getTime()},log:function(c,d,\nb){var a=new Image,e=googl
e,g=e.lc,f=e.li;a.onerror=(a.onload=(a.onabort=function(){delete g[f]}));g[f]=a;b=b||"/gen_204?atyp=i&ct="+c+"&cad="
+d+"&zx="+google.time();a.src=b;e.li=f+1},lc:[],li:0,Toolbelt:{}};\nwindow.google.sn="webhp";var i=window.google.tim
ers={};window.google.startTick=function(a,b){i[a]={t:{start:(new Date).getTime()},bfr:!(!b)}};window.google.tick=functio
n(a,b,c){if(!i[a])google.startTick(a);i[a].t[b]=c||(new Date).getTime()};google.startTick("load",true);try{}catch(v){}
\nwindow.google.jsrt_kill=1;\nvar _gjwl=location;function _gjuc(){var e=_gjwl.href.indexOf("#");if(e>=0){var a=_gjwl.h
ref.substring(e);if(a.indexOf("&q=")>0||a.indexOf("#q=")>=0){a=a.substring(1);if(a.indexOf("#")==-1){for(var c=0;c
<a.length;){var d=c;if(a.charAt(d)=="&")++d;var b=a.indexOf("&",d);if(b==-1)b=a.length;var f=a.substring(d,b);if(f.i
ndexOf("fp=")==0){a=a.substring(0,c)+a.substring(b,a.length);b=c}else if(f=="cad=h")return 0;c=b}_gjwl.href="/searc
h?"+a+"&cad=h";return 1}}}return 0}function _gjp(){!(window._gjwl.hash&&\nwindow._gjuc())&&setTimeout(_gjp,500)};\nwi
ndow._gjp && _gjp()">]>, #<Nokogiri::XML::Element:0x7f4 name="style" attributes=[#<Nokogiri::XML::Attr:0x800 name="id" v
alue="gstyle">] children=[#<Nokogiri::XML::CDATA:0x802 "body{margin:0}#gog{padding:3px 8px 0}td{line-height:.8em}.gac_m
td{line-height:17px}form{margin-bottom:20px}body,td,a,p,.h{font-family:arial,sans-serif}.h{color:#36c;font-size:20px}.q{
color:#00c}.ts td{padding:0}.ts{border-collapse:collapse}em{font-weight:bold;font-style:normal}.lst{width:496px}.tiah{wi
dth:458px}input{font-family:inherit}a.gb1,a.gb2,a.gb3,a.gb4{color:#11c !important}#gog{background:#fff}#gbar,#guser{font
-size:13px;padding-top:1px !important}#gbar{float:left;height:22px}#guser{padding-bottom:7px !important;text-align:right
}.gbh,.gbd{border-top:1px solid #c9d7f1;font-size:1px}.gbh{height:0;position:absolute;top:24px;width:100%}#gbs,.gbm{back
ground:#fff;left:0;position:absolute;text-align:left;visibility:hidden;z-index:1000}.gbm{border:1px solid;border-color:#
c9d7f1 #36c #36c #a2bae7;z-index:1001}.gb1{margin-right:.5em}#gbar .gbsup{color:#c00;font-size:9px;font-weight:normal;li
ne-height:9px;margin-left:-.5em;margin-right:.5em;*margin-left:-.5em;*margin-right:.5em}.gb1,.gb3{zoom:1}.gb2{display:bl
ock;padding:.2em .5em}.gb2,.gb3{text-decoration:none;border-bottom:none}a.gb1,a.gb2,a.gb3,a.gb4{color:#00c !important}a.
gb2:hover{background:#36c;color:#fff !important}body{background:#fff;color:black}input{-moz-box-sizing:content-box}a{col
or:#11c;text-decoration:none}a:hover,a:active{text-decoration:underline}.fl a{color:#4272db}a:visited{color:#551a8b}a.gb
1,a.gb4{text-decoration:underline}a.gb3:hover{text-decoration:none}#ghead a.gb2:hover{color:#fff!important}.ds{display:-
moz-inline-box}.ds{border-bottom:solid 1px #e7e7e7;border-right:solid 1px #e7e7e7;display:inline-block;margin:3px 0 4px;
margin-left:4px}.sblc{padding-top:5px}.sblc a{display:block;margin:2px 0;margin-left:13px;font-size:11px;}.lsbb{backgrou
nd:#eee;border:solid 1px;border-color:#ccc #999 #999 #ccc;height:30px;display:block}.lsb{background:url(/images/srpr/nav
_logo27.png) bottom;font:15px arial,sans-serif;border:none;color:#000;cursor:pointer;height:30px;margin:0;outline:0;vert
ical-align:top}.lsb:active{background:#ccc}.lst:focus{outline:none}.ftl,#fll a{margin:0 12px}#addlang a{padding:0 3px}.g
ac_v div{display:none}.gac_v .gac_v2,.gac_bt{display:block!important}">]>, #<Nokogiri::XML::Element:0x7f6 name="script"
children=[#<Nokogiri::XML::CDATA:0x804 "google.y={};google.x=function(e,g){google.y[e.id]=[e,g];return false};window.gba
r={qs:function(){},tg:function(e){var o={id:'gbar'};for(i in e)o[i]=e[i];google.x(o,function(){gbar.tg(o)})}};">]>]>, #<
Nokogiri::XML::Element:0x7ec name="body" attributes=[#<Nokogiri::XML::Attr:0x806 name="bgcolor" value="#ffffff">, #, #<Nokogiri::XML::Attr:0x80a name="link" value="#0000cc">, #, #<Nokogiri::XML::Attr:0x80e name="alink" value="#ff0000">, #<Nokogiri::
XML::Attr:0x810 name="onload" value="document.f.q.focus();if(document.images)new Image().src='/images/srpr/nav_logo27.pn
g'">] children=[#<Nokogiri::XML::Element:0x812 name="textarea" attributes=[#<Nokogiri::XML::Attr:0x818 name="id" value="
csi">, #<Nokogiri::XML::Attr:0x81a name="style" value="display:none">]>, #<Nokogiri::XML::Element:0x814 name="div" attri
butes=[#<Nokogiri::XML::Attr:0x81c name="id" value="ghead">] children=[#<Nokogiri::XML::Element:0x81e name="div" attribu
tes=[#<Nokogiri::XML::Attr:0x820 name="id" value="gog">] children=[#<Nokogiri::XML::Element:0x822 name="div" attributes=
[#<Nokogiri::XML::Attr:0x82a name="id" value="gbar">] children=[#<Nokogiri::XML::Element:0x82c name="nobr" children=[#<N
okogiri::XML::Element:0x82e name="b" attributes=[#<Nokogiri::XML::Attr:0x84e name="class" value="gb1">] children=[#<Noko
giri::XML::Text:0x850 "Nett">]>, #<Nokogiri::XML::Text:0x830 " ">, #<Nokogiri::XML::Element:0x832 name="a" attributes=[#
<Nokogiri::XML::Attr:0x852 name="href" value="http://www.google.no/imghp?hl=no&tab=wi">, #<Nokogiri::XML::Attr:0x854 nam
e="onclick" value="gbar.qs(this)">, #<Nokogiri::XML::Attr:0x856 name="class" value="gb1">] children=[#<Nokogiri::XML::Te
xt:0x858 "Bilder">]>, #<Nokogiri::XML::Text:0x834 " ">, #<Nokogiri::XML::Element:0x836 name="a" attributes=[#<Nokogiri::
XML::Attr:0x85a name="href" value="http://maps.google.no/maps?hl=no&tab=wl">, #<Nokogiri::XML::Attr:0x85c name="onclick"
value="gbar.qs(this)">, #<Nokogiri::XML::Attr:0x85e name="class" value="gb1">] children=[#<Nokogiri::XML::Text:0x860 "K
art">]>, #<Nokogiri::XML::Text:0x838 " ">, #<Nokogiri::XML::Element:0x83a name="a" attributes=[#<Nokogiri::XML::Attr:0x8
62 name="href" value="http://news.google.no/nwshp?hl=no&tab=wn">, #<Nokogiri::XML::Attr:0x864 name="onclick" value="gbar
.qs(this)">, #<Nokogiri::XML::Attr:0x866 name="class" value="gb1">] children=[#<Nokogiri::XML::Text:0x868 "Nyheter">]>,
<Nokogiri::XML::Text:0x83c " ">, #<Nokogiri::XML::Element:0x83e name="a" attributes=[#<Nokogiri::XML::Attr:0x86a name="
href" value="http://translate.google.no/?hl=no&tab=wT">, #<Nokogiri::XML::Attr:0x86c name="onclick" value="gbar.qs(this)
">, #<Nokogiri::XML::Attr:0x86e name="class" value="gb1">] children=[#<Nokogiri::XML::Text:0x870 "Oversetter">]>, #<Noko
giri::XML::Text:0x840 " ">, #<Nokogiri::XML::Element:0x842 name="a" attributes=[#<Nokogiri::XML::Attr:0x872 name="href"
value="http://blogsearch.google.no/?hl=no&tab=wb">, #<Nokogiri::XML::Attr:0x874 name="onclick" value="gbar.qs(this)">, #
<Nokogiri::XML::Attr:0x876 name="class" value="gb1">] children=[#<Nokogiri::XML::Text:0x878 "Blogger">]>, #<Nokogiri::XM
L::Text:0x844 " ">, #<Nokogiri::XML::Element:0x846 name="a" attributes=[#<Nokogiri::XML::Attr:0x87a name="href" value="h
ttp://mail.google.com/mail/?hl=no&tab=wm">, #<Nokogiri::XML::Attr:0x87c name="class" value="gb1">] children=[#<Nokogiri:
:XML::Text:0x87e "Gmail">]>, #<Nokogiri::XML::Text:0x848 " ">, #<Nokogiri::XML::Element:0x84a name="a" attributes=[#, #<Nokogiri::XML::Attr:0x882 name="onc
lick" value="this.blur();gbar.tg(event);return !1">, #<Nokogiri::XML::Attr:0x884 name="aria-haspopup" value="true">, #] children=[#<Nokogiri::XML::Element:0x888 name="u" children=[#<Nokogi
ri::XML::Text:0x88e "mer">]>, #<Nokogiri::XML::Text:0x88a " ">, #<Nokogiri::XML::Element:0x88c name="small" children=[#<
Nokogiri::XML::Text:0x890 "\342\226\274">]>]>, #<Nokogiri::XML::Element:0x84c name="div" attributes=[#<Nokogiri::XML::At
tr:0x892 name="class" value="gbm">, #<Nokogiri::XML::Attr:0x894 name="id" value="gbi">] children=[#<Nokogiri::XML::Eleme
nt:0x896 name="a" attributes=[#<Nokogiri::XML::Attr:0x8b4 name="href" value="http://www.google.no/realtime?hl=no&tab=wY"