Re: [gtk-list] gtk 1.1.14 crash in gtk_init



>
>I just upgraded to gtk 1.1.14, which came out today.  Didn't do anything
>unusual when compiling it (I used the .spec file).
>
>Viewer now segfaults on startup.  here's a stack trace:
>
>(gdb) where
>#0  0x40b00902 in chunk_free (ar_ptr=0x40b55420, p=0x80a6378) at
>malloc.c:2948
>#1  0x40b007c1 in __libc_free (mem=0x80a6380) at malloc.c:2872
>#2  0x40999e5d in g_free ()
>#3  0x409a5aba in g_get_any_init ()
>#4  0x409a5d9c in g_get_home_dir ()
[...]

This path (posted by Michael Lausch, mla@gams.co.at) helped me with this
crash

Index: gutils.c
===================================================================
RCS file: /cvs/gnome/glib/gutils.c,v
retrieving revision 1.35
diff -c -r1.35 gutils.c
*** gutils.c 1999/01/25 09:53:17 1.35
--- gutils.c 1999/01/26 12:58:29
***************
*** 443,449 ****

  #  ifdef HAVE_GETPWUID_R
          struct passwd pwd;
!         guint bufsize = 1; /* sizeof (struct passwd); */
          gint error;

          do
--- 443,449 ----

  #  ifdef HAVE_GETPWUID_R
          struct passwd pwd;
!         guint bufsize = sizeof (struct passwd);
          gint error;

          do




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