Comments (7)
Thanks for reporting this. However, the three techniques you've used are functionally equivalent under the hood.
A number of informal bug reports have been given to me over the last couple of months regarding segfaults. Most were for Pismo 0.6.1 which used the ruby-readability library that was triggering a segfault in Nokogiri 1.4.2 (but not 1.4.1). I wrote an all new replacement for ruby-readability which resolved most of the issue for Nokogiri 1.4.2.
This is a tricky issue to debug as I cannot reproduce it at all. Nokogiri 1.4.2 generally, though, does seem to be a lot more susceptible to segfaults than 1.4.1 ever was. I'm rather hoping a 1.4.3 or 1.5 is released that brings back some stability..
from pismo.
I can confirm the same issue. Not chaining causes consistent segfaults.
from pismo.
Now that I look at it, it's completely random. It segfaults pretty much all the time now. The Nokogiri guys don't seem to be much help.
from pismo.
This may be an issue with irb. I can't explain how this may happen, but I can now make it go away in an irb session.
I've updated the gist: http://gist.github.com/482550
Essentially, if we omit spitting the pismo document back out to the irb screen, we can safely interact with it. This is that old trick where the results of an expression return a ton of data that you don't need to see, so you just stick a puts statement after it.
Also, If I put this code in a simple ruby script, it all works fine, continuing to indicate that displaying the results in irb is the root issue.
from pismo.
Ah, actually, I had a similar complaint over e-mail a few weeks back that had the same resolution.. sorry I didn't remember ;-)
<< We realized that the issue was with irb (v 0.9.5). We tried using Pismo within a script to process those links and we had no issues. And we couldn't reproduce those issues with the 'bin/pismo' script either. So I guess we just need to be more careful if we use Pismo with irb. >>
from pismo.
A new version of Nokogiri is out (1.4.3.1) and Pismo works OK with it, so it might be worth a try if you've had this segfault issue.
from pismo.
Just tried it and it still segfaults. As you mentioned, the issue is really with irb, so it looks like that's the avenue to have it fixed.
Looks like it's time for... http://redmine.ruby-lang.org/issues/
from pismo.
Related Issues (18)
- getting page links
- Slow Startup/Require HOT 2
- UTF-8 Characters Replaced with ? HOT 3
- Pismo Redirection Not Allowed HOT 5
- Rails + Pismo HOT 1
- Https support
- Pismo doesn't allow redirection to https
- Default reader gets wrong content
- case sensitive matcher and default favicon location.
- Support HTML DEL and INS elements.
- (undefined method `first' for nil:NilClass ) when there is no top_content_candidate
- I18n: work with non english websites
- coder.io
- Image fetch is not working
- Can't match Chinese keywords
- Problem with (CoffeeScript) Code
- pismo fails on many pages with encoding issues HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from pismo.