Re: pgadmin3-1.6.0 - Segmentation Fault (core dumped) - Mailing list pgadmin-hackers

From Dhanaraj M
Subject Re: pgadmin3-1.6.0 - Segmentation Fault (core dumped)
Date
Msg-id 456EC77B.6040307@sun.com
Whole thread Raw
In response to Re: pgadmin3-1.6.0 - Segmentation Fault (core dumped)  (Dave Page <dpage@postgresql.org>)
List pgadmin-hackers
> I'm confused - you said this happens when you close the query window,
> but the stack trace shows frmQuery::OnChangeConnection(wxCommandEvent)
>
> >> Do you want to save-> NO
> >> Segmentation Fault (core dumped)
>
> Is that the right core file? If so, can you detail the exact steps you
> take to get to the crash, because I can't provoke a crash even playing
> with the connection select dialogue (though I am running on
> wxGTK/Linux rather than wxGTK/Solaris).

Yes. I re-checked. I sent the right file.

STEPS: I open pgadmin. Connect to my local machine. Select the DB. Goto
query tool. close the tool. Pgadmin aborts.

Whenever I close the query tool,  I see the core dump. (Same problem -
even when I open the query tool and close or execute quries and close)
This is there both in 1.6.0 and 1.6.1.

> One other thing - are you building with --enable-debug? That might
> help get more meaningful debug output.


I am currently working on this. I will send them ASAP.

>
>> 2. When I right click on a table and select view data, it aborts. The
>> stack trace is here.
>
>
> I cannot reproduce this either. Do you have permission to view that
> particular table? Does it only occur with specific tables?

This behaviour is not consistent. It is not related to the table. This
problem may occur only certain times (not always) for the same set of steps.
This problem is only with 1.6. 1 and not in 1.6.0.

+++++++++++++++++++++++++++++++++++++++++
-
I noticed one more in-consistent problem in the query tool. Sometimes
there is no results displayed after executing the query.

The warning msg that I got was

/usr/local/include/wx-2.7/wx/string.h(363): assert
"stringSrc.GetStringData()->IsValid()" failed in wxStringBase(): did you
forget to call UngetWriteBuf()?
Do you want to stop the program?
You can also choose [Cancel] to suppress further warnings.

bash-3.00# pstack core
core 'core' of 10206:   /usr/local/pgadmin3/bin/pgadmin3
-----------------  lwp# 1 / thread# 1  --------------------
 082e89cc _ZNK12wxStringData7IsValidEv (fffffff4, 0, 8a54680, fe5e2920) + 6
 082e3084 _ZN12wxStringBaseC2ERKS_ (80461e0, 8e31c88, 8a54680, 8106247) + 1a
 082e22fc _ZN8wxStringC1ERKS_ (80461e0, 8e31c88, 8a54680, fe341aa4) + 14
 0832cfe8 _ZNK10pgConnBase7GetHostEv (80461e0) + 1a
 0816c3fc _ZN19dlgSelectConnection2GoEP6pgConnP14ctlComboBoxFix
(8046260, 8e31c40, 91c1e88, 0) + 12a
 081e7a16 _ZN8frmQuery18OnChangeConnectionER14wxCommandEvent (8e59f68,
80465e0, 8046488, 832d766) + 9e
 fe2225ba
_ZNK12wxAppConsole11HandleEventEP12wxEvtHandlerMS0_FvR7wxEventES3_
(863a450, 8e59f68, 81e7978, 0, 80465e0, 0) + 3e
 fe2ad330
_ZN12wxEvtHandler21ProcessEventIfMatchesERK21wxEventTableEntryBasePS_R7wxEvent
(8613010, 8e59f68, 80465e0, fe2ac165) + ca
 fe2ac238 _ZN16wxEventHashTable11HandleEventER7wxEventP12wxEvtHandler
(8612fc0, 80465e0, 8e59f68, fe2ad43c) + e0
 fe2ad53c _ZN12wxEvtHandler12ProcessEventER7wxEvent (8e59f68, 80465e0,
8046578, fe655861) + 118
 fe6558f5 _ZN12wxWindowBase9TryParentER7wxEvent (91c1e88, 80465e0,
91c1e88, fe2ad43c) + a1
 fe2ad5a1 _ZN12wxEvtHandler12ProcessEventER7wxEvent (91c1e88, 80465e0,
1068, fe59e4a1) + 17d
 fe59e5be gtkcombobox_changed_callback (919be00, 91c1e88, 8e524e0) + 12a
 fdab4c01 g_cclosure_marshal_VOID__VOID () + 51
-----------------  lwp# 2 / thread# 2  --------------------
 fe2a8946 wxPthreadStart(), exit value = 0x00000000
        ** zombie (exited, not detached, not yet joined) **
-----------------  lwp# 3 / thread# 3  --------------------
 fe2a8946 wxPthreadStart(), exit value = 0x00000000
        ** zombie (exited, not detached, not yet joined) **

-++++++++++++++++++++++++++++++++++++++++++++++

Anyway I attach the stack trace again.
Problem -1

bash-3.00# pstack core
core 'core' of 9963:    /usr/local/pgadmin3/bin/pgadmin3
-----------------  lwp# 1 / thread# 1  --------------------
 082e89cc _ZNK12wxStringData7IsValidEv (68, 0, 8a54680, fe5e2920) + 6
 082e3084 _ZN12wxStringBaseC2ERKS_ (80461e0, 8def7b8, 8a54680, 8106247) + 1a
 082e22fc _ZN8wxStringC1ERKS_ (80461e0, 8def7b8, 8a54680, fe341aa4) + 14
 0832cfe8 _ZNK10pgConnBase7GetHostEv (80461e0) + 1a
 0816c3fc _ZN19dlgSelectConnection2GoEP6pgConnP14ctlComboBoxFix
