ubuntusegmentation-faultubuntu-11.04phantomjsmediatemple

Phantom.js with Ubuntu 11.04x64/MediaTemple - Segmentation fault


I'm trying to use Phantom.js 1.7 on Ubuntu 11.04 x64. The hosting is mediatemple. When I do "./phantomjs" I get this -

PhantomJS has crashed. Please read the crash reporting guide at https://code.google.com/p/phantomjs/wiki/CrashReporting and file a bug report at https://code.google.com/p/phantomjs/issues/entry with the crash dump file attached: /tmp/7dac25de-0ce0-d719-2e631f5b-593eb037.dmp Segmentation fault

(already filed a bug report - https://code.google.com/p/phantomjs/issues/detail?id=860&thanks=860&ts=1352298059

Can anyone please help ?


Solution

  • A segmentation fault occurs when a process tries to access memory that the CPU cannot physically address.

    This means that when you are trying to start phantomjs, you could maybe don't have enough RAM on the server you are renting from them.

    I would try increasing your RAM so that your process has more memory to access.


    EDIT when l run phantomjs on linux ubuntu 12.04 machine, from checking its memory usage, it averages across all the processes is creates, about 0.7GB - 1.1GB of RAM usage.