From wtf1.c:
- Code: Select all
int i;
From wtf2.c:
- Code: Select all
int i,j;
Look what difference it makes:
- Code: Select all
$ ./wtf1
Unhandled X event type: 28.
Unhandled X event type: 28.
Unhandled X event type: 28.
Unhandled X event type: 28.
Unhandled X event type: 28.
Unhandled X event type: 28.
Unhandled X event type: 28.
Unhandled X event type: 28.
Unhandled X event type: 28.
Unhandled X event type: 28.
Unhandled X event type: 28.
Unhandled X event type: 28.
Unhandled X event type: 28.
.
.
Unhandled X event type: 7.
.
.
<<<I close the window here>>>(this line added by hand)
XIO: fatal IO error 11 (Resource temporarily unavailable) on X server ":1.0"
after 40 requests (40 known processed) with 0 events remaining.
$ ./wtf2
X Error of failed request: BadValue (integer parameter out of range for operation)
Major opcode of failed request: 1 (X_CreateWindow)
Value in failed request: 0xed5e1c98
Serial number of failed request: 20
Current serial number in output stream: 22