{"action":"created","issue":{"url":"https://api.github.com/repos/analogdevicesinc/libiio/issues/49","repository_url":"https://api.github.com/repos/analogdevicesinc/libiio","labels_url":"https://api.github.com/repos/analogdevicesinc/libiio/issues/49/labels{/name}","comments_url":"https://api.github.com/repos/analogdevicesinc/libiio/issues/49/comments","events_url":"https://api.github.com/repos/analogdevicesinc/libiio/issues/49/events","html_url":"https://github.com/analogdevicesinc/libiio/issues/49","id":185408855,"number":49,"title":"libiio crash with osc","user":{"login":"rgetz","id":1017869,"avatar_url":"https://avatars.githubusercontent.com/u/1017869?v=3","gravatar_id":"","url":"https://api.github.com/users/rgetz","html_url":"https://github.com/rgetz","followers_url":"https://api.github.com/users/rgetz/followers","following_url":"https://api.github.com/users/rgetz/following{/other_user}","gists_url":"https://api.github.com/users/rgetz/gists{/gist_id}","starred_url":"https://api.github.com/users/rgetz/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rgetz/subscriptions","organizations_url":"https://api.github.com/users/rgetz/orgs","repos_url":"https://api.github.com/users/rgetz/repos","events_url":"https://api.github.com/users/rgetz/events{/privacy}","received_events_url":"https://api.github.com/users/rgetz/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":2,"created_at":"2016-10-26T14:24:54Z","updated_at":"2016-10-26T15:37:26Z","closed_at":null,"body":"When using ./osc with Pluto, sometimes I get this:\r\n\r\nThread 1 \"osc\" received signal SIGSEGV, Segmentation fault.\r\n0x00007ffff4cbb3a6 in iio_channel_attr_write_raw ()\r\n   from /usr/lib/x86_64-linux-gnu/libiio.so.0\r\n(gdb) bt\r\n#0  0x00007ffff4cbb3a6 in iio_channel_attr_write_raw ()\r\n   from /usr/lib/x86_64-linux-gnu/libiio.so.0\r\n#1  0x00007ffff4cbbd66 in iio_channel_attr_write_double ()\r\n   from /usr/lib/x86_64-linux-gnu/libiio.so.0\r\n#2  0x00007ffff7bbed47 in iio_widget_save (widget=0x7fffd008e378)\r\n    at iio_widget.c:357\r\n#3  0x00007ffff7bbedd8 in spin_button_progress_step (iio_w=0x7fffd008e378)\r\n    at iio_widget.c:518\r\n#4  0x00007ffff5625fc3 in ?? () from /lib/x86_64-linux-gnu/libglib-2.0.so.0\r\n#5  0x00007ffff562554a in g_main_context_dispatch ()\r\n   from /lib/x86_64-linux-gnu/libglib-2.0.so.0\r\n#6  0x00007ffff5625900 in ?? () from /lib/x86_64-linux-gnu/libglib-2.0.so.0\r\n#7  0x00007ffff5625c22 in g_main_loop_run ()\r\n   from /lib/x86_64-linux-gnu/libglib-2.0.so.0\r\n#8  0x00007ffff725e567 in gtk_main ()\r\n   from /usr/lib/x86_64-linux-gnu/libgtk-x11-2.0.so.0\r\n#9  0x0000000000402e4f in main (argc=<optimized out>, argv=<optimized out>)\r\n    at oscmain.c:237\r\n\r\n\r\nWhere should the pointer checking be done? in libiio or osc?\r\nI think this is done with the version of libiio in the deb repository. (libiio-dev), not trunk.\r\n\r\n-Robin"},"comment":{"url":"https://api.github.com/repos/analogdevicesinc/libiio/issues/comments/256385464","html_url":"https://github.com/analogdevicesinc/libiio/issues/49#issuecomment-256385464","issue_url":"https://api.github.com/repos/analogdevicesinc/libiio/issues/49","id":256385464,"user":{"login":"rgetz","id":1017869,"avatar_url":"https://avatars.githubusercontent.com/u/1017869?v=3","gravatar_id":"","url":"https://api.github.com/users/rgetz","html_url":"https://github.com/rgetz","followers_url":"https://api.github.com/users/rgetz/followers","following_url":"https://api.github.com/users/rgetz/following{/other_user}","gists_url":"https://api.github.com/users/rgetz/gists{/gist_id}","starred_url":"https://api.github.com/users/rgetz/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rgetz/subscriptions","organizations_url":"https://api.github.com/users/rgetz/orgs","repos_url":"https://api.github.com/users/rgetz/repos","events_url":"https://api.github.com/users/rgetz/events{/privacy}","received_events_url":"https://api.github.com/users/rgetz/received_events","type":"User","site_admin":false},"created_at":"2016-10-26T15:37:25Z","updated_at":"2016-10-26T15:37:25Z","body":"analog@imhotep:~$ sudo apt-get install libiio0-dbgsym\r\nReading package lists... Done\r\nBuilding dependency tree       \r\nReading state information... Done\r\nE: Unable to locate package libiio0-dbgsym\r\n\r\nOh - I need to add debian-debug to my /etc/apt/sources.list - doing that, and apt-get update, then it works (only added that for those who run into the same issue).\r\n\r\nAfter that, I get:\r\n\r\nThread 1 \"osc\" received signal SIGSEGV, Segmentation fault.\r\n0x00007ffff7bbfd77 in spin_button_progress_step (iio_w=0x7fffc8043d88) at iio_widget.c:509\r\n509\t\tif (pdata->progress < 1.0) {\r\n(gdb) bt\r\n#0  0x00007ffff7bbfd77 in spin_button_progress_step (iio_w=0x7fffc8043d88) at iio_widget.c:509\r\n#1  0x00007ffff5626103 in ?? () from /lib/x86_64-linux-gnu/libglib-2.0.so.0\r\n#2  0x00007ffff562568a in g_main_context_dispatch () from /lib/x86_64-linux-gnu/libglib-2.0.so.0\r\n#3  0x00007ffff5625a40 in ?? () from /lib/x86_64-linux-gnu/libglib-2.0.so.0\r\n#4  0x00007ffff5625d62 in g_main_loop_run () from /lib/x86_64-linux-gnu/libglib-2.0.so.0\r\n#5  0x00007ffff7260447 in gtk_main () from /usr/lib/x86_64-linux-gnu/libgtk-x11-2.0.so.0\r\n#6  0x0000000000402e4f in main (argc=<optimized out>, argv=<optimized out>) at oscmain.c:237\r\n"}}
{"actor":{"display_login":"rgetz"}}