FS#38808 - [pgadmin3] Segmentation fault (possibly wx related)

Attached to Project: Community Packages
Opened by Evan McLean (ecognito) - Wednesday, 05 February 2014, 21:29 GMT
Last edited by Sergej Pupykin (sergej) - Monday, 27 April 2015, 18:51 GMT
Task Type Bug Report
Category Packages
Status Closed
Assigned To Sergej Pupykin (sergej)
Architecture All
Severity High
Priority Normal
Reported Version
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 6
Private No

Details

Description:

If I right-click on a database and select something like backup, restore, or maintenance, I get a segmentation fault. I think it is borking at bringing up the dialog window.

I tried recompiling, same issue.

Could the recent wx changes the culprit? Any ideas?

This is with a freshly installed version of Arch.

Additional info:
* package version(s)

pgadmin3 1.18.1-8
postgresql 9.3.2-4
postgresql-libs 9.3.2-4
wxgtk 3.0.0-2
wxgtk2.8 2.8.12.1-1
gtk2 2.24.22-1
gtk3 3.10.7-1
libxslt 1.1.28-3

* config and/or log files etc.


Steps to reproduce:
This task depends upon

Closed by  Sergej Pupykin (sergej)
Monday, 27 April 2015, 18:51 GMT
Reason for closing:  Fixed
Additional comments about closing:  patch applied
Comment by Evan McLean (ecognito) - Thursday, 13 February 2014, 03:25 GMT
A little more info. I tried working back through the recent packages of pgadmin3, and pgadmin3-1.18.0-2-x86_64 is the most recent one that works for me. So it looks like whatever the problem, it is introduced in 1.18.1.
Comment by Jonas Brunsgaard (brunsgaard) - Wednesday, 26 March 2014, 09:57 GMT
I am seeing this bug too and I would just share my experiences with you.

I have tried to download v1.18.1 from official repo and build it my self and I still see the bug.
Also I have checked out the source code from git and build v1.19.0 dev. Bug is still present. :/

1.18.0 work just fine :) (I build it from source).

