{"action":"created","issue":{"url":"https://api.github.com/repos/monome/serialosc/issues/22","repository_url":"https://api.github.com/repos/monome/serialosc","labels_url":"https://api.github.com/repos/monome/serialosc/issues/22/labels{/name}","comments_url":"https://api.github.com/repos/monome/serialosc/issues/22/comments","events_url":"https://api.github.com/repos/monome/serialosc/issues/22/events","html_url":"https://github.com/monome/serialosc/issues/22","id":151911950,"number":22,"title":"serialosc bails out under heavy cpu load on linux","user":{"login":"artfwo","id":689741,"avatar_url":"https://avatars3.githubusercontent.com/u/689741?v=4","gravatar_id":"","url":"https://api.github.com/users/artfwo","html_url":"https://github.com/artfwo","followers_url":"https://api.github.com/users/artfwo/followers","following_url":"https://api.github.com/users/artfwo/following{/other_user}","gists_url":"https://api.github.com/users/artfwo/gists{/gist_id}","starred_url":"https://api.github.com/users/artfwo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/artfwo/subscriptions","organizations_url":"https://api.github.com/users/artfwo/orgs","repos_url":"https://api.github.com/users/artfwo/repos","events_url":"https://api.github.com/users/artfwo/events{/privacy}","received_events_url":"https://api.github.com/users/artfwo/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":8,"created_at":"2016-04-29T16:25:44Z","updated_at":"2017-11-12T15:09:18Z","closed_at":null,"author_association":"CONTRIBUTOR","body":"this issue seems to reproduce perfectly when system is busy.\n1. run something to impose load on the cpu, e.g. `stress -c 4`\n2. run serialosc, which segfaults.\n\nbacktrace:\n\n```\n#0  0x0000000000404b90 in handle_device_msg (self=0x7fffffffd8c0,\n    dev=0x62b3f0, msg=0x0) at ../src/serialoscd/uv.c:576\n#1  0x0000000000403c45 in dispatch_ipc_msgs (stream=0x62b580, nbytes=22,\n    buf=0x7fffffffa580, cb=0x404b78 <handle_device_msg>,\n    self=0x7fffffffd8c0, dev=0x62b3f0) at ../src/serialoscd/uv.c:172\n#2  0x0000000000404cb6 in device_read_cb (stream=0x62b580, nbytes=22,\n    buf=0x7fffffffa580) at ../src/serialoscd/uv.c:610\n#3  0x0000000000411640 in uv__read (stream=0x62b580)\n    at ../third-party/libuv/src/unix/stream.c:1143\n#4  0x0000000000411919 in uv__stream_io (\n    loop=0x6285a0 <default_loop_struct>, w=0x62b608, events=1)\n    at ../third-party/libuv/src/unix/stream.c:1206\n#5  0x0000000000416ec3 in uv__io_poll (loop=0x6285a0 <default_loop_struct>,\n    timeout=-1) at ../third-party/libuv/src/unix/linux-core.c:319\n#6  0x00000000004088fb in uv_run (loop=0x6285a0 <default_loop_struct>,\n    mode=UV_RUN_DEFAULT) at ../third-party/libuv/src/unix/core.c:324\n#7  0x000000000040517e in main (argc=1, argv=0x7fffffffde28)\n    at ../src/serialoscd/uv.c:762\n```\n"},"comment":{"url":"https://api.github.com/repos/monome/serialosc/issues/comments/343743786","html_url":"https://github.com/monome/serialosc/issues/22#issuecomment-343743786","issue_url":"https://api.github.com/repos/monome/serialosc/issues/22","id":343743786,"user":{"login":"artfwo","id":689741,"avatar_url":"https://avatars3.githubusercontent.com/u/689741?v=4","gravatar_id":"","url":"https://api.github.com/users/artfwo","html_url":"https://github.com/artfwo","followers_url":"https://api.github.com/users/artfwo/followers","following_url":"https://api.github.com/users/artfwo/following{/other_user}","gists_url":"https://api.github.com/users/artfwo/gists{/gist_id}","starred_url":"https://api.github.com/users/artfwo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/artfwo/subscriptions","organizations_url":"https://api.github.com/users/artfwo/orgs","repos_url":"https://api.github.com/users/artfwo/repos","events_url":"https://api.github.com/users/artfwo/events{/privacy}","received_events_url":"https://api.github.com/users/artfwo/received_events","type":"User","site_admin":false},"created_at":"2017-11-12T15:09:18Z","updated_at":"2017-11-12T15:09:18Z","author_association":"CONTRIBUTOR","body":"finally, a mixed case when we get one good message and a few bad ones:\r\n\r\nSOSC_DEVICE_CONNECTION\r\n```\r\n00 00 00 00 A0 C2 80 F7  28 56 00 00 00 00 00 00  |  ........(V...... \r\n00 00 00 00 5C 50 0C 00  00 00 00 00 00 00 2F 64  |  ....\\P......../d \r\n65 76 2F 74 74 79 55 53  42 30 00 50              |  ev/ttyUSB0.P \r\n```\r\n\r\nbad message, 40 bytes:\r\n```\r\n [-] bad message, bailing out\r\n01 00 00 00 A0 C2 80 F7  28 56 00 00 00 00 00 00  |  ........(V...... \r\n00 00 00 00 5C 50 08 00  00 00 00 00 00 00 6D 30  |  ....\\P........m0 \r\n30 30 31 37 35 34 00 50                           |  001754.P \r\n```\r\nbad message, 64 bytes:\r\n```\r\n [-] bad message, bailing out\r\n0A 00 00 00 00 00 00 00  6D 6F 6E 6F 6D 65 20 31  |  ........monome 1 \r\n32 38 5C 50 04 00 00 00  07 2C 00 00 00 00 00 00  |  28\\P.....,...... \r\n00 00 00 00 00 00 00 00  5C 50 02 00 00 00 00 00  |  ........\\P...... \r\n00 00 00 00 00 00 00 00  00 00 00 00 00 00 5C 50  |  ..............\\P \r\n```"}}
{"actor":{"display_login":"artfwo"}}