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

From Guillaume Lelarge
Subject Re: Pgadmin git version crash with "alt+f4"
Date
Msg-id 4C989A58.6070102@lelarge.info
Whole thread Raw
In response to Aprender PostGreSQL  (Jairo Cedeño <jairo.cedeno.adrian@gmail.com>)
Responses Re: Pgadmin git version crash with "alt+f4"
List pgadmin-support
Le 21/09/2010 13:27, Vladimir Koković a écrit :
> On Tue, 21 Sep 2010 13:12:11 +0200, Guillaume Lelarge
> <guillaume@lelarge.info> wrote:
> 
>> Hi Philippe,
>>
>> Le 21/09/2010 12:33, Philippe Rimbault a écrit :
>>> [...]
>>> 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 +++
>>>
>>
>> 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?
>>
> 
> When issuing an "alt+f4" on the query window, pgadmin crash !!!

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.

> ------------------------------------------------------------------------------
> 
> 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
> <http://gnu.org/licenses/gpl.html>
> 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:
> <http://www.gnu.org/software/gdb/bugs/>...
> 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

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.


-- 
Guillaumehttp://www.postgresql.frhttp://dalibo.com


pgadmin-support by date:

Previous
From: Philippe Rimbault
Date:
Subject: Re: Pgadmin git version crash with "alt+f4"
Next
From: Philippe Rimbault
Date:
Subject: Re: Pgadmin git version crash with "alt+f4"