Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 185848 - dev-db/pgadmin3 - segmentation fault when deleting record from table in datagrid view
Summary: dev-db/pgadmin3 - segmentation fault when deleting record from table in datag...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: AMD64 Linux
: High major
Assignee: PgSQL Bugs
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2007-07-19 09:37 UTC by ksv
Modified: 2008-06-14 12:03 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description ksv 2007-07-19 09:37:16 UTC
Application crashes with segmentation fault when I deleting record from table

Reproducible: Always

Steps to Reproduce:
1. Run pgAdmin3 and navigate to the table you want to delete data from and select it in tree view control
2. Press button on toolbar "View the data in selected object" to bring up a gridview populated with data from this table
3. Select first row (I've selected this one) pressing the leftmost cell with number "1" (row number)
4. Press button "Delete selected lines" from toolbar and consequently press "Yes" button from popup dialog which leads to application crash.

Actual Results:  
Application crash with segmentation fault

Expected Results:  
Delete selected row and update gridview

backtrace log:

ksvksv@DragonGentoo ~ $ gdb /usr/bin/pgadmin3 
GNU gdb 6.6
Copyright (C) 2006 Free Software Foundation, Inc.
GDB is free software, covered by the GNU General Public License, and you are
welcome to change it and/or distribute copies of it under certain conditions.
Type "show copying" to see the conditions.
There is absolutely no warranty for GDB.  Type "show warranty" for details.
This GDB was configured as "x86_64-pc-linux-gnu"...
Using host libthread_db library "/lib/libthread_db.so.1".
(gdb) run
Starting program: /usr/bin/pgadmin3 
[Thread debugging using libthread_db enabled]
[New Thread 47269615061568 (LWP 13123)]
[New Thread 1082132800 (LWP 13164)]
[Thread 1082132800 (LWP 13164) exited]

Program received signal SIGSEGV, Segmentation fault.
[Switching to Thread 47269615061568 (LWP 13123)]
0x00002afdcec215db in g_slice_alloc () from /usr/lib/libglib-2.0.so.0
(gdb) backtrace
#0  0x00002afdcec215db in g_slice_alloc () from /usr/lib/libglib-2.0.so.0
#1  0x00002afdce2affee in gdk_region_new () from /usr/lib/libgdk-x11-2.0.so.0
#2  0x00002afdce2b018b in gdk_region_copy () from /usr/lib/libgdk-x11-2.0.so.0
#3  0x00002afdce2b36c5 in gdk_window_invalidate_maybe_recurse () from /usr/lib/libgdk-x11-2.0.so.0
#4  0x00002afdce2b377d in gdk_window_invalidate_rect () from /usr/lib/libgdk-x11-2.0.so.0
#5  0x00002afdcc80d942 in wxWindow::Refresh () from /usr/lib/libwx_gtk2u_core-2.6.so.0
#6  0x00002afdcc50d07c in wxGrid::EndBatch () from /usr/lib/libwx_gtk2u_adv-2.6.so.0
#7  0x00000000005471ba in frmEditGrid::OnDelete ()
#8  0x00002afdcce0dc7f in wxEvtHandler::ProcessEventIfMatches () from /usr/lib/libwx_baseu-2.6.so.0
#9  0x00002afdcce0de1e in wxEventHashTable::HandleEvent () from /usr/lib/libwx_baseu-2.6.so.0
#10 0x00002afdcce0df76 in wxEvtHandler::ProcessEvent () from /usr/lib/libwx_baseu-2.6.so.0
#11 0x00002afdcc8ee715 in wxWindowBase::TryParent () from /usr/lib/libwx_gtk2u_core-2.6.so.0
#12 0x00002afdcce0df13 in wxEvtHandler::ProcessEvent () from /usr/lib/libwx_baseu-2.6.so.0
#13 0x00002afdcc8e5c77 in wxToolBarBase::OnLeftClick () from /usr/lib/libwx_gtk2u_core-2.6.so.0
#14 0x00002afdcc87dc14 in gtk_toolbar_callback () from /usr/lib/libwx_gtk2u_core-2.6.so.0
#15 0x00002afdce7960c9 in g_closure_invoke () from /usr/lib/libgobject-2.0.so.0
#16 0x00002afdce7a5e01 in signal_emit_unlocked_R () from /usr/lib/libgobject-2.0.so.0
#17 0x00002afdce7a70b5 in g_signal_emit_valist () from /usr/lib/libgobject-2.0.so.0
#18 0x00002afdce7a7293 in g_signal_emit () from /usr/lib/libgobject-2.0.so.0
#19 0x00002afdcde79f99 in gtk_real_button_released () from /usr/lib/libgtk-x11-2.0.so.0
#20 0x00002afdce7960c9 in g_closure_invoke () from /usr/lib/libgobject-2.0.so.0
#21 0x00002afdce7a5a8d in signal_emit_unlocked_R () from /usr/lib/libgobject-2.0.so.0
#22 0x00002afdce7a70b5 in g_signal_emit_valist () from /usr/lib/libgobject-2.0.so.0
#23 0x00002afdce7a7293 in g_signal_emit () from /usr/lib/libgobject-2.0.so.0
#24 0x00002afdcde78829 in gtk_button_button_release () from /usr/lib/libgtk-x11-2.0.so.0
#25 0x00002afdcdf34d6d in _gtk_marshal_BOOLEAN__BOXED () from /usr/lib/libgtk-x11-2.0.so.0
#26 0x00002afdce7960c9 in g_closure_invoke () from /usr/lib/libgobject-2.0.so.0
#27 0x00002afdce7a5f9f in signal_emit_unlocked_R () from /usr/lib/libgobject-2.0.so.0
#28 0x00002afdce7a6e7e in g_signal_emit_valist () from /usr/lib/libgobject-2.0.so.0
#29 0x00002afdce7a7293 in g_signal_emit () from /usr/lib/libgobject-2.0.so.0
#30 0x00002afdce02ed4e in gtk_widget_event_internal () from /usr/lib/libgtk-x11-2.0.so.0
#31 0x00002afdcdf2e33e in gtk_propagate_event () from /usr/lib/libgtk-x11-2.0.so.0
#32 0x00002afdcdf2f3a7 in gtk_main_do_event () from /usr/lib/libgtk-x11-2.0.so.0
#33 0x00002afdce2c717c in gdk_event_dispatch () from /usr/lib/libgdk-x11-2.0.so.0
#34 0x00002afdcec0b603 in g_main_context_dispatch () from /usr/lib/libglib-2.0.so.0
#35 0x00002afdcec0e44d in g_main_context_iterate () from /usr/lib/libglib-2.0.so.0
#36 0x00002afdcec0e736 in g_main_loop_run () from /usr/lib/libglib-2.0.so.0
#37 0x00002afdcdf2f702 in gtk_main () from /usr/lib/libgtk-x11-2.0.so.0
#38 0x00002afdcc7ff161 in wxEventLoop::Run () from /usr/lib/libwx_gtk2u_core-2.6.so.0
#39 0x00002afdcc88540b in wxAppBase::MainLoop () from /usr/lib/libwx_gtk2u_core-2.6.so.0
#40 0x00002afdccdbd60c in wxEntry () from /usr/lib/libwx_baseu-2.6.so.0
#41 0x000000000042a962 in main ()
#42 0x00002afdcd898374 in __libc_start_main () from /lib/libc.so.6
#43 0x000000000042a779 in _start ()
Comment 1 Jakub Moc (RETIRED) gentoo-dev 2007-07-19 10:05:27 UTC
emerge --info please.
Comment 2 ksv 2007-07-19 10:49:12 UTC
(In reply to comment #1)
> emerge --info please.
> 

Just forgot to mention its:

ksv@DragonGentoo ~/Projects/_DB_ $ eix pgadmin
[I] dev-db/pgadmin3
     Available versions:  1.2.2 1.4.3
     Installed versions:  1.4.3(05:21:01 05/04/07)(-debug)
     Homepage:            http://www.pgadmin.org/
     Description:         wxWidgets GUI for PostgreSQL.


ksv@DragonGentoo ~/Projects/_DB_ $ emerge --info
Portage 2.1.2.9 (default-linux/amd64/2007.0, gcc-4.1.2, glibc-2.5-r4, 2.6.20-gentoo-r8 x86_64)
=================================================================
System uname: 2.6.20-gentoo-r8 x86_64 AMD Athlon(tm) 64 X2 Dual Core Processor 4600+
Gentoo Base System release 1.12.9
Timestamp of tree: Wed, 18 Jul 2007 15:20:01 +0000
ccache version 2.4 [enabled]
dev-java/java-config: 1.3.7, 2.0.33-r1
dev-lang/python:     2.4.4-r4
dev-python/pycrypto: 2.0.1-r5
dev-util/ccache:     2.4-r7
sys-apps/sandbox:    1.2.17
sys-devel/autoconf:  2.13, 2.61
sys-devel/automake:  1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6-r2, 1.10
sys-devel/binutils:  2.17
sys-devel/gcc-config: 1.3.16
sys-devel/libtool:   1.5.23b
virtual/os-headers:  2.6.21
ACCEPT_KEYWORDS="amd64"
AUTOCLEAN="yes"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-O2 -march=k8 -pipe -msse3"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/kde/3.5/env /usr/kde/3.5/share/config /usr/kde/3.5/shutdown /usr/share/X11/xkb /usr/share/config"
CONFIG_PROTECT_MASK="/etc/env.d /etc/env.d/java/ /etc/gconf /etc/revdep-rebuild /etc/splash /etc/terminfo"
CXXFLAGS="-O2 -march=k8 -pipe -msse3"
DISTDIR="/mnt/nfs_portage/distfiles"
FEATURES="ccache confcache distlocks metadata-transfer parallel-fetch sandbox sfperms splitdebug strict userfetch"
GENTOO_MIRRORS="http://distro.ibiblio.org/pub/linux/distributions/gentoo/ http://public.planetmirror.com/pub/gentoo/ "
LINGUAS="en ru ua"
MAKEOPTS="-j3"
PKGDIR="/mnt/nfs_portage/packages"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --delete-after --stats --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages --filter=H_**/files/digest-*"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/mnt/nfs_portage"
PORTDIR_OVERLAY="/usr/portage/local/layman/enlightenment"
SYNC="rsync://rsync.au.gentoo.org/gentoo-portage"
USE="3dnow 3dnowext 7zip X a52 aac acc acl acpi alsa amd64 avi berkdb bitmap-fonts cdparanoia cli cracklib crypt cups dri dts dvd dvdread fax fortran gdbm gnome gphoto2 gpm gtk howl iconv ipv6 isdnlog ithreads jpeg libg++ live matroska midi mmx mmxext mono mozdevelop mpeg mudflap ncurses nls nptl nptlonly nvidia oggvorbis opengl openmp oss pam pcre pdf perl png pppd python qt readline reflection samba scanner sdl session slang snmp spl sse sse2 ssl svg symlink tcpd theora tiff truetype truetype-fonts type1-fonts unicode usb x264 xanim xinerama xorg xv xvid zlib" ALSA_CARDS="hda-intel" ALSA_PCM_PLUGINS="adpcm alaw asym copy dmix dshare dsnoop empty extplug file hooks iec958 ioplug ladspa lfloat linear meter mulaw multi null plug rate route share shm softvol" ELIBC="glibc" INPUT_DEVICES="keyboard mouse" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="en ru ua" USERLAND="GNU" VIDEO_CARDS="vesa fbdev nvidea vmware"
Unset:  CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LANG, LC_ALL, LDFLAGS, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS
Comment 3 David Pufer 2007-10-24 08:09:41 UTC
The new version of pgadmin3 is available - 1.8.0 which fixes crash when deleting record containing boolean. We need to wait to wxWidgets(wxGTK) > 2.8 to get into portage to compile new pgadmin3 version.
Comment 4 Tiziano Müller (RETIRED) gentoo-dev 2008-06-14 12:03:09 UTC
Ok, pgadmin3-1.8.2 is in the tree and on the way being marked stable.
Closing. Thanks!