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

Further crashes

From: Adam H(dot)Pendleton <fmonkey(at)fmonkey(dot)net>
To: pgadmin-hackers <pgadmin-hackers(at)postgresql(dot)org>
Subject: Further crashes
Date: 2004-03-19 17:51:44
Message-ID: 160D18EF-79CE-11D8-B198-000A9566CE14@fmonkey.net (view raw or flat)
Thread:
Lists: pgadmin-hackers
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
#2  0x0006e538 in frmMain::OnAddServer(wxCommandEvent&) 
(this=0xb853600, ev=(at)0xbfffefa0) at ui/events.cpp:539
#3  0x0011bcdc in wxAppConsole::HandleEvent(wxEvtHandler*, void 
(wxEvtHandler::*)(wxEvent&), wxEvent&) const (this=0xb314450, 
handler=0xb853600, func={__pfn = (void ( wxEvtHandler::*)(wxEvent &,)) 
56422, __delta = 0}, event=(at)0xbfffefa0) at 
../src/common/appbase.cpp:288
#4  0x0011e154 in 
wxEvtHandler::ProcessEventIfMatches(wxEventTableEntryBase const&, 
wxEvtHandler*, wxEvent&) (entry=(at)0x73b45c, handler=0xb853600, 
event=(at)0xbfffefa0) at ../src/common/event.cpp:1169
#5  0x0011d2b8 in wxEventHashTable::HandleEvent(wxEvent&, 
wxEvtHandler*) (this=0x73b36c, event=(at)0xbfffefa0, self=0xb853600) at 
../src/common/event.cpp:837
#6  0x0011e46c in wxEvtHandler::ProcessEvent(wxEvent&) (this=0xb853600, 
event=(at)0xbfffefa0) at ../src/common/event.cpp:1231
#7  0x0012e8f8 in wxWindowBase::TryParent(wxEvent&) (this=0xb5b8a00, 
event=(at)0xbfffefa0) at ../src/common/wincmn.cpp:2230
#8  0x0011e500 in wxEvtHandler::ProcessEvent(wxEvent&) (this=0xb5b8a00, 
event=(at)0xbfffefa0) at ../src/common/event.cpp:1244
#9  0x00317e4c in wxToolBarBase::OnLeftClick(int, bool) 
(this=0xb5b8a00, id=101, toggleDown=false) at 
../src/common/tbarbase.cpp:576
#10 0x0031991c in wxToolBar::MacHandleControlClick(void*, short, bool) 
(this=0xb5b8a00, control=0xb5b9670, controlpart=10) at 
../src/mac/toolbar.cpp:409
#11 0x0031a338 in wxToolBar::OnMouse(wxMouseEvent&) (this=0xb5b8a00, 
event=(at)0xbffff3e0) at ../src/mac/toolbar.cpp:611
#12 0x0011bcdc in wxAppConsole::HandleEvent(wxEvtHandler*, void 
(wxEvtHandler::*)(wxEvent&), wxEvent&) const (this=0xb314450, 
handler=0xb5b8a00, func={__pfn = (void ( wxEvtHandler::*)(wxEvent &,)) 
406563, __delta = 0}, event=(at)0xbffff3e0) at 
../src/common/appbase.cpp:288
#13 0x0011e154 in 
wxEvtHandler::ProcessEventIfMatches(wxEventTableEntryBase const&, 
wxEvtHandler*, wxEvent&) (entry=(at)0x86e37c, handler=0xb5b8a00, 
event=(at)0xbffff3e0) at ../src/common/event.cpp:1169
#14 0x0011d2b8 in wxEventHashTable::HandleEvent(wxEvent&, 
wxEvtHandler*) (this=0x86e364, event=(at)0xbffff3e0, self=0xb5b8a00) at 
../src/common/event.cpp:837
#15 0x0011e46c in wxEvtHandler::ProcessEvent(wxEvent&) (this=0xb5b8a00, 
event=(at)0xbffff3e0) at ../src/common/event.cpp:1231
#16 0x001a719c in wxWindow::MacDispatchMouseEvent(wxMouseEvent&) 
(this=0xb5b8a00, event=(at)0xbffff3e0) at ../src/mac/window.cpp:1578
#17 0x001a6ea8 in wxWindow::MacDispatchMouseEvent(wxMouseEvent&) 
(this=0xb853600, event=(at)0xbffff3e0) at ../src/mac/window.cpp:1529
#18 0x001abf74 in wxTopLevelWindowMac::MacFireMouseEvent(unsigned 
short, int, int, unsigned, long) (this=0xb853600, kind=1, x=204, y=196, 
modifiers=0, timestamp=11648548) at ../src/mac/toplevel.cpp:996
#19 0x001a9d68 in MouseEventHandler(OpaqueEventHandlerCallRef*, 
OpaqueEventRef*, void*) (handler=0xbffff740, event=0xb33fcc0, 
data=0xb853600) at ../src/mac/toplevel.cpp:288
#20 0x001aa6a8 in wxMacWindowEventHandler(OpaqueEventHandlerCallRef*, 
OpaqueEventRef*, void*) (handler=0xbffff740, event=0xb33fcc0, 
data=0xb853600) at ../src/mac/toplevel.cpp:453
#21 0x927d24e4 in DispatchEventToHandlers ()
#22 0x927d2758 in SendEventToEventTargetInternal ()
#23 0x927e4be8 in SendEventToEventTarget ()
#24 0x927f3368 in HandleMouseEventForWindow(OpaqueWindowPtr*, 
OpaqueEventRef*, unsigned short) ()
#25 0x927e8c84 in HandleMouseEvent(OpaqueEventRef*) ()
#26 0x927e3188 in 
ToolboxEventDispatcherHandler(OpaqueEventHandlerCallRef*, 
OpaqueEventRef*, void*) ()
#27 0x927d25a0 in DispatchEventToHandlers ()
#28 0x927d2758 in SendEventToEventTargetInternal ()
#29 0x927e4be8 in SendEventToEventTarget ()
#30 0x00146438 in wxApp::MacHandleOneEvent(void*) (this=???, evr=???) 
at ../src/mac/app.cpp:1400
#31 0x00146398 in wxApp::MacDoOneEvent() (this=0xb314450) at 
../src/mac/app.cpp:1342
#32 0x00145c94 in wxApp::MainLoop() (this=0xb314450) at 
../src/mac/app.cpp:1094
#33 0x001528f8 in wxAppBase::OnRun() (this=0xb314450) at 
../src/common/appcmn.cpp:330
#34 0x00119b68 in wxEntry(int&, wchar_t**) (argc=(at)0xbffffcb8, 
argv=0xb313d50) at ../src/common/init.cpp:408
#35 0x00119c80 in wxEntry(int&, char**) (argc=(at)0xbffffcb8, 
argv=0xbffffd50) at ../src/common/init.cpp:455
#36 0x00002b5c in main (argc=1, argv=0xbffffd50) at pgAdmin3.cpp:78
(gdb)

Also, attached is the way the add server dialog looks on the Mac.  
There seems to be some kind of size issue.

ahp


Attachment: add_server.jpg
Description: image/jpeg (17.1 KB) (inlined above)

Responses

pgadmin-hackers by date

Next:From: cvsDate: 2004-03-19 18:12:33
Subject: CVS Commit by andreas: catch 2.5.1 assert
Previous:From: Adam H.PendletonDate: 2004-03-19 17:48:15
Subject: wxTreeCtrl assert failure

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