Re: Pgadmin git version crash with "alt+f4" - Mailing list pgadmin-support

From Philippe Rimbault
Subject Re: Pgadmin git version crash with "alt+f4"
Date
Msg-id 4C989CCC.2060409@edd.fr
Whole thread Raw
In response to Re: Pgadmin git version crash with "alt+f4"  (Guillaume Lelarge <guillaume@lelarge.info>)
Responses Re: Pgadmin git version crash with "alt+f4"  (Guillaume Lelarge <guillaume@lelarge.info>)
List pgadmin-support
I'have just compiled pgadmin with debug option.<br /> Version of wxwidgets is 2.8.10.<br /><br /> Here you will find
everthingi've done ton compile and exectue (/home/pri/bin/pgadmin3 is a link to /opt/pgadmin/bin/pgadmin3).<br /> If
youneed other "traces", i'm OK.<br /> (Thank for your work on pgadmin and the french translation of the postgresql
doc)<br/><br /><br /><blockquote>pri@rimbault:~/pgadmin3$ git pull<br /> Already up-to-date.<br />
pri@rimbault:~/pgadmin3$./configure --prefix=/opt/pgadmin --enable-debug<br /> [...]<br /> PostgreSQL
directory:                  /usr/local/pgsql<br /> PostgreSQL pg_config binary:           
/usr/local/pgsql/bin/pg_config<br/> PostgreSQL version:                     PostgreSQL 9.0.0<br /><br /> PostgreSQL
PQconninfoParsesupport:     Present<br /> PostgreSQL SSL support:                 Missing<br /><br /> wxWidgets
directory:                   /usr<br /> wxWidgets wx-config binary:             /usr/bin/wx-config<br /> wxWidgets
version:                     wxWidgets 2.8.10<br /><br /> libxml2 directory:                      /usr<br /> libxml2
xml2-configbinary:             /usr/bin/xml2-config<br /> libxml2 version:                        libxml2 2.7.7<br
/><br/> libxslt directory:                      /usr<br /> libxslt xslt-config binary:            
/usr/bin/xslt-config<br/> libxslt version:                        libxslt 1.1.26<br /><br /> Building a debug version
ofpgAdmin:    Yes<br /> Statically linking pgAdmin:             No<br /> Building a Mac OS X appbundle:          No<br
/><br/> pgAdmin configuration is now complete. You can now compile and<br /> install pgAdmin using 'make; make
install'.<br/><br /> pri@rimbault:~/pgadmin3$ make && sudo make install<br /><br /> pri@rimbault:~/pgadmin3$
gdbpgadmin3<br /> GNU gdb (GDB) 7.0.1-debian<br /> Copyright (C) 2009 Free Software Foundation, Inc.<br /> License
GPLv3+:GNU GPL version 3 or later <a class="moz-txt-link-rfc2396E"
href="http://gnu.org/licenses/gpl.html"><http://gnu.org/licenses/gpl.html></a><br/> This is free software: you
arefree to change and redistribute it.<br /> There is NO WARRANTY, to the extent permitted by law.  Type "show
copying"<br/> and "show warranty" for details.<br /> This GDB was configured as "i486-linux-gnu".<br /> For bug
reportinginstructions, please see:<br /><a class="moz-txt-link-rfc2396E"
href="http://www.gnu.org/software/gdb/bugs/"><http://www.gnu.org/software/gdb/bugs/></a>...<br/> Reading symbols
from/home/pri/bin/pgadmin3...(no debugging symbols found)...done.<br /> (gdb) run<br /> Starting program:
/home/pri/bin/pgadmin3<br/> [Thread debugging using libthread_db enabled]<br /><br /> Program received signal SIGSEGV,
Segmentationfault.<br /> 0x08465a10 in gqbView::updateModelSize(gqbQueryObject*, bool) ()<br /> (gdb)<br
/></blockquote><br/><br /> The end :)<br /><br /> Philippe<br /><br /> On 21/09/2010 13:43, Guillaume Lelarge wrote:
<blockquotecite="mid:4C989A58.6070102@lelarge.info" type="cite"><pre wrap="">Le 21/09/2010 13:27, Vladimir Koković a
écrit: </pre><blockquote type="cite"><pre wrap="">On Tue, 21 Sep 2010 13:12:11 +0200, Guillaume Lelarge
 
