Re: [gnome-db] Diagnosing Memory Allocation Problems
- From: Rodrigo Moya <rodrigo gnome-db org>
- To: Steve Fosdick <lists pelvoux nildram co uk>
- Cc: GDA <gnome-db-list gnome org>
- Subject: Re: [gnome-db] Diagnosing Memory Allocation Problems
- Date: 03 Jun 2003 00:29:46 +0200
On Tue, 2003-06-03 at 00:09, Steve Fosdick wrote:
> I have a problem now in the Oracle provider where if I g_object_unref a
> GdaDataModel to get the finalize method to be called, which in turn will
> free the Oracle statement handle I get a segmentation fault in a later
> call to malloc.
>
> I suspect either heap corruption or a double-free etc being responsible
> for these but these can be hard to track down.
>
sounds like this could be the problem, a double-free.
> Does anyone know of a
> debugging memory allocator that can be attached via the glib GMemVtable
> interface rather than having to re-compile a very large number of
> libraries?
>
use valgrind, or the GNOME UI alleyoop (in GNOME CVS). You don't need to
compile any extra libraries, just run the program via valgrind. It will
show you the memory problems, along other ones.
cheers
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]