{"action":"created","issue":{"url":"https://api.github.com/repos/domoticz/domoticz/issues/641","repository_url":"https://api.github.com/repos/domoticz/domoticz","labels_url":"https://api.github.com/repos/domoticz/domoticz/issues/641/labels{/name}","comments_url":"https://api.github.com/repos/domoticz/domoticz/issues/641/comments","events_url":"https://api.github.com/repos/domoticz/domoticz/issues/641/events","html_url":"https://github.com/domoticz/domoticz/issues/641","id":153523834,"number":641,"title":"S0 PCM coredumps when python is enabled","user":{"login":"defl","id":4619251,"avatar_url":"https://avatars.githubusercontent.com/u/4619251?v=3","gravatar_id":"","url":"https://api.github.com/users/defl","html_url":"https://github.com/defl","followers_url":"https://api.github.com/users/defl/followers","following_url":"https://api.github.com/users/defl/following{/other_user}","gists_url":"https://api.github.com/users/defl/gists{/gist_id}","starred_url":"https://api.github.com/users/defl/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/defl/subscriptions","organizations_url":"https://api.github.com/users/defl/orgs","repos_url":"https://api.github.com/users/defl/repos","events_url":"https://api.github.com/users/defl/events{/privacy}","received_events_url":"https://api.github.com/users/defl/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":5,"created_at":"2016-05-06T19:40:58Z","updated_at":"2016-05-23T05:18:32Z","closed_at":null,"body":"When I build the git head of Domoticz in a Docker container (see https://github.com/defl/domoticz-docker) which has Python enabled Domoticz coredumps when it receives data via the S0 PCM USB port.\r\n\r\nThe following printf-compatible string is fed via the serial port. \"ID:%u:I:%lu:M1:%lu:%lu\\n\" at that point domoticz coredumps with the trace below.\r\n\r\n```\r\nThread 9 \"domoticz\" received signal SIGSEGV, Segmentation fault.\r\n[Switching to Thread 0x7fffe7fff700 (LWP 279)]\r\n0x00007ffff4fce33c in _IO_new_fclose (fp=0x7fffe0041220) at iofclose.c:56\r\n56\tiofclose.c: No such file or directory.\r\n(gdb) bt\r\n#0  0x00007ffff4fce33c in _IO_new_fclose (fp=0x7fffe0041220) at iofclose.c:56\r\n#1  0x00007ffff79a1dad in ?? () from /usr/lib/x86_64-linux-gnu/libpython2.7.so.1.0\r\n#2  0x00007ffff641b7e8 in boost::python::exec_file(boost::python::str, boost::python::api::object, boost::python::api::object) ()\r\n   from /usr/lib/x86_64-linux-gnu/libboost_python-py27.so.1.58.0\r\n#3  0x000000000059e9d9 in CEventSystem::EvaluatePython(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&, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, unsigned long long, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, int, char const*, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >, unsigned long long) ()\r\n#4  0x00000000005b5e2d in CEventSystem::EvaluateEvent(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, unsigned long long, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, int, char const*, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >, unsigned long long) ()\r\n#5  0x00000000005b6934 in CEventSystem::ProcessDevice(int, unsigned long long, unsigned char, unsigned char, unsigned char, unsigned char, unsigned char, int, char const*, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, int) ()\r\n#6  0x00000000006575ed in CSQLHelper::UpdateValueInt(int, char const*, unsigned char, unsigned char, unsigned char, unsigned char, unsigned char, int, char const*, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >&, bool) ()\r\n#7  0x000000000065a7e8 in CSQLHelper::UpdateValue(int, char const*, unsigned char, unsigned char, unsigned char, unsigned char, unsigned char, int, char const*, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >&, bool) ()\r\n#8  0x00000000005d900f in MainWorker::decode_General(int, _eHardwareTypes, tRBUF const*, MainWorker::_tRxMessageProcessingResult&, unsigned char, unsigned char) ()\r\n#9  0x00000000005db4fa in MainWorker::decode_Energy(int, _eHardwareTypes, tRBUF const*, MainWorker::_tRxMessageProcessingResult&) ()\r\n#10 0x00000000005f326d in MainWorker::ProcessRXMessage(CDomoticzHardwareBase const*, unsigned char const*, char const*, int) ()\r\n#11 0x00000000005fe0b7 in MainWorker::Do_Work_On_Rx_Messages() ()\r\n#12 0x00007ffff68465d5 in ?? () from /usr/lib/x86_64-linux-gnu/libboost_thread.so.1.58.0\r\n#13 0x00007ffff61cf6fa in start_thread (arg=0x7fffe7fff700) at pthread_create.c:333\r\n#14 0x00007ffff5067b5d in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:109\r\n```"},"comment":{"url":"https://api.github.com/repos/domoticz/domoticz/issues/comments/220889332","html_url":"https://github.com/domoticz/domoticz/issues/641#issuecomment-220889332","issue_url":"https://api.github.com/repos/domoticz/domoticz/issues/641","id":220889332,"user":{"login":"defl","id":4619251,"avatar_url":"https://avatars.githubusercontent.com/u/4619251?v=3","gravatar_id":"","url":"https://api.github.com/users/defl","html_url":"https://github.com/defl","followers_url":"https://api.github.com/users/defl/followers","following_url":"https://api.github.com/users/defl/following{/other_user}","gists_url":"https://api.github.com/users/defl/gists{/gist_id}","starred_url":"https://api.github.com/users/defl/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/defl/subscriptions","organizations_url":"https://api.github.com/users/defl/orgs","repos_url":"https://api.github.com/users/defl/repos","events_url":"https://api.github.com/users/defl/events{/privacy}","received_events_url":"https://api.github.com/users/defl/received_events","type":"User","site_admin":false},"created_at":"2016-05-23T05:18:32Z","updated_at":"2016-05-23T05:18:32Z","body":"Sorry have not investigated it yet. First tracking down other weirdness with the P0 measurements which occasionally show massive power usage in the daily stats and nothing like that in the intraday graph. Hard one to pin down so far."}}
{"actor":{"display_login":"defl"}}