Re: gmc-4.5.7 startup segfault on Linux/Alpha




>From: "Adam C. Powell, IV" <adam.powell@nist.gov>

>When strating up gmc-4.5.7, after displaying the Home directory icon, it
>segfaults.  gdb puts the segfault in tree_store_opendir, line 740 of
>treestore.c, the command
>
>     scan->sublevel = entry->next->sublevel;


I already reported this, and a patch was posted to this list, tested and 
reported to work (or, in other words, *PAY ATTENTION*!! ;O)


------------- Begin Included Message -------------

Date: Wed, 13 Jan 1999 14:25:11 -0600
From: Miguel de Icaza <miguel@nuclecu.unam.mx>
To: Moredhel@earthling.net
CC: gnome-list@gnome.org
Subject: Re: GMC 4.5.7 coredumps =O(

  :

Index: treestore.c
===================================================================
RCS file: /debian/home/gnomecvs/mc/src/treestore.c,v
retrieving revision 1.3
diff -u -u -r1.3 treestore.c
--- treestore.c	1999/01/12 09:08:45	1.3
+++ treestore.c	1999/01/13 20:21:33
@@ -733,6 +733,9 @@
 		if (!entry)
 			return NULL;
 	}
+
+	if (entry->next == NULL)
+		return NULL;
 	
 	scan = xmalloc (sizeof (tree_scan), "");
 	scan->base = entry;

------------- End Included Message -------------





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