Re-hello,<br><br>This man is getting guite happy with your XCB.<br><br>I cannot run the programs from command line directly but all programs work very well when runned within the debugger (gdb).<br>I have even seen a tiny blank, beautiful window made by the
test2.c program. It's amazing.<br><br>As said, the programs output rubbish and crash when runned directly from CLI (command line interface). Actually, we've seen similar bugs in the Ubuntus X-window libraries before . Recent bug in the "XFig" program is one such an example. It worked well within the debugger but seg-faulted on CLI. AFAIR it was s:thing with realloc() or free() on NULL pointers.
<br><br>DO NOT DESPAIR PEOPLE, i will hunt the bug ;-) Alex has just learned to debug so... <br>Cannot promise anything but here we go....<br><br>(This thread is closed so long)<br><br>Sincerely<br> Alex.<br><br>--------------------------------------------------------------------
<br><br>This is what done so far:<br><br>1) Compile a sample code from the guide.<br>$ gcc -Wall -g test2.c -o test2 `pkg-config --cflags --libs xcb`<br><br>Run within debugger ( gdb ./test2 )<br>$ LD_LIBRARY_PATH=/usr/local/lib gdb ./test2
<br><br>GNU gdb 6.3-debian<br>Copyright 2004 Free Software Foundation, Inc.<br>GDB is free software, covered by the GNU General Public License, and you are<br>welcome to change it and/or distribute copies of it under certain conditions.
<br>Type "show copying" to see the conditions.<br>There is absolutely no warranty for GDB. Type "show warranty" for details.<br>This GDB was configured as "i486-linux-gnu"...Using host libthread_db library "/lib/tls/i686/cmov/libthread_db.so.1".
<br><br>(gdb) r<br>Starting program: /home/alex/code/X11/test/test2<br><br>Informations of screen 117:<br> width.........: 1280<br> height........: 1024<br> white pixel...: 16777215<br> black pixel...: 0<br><br>^C<br>
Program exited with code 01.<br>(gdb)<br>--------------------------<br><br>2) <br><br>$ cd ../xcb-demo <br><br>## make clean && ./configure && make<br><br>Compile w/ gcc-3.4 (Ubuntu 5.10 has gcc-4.x)<br>
$ make clean && CC=gcc-3.4 CFLAGS=-g ./configure && make<br><br>Run it<br>$ LD_LIBRARY_PATH=/usr/local/lib gdb ./xcb-test<br><br>GNU gdb 6.3-debian<br>Copyright 2004 Free Software Foundation, Inc.<br><snip> <snip>
<br><br>(gdb) r<br>Starting program: /home/alex/code/X11/xcb-demo/xcb-test<br>[Thread debugging using libthread_db enabled]<br>[New Thread -1209726752 (LWP 27661)]<br><br>ALEX's OWN DEBUG: hostname= (NULL)<br>ALEX's OWN DEBUG: socket name=/tmp/.X11-unix/X0 (fd=6)
<br>ALEX's OWN DEBUG: Connect fd = 6<br><br>Geometry for window 0x00000075: 1280x1024+0+0<br>Geometry for window 0x03800000: 150x150+5+23<br>Event ConfigureNotify following seqnum 6.<br>Event ReparentNotify following seqnum 6.
<br>Event ConfigureNotify following seqnum 6.<br>Event ConfigureNotify following seqnum 6 (from SendEvent).<br>Event MapNotify following seqnum 6.<br>Event Expose following seqnum 6.<br>Window 0x03800000 has parent 0x00c75a00, root 0x00000075, and 0 children.
<br>Geometry for window 0x00c75a00: 160x178+15+118<br>Window 0x00c75a00 has parent 0x00000075, root 0x00000075, and 1 children:<br> window 0x03800000<br>Window 0x03800000 has attributes:<br> backingStore = 2<br>
visualID = 0x23<br> class = 1<br> bitGravity = 0<br> winGravity = 1<br> backingBitPlanes = 0xffffffff<br> backingPixel = 0<br> saveUnder = 0<br>
mapInstalled = 1<br> mapState = 2<br> override = 0<br> colormap = 0x00000020<br> allEventMasks = 0x00e28038<br> yourEventMask = 0x00028038<br> doNotPropagateMask = 0x00000004
<br>Event EnterNotify following seqnum 12.<br>Event LeaveNotify following seqnum 12.<br>Event ConfigureNotify following seqnum 12 (from SendEvent).<br>Event ConfigureNotify following seqnum 12 (from SendEvent).<br>....<br>
<br><br>Sincerely <br> Alex Botero<br>