Thread: pgadmin3 - Crash on renaming

pgadmin3 - Crash on renaming

From
Thangalin
Date:
Hi,<br /><br />Note that pgadmin3 -v or pgadmin3 --version should show the version number; double clicking on the About
dialogshould allow selection of the text. ;-)<br /><br />Using:<br /><ul><li> pgadmin3 1.16.1 (built Dec 16, 2012, rev:
REL-1_16_1)<li>Linuxjaguar 2.6.35-30-generic #54-Ubuntu SMP Tue Jun 7 18:41:54 UTC 2011 x86_64 GNU/Linux<li>Kubuntu
10.10\n \l<br /></ul><b>Replicate</b><br />To reproduce the bug:<br /><ol><li>pgadmin3<li>Expand Server Groups >>
Servers>> server_name >> Databases >> database_name >> Schemas >> schema_name >>
Tables<li>Right-clicka table (e.g., <b>old_table</b>) that has a primary key with a sequence (e.g.,
bigserial)<li>SelectProperties<li>Set the name to: <b>new_table</b><li>Press Enter (do not click OK) to accept the new
name<li>ExpandSequences<li>Right-click on the old table's sequence (e.g., <b>old_table_id_seq</b>)<li>Select
Properties<li>Setthe name to: <b>new_table_id_seq</b><li>Press Enter (do not click OK) to accept the new
name</ol><b>ExpectedResults</b><br />pgadmin3 merrily continues allowing database changes, and the rename succeeds.<br
/><br/><b>Actual Results</b><br />pgadmin3 disappears, but the rename succeeds.<br /><br />*** glibc detected ***
pgadmin3:malloc(): smallbin double linked list corrupted: 0x0000000002d64fb0 ***<br /> ======= Backtrace: =========<br
/>/lib/libc.so.6(+0x774b6)[0x7f1883c084b6]<br/>/lib/libc.so.6(+0x7b781)[0x7f1883c0c781]<br
/>/lib/libc.so.6(__libc_malloc+0x6e)[0x7f1883c0d38e]<br/>/usr/lib/libxcb.so.1(+0xb412)[0x7f187c7d5412]<br />
/usr/lib/libxcb.so.1(+0x936d)[0x7f187c7d336d]<br/>/usr/lib/libxcb.so.1(+0x9837)[0x7f187c7d3837]<br
/>/usr/lib/libxcb.so.1(xcb_writev+0x55)[0x7f187c7d3ae5]<br/>/usr/lib/libX11.so.6(_XSend+0x17a)[0x7f187e2327ba]<br
/>/usr/lib/libX11.so.6(_XSetClipRectangles+0x16e)[0x7f187e223d9e]<br/>
/usr/lib/libX11.so.6(XSetClipRectangles+0x53)[0x7f187e223e93]<br
/>/usr/lib/libgdk-x11-2.0.so.0(+0x5dde2)[0x7f18828d3de2]<br/>/usr/lib/libgdk-x11-2.0.so.0(+0x59216)[0x7f18828cf216]<br
/>/usr/lib/libgdk-x11-2.0.so.0(gdk_draw_rectangle+0x125)[0x7f1882899495]<br/>
/usr/lib/libgdk-x11-2.0.so.0(+0x3cec9)[0x7f18828b2ec9]<br
/>/usr/lib/libgdk-x11-2.0.so.0(gdk_draw_rectangle+0x125)[0x7f1882899495]<br
/>/usr/lib/libwx_gtk2u_core-2.8.so.0(_ZN10wxWindowDC15DoDrawRectangleEiiii+0x59a)[0x7f18859d596a]<br/>
/usr/lib/libwx_gtk2u_aui-2.8.so.0(_ZN12wxAuiManager8OnRenderER17wxAuiManagerEvent+0x128)[0x7f188665c858]<br
/>/usr/lib/libwx_baseu-2.8.so.0(_ZN12wxEvtHandler21ProcessEventIfMatchesERK21wxEventTableEntryBasePS_R7wxEvent+0x50)[0x7f1885166310]<br
/>/usr/lib/libwx_baseu-2.8.so.0(_ZN16wxEventHashTable11HandleEventER7wxEventP12wxEvtHandler+0xa4)[0x7f18851672d4]<br
/>/usr/lib/libwx_baseu-2.8.so.0(_ZN12wxEvtHandler12ProcessEventER7wxEvent+0xc7)[0x7f18851673b7]<br
/>/usr/lib/libwx_gtk2u_aui-2.8.so.0(_ZN12wxAuiManager6RenderEP4wxDC+0x6b)[0x7f188665de3b]<br/>
/usr/lib/libwx_gtk2u_aui-2.8.so.0(_ZN12wxAuiManager7RepaintEP4wxDC+0x60)[0x7f188665dee0]<br
/>/usr/lib/libwx_gtk2u_aui-2.8.so.0(_ZN12wxAuiManager7OnPaintER12wxPaintEvent+0x2b)[0x7f188665e0ab]<br
/>/usr/lib/libwx_baseu-2.8.so.0(_ZN12wxEvtHandler21ProcessEventIfMatchesERK21wxEventTableEntryBasePS_R7wxEvent+0x50)[0x7f1885166310]<br
/>/usr/lib/libwx_baseu-2.8.so.0(_ZN16wxEventHashTable11HandleEventER7wxEventP12wxEvtHandler+0xa4)[0x7f18851672d4]<br
/>/usr/lib/libwx_baseu-2.8.so.0(_ZN12wxEvtHandler12ProcessEventER7wxEvent+0xc7)[0x7f18851673b7]                                                                  
<br/> /usr/lib/libwx_gtk2u_core-2.8.so.0(_ZN8wxWindow18GtkSendPaintEventsEv+0x1c5)[0x7f18859f0f05]<br
/>/usr/lib/libwx_gtk2u_core-2.8.so.0(+0x1e5408)[0x7f18859f1408]<br
/>/usr/lib/libgtk-x11-2.0.so.0(+0x13a9d8)[0x7f1882c5f9d8]<br
/>/usr/lib/libgobject-2.0.so.0(g_closure_invoke+0x15e)[0x7f188139ea6e]<br/>
/usr/lib/libgobject-2.0.so.0(+0x24de7)[0x7f18813b4de7]<br
/>/usr/lib/libgobject-2.0.so.0(g_signal_emit_valist+0x62b)[0x7f18813b60eb]<br
/>/usr/lib/libgobject-2.0.so.0(g_signal_emit+0x83)[0x7f18813b6863]<br
/>/usr/lib/libgtk-x11-2.0.so.0(+0x2536df)[0x7f1882d786df]<br/>
/usr/lib/libgtk-x11-2.0.so.0(gtk_main_do_event+0x556)[0x7f1882c591b6]<br
/>/usr/lib/libgdk-x11-2.0.so.0(+0x439da)[0x7f18828b99da]<br/>/usr/lib/libgdk-x11-2.0.so.0(+0x43987)[0x7f18828b9987]<br
/>=======Memory map: ========<br /> 00400000-00c2d000 r-xp 00000000 08:12 131531                            
/usr/local/bin/pgadmin3<br/>00e2d000-00e2f000 r--p 0082d000 08:12 131531                            
/usr/local/bin/pgadmin3<br/>00e2f000-00efa000 rw-p 0082f000 08:12 131531                            
/usr/local/bin/pgadmin3<br/> 00efa000-00f4b000 rw-p 00000000 00:00 0 <br />02054000-03047000 rw-p 00000000 00:00
0                                 [heap]<br />7f1854000000-7f1854021000 rw-p 00000000 00:00 0 <br
/>7f1854021000-7f1858000000---p 00000000 00:00 0 <br /> 7f185a6bd000-7f185a6da000 r--s 00000000 08:12
261921                    /usr/share/mime/mime.cache<br />7f185a6da000-7f185a6dc000 r-xp 00000000 08:12
1305977                   /lib/<a href="http://libutil-2.12.1.so">libutil-2.12.1.so</a><br /> 7f185a6dc000-7f185a8db000
---p00002000 08:12 1305977                    /lib/<a href="http://libutil-2.12.1.so">libutil-2.12.1.so</a><br
/>7f185a8db000-7f185a8dc000r--p 00001000 08:12 1305977                    /lib/<a
href="http://libutil-2.12.1.so">libutil-2.12.1.so</a><br/> 7f185a8dc000-7f185a8dd000 rw-p 00002000 08:12
1305977                   /lib/<a href="http://libutil-2.12.1.so">libutil-2.12.1.so</a><br />7f185a8dd000-7f185a8e8000
r-xp00000000 08:12 1305747                    /lib/libudev.so.0.9.1<br /> 7f185a8e8000-7f185aae8000 ---p 0000b000 08:12
1305747                   /lib/libudev.so.0.9.1<br />7f185aae8000-7f185aae9000 r--p 0000b000 08:12
1305747                   /lib/libudev.so.0.9.1<br />7f185aae9000-7f185aaea000 rw-p 0000c000 08:12
1305747                   /lib/libudev.so.0.9.1<br /> 7f185aaea000-7f185ab2a000 r-xp 00000000 08:12
1305751                   /lib/libdbus-1.so.3.5.2<br />7f185ab2a000-7f185ad2a000 ---p 00040000 08:12
1305751                   /lib/libdbus-1.so.3.5.2<br />7f185ad2a000-7f185ad2b000 r--p 00040000 08:12
1305751                   /lib/libdbus-1.so.3.5.2<br /> 7f185ad2b000-7f185ad2c000 rw-p 00041000 08:12
1305751                   /lib/libdbus-1.so.3.5.2<br />7f185ad2c000-7f185ad42000 r-xp 00000000 08:12
7486                      /usr/lib/libgvfscommon.so.0.0.0<br />7f185ad42000-7f185af42000 ---p 00016000 08:12
7486                      /usr/lib/libgvfscommon.so.0.0.0<br /> 7f185af42000-7f185af43000 r--p 00016000 08:12
7486                      /usr/lib/libgvfscommon.so.0.0.0<br />7f185af43000-7f185af44000 rw-p 00017000 08:12
7486                      /usr/lib/libgvfscommon.so.0.0.0<br />7f185af44000-7f185af6c000 r-xp 00000000 08:12
7498                      /usr/lib/gio/modules/libgvfsdbus.so<br /> 7f185af6c000-7f185b16c000 ---p 00028000 08:12
7498                      /usr/lib/gio/modules/libgvfsdbus.so<br />7f185b16c000-7f185b16d000 r--p 00028000 08:12
7498                      /usr/lib/gio/modules/libgvfsdbus.so<br /> 7f185b16d000-7f185b16e000 rw-p 00029000 08:12
7498                      /usr/lib/gio/modules/libgvfsdbus.so<br />7f185b16e000-7f185b6e1000 r--p 00000000 08:12
262522                    /usr/local/share/icons/hicolor/icon-theme.cache<br /> 7f185b6e1000-7f185c84d000 r--p 00000000
08:12790579                     /usr/share/icons/hicolor/icon-theme.cache<br />7f185c84d000-7f185d9b9000 r--p 00000000
08:12790579                     /usr/share/icons/hicolor/icon-theme.cache<br /> 7f185d9b9000-7f18646d4000 r--p 00000000
08:12832575                     /usr/share/icons/oxygen/icon-theme.cache<br />7f18646d4000-7f186b3ef000 r--p 00000000
08:12832575                     /usr/share/icons/oxygen/icon-theme.cache<br /> 7f186b3ef000-7f187210a000 r--p 00000000
08:12832575                     /usr/share/icons/oxygen/icon-theme.cache<br />7f187210a000-7f1878e25000 r--p 00000000
08:12832575                     /usr/share/icons/oxygen/icon-theme.cache<br /> 7f1878e25000-7f1878ec0000 r--p 00000000
08:12401431                     /usr/share/fonts/truetype/ttf-dejavu/DejaVuSans.ttf<br />7f1878ec0000-7f1878f0f000 r--p
0000000008:12 401439                     /usr/share/fonts/truetype/ttf-dejavu/DejaVuSansMono.ttf<br />
7f1878f0f000-7f1878f61000r--p 00000000 08:12 525096                    
/usr/share/fonts/truetype/ubuntu-font-family/Ubuntu-B.ttf<br/>7f1878f61000-7f1878fc1000 rw-s 00000000 00:04
669483012                 /SYSV00000000 (deleted)<br /> 7f1878fc1000-7f1878fc7000 r-xp 00000000 08:12
3981                      /usr/lib/gdk-pixbuf-2.0/2.10.0/loaders/libpixbufloader-xpm.so<br />7f1878fc7000-7f18791c6000
---p00006000 08:12 3981                       /usr/lib/gdk-pixbuf-2.0/2.10.0/loaders/libpixbufloader-xpm.soAborted<br
/><br/><br /> 

