Thread: Segmentation fault in GUI
Fedora Core FC5 pgadmin3 1.4.2 (Mar 25 2006) installed by rpm. Same behavior with 1.4.1. After reading some postings, installed gtk-qt-engine-0.60-8 via rpm, did not help Bug is trivial to reproduce: click on help ? in toolbar or select Help|Bugreport from menu. I'm sure there are other ways to crash as well.
i have install it (pgAdminIII) on Fedora 4 and i have the same probleme.(segmentation fault) I resolve this by installing wxGTK, wxGTK-devel (via rpm)
Any other rpms to suggest? I have the latest wxGTK. [andrew@stock5 downloads]$ rpm --query wxGTK wxGTK-2.6.3-2.6.3.2.1.fc5 [andrew@stock5 downloads]$ rpm --query wxGTK-devel wxGTK-devel-2.6.3-2.6.3.2.1.fc5 [andrew@stock5 downloads]$ rpm --query postgresql postgresql-8.1.3-1PGDG [andrew@stock5 downloads]$ rpm --query postgresql-devel postgresql-devel-8.1.3-1PGDG
you can try (the debugger) -> ]# gdb pagadmin3 and gdb>run After u can see where is the problem (which library), my problem whose in wxGTK. :-)
Dear friends, I confirm this crash on Debian too. Note that it follows a recent upgrade of the wxWidgets package to 2.6.3.2 (I'll do some further testing in a moment). A bug report has been opened at d.o. [1]. Clicking the help menu entry simply crashes the app. Emil Nowak whom openened the bug has provided the following backtrace: Program received signal SIGSEGV, Segmentation fault. [Switching to Thread -1497721152 (LWP 10932)] 0xa7a17fc4 in wxStringBase::operator= () from /usr/lib/libwx_baseu-2.6.so.0 (gdb) bt #0 0xa7a17fc4 in wxStringBase::operator= () from /usr/lib/libwx_baseu-2.6.so.0 #1 0xa7e97ac2 in wxHtmlHelpData::SetTempDir () from /usr/lib/libwx_gtk2u_html-2.6.so.0 #2 0x08246749 in wxFileConfig::GetPath () #3 0x08246c73 in wxFileConfig::GetPath () #4 0x0818166f in wxClassInfo::IsKindOf () #5 0x08079937 in wxTopLevelWindowBase::IsOneOfBars () #6 0xa79c0815 in wxAppConsole::HandleEvent () from /usr/lib/libwx_baseu-2.6.so.0 #7 0xa7a523f3 in wxEvtHandler::ProcessEventIfMatches () from /usr/lib/libwx_baseu-2.6.so.0 #8 0xa7a524c2 in wxEvtHandler::SearchDynamicEventTable () from /usr/lib/libwx_baseu-2.6.so.0 #9 0xa7a527c3 in wxEvtHandler::ProcessEvent () from /usr/lib/libwx_baseu-2.6.so.0 #10 0xa7cf833c in wxWindowBase::TryParent () from /usr/lib/libwx_gtk2u_core-2.6.so.0 #11 0xa7a5278e in wxEvtHandler::ProcessEvent () from /usr/lib/libwx_baseu-2.6.so.0 #12 0xa7cee70e in wxToolBarBase::OnLeftClick () from /usr/lib/libwx_gtk2u_core-2.6.so.0 #13 0xa7c7a01b in wxToolBar::CreateTool () from /usr/lib/libwx_gtk2u_core-2.6.so.0 #14 0xa6e0011b in g_cclosure_marshal_VOID__VOID () from /usr/lib/libgobject-2.0.so.0 #15 0xa6df3a5b in g_closure_invoke () from /usr/lib/libgobject-2.0.so.0 #16 0xa6e0374d in g_signal_stop_emission () from /usr/lib/libgobject-2.0.so.0 #17 0xa6e04b27 in g_signal_emit_valist () from /usr/lib/libgobject-2.0.so.0 #18 0xa6e04ede in g_signal_emit () from /usr/lib/libgobject-2.0.so.0 #19 0xa709baa1 in gtk_button_clicked () from /usr/lib/libgtk-x11-2.0.so.0 #20 0xa709d518 in _gtk_button_set_depressed () from /usr/lib/libgtk-x11-2.0.so.0 #21 0xa6e0011b in g_cclosure_marshal_VOID__VOID () from /usr/lib/libgobject-2.0.so.0 #22 0xa6df33b8 in g_cclosure_new_swap () from /usr/lib/libgobject-2.0.so.0 #23 0xa6df3a5b in g_closure_invoke () from /usr/lib/libgobject-2.0.so.0 #24 0xa6e02ff6 in g_signal_stop_emission () from /usr/lib/libgobject-2.0.so.0 #25 0xa6e04b27 in g_signal_emit_valist () from /usr/lib/libgobject-2.0.so.0 #26 0xa6e04ede in g_signal_emit () from /usr/lib/libgobject-2.0.so.0 #27 0xa709ba11 in gtk_button_released () from /usr/lib/libgtk-x11-2.0.so.0 #28 0xa709cac1 in _gtk_button_paint () from /usr/lib/libgtk-x11-2.0.so.0 #29 0xa7169900 in _gtk_marshal_BOOLEAN__BOXED () from /usr/lib/libgtk-x11-2.0.so.0 #30 0xa6df33b8 in g_cclosure_new_swap () from /usr/lib/libgobject-2.0.so.0 #31 0xa6df3a5b in g_closure_invoke () from /usr/lib/libgobject-2.0.so.0 #32 0xa6e03952 in g_signal_stop_emission () from /usr/lib/libgobject-2.0.so.0 #33 0xa6e048e5 in g_signal_emit_valist () from /usr/lib/libgobject-2.0.so.0 #34 0xa6e04ede in g_signal_emit () from /usr/lib/libgobject-2.0.so.0 #35 0xa725b3e4 in gtk_widget_activate () from /usr/lib/libgtk-x11-2.0.so.0 #36 0xa7167d2d in gtk_propagate_event () from /usr/lib/libgtk-x11-2.0.so.0 #37 0xa71681a3 in gtk_main_do_event () from /usr/lib/libgtk-x11-2.0.so.0 #38 0xa6ffbbfa in _gdk_events_queue () from /usr/lib/libgdk-x11-2.0.so.0 #39 0xa6d80691 in g_main_context_dispatch () from /usr/lib/libglib-2.0.so.0 #40 0xa6d839d7 in g_main_context_check () from /usr/lib/libglib-2.0.so.0 #41 0xa6d83f28 in g_main_loop_run () from /usr/lib/libglib-2.0.so.0 #42 0xa7167341 in gtk_main () from /usr/lib/libgtk-x11-2.0.so.0 #43 0xa7be5b38 in wxEventLoop::Run () from /usr/lib/libwx_gtk2u_core-2.6.so.0 #44 0xa7c82b49 in wxAppBase::MainLoop () from /usr/lib/libwx_gtk2u_core-2.6.so.0 #45 0xa7c82c41 in wxAppBase::OnRun () from /usr/lib/libwx_gtk2u_core-2.6.so.0 #46 0xa79f76ea in wxEntry () from /usr/lib/libwx_baseu-2.6.so.0 #47 0xa79f77a6 in wxEntry () from /usr/lib/libwx_baseu-2.6.so.0 #48 0x080685ce in ?? () #49 0xa75d2eb0 in __libc_start_main () from /lib/tls/i686/cmov/libc.so.6 #50 0x08068511 in ?? () (gdb) Regards, Raphaël [1] http://bugs.debian.org/366195 hferrag wrote: > you can try (the debugger) -> > ]# gdb pagadmin3 > > and > gdb>run > > After u can see where is the problem (which library), my problem whose > in wxGTK. > :-)
> -----Original Message----- > From: Raphaël Enrici [mailto:blacknoz@club-internet.fr] > Sent: 07 May 2006 12:46 > To: PgAdmin Hackers > Cc: andrew@pillette.com; pgadmin-support@postgresql.org; Dave > Page; Andreas Pflug > Subject: Re: [pgadmin-support] Segmentation fault in GUI > > Dear friends, > > I confirm this crash on Debian too. Note that it follows a > recent upgrade of the wxWidgets package to 2.6.3.2 (I'll do > some further testing in a moment). A bug report has been > opened at d.o. [1]. Clicking the help menu entry simply > crashes the app. Emil Nowak whom openened the bug has > provided the following backtrace: Hi Raph, Can you try the wxWidgets 'Help' sample from the 2.6.3.2 debian package please? Does it run OK? Cheers, Dave.
Dave Page wrote: > > > >>-----Original Message----- >>From: Raphaël Enrici [mailto:blacknoz@club-internet.fr] >>Sent: 07 May 2006 12:46 >>To: PgAdmin Hackers >>Cc: andrew@pillette.com; pgadmin-support@postgresql.org; Dave >>Page; Andreas Pflug >>Subject: Re: [pgadmin-support] Segmentation fault in GUI >> >>Dear friends, >> >>I confirm this crash on Debian too. Note that it follows a >>recent upgrade of the wxWidgets package to 2.6.3.2 (I'll do >>some further testing in a moment). A bug report has been >>opened at d.o. [1]. Clicking the help menu entry simply >>crashes the app. Emil Nowak whom openened the bug has >>provided the following backtrace: > > Hi Raph, > > Can you try the wxWidgets 'Help' sample from the 2.6.3.2 debian package please? Does it run OK? Mmmh got a window saying that "it can't initialize the help system". I'll do further testing and file a bug report to Ron. Any suggestion to investigate further? Regards, Raph
> -----Original Message----- > From: Raphaël Enrici [mailto:blacknoz@club-internet.fr] > Sent: 08 May 2006 17:10 > To: Dave Page > Cc: PgAdmin Hackers; andrew@pillette.com; > pgadmin-support@postgresql.org; Andreas Pflug > Subject: Re: [pgadmin-support] Segmentation fault in GUI > > Mmmh got a window saying that "it can't initialize the help system". > > I'll do further testing and file a bug report to Ron. Any > suggestion to investigate further? Not offhand. Regards, Dave.
Dave Page wrote: > > > >>-----Original Message----- >>From: Raphaël Enrici [mailto:blacknoz@club-internet.fr] >>Sent: 08 May 2006 17:10 >>To: Dave Page >>Cc: PgAdmin Hackers; andrew@pillette.com; >>pgadmin-support@postgresql.org; Andreas Pflug >>Subject: Re: [pgadmin-support] Segmentation fault in GUI >> >>Mmmh got a window saying that "it can't initialize the help system". >> >>I'll do further testing and file a bug report to Ron. Any >>suggestion to investigate further? > > > Not offhand. > Ok, I've contacted Ron. I'll tell you. Raph.
Raphaël Enrici wrote: > Dave Page wrote: > >> >> >> >> >>>-----Original Message----- >>>From: Raphaël Enrici [mailto:blacknoz@club-internet.fr] >>>Sent: 08 May 2006 17:10 >>>To: Dave Page >>>Cc: PgAdmin Hackers; andrew@pillette.com; >>>pgadmin-support@postgresql.org; Andreas Pflug >>>Subject: Re: [pgadmin-support] Segmentation fault in GUI >>> >>>Mmmh got a window saying that "it can't initialize the help system". >>> >>>I'll do further testing and file a bug report to Ron. Any >>>suggestion to investigate further? >> >> >>Not offhand. >> > > Ok, I've contacted Ron. I'll tell you. Finally, I just rebuilt my packages with the up to date wxWidgets packages and it does not crash anymore. Any good reasons why I should rebuild the app? I mean, that the wxWidgets libraries did not change their internal version number... So, something built with wxWidgets 2.6.1.2 should work with wxWidgets 2.6.3.2.1 without a rebuild? Please note, that I can read warnings like these in the terminal from where I launched pgAdmin III: (pgadmin3:17340): Gdk-CRITICAL **: gdk_drawable_get_depth: assertion `GDK_IS_DRAWABLE (drawable)' failed (pgadmin3:17340): Gtk-CRITICAL **: gtk_pixmap_set: assertion `gdk_colormap_get_visual (gtk_widget_get_colormap (GTK_WIDGET (pix map)))->depth == gdk_drawable_get_depth (GDK_DRAWABLE (val))' failed @Andrew: could you please try to rebuild the app on your system to see if it helps? Regards, Raph.
Andrew Lazarus wrote: > I'm sorry, I've never built pgadmin from source, only installed the rpm. > I uninstalled the wxGTK rpm and I tried to build wxGTK from source and > slam the output libraries into /usr/lib, and I can do that, but what > something is missing or won't link with pgadmin. > > Would you like me to go through the docs and try a pgadmin build? If you have a minute or so, maybe you can try to rebuild the RPMs from Source RPM? They are available on our mirrors in the srpm directory. (http://www.postgresql.org/ftp/pgadmin3/release/v1.4.2/fedora-core-4/srpm/) It should be relatively straight, something like: (as root) rpm -i pgadmin3-1.4.2-1.src.rpm cd /usr/src/redhat(<-or something else, I don't have FC here)/ rpm -ba ./SPECS/pgadmin3.spec > For the record, most recently I used this wxGTK although I tried others: > > http://rpmfind.net/linux/RPM/fedora/extras/4/i386/wxGTK-2.6.3-2.6.3.2.1.fc4.i386.html Ok, so we are using similar version number. Thanks for your time. Raphaël
I'm sorry, I've never built pgadmin from source, only installed the rpm. I uninstalled the wxGTK rpm and I tried to build wxGTK from source and slam the output libraries into /usr/lib, and I can do that, but what something is missing or won't link with pgadmin. Would you like me to go through the docs and try a pgadmin build? For the record, most recently I used this wxGTK although I tried others: http://rpmfind.net/linux/RPM/fedora/extras/4/i386/wxGTK-2.6.3-2.6.3.2.1.fc4.i386.html > @Andrew: could you please try to rebuild the app on your system to see > if it helps? > > Regards, > Raph. >
Attachment
I can try to find some time for this (I am the only programmer in this company!), but it's become a lower priority because I got pgadmin up and running by using an earlier rpm of wxGTK-- ftp://rpmfind.net/linux/fedora/extras/5/i386/wxGTK-2.6.2-5.fc5.i386.rpm Thanks for your help. Raphaël Enrici wrote: > Andrew Lazarus wrote: >> I'm sorry, I've never built pgadmin from source, only installed the >> rpm. I uninstalled the wxGTK rpm and I tried to build wxGTK from >> source and slam the output libraries into /usr/lib, and I can do that, >> but what something is missing or won't link with pgadmin. >> >> Would you like me to go through the docs and try a pgadmin build? > > If you have a minute or so, maybe you can try to rebuild the RPMs from > Source RPM? > They are available on our mirrors in the srpm directory. > (http://www.postgresql.org/ftp/pgadmin3/release/v1.4.2/fedora-core-4/srpm/) > > It should be relatively straight, something like: > (as root) > rpm -i pgadmin3-1.4.2-1.src.rpm > cd /usr/src/redhat(<-or something else, I don't have FC here)/ > rpm -ba ./SPECS/pgadmin3.spec > > >> For the record, most recently I used this wxGTK although I tried others: >> >> http://rpmfind.net/linux/RPM/fedora/extras/4/i386/wxGTK-2.6.3-2.6.3.2.1.fc4.i386.html >> > > Ok, so we are using similar version number. > > Thanks for your time. > Raphaël > >