{"action":"created","issue":{"url":"https://api.github.com/repos/solvespace/solvespace/issues/18","repository_url":"https://api.github.com/repos/solvespace/solvespace","labels_url":"https://api.github.com/repos/solvespace/solvespace/issues/18/labels{/name}","comments_url":"https://api.github.com/repos/solvespace/solvespace/issues/18/comments","events_url":"https://api.github.com/repos/solvespace/solvespace/issues/18/events","html_url":"https://github.com/solvespace/solvespace/issues/18","id":166016740,"number":18,"title":"*** Error in `solvespace': double free or corruption (fasttop): 0x0000000002993380 *** opening DWG file","user":{"login":"jasonblewis","id":129165,"avatar_url":"https://avatars.githubusercontent.com/u/129165?v=3","gravatar_id":"","url":"https://api.github.com/users/jasonblewis","html_url":"https://github.com/jasonblewis","followers_url":"https://api.github.com/users/jasonblewis/followers","following_url":"https://api.github.com/users/jasonblewis/following{/other_user}","gists_url":"https://api.github.com/users/jasonblewis/gists{/gist_id}","starred_url":"https://api.github.com/users/jasonblewis/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jasonblewis/subscriptions","organizations_url":"https://api.github.com/users/jasonblewis/orgs","repos_url":"https://api.github.com/users/jasonblewis/repos","events_url":"https://api.github.com/users/jasonblewis/events{/privacy}","received_events_url":"https://api.github.com/users/jasonblewis/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/solvespace/solvespace/labels/bug","name":"bug","color":"fc2929"}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":2,"created_at":"2016-07-18T04:22:12Z","updated_at":"2016-07-19T09:36:32Z","closed_at":null,"body":"When I try and import a DWG file, I get the following error\r\n\r\n```\r\n*** Error in `solvespace': double free or corruption (fasttop): 0x0000000002993380 ***\r\n```\r\nSolveSpace version 2.1~dce90646 on debian jessie\r\n\r\n"},"comment":{"url":"https://api.github.com/repos/solvespace/solvespace/issues/comments/233580896","html_url":"https://github.com/solvespace/solvespace/issues/18#issuecomment-233580896","issue_url":"https://api.github.com/repos/solvespace/solvespace/issues/18","id":233580896,"user":{"login":"whitequark","id":54771,"avatar_url":"https://avatars.githubusercontent.com/u/54771?v=3","gravatar_id":"","url":"https://api.github.com/users/whitequark","html_url":"https://github.com/whitequark","followers_url":"https://api.github.com/users/whitequark/followers","following_url":"https://api.github.com/users/whitequark/following{/other_user}","gists_url":"https://api.github.com/users/whitequark/gists{/gist_id}","starred_url":"https://api.github.com/users/whitequark/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/whitequark/subscriptions","organizations_url":"https://api.github.com/users/whitequark/orgs","repos_url":"https://api.github.com/users/whitequark/repos","events_url":"https://api.github.com/users/whitequark/events{/privacy}","received_events_url":"https://api.github.com/users/whitequark/received_events","type":"User","site_admin":false},"created_at":"2016-07-19T09:36:32Z","updated_at":"2016-07-19T09:36:32Z","body":"@Evil-Spirit Please take a look. This is a double free in libdxfrw:\r\n```\r\n==4544== Invalid free() / delete / delete[] / realloc()\r\n==4544==    at 0x4C2D2CB: operator delete(void*) (in /usr/lib/valgrind/vgpreload_memcheck-amd64-linux.so)\r\n==4544==    by 0x5AC806: DRW_Spline::~DRW_Spline() (drw_entities.h:909)\r\n==4544==    by 0x6B1618: DRW_Spline::~DRW_Spline() (drw_entities.h:908)\r\n==4544==    by 0x6B22B4: DRW_HatchLoop::~DRW_HatchLoop() (drw_entities.h:964)\r\n==4544==    by 0x6B16D3: DRW_Hatch::~DRW_Hatch() (drw_entities.h:1000)\r\n==4544==    by 0x733102: dwgReader::readDwgEntity(dwgBuffer*, objHandle&, DRW_Interface&) (dwgreader.cpp:1114)\r\n==4544==    by 0x731069: dwgReader::readDwgEntities(DRW_Interface&, dwgBuffer*) (dwgreader.cpp:943)\r\n==4544==    by 0x709E2D: dwgReader15::readDwgEntities(DRW_Interface&) (dwgreader15.h:35)\r\n==4544==    by 0x6F69E7: dwgR::processDwg() (libdwgr.cpp:301)\r\n==4544==    by 0x6F61FB: dwgR::read(DRW_Interface*, bool) (libdwgr.cpp:158)\r\n==4544==    by 0x5DA463: SolveSpace::ImportDwg(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&) (importdxf.cpp:926)\r\n==4544==    by 0x649A3C: SolveSpace::SolveSpaceUI::MenuFile(SolveSpace::Command) (solvespace.cpp:550)\r\n==4544==  Address 0x101e9c90 is 0 bytes inside a block of size 24 free'd\r\n==4544==    at 0x4C2D2CB: operator delete(void*) (in /usr/lib/valgrind/vgpreload_memcheck-amd64-linux.so)\r\n==4544==    by 0x5AC806: DRW_Spline::~DRW_Spline() (drw_entities.h:909)\r\n==4544==    by 0x6B1618: DRW_Spline::~DRW_Spline() (drw_entities.h:908)\r\n==4544==    by 0x6B22B4: DRW_HatchLoop::~DRW_HatchLoop() (drw_entities.h:964)\r\n==4544==    by 0x6B16D3: DRW_Hatch::~DRW_Hatch() (drw_entities.h:1000)\r\n==4544==    by 0x733102: dwgReader::readDwgEntity(dwgBuffer*, objHandle&, DRW_Interface&) (dwgreader.cpp:1114)\r\n==4544==    by 0x731069: dwgReader::readDwgEntities(DRW_Interface&, dwgBuffer*) (dwgreader.cpp:943)\r\n==4544==    by 0x709E2D: dwgReader15::readDwgEntities(DRW_Interface&) (dwgreader15.h:35)\r\n==4544==    by 0x6F69E7: dwgR::processDwg() (libdwgr.cpp:301)\r\n==4544==    by 0x6F61FB: dwgR::read(DRW_Interface*, bool) (libdwgr.cpp:158)\r\n==4544==    by 0x5DA463: SolveSpace::ImportDwg(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&) (importdxf.cpp:926)\r\n==4544==    by 0x649A3C: SolveSpace::SolveSpaceUI::MenuFile(SolveSpace::Command) (solvespace.cpp:550)\r\n==4544==  Block was alloc'd at\r\n==4544==    at 0x4C2C16F: operator new(unsigned long) (in /usr/lib/valgrind/vgpreload_memcheck-amd64-linux.so)\r\n==4544==    by 0x69BCD9: DRW_Hatch::parseDwg(DRW::Version, dwgBuffer*, unsigned int) (drw_entities.cpp:1964)\r\n==4544==    by 0x733060: dwgReader::readDwgEntity(dwgBuffer*, objHandle&, DRW_Interface&) (dwgreader.cpp:1112)\r\n==4544==    by 0x731069: dwgReader::readDwgEntities(DRW_Interface&, dwgBuffer*) (dwgreader.cpp:943)\r\n==4544==    by 0x709E2D: dwgReader15::readDwgEntities(DRW_Interface&) (dwgreader15.h:35)\r\n==4544==    by 0x6F69E7: dwgR::processDwg() (libdwgr.cpp:301)\r\n==4544==    by 0x6F61FB: dwgR::read(DRW_Interface*, bool) (libdwgr.cpp:158)\r\n==4544==    by 0x5DA463: SolveSpace::ImportDwg(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&) (importdxf.cpp:926)\r\n==4544==    by 0x649A3C: SolveSpace::SolveSpaceUI::MenuFile(SolveSpace::Command) (solvespace.cpp:550)\r\n==4544==    by 0x55E815: SolveSpace::MainMenuItem<Gtk::MenuItem>::on_activate() (gtkmain.cpp:947)\r\n==4544==    by 0x5CB086F: Gtk::MenuItem_Class::activate_callback(_GtkMenuItem*) (in /usr/lib/x86_64-linux-gnu/libgtkmm-2.4.so.1.1.0)\r\n==4544==    by 0x79171D3: ??? (in /usr/lib/x86_64-linux-gnu/libgobject-2.0.so.0.4800.1)\r\n```"}}
{"actor":{"display_login":"whitequark"}}