Re: pgadmin3 - Crash on renaming

From
Guillaume Lelarge
Date:
On Sun, 2012-12-23 at 16:13 -0800, Thangalin wrote:
> Hi,
> 
> Note that pgadmin3 -v or pgadmin3 --version should show the version number;
> double clicking on the About dialog should allow selection of the text. ;-)
> 

I agree that we should have better command line options, and
-v/--version should be there. On the About dialog, it would be nice to
have.

> Using:
> 
>    -  pgadmin3 1.16.1 (built Dec 16, 2012, rev: REL-1_16_1)
>    - Linux jaguar 2.6.35-30-generic #54-Ubuntu SMP Tue Jun 7 18:41:54 UTC
>    2011 x86_64 GNU/Linux
>    - Kubuntu 10.10 \n \l
> 
> *Replicate*
> To reproduce the bug:
> 
>    1. pgadmin3
>    2. Expand Server Groups >> Servers >> server_name >> Databases >>
>    database_name >> Schemas >> schema_name >> Tables
>    3. Right-click a table (e.g., *old_table*) that has a primary key with a
>    sequence (e.g., bigserial)
>    4. Select Properties
>    5. Set the name to: *new_table*
>    6. Press Enter (do not click OK) to accept the new name
>    7. Expand Sequences
>    8. Right-click on the old table's sequence (e.g., *old_table_id_seq*)
>    9. Select Properties
>    10. Set the name to: *new_table_id_seq*
>    11. Press Enter (do not click OK) to accept the new name
> 
> *Expected Results*
> pgadmin3 merrily continues allowing database changes, and the rename
> succeeds.
> 
> *Actual Results*
> pgadmin3 disappears, but the rename succeeds.
> 

I don't reproduce the bug. I get the "Expected Results".


-- 
Guillaume
http://blog.guillaume.lelarge.info
http://www.dalibo.com




Re: pgadmin3 - Crash on renaming

From
Guillaume Lelarge
Date:
On Mon, 2012-12-24 at 09:59 +0100, Guillaume Lelarge wrote:
> On Sun, 2012-12-23 at 16:13 -0800, Thangalin wrote:
> > Hi,
> > 
> > Note that pgadmin3 -v or pgadmin3 --version should show the version number;
> > double clicking on the About dialog should allow selection of the text. ;-)
> > 
> 
> I agree that we should have better command line options, and
> -v/--version should be there. On the About dialog, it would be nice to
> have.
> 

Done.


-- 
Guillaume
http://blog.guillaume.lelarge.info
http://www.dalibo.com