{"action":"created","issue":{"url":"https://api.github.com/repos/Oslandia/SFCGAL/issues/75","labels_url":"https://api.github.com/repos/Oslandia/SFCGAL/issues/75/labels{/name}","comments_url":"https://api.github.com/repos/Oslandia/SFCGAL/issues/75/comments","events_url":"https://api.github.com/repos/Oslandia/SFCGAL/issues/75/events","html_url":"https://github.com/Oslandia/SFCGAL/issues/75","id":73270145,"number":75,"title":"crash in straight_skeleton","user":{"login":"Cactusbone","id":1227612,"avatar_url":"https://avatars.githubusercontent.com/u/1227612?v=3","gravatar_id":"","url":"https://api.github.com/users/Cactusbone","html_url":"https://github.com/Cactusbone","followers_url":"https://api.github.com/users/Cactusbone/followers","following_url":"https://api.github.com/users/Cactusbone/following{/other_user}","gists_url":"https://api.github.com/users/Cactusbone/gists{/gist_id}","starred_url":"https://api.github.com/users/Cactusbone/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Cactusbone/subscriptions","organizations_url":"https://api.github.com/users/Cactusbone/orgs","repos_url":"https://api.github.com/users/Cactusbone/repos","events_url":"https://api.github.com/users/Cactusbone/events{/privacy}","received_events_url":"https://api.github.com/users/Cactusbone/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/Oslandia/SFCGAL/labels/bug","name":"bug","color":"fc2929"}],"state":"open","locked":false,"assignee":null,"milestone":{"url":"https://api.github.com/repos/Oslandia/SFCGAL/milestones/3","html_url":"https://github.com/Oslandia/SFCGAL/milestones/1.2.0","labels_url":"https://api.github.com/repos/Oslandia/SFCGAL/milestones/3/labels","id":1168469,"number":3,"title":"1.2.0","description":"","creator":{"login":"strk","id":289678,"avatar_url":"https://avatars.githubusercontent.com/u/289678?v=3","gravatar_id":"","url":"https://api.github.com/users/strk","html_url":"https://github.com/strk","followers_url":"https://api.github.com/users/strk/followers","following_url":"https://api.github.com/users/strk/following{/other_user}","gists_url":"https://api.github.com/users/strk/gists{/gist_id}","starred_url":"https://api.github.com/users/strk/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/strk/subscriptions","organizations_url":"https://api.github.com/users/strk/orgs","repos_url":"https://api.github.com/users/strk/repos","events_url":"https://api.github.com/users/strk/events{/privacy}","received_events_url":"https://api.github.com/users/strk/received_events","type":"User","site_admin":false},"open_issues":4,"closed_issues":2,"state":"open","created_at":"2015-06-17T12:32:48Z","updated_at":"2015-06-17T13:01:50Z","due_on":null,"closed_at":null},"comments":6,"created_at":"2015-05-05T10:16:13Z","updated_at":"2015-06-17T13:20:38Z","closed_at":null,"body":"I think it's a bug in CGAL but i'm not sure.\r\n\r\nthis query : \r\n````\r\nselect ST_StraightSkeleton(ST_GeomFromText('POLYGON((1347259.25 7184745.94,1347273.17 7184758.16,1347280.39 7184749.95,1347278.04 7184747.88,1347281.66 7184743.76,1347284.01 7184745.83,1347293.5 7184735.05,1347279.61 7184722.85,1347269.29 7184734.6,1347270.35 7184735.51,1347267.31 7184738.96,1347266.22 7184738.01,1347259.25 7184745.94),(1347267.31 7184738.96,1347269.31 7184736.7,1347272.57 7184739.55,1347270.56 7184741.83,1347267.31 7184738.96))'))\r\n````\r\n\r\nmakes postgresql crash\r\nI'm using postgresql 9.4 with PostGIS 2.1.7 and sfcgal 1.1.0 with cgal 4.6\r\n\r\n`server process (PID 2621) was terminated by signal 11: Segmentation fault`"},"comment":{"url":"https://api.github.com/repos/Oslandia/SFCGAL/issues/comments/112796954","html_url":"https://github.com/Oslandia/SFCGAL/issues/75#issuecomment-112796954","issue_url":"https://api.github.com/repos/Oslandia/SFCGAL/issues/75","id":112796954,"user":{"login":"strk","id":289678,"avatar_url":"https://avatars.githubusercontent.com/u/289678?v=3","gravatar_id":"","url":"https://api.github.com/users/strk","html_url":"https://github.com/strk","followers_url":"https://api.github.com/users/strk/followers","following_url":"https://api.github.com/users/strk/following{/other_user}","gists_url":"https://api.github.com/users/strk/gists{/gist_id}","starred_url":"https://api.github.com/users/strk/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/strk/subscriptions","organizations_url":"https://api.github.com/users/strk/orgs","repos_url":"https://api.github.com/users/strk/repos","events_url":"https://api.github.com/users/strk/events{/privacy}","received_events_url":"https://api.github.com/users/strk/received_events","type":"User","site_admin":false},"created_at":"2015-06-17T13:20:37Z","updated_at":"2015-06-17T13:20:37Z","body":"The CGAL only test actually fails for me:\r\n```\r\n[strk@cdb:/usr/src/sfcgal/SFCGAL(master)] valgrind ./a.out\r\n==20081== Memcheck, a memory error detector\r\n==20081== Copyright (C) 2002-2013, and GNU GPL'd, by Julian Seward et al.\r\n==20081== Using Valgrind-3.11.0.SVN and LibVEX; rerun with -h for copyright info\r\n==20081== Command: ./a.out\r\n==20081== \r\nterminate called after throwing an instance of 'CGAL::Assertion_exception'\r\n  what():  CGAL ERROR: assertion violation!\r\nExpr: -CGAL_IA_MUL(-1.1, 10.1) != CGAL_IA_MUL(1.1, 10.1)\r\nFile: /usr/local/include/CGAL/Interval_nt.h\r\nLine: 209\r\nExplanation: Wrong rounding: did you forget the  -frounding-math  option if you use GCC (or  -fp-model strict  for Intel)?\r\n==20081== \r\n==20081== Process terminating with default action of signal 6 (SIGABRT): dumping core\r\n==20081==    at 0x5ECCCC9: raise (raise.c:56)\r\n==20081==    by 0x5ED00D7: abort (abort.c:89)\r\n==20081==    by 0x59DC6B4: __gnu_cxx::__verbose_terminate_handler() (in /usr/lib/x86_64-linux-gnu/libstdc++.so.6.0.19)\r\n==20081==    by 0x59DA835: ??? (in /usr/lib/x86_64-linux-gnu/libstdc++.so.6.0.19)\r\n==20081==    by 0x59DA862: std::terminate() (in /usr/lib/x86_64-linux-gnu/libstdc++.so.6.0.19)\r\n==20081==    by 0x59DAAA1: __cxa_throw (in /usr/lib/x86_64-linux-gnu/libstdc++.so.6.0.19)\r\n==20081==    by 0x4E4B7F8: CGAL::assertion_fail(char const*, char const*, int, char const*) (assertions.cpp:117)\r\n==20081==    by 0x40A417: CGAL::Interval_nt<false>::Test_runtime_rounding_modes::Test_runtime_rounding_modes() (in /usr/src/sfcgal/SFCGAL/a.out)\r\n==20081==    by 0x404AC2: _GLOBAL__sub_I_main (in /usr/src/sfcgal/SFCGAL/a.out)\r\n==20081==    by 0x42ACEC: __libc_csu_init (in /usr/src/sfcgal/SFCGAL/a.out)\r\n==20081==    by 0x5EB7E54: (below main) (libc-start.c:246)\r\n==20081== \r\n```"}}