On Sat, Oct 27, 2018 at 08:35:45AM -0400, Jeff wrote:
> After upgrading to 6.4 casperjs seems to be broken.
> % casperjs sample.js
> Trace/BPT trap
> This used to work fine with 6.3. Am I missing something obvious?
This looks an incompatibility between the older webkit engine used in
phantomjs and the retguard security feature introduced in clang in 6.4.
We disabled retguard in the x11/qt5/qtwebkit port for the same reason,
but it looks like nobody noticed that phantomjs was also affected. I am
a bit surprised - retguard was in 6.4-current since last June.
Building the www/phantomjs port with the diff below (generated against
the 6.4-stable ports branch) yields a working phanotmjs (and therefore a
working casper). I imagine the maintainer will have a nicer way to do
it, but this worked for me to get a working phantomjs.