Sandboxing Mathematica on Unix
Is anyone able to run Mathematica under ptrace sandbox? I'm able to get Matlab to work with it, but Mathematica seems to freeze.
The following is supposed to produce img.png
with all calls ptraced, freezes
strace -f test.m
test.m:
#!/usr/local/bin/MathematicaScript -script
img=Plot3D[Im[ArcSin开发者_如何学运维[(x + I y)^4]], {x, -2, 2}, {y, -2, 2}, Mesh -> None,PlotStyle -> Directive[Yellow, Specularity[White, 20], Opacity[0.5]],ExclusionsStyle -> {None, Red}];
Export["img.png", img]
crossposted to Mathematica mailing list
This just works fine for me. I use some recent debian-based Linux:
rolfm@gluon:~/mathgroup$ uname -a
Linux gluon 2.6.38-10-generic #46-Ubuntu SMP Tue Jun 28 15:07:17 UTC 2011 x86_64 x86_64 x86_64 GNU/Linux
精彩评论