What image are you using, the uclibc image or the eglibc image? What e-health sensor are you using, specifically? You said that you got the error after editing the code, what is the original code and what changes have you made?
Take a look at the following links. Other users have reported a similar issue to yours. Follow the suggestions posted and let me know if these work for you.
There’s some information on e-health sensors here: Intel® Galileo and Intel® Edison Board Shield Testing Report for...
Thanks for pointing me towards the Shield testing report. It seems quite useful. I am using eglibc image and I haven't encounter the problem after that yet. If I will get the issue again, I will post here.