in reply to segmentation fault on HTML::TokeParser

If a pure Perl module is segfaulting as well as one dependent on the C in HTML::Parser I think you have to assume it is a perl problem as that is the only common C code. It could however be that your code runs on your laptop because it has enough resources (memory) but not on the host because you have some sort of resource limited virtual environment. Anyway the quickest way to test/fix is probably to make a brand new 5.8.8 install in your home directory (which assumes you have shell access) and then just use that

#!/home/you/perl5.8.8/bin/perl

I presume you are running the same data locally as on the server so you can exclude any weirdness in the data (I think this is highly unlikely to be the cause).

Replies are listed 'Best First'.
Re^2: segmentation fault on HTML::TokeParser
by punkish (Priest) on Mar 28, 2008 at 16:24 UTC
    Unfortunately, installing my own Perl on Dreamhost is *not* the quickest way. It is a very long way around. Why so? Because, since "the home directory on Dreamhost is not writeable" (I quote Dreamhost wiki here), the standard Perl installation in the home directory fails on cwd. Again, per the Dreamhost wiki, there is a patch for it created by Michael Schwern (see http://schwern.org/~schwern/src/dreamhost-5.8.8-cwd.patch), but that does become a very long way around for me. I will visit that option only when stumped every other way.

    Wrt data, yes, I am using the same identical data and scripts on both my laptop and the Dreamhost space.

    Thanks.

    --

    when small people start casting long shadows, it is time to go to bed

      We clearly differ in terms of our definition of Dreamhost. Nightmarehost sounds more like it.

      but that does become a very long way around for me. I will visit that option only when stumped every other way.

      How is installing a patch and installing a local perl the long way round? Should take less than 10 minutes. Anyway good luck finding your easier solution.

        Thanks for your words of encouragement. I already found a solution via HTML::Truncate which does the job for me.

        Wrt needing 10 mins for installing a patch and then installing Perl -- well, I am not very well versed in the methods of installing Perl. I installed it on my Mac and it took me between 30 mins and an hour, IIRC, but that is because everything went without any hitch. That may or may not be the case on Dreamhost. Then, once I am done with Perl, I will have install all the various modules I need, only a very few of which I have installed locally for myself. All in all, way more than 10 mins for a newbie like me, although it probably is only 10 mins for someone such as you more well-versed in the ways of Perl.

        --

        when small people start casting long shadows, it is time to go to bed