vid Buchan
Cc: gtk-app-devel-list list
Sent: Tuesday, November 5, 2013 4:56 PM
Subject: Re: Valgrind is grinding my gears
I have a valgrind file here I use for my large gtk2 program:
http://www.vips.ecs.soton.ac.uk/development/nip2a.supp
I get clean runs with this file. Run with some
struct (a
lot, in fact). Could this be the cause?
From: David Buchan
To: gtk-app-devel-list list
Sent: Tuesday, November 5, 2013 1:09 PM
Subject: Re: Valgrind is grinding my gears
Perhaps relevant, is that I have a large struct which I use to pass
stu
Cc: gtk-app-devel-list list
Sent: Tuesday, November 5, 2013 2:51 PM
Subject: Re: Valgrind is grinding my gears
On Tue, Nov 05, 2013 at 09:47:13AM -0800, David Buchan wrote:
But when I invoke Valgrind at runtime, I get a lot of errors which I
can't make any sense of.
I have
Great! Thanks!
Dave
From: "jcup...@gmail.com"
To: David Buchan
Cc: gtk-app-devel-list list
Sent: Tuesday, November 5, 2013 4:56 PM
Subject: Re: Valgrind is grinding my gears
I have a valgrind file here I use for my large gtk2 prog
__
> From: Bernhard Schuster
> To: David Buchan
> Cc: David Nečas ; gtk-app-devel-list list
>
> Sent: Tuesday, November 5, 2013 3:59 PM
> Subject: Re: Valgrind is grinding my gears
>
>
>
> No, as soon as you use GObject derived types (or call g_types_init/gtk_in
Aaaah. I see.
Thanks guys.
From: Bernhard Schuster
To: David Buchan
Cc: David Nečas ; gtk-app-devel-list list
Sent: Tuesday, November 5, 2013 3:59 PM
Subject: Re: Valgrind is grinding my gears
No, as soon as you use GObject derived types (or call
her that's essentially what using
G_SLICE=always-malloc would do.
I can't try this out until late tonight, unfortunately.
From: David Nečas
To: David Buchan
Cc: gtk-app-devel-list list
Sent: Tuesday, November 5, 2013 2:51 PM
Subject: Re: Valgrind
On Tue, Nov 05, 2013 at 09:47:13AM -0800, David Buchan wrote:
> But when I invoke Valgrind at runtime, I get a lot of errors which I
> can't make any sense of.
>
> I have grabbed a small sample of them here:
>
> http://pdbuchan.com/valgrind.txt
>
> I don't like ignoring errors and warnings, but
t: Tuesday, November 5, 2013 1:09 PM
Subject: Re: Valgrind is grinding my gears
Perhaps relevant, is that I have a large struct which I use to pass stuff
amongst functions and callbacks and I allocate memory for it in main() thus:
// Allocate data structure
data = g_slice_new (MyData);
and then
trouble with g-sliced memory?
From: David Buchan
To: gtk-app-devel-list list
Sent: Tuesday, November 5, 2013 12:47 PM
Subject: Valgrind is grinding my gears
I have a rather large program I've written in C language which uses GTK+2. My
Makefile has:
CC
I have a rather large program I've written in C language which uses GTK+2. My
Makefile has:
CCFLAGS = `pkg-config --cflags gtk+-2.0 gmodule-2.0`
LIBS = `pkg-config --libs gtk+-2.0 gmodule-2.0`
GCC compiles it without warnings using flags:
-Wall -O -Wuninitialized
My program has several us
11 matches
Mail list logo