valgrind and uninitialized variables
- From: Olivier Ramare <Olivier Ramare univ-lille1 fr>
- To: gtk-app-devel-list gnome org
- Subject: valgrind and uninitialized variables
- Date: Fri, 07 Jul 2006 14:27:38 +0200
Dear all,
Here is the beginning of the output when
I send my program to valgrind:
--------------------------------------------------------------------------
==2314== Syscall param writev(vector[...]) points to uninitialised byte(s)
==2314== at 0x1BF4B8DE: (within /lib/libc-2.3.2.so)
==2314== by 0x1C001EBF: (within /usr/X11R6/lib/libX11.so.6.2)
==2314== by 0x1C002A8E: _X11TransWritev (in /usr/X11R6/lib/libX11.so.6.2)
==2314== by 0x1BFE3186: _XSend (in /usr/X11R6/lib/libX11.so.6.2)
==2314== by 0x1BFD9644: XQueryExtension (in /usr/X11R6/lib/libX11.so.6.2)
==2314== by 0x1BFCFB6A: XInitExtension (in /usr/X11R6/lib/libX11.so.6.2)
==2314== by 0x1C010867: XkbUseExtension (in /usr/X11R6/lib/libX11.so.6.2)
==2314== by 0x1C0052D2: XkbQueryExtension (in
/usr/X11R6/lib/libX11.so.6.2)
==2314== by 0x1BCE733E: gdk_display_open (gdkdisplay-x11.c:272)
==2314== by 0x1BCC81AA: gdk_display_open_default_libgtk_only (gdk.c:272)
==2314== by 0x1BAF4969: gtk_init_check (gtkmain.c:702)
==2314== by 0x1BAF49A5: gtk_init (gtkmain.c:737)
==2314== Address 0x1C23C532 is 130 bytes inside a block of size 2048
alloc'd
==2314== at 0x1B904F75: calloc (vg_replace_malloc.c:175)
==2314== by 0x1BFD409C: XOpenDisplay (in /usr/X11R6/lib/libX11.so.6.2)
==2314== by 0x1BCE7001: gdk_display_open (gdkdisplay-x11.c:165)
==2314== by 0x1BCC81AA: gdk_display_open_default_libgtk_only (gdk.c:272)
==2314== by 0x1BAF4969: gtk_init_check (gtkmain.c:702)
==2314== by 0x1BAF49A5: gtk_init (gtkmain.c:737)
==2314== by 0x8074646: main (Sol.c:884) <------ That's the line of
gtk_init (&argc, &argv);
-----------------------------------------------------------------------
At this level, nothing much has been done by me. We are still in main which
reads:
----------------------------------------------------------------------
int main(int argc, char *argv[])
{
plateau plateau_base = solitaire_anglais;
Plateau = mallocplateau(&plateau_base); /* Cree Plateau */
#ifdef ENABLE_NLS
bindtextdomain (GETTEXT_PACKAGE, PACKAGE_LOCALE_DIR);
bind_textdomain_codeset (GETTEXT_PACKAGE, "UTF-8");
textdomain (GETTEXT_PACKAGE);
#endif
gtk_set_locale ();
gtk_init (&argc, &argv);
construire_interface_g();
gtk_main ();
return 0;
}
--------------------------------------------------------------------------------------
Can anyone tell me how to get rid of this error, or
whether it is harmless ??
Best,
Amities,
Olivier
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]