Skip site navigation (1) Skip section navigation (2)

Re: Further crashes

From: Andreas Pflug <pgadmin(at)pse-consulting(dot)de>
To: "Adam H(dot)Pendleton" <fmonkey(at)fmonkey(dot)net>
Cc: pgadmin-hackers <pgadmin-hackers(at)postgresql(dot)org>
Subject: Re: Further crashes
Date: 2004-03-19 18:36:16
Message-ID: (view raw, whole thread or download thread mbox)
Lists: pgadmin-hackers
Adam H.Pendleton wrote:

> When trying to add a new server, I get this crash:
> (gdb) c
> Continuing.
> *** malloc[2954]: Deallocation of a pointer not malloced: 0xbfffea10; 
> This could be a double free(), or free() called with the middle of an 
> allocated block; Try setting environment variable MallocHelp to see 
> tools to help debug
> Program received signal EXC_BAD_ACCESS, Could not access memory.
> 0x00076914 in frmConnect::GetDescription() (this=0xbfffea10) at 
> ui/frmConnect.cpp:145
> 145         return txtDescription->GetValue();
> (gdb)
> And the backtrace:
> (gdb) bt
> #0  0x00076914 in frmConnect::GetDescription() (this=0xbfffea10) at 
> ui/frmConnect.cpp:145
> #1  0x0003db88 in pgServer::Connect(wxFrame*, bool) (this=0xf44a1b0, 
> form=0xb853600, lockFields=false) at schema/pgServer.cpp:108

Hm, seems the txtDescription isn't valid; why? When reviewing the code 
in frmConnect, I wonder about those Destroy() in OnOk() and OnCancel(); 
looks dubious. I'll check this later.

> Also, attached is the way the add server dialog looks on the Mac.  
> There seems to be some kind of size issue.
This is probably our well-known font inheritance problem. Pplease verify 
this by adding SetFont(parent->GetFont()) in src/mac/control.cpp line 
397 (after SetSize....)


In response to


pgadmin-hackers by date

Next:From: cvsDate: 2004-03-19 19:18:47
Subject: CVS Commit by andreas: Fix duplicate Destroy() on Connect Server (is
Previous:From: cvsDate: 2004-03-19 18:12:33
Subject: CVS Commit by andreas: catch 2.5.1 assert

Privacy Policy | About PostgreSQL
Copyright © 1996-2017 The PostgreSQL Global Development Group