[Anjuta-list] Re: [Anjuta-devel] [Help Wanted] Recent stability issues with Anjuta 1.x



On 23 Jan 2002 11:50:30 +0530
"Biswapesh Chattopadhyay" <biswapesh_chatterjee tcscal co in> wrote:

> Hi all
> 
> We have been experiencing some serious stability issues with the recent
> builds of Anjuta 1.x - probably to do with the new file and symbol
> browsers. Unfortunately, these are pretty difficult to correct since
> they are apprantly related to memory corruption. We desperately need
> some help on this issue.
> 
> I've uploaded a tarball of my local tree here:
> 
> http://www.angelfire.com/linux/biswapesh/Downloads/anjuta-0.1.9-bc.tar.gz

ok, solved the problem for this tarball, patch is attached.

it was an array-out-of-bounds-problem - biswa, check if i modified
something in a way that shouldn't be. 

Maybe gcc 2.96 and 3.0 are better at handling array out of bounds - things

it does not work with current cvs... i'll track that down now...

-- 
 * Origin:                                         http://www.jensgeorg.de
--- ../../anjuta-0.1.9-bc/src/an_symbol_view.c	Tue Jan 22 11:56:58 2002
+++ an_symbol_view.c	Thu Jan 24 16:41:41 2002
@@ -191,8 +191,8 @@
 	CREATE_SV_ICON(sv_public_var_t, ANJUTA_PIXMAP_SV_PUBLIC_VAR);
 	CREATE_SV_ICON(sv_cfolder_t, ANJUTA_PIXMAP_CLOSED_FOLDER);
 	CREATE_SV_ICON(sv_ofolder_t, ANJUTA_PIXMAP_OPEN_FOLDER);
-	sv_icons[sv_max_t] = NULL;
-	sv_bitmaps[sv_max_t] = NULL;
+	sv_icons[sv_max_t-1] = NULL;
+	sv_bitmaps[sv_max_t-1] = NULL;
 }
 
 
@@ -391,10 +391,9 @@
 
 	if (!(symbol_tree = tm_symbol_tree_new(app->project_dbase->tm_project->tags_array)))
 		goto clean_leave;
-
 	for (root_type = sv_root_none_t; root_type < sv_root_max_t; ++root_type)
 		CREATE_SV_NODE(root_type)
-	root[sv_root_max_t] = NULL;
+	root[sv_root_max_t-1] = NULL;
 
 	if (!symbol_tree->info.children || (0 == symbol_tree->info.children->len))
 	{


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