{"action":"created","issue":{"url":"https://api.github.com/repos/solettaproject/soletta/issues/2088","repository_url":"https://api.github.com/repos/solettaproject/soletta","labels_url":"https://api.github.com/repos/solettaproject/soletta/issues/2088/labels{/name}","comments_url":"https://api.github.com/repos/solettaproject/soletta/issues/2088/comments","events_url":"https://api.github.com/repos/solettaproject/soletta/issues/2088/events","html_url":"https://github.com/solettaproject/soletta/issues/2088","id":156477079,"number":2088,"title":"IIO sysfs absolute path does not support \"/sys/bus/iio/devices/iio:deviceX/\"","user":{"login":"fulong82","id":19462849,"avatar_url":"https://avatars.githubusercontent.com/u/19462849?v=3","gravatar_id":"","url":"https://api.github.com/users/fulong82","html_url":"https://github.com/fulong82","followers_url":"https://api.github.com/users/fulong82/followers","following_url":"https://api.github.com/users/fulong82/following{/other_user}","gists_url":"https://api.github.com/users/fulong82/gists{/gist_id}","starred_url":"https://api.github.com/users/fulong82/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/fulong82/subscriptions","organizations_url":"https://api.github.com/users/fulong82/orgs","repos_url":"https://api.github.com/users/fulong82/repos","events_url":"https://api.github.com/users/fulong82/events{/privacy}","received_events_url":"https://api.github.com/users/fulong82/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/solettaproject/soletta/labels/bug","name":"bug","color":"fc2929"},{"url":"https://api.github.com/repos/solettaproject/soletta/labels/P3","name":"P3","color":"fad8c7"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":5,"created_at":"2016-05-24T10:49:43Z","updated_at":"2016-06-07T08:52:51Z","closed_at":null,"body":"#### Issue Description\r\n\r\nWhen using \"/sys/bus/iio/devices/iio:deviceX/\" absolute path in the json conffile, the function resolve_absolute_path() in /src/lib/io/sol-iio.c file will enter an infinite looping until the timeout happen eventually failed to run the fbp.\r\n\r\nThis issue may due to the assignment of \"result.path\" of that function inside the if statement \"realpath(address, real_path)\". Comparing this assignment with function resolve_i2c_path(), strongly believe the correct way is \"**result.path = real_path;**\" instead of \"result.path = address;\".\r\n\r\n#### Steps to reproduce\r\n\r\n 1. Create/modify the sol-flow.json file to use absolute path point to \"/sys/bus/iio/devices/iio:deviceX/\"\r\n 2. Run the fbp\r\n 3. Observe the error log\r\n\r\n#### Logs\r\n\r\n * Soletta version (top commit hash): tag v1_beta19\r\n * Soletta log (SOL_LOG_LEVEL = 5): [Log](https://gist.github.com/fulong82/e989a2ad3d02665f3a994384b87c8e2d)\r\n\r\n"},"comment":{"url":"https://api.github.com/repos/solettaproject/soletta/issues/comments/224219470","html_url":"https://github.com/solettaproject/soletta/issues/2088#issuecomment-224219470","issue_url":"https://api.github.com/repos/solettaproject/soletta/issues/2088","id":224219470,"user":{"login":"fulong82","id":19462849,"avatar_url":"https://avatars.githubusercontent.com/u/19462849?v=3","gravatar_id":"","url":"https://api.github.com/users/fulong82","html_url":"https://github.com/fulong82","followers_url":"https://api.github.com/users/fulong82/followers","following_url":"https://api.github.com/users/fulong82/following{/other_user}","gists_url":"https://api.github.com/users/fulong82/gists{/gist_id}","starred_url":"https://api.github.com/users/fulong82/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/fulong82/subscriptions","organizations_url":"https://api.github.com/users/fulong82/orgs","repos_url":"https://api.github.com/users/fulong82/repos","events_url":"https://api.github.com/users/fulong82/events{/privacy}","received_events_url":"https://api.github.com/users/fulong82/received_events","type":"User","site_admin":false},"created_at":"2016-06-07T08:52:51Z","updated_at":"2016-06-07T08:52:51Z","body":"Okay, will rebuild with latest code to double confirm the fix."}}
{"actor":{"display_login":"fulong82"}}