gtk+-1.1.16 on Solaris 2.5




I have downloaded the patches from version 1.1.15 to version 1.1.16 of glib
and gtk.

I have built glib, then gtk+ with the Sun compiler, and after installing
glib I run testgtk via the bcheck utility :
cd gtk+-1.1.16/gtk
LD_LIBRARY_PATH=$PWD/.libs:../gdk/.libs:$LD_LIBRARY_PATH bcheck -all
.libs/testgtk

I chose "Progress Bar" and get some Warnings shmat failed!, then bcheck
generates following log :

<rtc> Read from unallocated (rua):
Attempting to read 4 bytes at address 0x74310
    which is 28 bytes past end of heap block of size 12 bytes at 0x742e8
This block was allocated from:
   [1] g_malloc() at 0xef4c8db8
   [2] gdk_add_client_message_filter() at 0xef29dfb0
   [3] gdk_init() at 0xef28d0a8
   [4] gtk_init() at 0xef5f4e7c
   [5] main() at 0x33628
Location of error:
=>[1] XCloseIM(0x74308, 0x74308, 0x1, 0xef7a2764, 0x2, 0xeffff318), at
0xef43c3d8
  [2] gdk_im_close(0xa4, 0x0, 0x1, 0xef7a2764, 0x2, 0xeffff378), at
0xef2a44b4
  [3] gdk_exit_func(0x0, 0xef210b70, 0x1, 0xef70229c, 0x1, 0xeffff3d8), at
0xef28e3c4
  [4] _exithandle(0x0, 0x8, 0xef210b70, 0x3, 0xef214060, 0x2), at
0xef1969e8

<rtc> Duplicate free (duf):
Attempting to free an already freed block at address 0x74308
  [1] free(0x74308, 0xef7a2764, 0x1, 0xef7a2764, 0x2, 0xeffff2b8), at
0xef78b8c4
=>[2] XCloseIM(0x74308, 0x74308, 0x1, 0x1, 0x0, 0x0), at 0xef43c400
  [3] gdk_im_close(0xa4, 0x0, 0x1, 0xef7a2764, 0x2, 0xeffff378), at
0xef2a44b4
  [4] gdk_exit_func(0x0, 0xef210b70, 0x1, 0xef70229c, 0x1, 0xeffff3d8), at
0xef28e3c4
  [5] _exithandle(0x0, 0x8, 0xef210b70, 0x3, 0xef214060, 0x2), at
0xef1969e8

<rtc> Memory Leak (mel):
Found leaked block of size 4 bytes at address 0x74470
At time of allocation, the call stack was:
   [1] _XSunGetIMValues() at 0xef4276f4
   [2] XGetIMValues() at 0xef438964
   [3] gdk_im_real_open() at 0xef2a4308
   [4] gdk_im_open() at 0xef2a4400
   [5] gdk_init() at 0xef28d0b4
   [6] gtk_init() at 0xef5f4e7c
   [7] main() at 0x33628

Leak Summary:
   actual leaks:         1  total size:       4 bytes
   possible leaks:       0  total size:       0 bytes


Blocks in use Summary:
   blocks in use:     1090  total size:  153205 bytes


  Interestingly, I had not to get rid of -DUSE_XIM : the SunSoft cc
compiler finds XIM libraries better than gcc 2.8.1. But it seems that the
generated code is not top quality. It seems also that the memory leak of
gtk_label_set_text() is closed.

Regards.




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