Re: asclock_applet from GNOME1.0.4 SEGVs on 8-bit display (Solaris) - WITH FIX!




Found a fix for my second problem, below, too:

dialogs.c line 280:

            gtk_clist_append(GTK_CLIST(list), elems );
      }
!      if (dfd) closedir(dfd);
    }


Works a treat.  Ugly, but simple and effective ;O)

I'll post both these fixes to http://bugs.gnome.org/ now =O)

-------My opinion - Not sane, intelligent or necessarily useful-------
o o                                      mailto:Moredhel@earthling.net 
/v\ark R. Bowyer.  http://i.am/Moredhel  mailto:Mark.Bowyer@UK.Sun.COM
`-'  "That weenie's avoiding me!" - Scott McNealy about i.am/BillZebub

> Date: Wed, 31 Mar 1999 10:59:33 +0100 (BST)
> From: "Mark R. Bowyer" <Moredhel@earthling.net>

> This then allows it to work, but I get another core when I try to open the 
> Properties.  This one is:
> 
> Core was generated by `asclock_applet'.
> Program terminated with signal 11, Segmentation Fault.
> (gdb) where
> #0  0xfea3ad9c in ?? () from /usr/lib/libc.so.1
> #1  0x168d0 in properties_dialog (applet=0x23c00, data=0x37f10) at 
dialogs.c:280
> #2  0xff377690 in ?? () from 
> 
/apps/local/BUILD/gnome-core-1.0.4/applets/asclock/../../panel/.libs/libpanel_ap
> plet.so.0
> #3  0xff37c0ac in ?? () from 
> 
/apps/local/BUILD/gnome-core-1.0.4/applets/asclock/../../panel/.libs/libpanel_ap
> plet.so.0
> #4  0xff2a92d8 in ?? () from /usr/local/gnome/lib/libORBit.so.0
> #5  0xff2ab190 in ?? () from /usr/local/gnome/lib/libORBit.so.0
> #6  0xff2ab444 in ?? () from /usr/local/gnome/lib/libORBit.so.0
> #7  0xff3333cc in ?? () from /usr/local/gnome/lib/libIIOP.so.0
> #8  0xff0b7c84 in ?? () from /usr/local/gnome/lib/libgnorba.so.27
> #9  0xff2435d0 in ?? () from /usr/local/lib/libglib-1.2.so.0
> #10 0xff2452c4 in ?? () from /usr/local/lib/libglib-1.2.so.0
> #11 0xff245b08 in ?? () from /usr/local/lib/libglib-1.2.so.0
> #12 0xff245d18 in ?? () from /usr/local/lib/libglib-1.2.so.0
> #13 0xfedbb83c in ?? () from /usr/local/lib/libgtk-1.2.so.0
> #14 0xff377580 in ?? () from 
> 
/apps/local/BUILD/gnome-core-1.0.4/applets/asclock/../../panel/.libs/libpanel_ap
> plet.so.0
> #15 0x14f34 in main (argc=0, argv=0xffbef1dc) at asclock.c:601
> (gdb) up
> #1  0x168d0 in properties_dialog (applet=0x23c00, data=0x37f10) at 
dialogs.c:280
> 
> 	    gchar *elems[2] = { filename, NULL };
> 	    strcpy(filename, *cpp);
> 	    strcat(filename, dp->d_name);
>             gtk_clist_append(GTK_CLIST(list), elems );
>       }
> >>    closedir(dfd);
>     }
> 
>   /* show ampm toggle button */
>   label = gtk_check_button_new_with_label (_("Display time in 12 hour format 
> (AM/PM)"));
> 
> (gdb) print *dfd
> $1 = {dd_fd = 105840660, dd_loc = 16904, dd_size = 37905, dd_buf = 0xc350 
> <Address 0xc350 out of bounds>}
> 
> This seems to be based on my default settings and where the themes_directory 
is, 
> but I can't find any settings for that =O(
> 
> Sorry if this has been reported already.
> 
> -------My opinion - Not sane, intelligent or necessarily useful-------
> o o                                      mailto:Moredhel@earthling.net 
> /v\ark R. Bowyer.  http://i.am/Moredhel  mailto:Mark.Bowyer@UK.Sun.COM
> `-'  "That weenie's avoiding me!" - Scott McNealy about i.am/BillZebub
> 
> 
> 
> -- 
>         FAQ: Frequently-Asked Questions at http://www.gnome.org/gnomefaq
>          To unsubscribe: mail gnome-list-request@gnome.org with 
>                        "unsubscribe" as the Subject.
> 



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