{"action":"created","issue":{"url":"https://api.github.com/repos/OpenHantek/openhantek/issues/182","repository_url":"https://api.github.com/repos/OpenHantek/openhantek","labels_url":"https://api.github.com/repos/OpenHantek/openhantek/issues/182/labels{/name}","comments_url":"https://api.github.com/repos/OpenHantek/openhantek/issues/182/comments","events_url":"https://api.github.com/repos/OpenHantek/openhantek/issues/182/events","html_url":"https://github.com/OpenHantek/openhantek/issues/182","id":294898191,"number":182,"title":"Segmentation fault on Ubuntu 16.04 amd64","user":{"login":"DmitryPan","id":35961043,"avatar_url":"https://avatars2.githubusercontent.com/u/35961043?v=4","gravatar_id":"","url":"https://api.github.com/users/DmitryPan","html_url":"https://github.com/DmitryPan","followers_url":"https://api.github.com/users/DmitryPan/followers","following_url":"https://api.github.com/users/DmitryPan/following{/other_user}","gists_url":"https://api.github.com/users/DmitryPan/gists{/gist_id}","starred_url":"https://api.github.com/users/DmitryPan/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/DmitryPan/subscriptions","organizations_url":"https://api.github.com/users/DmitryPan/orgs","repos_url":"https://api.github.com/users/DmitryPan/repos","events_url":"https://api.github.com/users/DmitryPan/events{/privacy}","received_events_url":"https://api.github.com/users/DmitryPan/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":8,"created_at":"2018-02-06T20:14:40Z","updated_at":"2018-02-19T13:17:34Z","closed_at":null,"author_association":"NONE","body":"Hello and thanks for great app!\r\n\r\nI am trying to build and run OpenHantek on Ubuntu 16.04. All dependencies are installed as described in build readme. The cmake and make complete without any errors but running OpenHantek executable returns segmentation fault.\r\n```\r\n# ./OpenHantek \r\nSegmentation fault (core dumped)\r\n```\r\n\r\nI have also tried debugging it with gdb but these details are not very useful for me:\r\n```\r\n# gdb -q ./OpenHantek \r\nReading symbols from ./OpenHantek...done.\r\n(gdb) run\r\nStarting program: /root/Downloads/openhantek/build/openhantek/OpenHantek \r\n[Thread debugging using libthread_db enabled]\r\nUsing host libthread_db library \"/lib/x86_64-linux-gnu/libthread_db.so.1\".\r\n\r\nProgram received signal SIGSEGV, Segmentation fault.\r\n0x00007ffff6432580 in std::__detail::_List_node_base::_M_hook(std::__detail::_List_node_base*) () from /usr/lib/x86_64-linux-gnu/libstdc++.so.6\r\n(gdb) where\r\n#0  0x00007ffff6432580 in std::__detail::_List_node_base::_M_hook(std::__detail::_List_node_base*) () from /usr/lib/x86_64-linux-gnu/libstdc++.so.6\r\n#1  0x000000000042ade4 in std::__cxx11::list<DSOModel*, std::allocator<DSOModel*> >::_M_insert<DSOModel* const&> (__position=..., this=0x0) at /usr/include/c++/5/bits/stl_list.h:1764\r\n#2  std::__cxx11::list<DSOModel*, std::allocator<DSOModel*> >::push_back (__x=<synthetic pointer>, this=0x0) at /usr/include/c++/5/bits/stl_list.h:1089\r\n#3  ModelRegistry::add (this=0x0, model=model@entry=0x6fc5e0 <modelInstance>) at /root/Downloads/openhantek/openhantek/src/hantekdso/modelregistry.cpp:9\r\n#4  0x0000000000425822 in DSOModel::DSOModel(int, long, long, long, long, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, Dso::ControlSpecification const&&) (this=0x6fc5e0 <modelInstance>, id=<optimized out>, vendorID=<optimized out>, \r\n    productID=<optimized out>, vendorIDnoFirmware=<optimized out>, productIDnoFirmware=<optimized out>, firmwareToken=\"dso5200x86\", name=\"DSO-5200\", \r\n    specification=<unknown type in /root/Downloads/openhantek/build/openhantek/OpenHantek, CU 0x264cd8, DIE 0x291d53>) at /root/Downloads/openhantek/openhantek/src/hantekdso/dsomodel.cpp:12\r\n#5  0x000000000041fb99 in ModelDSO5200::ModelDSO5200 (this=0x6fc5e0 <modelInstance>) at /root/Downloads/openhantek/openhantek/src/hantekdso/models/modelDSO5200.cpp:53\r\n#6  0x000000000041a0e0 in __static_initialization_and_destruction_0 (__initialize_p=1, __priority=65535) at /root/Downloads/openhantek/openhantek/src/hantekdso/models/modelDSO5200.cpp:8\r\n#7  _GLOBAL__sub_I_modelDSO5200.cpp(void) () at /root/Downloads/openhantek/openhantek/src/hantekdso/models/modelDSO5200.cpp:68\r\n#8  0x000000000046bedd in __libc_csu_init ()\r\n#9  0x00007ffff5acb7bf in __libc_start_main () from /lib/x86_64-linux-gnu/libc.so.6\r\n#10 0x000000000041b5b9 in _start ()\r\n(gdb) list\r\n69\t        dsoControl->setRecordLength(scope->horizontal.recordLength);\r\n70\t    else {\r\n71\t        auto recLenVec = dsoControl->getAvailableRecordLengths();\r\n72\t        ptrdiff_t index = std::distance(recLenVec.begin(),\r\n73\t                                        std::find(recLenVec.begin(), recLenVec.end(), scope->horizontal.recordLength));\r\n74\t        dsoControl->setRecordLength(index < 0 ? 1 : (unsigned)index);\r\n75\t    }\r\n76\t    dsoControl->setTriggerMode(scope->trigger.mode);\r\n77\t    dsoControl->setPretriggerPosition(scope->trigger.position * scope->horizontal.timebase * DIVS_TIME);\r\n78\t    dsoControl->setTriggerSlope(scope->trigger.slope);\r\n```\r\n\r\nThe old build by Oliver Haag for Ubuntu Maverick runs without any errors but does not detect my 6022BL.\r\n\r\nDoes anyone succeeded in running any newer version of OpenHantek on Ubuntu 16.04 amd64 or any other Linux distro? Maybe someone can share working executable or DEB-package?\r\n\r\nThanks,\r\nDP"},"comment":{"url":"https://api.github.com/repos/OpenHantek/openhantek/issues/comments/366690498","html_url":"https://github.com/OpenHantek/openhantek/issues/182#issuecomment-366690498","issue_url":"https://api.github.com/repos/OpenHantek/openhantek/issues/182","id":366690498,"user":{"login":"davidgraeff","id":66436,"avatar_url":"https://avatars2.githubusercontent.com/u/66436?v=4","gravatar_id":"","url":"https://api.github.com/users/davidgraeff","html_url":"https://github.com/davidgraeff","followers_url":"https://api.github.com/users/davidgraeff/followers","following_url":"https://api.github.com/users/davidgraeff/following{/other_user}","gists_url":"https://api.github.com/users/davidgraeff/gists{/gist_id}","starred_url":"https://api.github.com/users/davidgraeff/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/davidgraeff/subscriptions","organizations_url":"https://api.github.com/users/davidgraeff/orgs","repos_url":"https://api.github.com/users/davidgraeff/repos","events_url":"https://api.github.com/users/davidgraeff/events{/privacy}","received_events_url":"https://api.github.com/users/davidgraeff/received_events","type":"User","site_admin":false},"created_at":"2018-02-19T13:17:34Z","updated_at":"2018-02-19T13:17:34Z","author_association":"OWNER","body":"The fix by @phoyd is merged. Please report back if it works for you now :)"}}
{"actor":{"display_login":"davidgraeff"}}