{"action":"created","issue":{"url":"https://api.github.com/repos/vectorgraphics/asymptote/issues/4","repository_url":"https://api.github.com/repos/vectorgraphics/asymptote","labels_url":"https://api.github.com/repos/vectorgraphics/asymptote/issues/4/labels{/name}","comments_url":"https://api.github.com/repos/vectorgraphics/asymptote/issues/4/comments","events_url":"https://api.github.com/repos/vectorgraphics/asymptote/issues/4/events","html_url":"https://github.com/vectorgraphics/asymptote/issues/4","id":118049492,"number":4,"title":"Segmentation fault in trying to render 3D on Asy 2.35","user":{"login":"jamadagni","id":948170,"avatar_url":"https://avatars.githubusercontent.com/u/948170?v=3","gravatar_id":"","url":"https://api.github.com/users/jamadagni","html_url":"https://github.com/jamadagni","followers_url":"https://api.github.com/users/jamadagni/followers","following_url":"https://api.github.com/users/jamadagni/following{/other_user}","gists_url":"https://api.github.com/users/jamadagni/gists{/gist_id}","starred_url":"https://api.github.com/users/jamadagni/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jamadagni/subscriptions","organizations_url":"https://api.github.com/users/jamadagni/orgs","repos_url":"https://api.github.com/users/jamadagni/repos","events_url":"https://api.github.com/users/jamadagni/events{/privacy}","received_events_url":"https://api.github.com/users/jamadagni/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":{"login":"johncbowman","id":13231852,"avatar_url":"https://avatars.githubusercontent.com/u/13231852?v=3","gravatar_id":"","url":"https://api.github.com/users/johncbowman","html_url":"https://github.com/johncbowman","followers_url":"https://api.github.com/users/johncbowman/followers","following_url":"https://api.github.com/users/johncbowman/following{/other_user}","gists_url":"https://api.github.com/users/johncbowman/gists{/gist_id}","starred_url":"https://api.github.com/users/johncbowman/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/johncbowman/subscriptions","organizations_url":"https://api.github.com/users/johncbowman/orgs","repos_url":"https://api.github.com/users/johncbowman/repos","events_url":"https://api.github.com/users/johncbowman/events{/privacy}","received_events_url":"https://api.github.com/users/johncbowman/received_events","type":"User","site_admin":false},"milestone":null,"comments":4,"created_at":"2015-11-20T14:13:13Z","updated_at":"2016-02-03T19:06:28Z","closed_at":"2016-02-03T19:06:28Z","body":"Hello. I'm having a segfault occur with Asymptote 2.35 and Ghostscript 9.16 on a Kubuntu Trusty 64 bit system with both Asy and GS packages backported as is from Debian Sid, whereas with Asymptote 2.15 and GS 9.10 which come default with Kubuntu Trusty there are no problems. Please observe the following transcript and kindly advise as to how this can be fixed. Thanks.\r\n\r\n    $ apt-cache policy asymptote ghostscript | grep -B1 Installed\r\n    asymptote:\r\n    Installed: 2.35-2\r\n    --\r\n    ghostscript:\r\n    Installed: 9.16~dfsg-2\r\n    $ cat temp.asy\r\n    import three;\r\n    size(100,0);\r\n    path3 g=(1,0,0)..(0,1,1)..(-1,0,0)..(0,-1,1)..cycle;\r\n    draw(g);\r\n    draw(((-1,-1,0)--(1,-1,0)--(1,1,0)--(-1,1,0)--cycle));\r\n    dot(g,red);\r\n    $ asy -f pdf -noprc temp.asy\r\n    /usr/share/asymptote/three.asy: 2905.13: runtime: Stack overflow or segmentation fault: rerun with -nothreads\r\n    Aborted (core dumped)\r\n    $ asy -f pdf -noprc temp.asy -nothreads\r\n    /usr/share/asymptote/three.asy: 2905.13: runtime: Segmentation fault\r\n    $ asy -vvv -f pdf -noprc temp.asy -nothreads\r\n    Using configuration directory /home/samjnaa/.asy\r\n    Welcome to Asymptote version 2.35\r\n    cd /home/samjnaa\r\n    Processing temp\r\n    Loading plain from /usr/share/asymptote/plain.asy\r\n    Including plain_constants from /usr/share/asymptote/plain_constants.asy\r\n    Loading version from /usr/share/asymptote/version.asy\r\n    Including plain_strings from /usr/share/asymptote/plain_strings.asy\r\n    Including plain_pens from /usr/share/asymptote/plain_pens.asy\r\n    Including plain_paths from /usr/share/asymptote/plain_paths.asy\r\n    Including plain_filldraw from /usr/share/asymptote/plain_filldraw.asy\r\n    Including plain_margins from /usr/share/asymptote/plain_margins.asy\r\n    Including plain_picture from /usr/share/asymptote/plain_picture.asy\r\n    Loading plain_scaling from /usr/share/asymptote/plain_scaling.asy\r\n    Loading simplex from /usr/share/asymptote/simplex.asy\r\n    Loading plain_bounds from /usr/share/asymptote/plain_bounds.asy\r\n    Including plain_scaling from /usr/share/asymptote/plain_scaling.asy\r\n    Including plain_prethree from /usr/share/asymptote/plain_prethree.asy\r\n    Including plain_Label from /usr/share/asymptote/plain_Label.asy\r\n    Including plain_shipout from /usr/share/asymptote/plain_shipout.asy\r\n    Including plain_xasy from /usr/share/asymptote/plain_xasy.asy\r\n    Including plain_arcs from /usr/share/asymptote/plain_arcs.asy\r\n    Including plain_boxes from /usr/share/asymptote/plain_boxes.asy\r\n    Including plain_markers from /usr/share/asymptote/plain_markers.asy\r\n    Including plain_arrows from /usr/share/asymptote/plain_arrows.asy\r\n    Including plain_debugger from /usr/share/asymptote/plain_debugger.asy\r\n    Loading temp.asy from temp.asy\r\n    Loading three from /usr/share/asymptote/three.asy\r\n    Loading math from /usr/share/asymptote/math.asy\r\n    Loading embed from /usr/share/asymptote/embed.asy\r\n    Including three_light from /usr/share/asymptote/three_light.asy\r\n    Including three_surface from /usr/share/asymptote/three_surface.asy\r\n    Loading bezulate from /usr/share/asymptote/bezulate.asy\r\n    Loading interpolate from /usr/share/asymptote/interpolate.asy\r\n    Loading graph_splinetype from /usr/share/asymptote/graph_splinetype.asy\r\n    Including three_margins from /usr/share/asymptote/three_margins.asy\r\n    Including three_tube from /usr/share/asymptote/three_tube.asy\r\n    Including three_arrows from /usr/share/asymptote/three_arrows.asy\r\n    adjusting camera to (5.05146433627626,4.00006521093411,1.82827831658818)\r\n    adjusting target to (0.0514643362762574,6.5210934107533e-05,0.328278316588184)\r\n    /usr/share/asymptote/three.asy: 2905.13: runtime: Segmentation fault\r\n\r\nAfter downgrading packages:\r\n\r\n    $ apt-cache policy asymptote ghostscript | grep -B1 Installed\r\n    asymptote:\r\n    Installed: 2.15-2build2\r\n    --\r\n    ghostscript:\r\n    Installed: 9.10~dfsg-0ubuntu10.4\r\n    $ asy -f pdf -noprc temp.asy\r\n    $ ls temp.pdf\r\n    temp.pdf\r\n"},"comment":{"url":"https://api.github.com/repos/vectorgraphics/asymptote/issues/comments/179409732","html_url":"https://github.com/vectorgraphics/asymptote/issues/4#issuecomment-179409732","issue_url":"https://api.github.com/repos/vectorgraphics/asymptote/issues/4","id":179409732,"user":{"login":"johncbowman","id":13231852,"avatar_url":"https://avatars.githubusercontent.com/u/13231852?v=3","gravatar_id":"","url":"https://api.github.com/users/johncbowman","html_url":"https://github.com/johncbowman","followers_url":"https://api.github.com/users/johncbowman/followers","following_url":"https://api.github.com/users/johncbowman/following{/other_user}","gists_url":"https://api.github.com/users/johncbowman/gists{/gist_id}","starred_url":"https://api.github.com/users/johncbowman/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/johncbowman/subscriptions","organizations_url":"https://api.github.com/users/johncbowman/orgs","repos_url":"https://api.github.com/users/johncbowman/repos","events_url":"https://api.github.com/users/johncbowman/events{/privacy}","received_events_url":"https://api.github.com/users/johncbowman/received_events","type":"User","site_admin":false},"created_at":"2016-02-03T19:06:28Z","updated_at":"2016-02-03T19:06:28Z","body":"I believe this issue was fixed with the 2.36 release."}}