Git Product home page Git Product logo

Comments (7)

peterc avatar peterc commented on June 2, 2024

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.

kris avatar kris commented on June 2, 2024

I can confirm the same issue. Not chaining causes consistent segfaults.

from pismo.

kris avatar kris commented on June 2, 2024

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.

briandoll avatar briandoll commented on June 2, 2024

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.

peterc avatar peterc commented on June 2, 2024

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.

peterc avatar peterc commented on June 2, 2024

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.

briandoll avatar briandoll commented on June 2, 2024

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)

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.