Thread: Segmentation fault

Segmentation fault

From
Vasilev Max
Date:
i'm get the last wxWigets (
http://prdownloads.sourceforge.net/wxwindows/wxAll-2.5.3.tar.bz2 ) and
patch02 (
ftp://biolpc22.york.ac.uk/pub/2.5.3/wxWidgets-2.5.3-Patch02.tar.gz )

$ tar xvjf wxAll-2.5.3.tar.bz2; cd wxWidgets
$ ./configure --with-gtk --enable-gtk2 --enable-unicode --disable-shared
--enable-debug --enable-mimetype=no
$ gmake
$ su -c "gmake install"
$ cd contrib/src/stc/
$ gmake
$ su -c "gmake install"

# rpm -ivh pgadmin3-1.2.0-1.src.rpm
# cd /usr/src/packages/SPECS
# rpmbuild -ba pgadmin3.spec
# rpm -ivh /usr/src/packages/RPMS/i586/pgadmin3-1.2.0-1.i586.rpm

i'm try run pgadmin:

$ pgadmin3
QPixmap: Invalid pixmap parameters
QPainter::begin: Cannot paint null pixmap
QPainter::setPen: Will be reset by begin()
QPainter::setBrush: Will be reset by begin()
QPainter::setBrush: Will be reset by begin()
QPainter::setPen: Will be reset by begin()
QPainter::setPen: Will be reset by begin()
QPainter::setPen: Will be reset by begin()
Segmentation fault



$ uname -a
Linux localhost 2.6.8-24.10-default #1 Wed Dec 22 11:54:27 UTC 2004 i686
i686 i386 GNU/Linux

OS: SuSE Linux 9.2 Professional 32 bit

# rpm -qa | grep gtk2
gtk2-2.4.9-10
gtk2-engines-2.2.0-400
gtk2-doc-2.4.9-10
gtk2-devel-2.4.9-10
gtk2-themes-0.1-636

i'm use PostgreSQL 8.0.0





Re: Segmentation fault

From
Ian Barwick
Date:
On Mon, 24 Jan 2005 19:16:44 +0300, Vasilev Max <max@stranger-team.ru> wrote:
> i'm get the last wxWigets (
> http://prdownloads.sourceforge.net/wxwindows/wxAll-2.5.3.tar.bz2 ) and
> patch02 (
> ftp://biolpc22.york.ac.uk/pub/2.5.3/wxWidgets-2.5.3-Patch02.tar.gz )
> 
> $ tar xvjf wxAll-2.5.3.tar.bz2; cd wxWidgets
> $ ./configure --with-gtk --enable-gtk2 --enable-unicode --disable-shared
> --enable-debug --enable-mimetype=no
> $ gmake
> $ su -c "gmake install"
> $ cd contrib/src/stc/
> $ gmake
> $ su -c "gmake install"
> 
> # rpm -ivh pgadmin3-1.2.0-1.src.rpm
> # cd /usr/src/packages/SPECS
> # rpmbuild -ba pgadmin3.spec
> # rpm -ivh /usr/src/packages/RPMS/i586/pgadmin3-1.2.0-1.i586.rpm
> 
> i'm try run pgadmin:
> 
> $ pgadmin3
> QPixmap: Invalid pixmap parameters
> QPainter::begin: Cannot paint null pixmap
> QPainter::setPen: Will be reset by begin()
> QPainter::setBrush: Will be reset by begin()
> QPainter::setBrush: Will be reset by begin()
> QPainter::setPen: Will be reset by begin()
> QPainter::setPen: Will be reset by begin()
> QPainter::setPen: Will be reset by begin()
> Segmentation fault

This is the problem described here:
http://archives.postgresql.org/pgadmin-hackers/2004-12/msg00146.php

Removing the package named "gtk-qt-engine" or similar solved the problem for me.

Ian Barwick


Re: Segmentation fault

From
Vasilev Max
Date:
Ian Barwick wrote:

>On Mon, 24 Jan 2005 19:16:44 +0300, Vasilev Max <max@stranger-team.ru> wrote:
>  
>
>>Segmentation fault
>>    
>>
>
>This is the problem described here:
>http://archives.postgresql.org/pgadmin-hackers/2004-12/msg00146.php
>
>Removing the package named "gtk-qt-engine" or similar solved the problem for me.
>  
>

If i removed package gtk-qt-engine then pgadmin start correctly.
Thank you.
But,  that's not good, because other software work with this package
normally.



Re: Segmentation fault

From
Raphaël Enrici
Date:
Hi,
Vasilev Max wrote:
> Ian Barwick wrote:
> 
[snip]
>> This is the problem described here:
>> http://archives.postgresql.org/pgadmin-hackers/2004-12/msg00146.php
>>
>> Removing the package named "gtk-qt-engine" or similar solved the 
>> problem for me.
>>  
>>
> 
> If i removed package gtk-qt-engine then pgadmin start correctly.
> Thank you.
> But,  that's not good, because other software work with this package
> normally.

did you read the content of the page referenced [1] by Ian ? If not, 
take a look at it, you'll see that I had a bug [2] opened at debian.org 
which came to the conclusion it was not a pgAdmin bug but a 
gtk-qt-engine one... pgAdmin is *not* the only app crashing with this 
package. For Debian testing distribution it has been solved by a new 
upstream release... For Suse, I think your best bet is to build the new 
upstream yourself or maybe to file a bugreport for it. Note that you may 
also workaround this crash by changing your preferences for gtk-qt-engine.

@Dave,Andreas: www.pgadmin.org is down from here, maybe it would be 
worth adding this crash condition to the known bug which are not 
pgAdmin's ones on the site.

HTH,
Raphaël
[1] http://archives.postgresql.org/pgadmin-hackers/2004-12/msg00146.php
[2] http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=286436


Re: Segmentation fault

From
Andreas Pflug
Date:
Raphaël Enrici wrote:
> Hi,
> Vasilev Max wrote:
> 
>> Ian Barwick wrote:
>>
> [snip]
> 
>>> This is the problem described here:
>>> http://archives.postgresql.org/pgadmin-hackers/2004-12/msg00146.php
>>>
>>> Removing the package named "gtk-qt-engine" or similar solved the 
>>> problem for me.
>>>  
>>>
>>
>> If i removed package gtk-qt-engine then pgadmin start correctly.
>> Thank you.
>> But,  that's not good, because other software work with this package
>> normally.
> 
> 
> did you read the content of the page referenced [1] by Ian ? If not, 
> take a look at it, you'll see that I had a bug [2] opened at debian.org 
> which came to the conclusion it was not a pgAdmin bug but a 
> gtk-qt-engine one... pgAdmin is *not* the only app crashing with this 
> package. For Debian testing distribution it has been solved by a new 
> upstream release... For Suse, I think your best bet is to build the new 
> upstream yourself or maybe to file a bugreport for it. Note that you may 
> also workaround this crash by changing your preferences for gtk-qt-engine.
> 
> @Dave,Andreas: www.pgadmin.org is down from here, maybe it would be 
> worth adding this crash condition to the known bug which are not 
> pgAdmin's ones on the site.

I updated the faq accordingly.

Regards,
Andreas