tags:

views:

29

answers:

0

Any idea why hpricot might segfault on this page?

trial_url = 'http://www.controlled-trials.com/ISRCTN56071145/'
doc = Hpricot(open(trial_url))

produces:

/Users/ap257/.gem/ruby/1.8/gems/hpricot-0.8.2/lib/hpricot/parse.rb:33: [BUG] Segmentation fault
ruby 1.8.7 (2009-06-08 patchlevel 173) [universal-darwin10.0]
Abort trap

Please could anyone advise on how I could get around this, or whether it's a bug in hpricot that I should report somewhere?

Thanks!

PS am running OS X 10.6.3.