(8046260, 8def770, 9000b90, 0) + 12a
 081e7a16 _ZN8frmQuery18OnChangeConnectionER14wxCommandEvent (8e49108,
80465e0, 8046488, 832d766) + 9e
 fe2225ba
_ZNK12wxAppConsole11HandleEventEP12wxEvtHandlerMS0_FvR7wxEventES3_
(863a450, 8e49108, 81e7978, 0, 80465e0, 0) + 3e
 fe2ad330
_ZN12wxEvtHandler21ProcessEventIfMatchesERK21wxEventTableEntryBasePS_R7wxEvent
(8613010, 8e49108, 80465e0, fe2ac165) + ca
 fe2ac238 _ZN16wxEventHashTable11HandleEventER7wxEventP12wxEvtHandler
(8612fc0, 80465e0, 8e49108, fe2ad43c) + e0
 fe2ad53c _ZN12wxEvtHandler12ProcessEventER7wxEvent (8e49108, 80465e0,
8046578, fe655861) + 118
 fe6558f5 _ZN12wxWindowBase9TryParentER7wxEvent (9000b90, 80465e0,
9000b90, fe2ad43c) + a1
 fe2ad5a1 _ZN12wxEvtHandler12ProcessEventER7wxEvent (9000b90, 80465e0,
1068, fe59e4a1) + 17d
 fe59e5be gtkcombobox_changed_callback (90021d0, 9000b90, 862d160) + 12a
 fdab4c01 g_cclosure_marshal_VOID__VOID () + 51
-----------------  lwp# 2 / thread# 2  --------------------
 fe2a8946 wxPthreadStart(), exit value = 0x00000000
        ** zombie (exited, not detached, not yet joined) **

++++++++++++++++++++++++++++++++++++++++++++=

problem-2

bash-3.00# pstack core
core 'core' of 9940:    /usr/local/pgadmin3/bin/pgadmin3
-----------------  lwp# 1 / thread# 1  --------------------
 fe9ba149 _ZN6wxGridD2Ev (8e56e20, fecfe79c, 8046c88, 0) + c5
 08336612 _ZN10ctlSQLGridD2Ev (8e56e20, 8ae0910, 8f59290, fea0f516) + 28
 08347400 _ZN14ctlSQLEditGridD0Ev (8e56e20, 8e39ea8, 0, fe6502cc) + 28
 fe65035c _ZN12wxWindowBase15DestroyChildrenEv (8f59290, fe8ecb7c,
8046ce8, fe563f53) + 9c
 fe563fc7 _ZN8wxWindowD2Ev (8f59290, 8f59290, 8046d18, fe6492b3) + 81
 fe64939c _ZN20wxTopLevelWindowBaseD2Ev (8f59290, 0, fe7dea80, fe55b339)
+ 110
 fe55b433 _ZN19wxTopLevelWindowGTKD2Ev (8f59290, 84e0af0, 0, fe5b1da8) + 17d
 082d9b0a _ZN16wxTopLevelWindowD2Ev (8f59290, 80c889c, feffc03c,
fe5fba0c) + 1a
 fe5fba40 _ZN11wxFrameBaseD2Ev (8f59290, fefdd044, feffc794, fe5aa83d) + 40
 fe5aa899 _ZN7wxFrameD2Ev (8f59290, fefdd044, feffc794, fecc0c59) + 69
 0820e74c _ZN7pgFrameD2Ev (8f59290, 8046e30, 900521c, fe2681d5) + 1ce
 081a37f8 _ZN11frmEditGridD0Ev (8f59290, 8dfc7d0, 8998228, fe5cf2be) + 2e0
 fe5cf36c _ZN9wxAppBase20DeletePendingObjectsEv (863a450, 86436b8, 1,
fe5cf64a) + ba
 fe5cf671 _ZN9wxAppBase6OnIdleER11wxIdleEvent (863a450, 8046fb0,
8046ed8, 832d766) + 33
 fe2225ba
_ZNK12wxAppConsole11HandleEventEP12wxEvtHandlerMS0_FvR7wxEventES3_
(863a450, 863a450, fe5cf63e, 0, 8046fb0, 0) + 3e
 fe2ad330
_ZN12wxEvtHandler21ProcessEventIfMatchesERK21wxEventTableEntryBasePS_R7wxEvent
(fe8ecba0, 863a450, 8046fb0, fe2ac165) + ca
 fe2ac238 _ZN16wxEventHashTable11HandleEventER7wxEventP12wxEvtHandler
(fe8ecb7c, 8046fb0, 863a450, fe2ad43c) + e0
 fe2ad53c _ZN12wxEvtHandler12ProcessEventER7wxEvent (863a450, 8046fb0,
8046fb0, fe5cf3af) + 118
 fe5cf49b _ZN9wxAppBase11ProcessIdleEv (863a450, 0, fe7dea80, fe53775d) + f9
 fe537778 wxapp_idle_callback (0, fc862000, 8fdea50) + 70
 fd744af1 g_idle_dispatch (fd79f518, 2, 863a6a8, 12c, 3, 1f1) + 11
 fd79f508 g_source_callback_funcs (0, 0, 10, fffcfcfc, 8ffa400, 0)
 fe537708 wxapp_idle_callback ()
-----------------  lwp# 2 / thread# 2  --------------------
 fe2a8946 wxPthreadStart(), exit value = 0x00000000
        ** zombie (exited, not detached, not yet joined) **


pgadmin-hackers by date:

Previous
From: Dave Page
Date:
Subject: Re: pgadmin3-1.6.0 - Segmentation Fault (core dumped)
Next
From: svn@pgadmin.org
Date:
Subject: SVN Commit by guillaume: r5712 - trunk/www/locale/fr_FR/LC_MESSAGES