**edit**
Others can use the older Arch packages from Arch Rollback Machine(https://wiki.archlinux.org/index.php/Arch_Rollback_Machine)

http://seblu.net/a/arm/2013/10/10/community/os/x86_64/pgadmin3-1.18.0-2-x86_64.pkg.tar.xz
sudo pacman -U pgadmin3-1.18.0-2-x86_64.pkg.tar.xz

I may add

IgnorePkg = pgadmin3

to /etc/pacman.conf to keep pacman from upgrading the package.

Comment by Jerome Leclanche (Adys) - Monday, 02 June 2014, 13:15 GMT
Getting this as well =\ Right Click -> Properties on any db is enough to trigger it.
Comment by Jerome Leclanche (Adys) - Monday, 02 June 2014, 13:17 GMT
I think it's right click related. Right click -> Refresh crashes, but "refresh" from the toolbar does not.

Backtrace:

#0 0x00007ffff4a7eeb8 in __lll_unlock_elision () from /usr/lib/libpthread.so.0
#1 0x00007ffff638a249 in wxMutexInternal::Unlock() () from /usr/lib/libwx_baseu-2.8.so.0
#2 0x0000000000625cea in ?? ()
#3 0x00007ffff638c6f6 in wxEvtHandler::ProcessEventIfMatches(wxEventTableEntryBase const&, wxEvtHandler*, wxEvent&) () from /usr/lib/libwx_baseu-2.8.so.0
#4 0x00007ffff638c79b in wxEventHashTable::HandleEvent(wxEvent&, wxEvtHandler*) () from /usr/lib/libwx_baseu-2.8.so.0
#5 0x00007ffff638cb07 in wxEvtHandler::ProcessEvent(wxEvent&) () from /usr/lib/libwx_baseu-2.8.so.0
#6 0x00007ffff638ca90 in wxEvtHandler::ProcessEvent(wxEvent&) () from /usr/lib/libwx_baseu-2.8.so.0
#7 0x00007ffff6d03439 in wxWindowBase::TryParent(wxEvent&) () from /usr/lib/libwx_gtk2u_core-2.8.so.0
#8 0x00007ffff638ca90 in wxEvtHandler::ProcessEvent(wxEvent&) () from /usr/lib/libwx_baseu-2.8.so.0
#9 0x00007ffff6d2d906 in wxScrollHelperEvtHandler::ProcessEvent(wxEvent&) () from /usr/lib/libwx_gtk2u_core-2.8.so.0
#10 0x00007ffff6d3e108 in wxGenericTreeCtrl::OnMouse(wxMouseEvent&) () from /usr/lib/libwx_gtk2u_core-2.8.so.0
#11 0x00007ffff638c6f6 in wxEvtHandler::ProcessEventIfMatches(wxEventTableEntryBase const&, wxEvtHandler*, wxEvent&) () from /usr/lib/libwx_baseu-2.8.so.0
#12 0x00007ffff638c79b in wxEventHashTable::HandleEvent(wxEvent&, wxEvtHandler*) () from /usr/lib/libwx_baseu-2.8.so.0
#13 0x00007ffff638cb07 in wxEvtHandler::ProcessEvent(wxEvent&) () from /usr/lib/libwx_baseu-2.8.so.0
#14 0x00007ffff638ca90 in wxEvtHandler::ProcessEvent(wxEvent&) () from /usr/lib/libwx_baseu-2.8.so.0
#15 0x00007ffff6d2d906 in wxScrollHelperEvtHandler::ProcessEvent(wxEvent&) () from /usr/lib/libwx_gtk2u_core-2.8.so.0
#16 0x00007ffff6c34839 in ?? () from /usr/lib/libwx_gtk2u_core-2.8.so.0
#17 0x00007ffff41bb435 in ?? () from /usr/lib/libgtk-x11-2.0.so.0
#18 0x00007ffff3b9c3d8 in g_closure_invoke () from /usr/lib/libgobject-2.0.so.0
#19 0x00007ffff3badd5d in ?? () from /usr/lib/libgobject-2.0.so.0
#20 0x00007ffff3bb5719 in g_signal_emit_valist () from /usr/lib/libgobject-2.0.so.0
#21 0x00007ffff3bb5d02 in g_signal_emit () from /usr/lib/libgobject-2.0.so.0
#22 0x00007ffff42cafe4 in ?? () from /usr/lib/libgtk-x11-2.0.so.0
#23 0x00007ffff41b9be4 in gtk_propagate_event () from /usr/lib/libgtk-x11-2.0.so.0
#24 0x00007ffff41b9f9b in gtk_main_do_event () from /usr/lib/libgtk-x11-2.0.so.0
#25 0x00007ffff3e359cc in ?? () from /usr/lib/libgdk-x11-2.0.so.0
#26 0x00007ffff36a8b84 in g_main_context_dispatch () from /usr/lib/libglib-2.0.so.0
#27 0x00007ffff36a8dc8 in ?? () from /usr/lib/libglib-2.0.so.0
#28 0x00007ffff36a908a in g_main_loop_run () from /usr/lib/libglib-2.0.so.0
#29 0x00007ffff41b9087 in gtk_main () from /usr/lib/libgtk-x11-2.0.so.0
#30 0x00007ffff6c220ea in wxEventLoop::Run() () from /usr/lib/libwx_gtk2u_core-2.8.so.0
#31 0x00007ffff6c96fec in wxAppBase::MainLoop() () from /usr/lib/libwx_gtk2u_core-2.8.so.0
#32 0x00007ffff6339f7d in wxEntry(int&, wchar_t**) () from /usr/lib/libwx_baseu-2.8.so.0
#33 0x0000000000443222 in ?? ()
#34 0x00007ffff46e0000 in __libc_start_main () from /usr/lib/libc.so.6
#35 0x0000000000473ed4 in ?? ()
Comment by Jonatan Cloutier (djo0012) - Monday, 20 October 2014, 00:02 GMT Comment by Jonatan Cloutier (djo0012) - Saturday, 25 October 2014, 18:26 GMT
  • Field changed: Percent Complete (100% → 0%)
On a fully up to date arch as of today (October 25) the problem is still present and happens in less than 5 right click (not always the same action) mostly I just tested and it crash on right click connect on a database and right click new table.
Comment by Sergej Pupykin (sergej) - Thursday, 25 December 2014, 12:40 GMT
can it be reproduced with 1.20.0 ?
Comment by Evan McLean (ecognito) - Thursday, 25 December 2014, 21:53 GMT
Yes, the problem is still there in version 1.20.0. :-(
Comment by nylan (nylan) - Thursday, 08 January 2015, 07:57 GMT
Yes, tested with 2 different arch installations, both up to date.
Right click on database = crash.
1.18.0 is the only working version I'm aware of
Comment by Sergej Pupykin (sergej) - Thursday, 26 February 2015, 17:38 GMT
Currently I cannot crash it
Comment by Jonatan Cloutier (djo0012) - Saturday, 28 February 2015, 01:13 GMT
I just upgraded everything, rebooted and yet, first right click in pgadmin it crashed.
Comment by Evan McLean (ecognito) - Sunday, 01 March 2015, 03:18 GMT
I can also confirm it is still happening for me with the 1.20.0-1 package (x86).
Comment by Sergej Pupykin (sergej) - Monday, 02 March 2015, 13:28 GMT
I think it needs exact steps to reproduce. I can connect to 127.0.0.1 and browse dbmail database.
Comment by nylan (nylan) - Friday, 27 March 2015, 20:01 GMT
There are no exact steps to reproduce since pgadmin3 crashes with the first right mouse click in the object browser.
It doesn't matter where , it happens always, at least for me.
I will provide any information needed. Feel free to ask.
Comment by nylan (nylan) - Monday, 20 April 2015, 08:39 GMT
I've found this untested patch searching the pgadmin mailing list:
http://www.postgresql.org/list/pgadmin-support/2015-04/
User: Wander Nauta
Date: 2015-04-19 12:04:02

This solves the right mouse click issue

Loading...