Re: sem_open really strange behavior

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Sergio Sobarzo <ssobarzo@xxxxxxxxx> writes:

> I read that paragraph thousand of times. However it is not an answer
> why it works if a line is commented or not. I cannot figure an
> acceptable explanation, that's why I thought it will be a gcc
> question.

Commenting or uncommenting the variable declaration is just changing
the random values that are on the stack when sem_open is called.  In
this case I expect it happens to be changing the values between valid
and invalid ones.

Failing to pass required arguments to a variadic function gives you
random behaviour, and that is just what you are seeing.

Ian


[Index of Archives]     [Linux C Programming]     [Linux Kernel]     [eCos]     [Fedora Development]     [Fedora Announce]     [Autoconf]     [The DWARVES Debugging Tools]     [Yosemite Campsites]     [Yosemite News]     [Linux GCC]

  Powered by Linux