Giter Club home page Giter Club logo

wwmd's Issues

Doesn't seem to work on Ubuntu / 1.9.3

This could be environmental, but here is the error I am getting:

Can't handle 1.9.x yet
*** extconf.rb failed ***
Could not create Makefile due to some reason, probably lack of
necessary libraries and/or headers. Check the mkmf.log file for more
details. You may need configuration options.

Any suggestions?

BUS Error in irb

I'm running Mac OS X 10.5
I've been tracking a bug which makes irb crash with a BUS ERROR:

% irb
irb(main):001:0> require 'rubygems'; require 'wwmd'; page = WWMD::Page.new
/opt/local/lib/ruby/1.8/irb.rb:302: [BUG] Bus Error
ruby 1.8.7 (2008-08-11 patchlevel 72) [i686-darwin9]

After poking around I finally found the issue is the call to page.inspect irb is doing (irb --noinspect for instance doesn't crash).
So I ran the following program:
% cat foo.rb
require 'rubygems'
require 'wwmd'

page = WWMD::Page.new
page.inspect
% gdb --args ruby foo.rb
[...]
Program received signal EXC_BAD_ACCESS, Could not access memory.
Reason: KERN_PROTECTION_FAILURE at address: 0x00000010
0x003f1daa in ruby_curl_easy_inspect ()
(gdb) bt
#0 0x003f1daa in ruby_curl_easy_inspect ()
#1 0x0010d7ff in rb_call0 ()
#2 0x0010e44c in rb_call ()
#3 0x0010f1ad in vafuncall ()
#4 0x0010f331 in rb_funcall ()
#5 0x0013aaa2 in rb_inspect ()
#6 0x0013b5fe in inspect_i ()
#7 0x001236a8 in foreach_safe_i ()
#8 0x00174061 in st_foreach ()
#9 0x001236f8 in st_foreach_safe ()
#10 0x0013aae4 in inspect_obj ()
#11 0x000e9df8 in inspect_call ()
#12 0x00107599 in rb_ensure ()
#13 0x000ee554 in rb_protect_inspect ()
#14 0x0013e719 in rb_obj_inspect ()
#15 0x0010d7ff in rb_call0 ()
#16 0x0010e44c in rb_call ()
#17 0x0010bf4e in rb_eval ()
#18 0x001186f9 in ruby_exec ()
#19 0x0011a9ca in ruby_run ()
#20 0x00001ffd in main ()

(gdb)

So it seems to be crashing while calling inspect on the easy curl object.

What's strange is that the following works fine:
% irb
irb(main):001:0> require 'rubygems'; require 'curb'; c = Curl::Easy.new("http://www.google.co.uk"); c.inspect
=> "#<Curl::Easy http://www.google.co.u>"

I'm a n00b with ruby, so you will probably be faster that me debugging this issue.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.