<font size=2 face="sans-serif">Hi everyone,</font>
<br>
<br><font size=2 face="sans-serif">I have a situation when my application
crashes after several days of running. I've discovered that the bug is
in libX11 library. I have a<b> 32bit</b> openSuse 12.2 system.</font>
<br><a href="https://bugs.freedesktop.org/show_bug.cgi?id=71338"><font size=3 color=blue><u>https://bugs.freedesktop.org/show_bug.cgi?id=71338</u></font></a><font size=3>
</font>
<br><a href="http://lists.x.org/archives/xorg-devel/2013-November/039007.html"><font size=3 color=blue><u>http://lists.x.org/archives/xorg-devel/2013-November/039007.html</u></font></a><font size=3>
</font><font size=2 face="sans-serif"><br>
After I've applied the patch from </font><a href=http://patchwork.freedesktop.org/patch/16297/><font size=3 color=blue><u>http://patchwork.freedesktop.org/patch/16297/</u></font></a><font size=3>
</font><font size=2 face="sans-serif"> the application worked.</font>
<br>
<br><font size=2 face="Arial">The function </font>
<br><font size=2 face="Arial">src/xcb_io.c: void _XSend(Display *dpy, const
char *data, long size)</font>
<br><font size=2 face="Arial">has some inconsistency which leads to crash,
because of mixing of different variable types.</font>
<br>
<br><font size=2 face="Arial">I've discovered that the variable declarations
are not as it must be, because depending of the installed<b> system 32/64
bit</b> the "unsigned long" type will be 32 or 64 bit.</font>
<br><font size=2 face="Arial">So "<b>unsigned long</b>" is not
a good declaration for using a 64bit type (use uint64_t instead).</font>
<br>
<br><font size=2 face="Arial">Some places with variable declarations:</font>
<br><font size=2 face="Arial">-----</font>
<br><font size=2 face="Arial">src/xcb_io.c: uint64_t requests (local in
void _XSend(Display *dpy, const char *data, long size))</font>
<br><font size=2 face="Arial">src/xcb_io.c: uint64_t sequence; (local in
void _XSend(Display *dpy, const char *data, long size))</font>
<br><font size=2 face="Arial">src/Xxcbint.h: uint64_t
last_flushed;</font>
<br><font size=2 face="Arial">include/X11/Xlib.h:</font><font size=2 color=#ff4040 face="Arial">
unsigned long</font><font size=2 face="Arial"> request;</font>
<br><font size=2 face="Arial">src/Xxcbint.h : </font><font size=2 color=#ff4040 face="Arial">unsigned
long</font><font size=2 face="Arial"> sequence;</font>
<br><font size=2 face="Arial">-----<br>
</font>
<br><font size=2 face="Arial">As a conclusion, you can harmonize variables
type declarations that are overall the same.</font>
<br><font size=2 face="Arial"><br>
Cu stima / Best regards<br>
<br>
wenglor electronic SRL<br>
<br>
Alin Popa, Dipl.-Ing.<br>
Dezvoltare - Programator prelucrare imagini / Development - Image Processing<br>
</font><font size=2 color=blue face="Arial"><u><br>
</u></font><a href=mailto:alin.popa@wenglor.com><font size=2 color=blue face="Arial"><u>alin.popa@wenglor.com</u></font></a><font size=2 face="Arial"><br>
Phone: +40 (0)269 2077-54<br>
Fax: +40 (0)269 2077-88</font>
<p>
<table>
<tr>
<td colspan=3>
<hr>
<td>
<tr>
<td valign=top><a href=http://www.wenglor.com/><font size=1 color=blue face="Arial"><u>www.wenglor.com
</u></font></a><font size=1 color=#5f5f5f face="Arial"><br>
wenglor electronic SRL<br>
Strada Caprioarelor Nr. 2<br>
550089 Sibiu<br>
ROMANIA </font>
<td><font size=3> </font>
<td valign=top><font size=1 color=#5f5f5f face="Arial">CUI: RO 25784779,
RC: J32/619/2009<br>
Capital social: 20.000 RON<br>
Manager General: Herbert Oprea, Ioana Duma</font>
<td><font size=1 color=#5f5f5f face="Arial"> </font></table>
<br>