<a class="moz-txt-link-rfc2396E" href="mailto:guillaume@lelarge.info"><guillaume@lelarge.info></a> wrote:
   </pre><blockquote type="cite"><pre wrap="">Hi Philippe,

Le 21/09/2010 12:33, Philippe Rimbault a écrit :     </pre><blockquote type="cite"><pre wrap="">[...]
When issuing an "alt+f4" on the query window, pgadmin crash.
Closing the query hith "ctrl+w" work fine (and also with
"file"->"close").
I'm using the last git version under Debian testing (2.6.32-5-686).

Last strace messages :
poll([{fd=5, events=POLLIN|POLLOUT}], 1, -1) = 1 ([{fd=5,
revents=POLLOUT}])
writev(5,
[{"\24\0\6\0\242\t\340\2r\2\0\0\0\0\0\0\0\0\0\0\377\377\377\37", 24},
{NULL, 0}, {"", 0}], 3) = 24
poll([{fd=5, events=POLLIN}], 1, -1)    = 1 ([{fd=5, revents=POLLIN}])
read(5, "\1
E~\t\0\0\0\4\0\0\0\0\0\0\0\t\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0"..., 4096)
= 68
read(5, 0xa62c168, 4096)                = -1 EAGAIN (Resource
temporarily unavailable)
--- SIGSEGV (Segmentation fault) @ 0 (0) ---
+++ killed by SIGSEGV +++
       </pre></blockquote><pre wrap="">
I don't have the issue here. I tried on 1.12 and 1.13, everything worked
fine. Did you do something on the query window?
     </pre></blockquote><pre wrap="">
When issuing an "alt+f4" on the query window, pgadmin crash !!!   </pre></blockquote><pre wrap="">
Well, yeah, I already know that. It just doesn't happen on my laptop. I
recompile all pgAdmin 1.12 and still don't have any crash.
 </pre><blockquote type="cite"><pre
wrap="">------------------------------------------------------------------------------

root@vlada-desktop:/tmp# gdb /usr/local/pgadmin3-debug/bin/pgadmin3
GNU gdb (GDB) 7.1-ubuntu
Copyright (C) 2010 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later
<a class="moz-txt-link-rfc2396E" href="http://gnu.org/licenses/gpl.html"><http://gnu.org/licenses/gpl.html></a>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.  Type "show copying"
and "show warranty" for details.
This GDB was configured as "i486-linux-gnu".
For bug reporting instructions, please see:
<a class="moz-txt-link-rfc2396E"
href="http://www.gnu.org/software/gdb/bugs/"><http://www.gnu.org/software/gdb/bugs/></a>...
Reading symbols from /usr/local/pgadmin3-debug/bin/pgadmin3...done.
(gdb) run
Starting program: /usr/local/pgadmin3-debug/bin/pgadmin3
[Thread debugging using libthread_db enabled]

Program received signal SIGSEGV, Segmentation fault.
0x00000000 in ?? ()
(gdb) bt
#0  0x00000000 in ?? ()
#1  0xb7e40e1f in wxStyledTextCtrl::SendMsg (this=0x90c2ef8, msg=2006,
wp=0, lp=0) at ../../../../contrib/src/stc/stc.cpp:199
#2  0xb7e40fc5 in wxStyledTextCtrl::GetLength (this=0x90c2ef8) at
../../../../contrib/src/stc/stc.cpp:257
#3  0x0822f38c in frmQuery::updateMenu (this=0x906d800, obj=0x90c2ef8)
at ../../pgadmin3/pgadmin/frm/frmQuery.cpp:1368   </pre></blockquote><pre wrap="">
The line it refers too is only 18 months old. Anyway, it seems more an
issue with your wxWidgets release. Which release do you use? I'm using
the last one, 2.8.11.

 </pre></blockquote><br />

pgadmin-support by date:

Previous
From: Guillaume Lelarge
Date:
Subject: Re: Pgadmin git version crash with "alt+f4"
Next
From: Thom Brown
Date:
Subject: Query history mystery box