I have sample code that works fine on Red Hat 6.2, but when compiled and
run on a Red Hat 7.0 box, the program segfaults in gtk_clist_get_text()
As far as I can tell, all my code for this is valid.
Created attachment 4004 [details]
This is the sample code that will work in RH62, but not RH70
gtk_clist_get_text(GTK_CLIST(clist), row, 0, celltext);
You are telling GTK+ to store the text in the location pointed
to by celltext, but celltext is unitialized, so you are telling
GTK+ to store it in random memory. If it worked with 6.2
it was complete and utter coincidence.
gtk_clist_get_text(GTK_CLIST(clist), row, 0, &celltext);
To avoid problems like this, you should
* Compile with -Wall
* Believe the warnings
* Read up a bit on pointers