-
Notifications
You must be signed in to change notification settings - Fork 27
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
segfault starting api-test #1
Comments
Same fault observed when a |
We managed to reproduce the bug on Ubuntu 12.04 32 bit. For now, I let you know the api sample works out of the box on Ubuntu 14.04 64 bit. |
Ok. I normally don't just dump bugs like this, but in this case I was encouraged by one of your employees. |
The issue is related to checking a negative file descriptor in a #include <sys/select.h>
#include <signal.h> // Commenting this include produces a warning
// on negative shifts but the exe does not
// segfault on ubuntu 12.04 32 bit
#include <stdio.h>
int main()
{
fd_set err_fds;
FD_ZERO( &err_fds );
if (FD_ISSET(-1, &err_fds))
{
printf ("Non empty statement\n");
}
printf ("ok\n");
return 0;
} Nevertheless, we'll fix our code by not using |
Hi. Can you update me on the current status of this bug? |
Just compiled cros (0abb16d) on Ubuntu Precise (12.04), 32 bit (up-to-date as of 2015-04-28), then tried to start
api-test
and received the followingSIGSEGV
(note that the console output states thatapi-test
is connecting to aroscore
, but I did not start it):The backtrace at that point is:
gcc: 4.6.4 (Ubuntu/Linaro 4.6.4-1ubuntu1~12.04)
I can provide more info if desired.
The text was updated successfully, but these errors were encountered: