gtk+-1.1.15 on Solaris 2.5 memory leaks




  After modifying Makefiles (s/-DUSE_XIM//  as it seems that Solaris 2.5
has only a R5 relaese of X11) I have built gtk+1.1.15.

  Interestingly, it creates gdk/.libs/libgdk-1.1.so.14 and
gtk/.libs/libgtk-1.1.so.14. ( This doesn't affect me very much). I then run
gtktest with the following command line ( bcheck is a Sun utility which
runs a debugger ) :
  LD_LIBRARY_PATH=$PWD/.libs:../gdk/.libs:$LD_LIBRARY_PATH bcheck -all
.libs/testgtk
I choose "Item factory", "Toolbar" :
with "toolbar" I get perhaps 13 times :
Gdk-WARNING **: shmat failed!

At exit of testgtk following error log is written :
<rtc> Memory Leak (mel):
Found 17 leaked blocks with total size 496 bytes
At time of each allocation, the call stack was:
   [1] g_malloc() at 0xef556858
   [2] gtk_label_parse_uline() at 0xef62ac34

<rtc> Memory Leak (mel):
Found 2 leaked blocks with total size 104 bytes
At time of each allocation, the call stack was:
   [1] g_malloc() at 0xef556858
   [2] gtk_label_set_text() at 0xef6290d8

<rtc> Memory Leak (mel):
Found leaked block of size 44 bytes at address 0x910f8
At time of allocation, the call stack was:
   [1] calloc() at 0xef2b995c
   [2] g_malloc0() at 0xef5568c8
   [3] gtk_type_new() at 0xef6aa5a8
   [4] gtk_item_factory_new() at 0xef624e88
   [5] create_item_factory() at 0x1d87c
   [6] gtk_marshal_NONE__NONE() at 0xef6c9f9c
   [7] gtk_handlers_run() at 0xef6788c8
   [8] gtk_signal_real_emit() at 0xef67792c

<rtc> Memory Leak (mel):
Found leaked block of size 7 bytes at address 0x91180
At time of allocation, the call stack was:
   [1] g_malloc() at 0xef556858
   [2] g_strdup() at 0xef560ef8
   [3] gtk_item_factory_construct() at 0xef625bf4
   [4] gtk_item_factory_new() at 0xef624e9c
   [5] create_item_factory() at 0x1d87c
   [6] gtk_marshal_NONE__NONE() at 0xef6c9f9c
   [7] gtk_handlers_run() at 0xef6788c8
   [8] gtk_signal_real_emit() at 0xef67792c

Leak Summary:
   actual leaks:        21  total size:     651 bytes
   possible leaks:       0  total size:       0 bytes


Blocks in use Summary:
   blocks in use:     1226  total size:  184408 bytes


   I have also used the progress bar test and toggled several times the
display of percentages :
<rtc> Memory Leak (mel):
Found 973 leaked blocks with total size 46564 bytes
At time of each allocation, the call stack was:
   [1] g_malloc() at 0xef556858
   [2] gtk_label_set_text() at 0xef6290d8

Leak Summary:
   actual leaks:       973  total size:   46564 bytes
   possible leaks:       0  total size:       0 bytes


Blocks in use Summary:
   blocks in use:     1295  total size:  296778 bytes

  In french we have a proverb :
"Les petits ruisseaux font les grandes rivières".

 and the testgtk.1 man page says :
BUGS
   Absolutely none whatsoever.



Hope that helps

Regards.




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