Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 97418 - qt4 programm crashed after click in LineEdit
Summary: qt4 programm crashed after click in LineEdit
Status: RESOLVED WORKSFORME
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Library (show other bugs)
Hardware: x86 Linux
: High major (vote)
Assignee: Gentoo KDE team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-06-29 13:14 UTC by Yury Zhuravlev
Modified: 2005-09-18 08:19 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 Yury Zhuravlev 2005-06-29 13:14:19 UTC
qt4 programm crashed after click in LineEdit...
I check on my programms and qtconfig,designer.

Reproducible: Always
Steps to Reproduce:
1.
2.
3.




Portage 2.0.51.19 (default-linux/x86/2005.0, gcc-3.4.4, glibc-2.3.4.20041102-r1,
2.6.12-gentoo i686)
=================================================================
System uname: 2.6.12-gentoo i686 AMD Athlon(tm) XP 2400+
Gentoo Base System version 1.4.16
Python:              dev-lang/python-2.3.5 [2.3.5 (#1, Apr 28 2005, 12:02:53)]
dev-lang/python:     2.3.5
sys-apps/sandbox:    [Not Present]
sys-devel/autoconf:  2.59-r6, 2.13
sys-devel/automake:  1.7.9-r1, 1.8.5-r3, 1.5, 1.4_p6, 1.6.3, 1.9.5
sys-devel/binutils:  2.15.92.0.2-r7
sys-devel/libtool:   1.5.16
virtual/os-headers:  2.6.8.1-r2
ACCEPT_KEYWORDS="x86"
AUTOCLEAN="yes"
CFLAGS="-O2 -march=athlon-xp -pipe -fomit-frame-pointer"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/kde/2/share/config /usr/kde/3.3/env
/usr/kde/3.3/share/config /usr/kde/3.3/shutdown /usr/kde/3.4/env
/usr/kde/3.4/share/config /usr/kde/3.4/shutdown /usr/kde/3/share/config
/usr/lib/X11/xkb /usr/share/config /var/qmail/control"
CONFIG_PROTECT_MASK="/etc/gconf /etc/rc.d /etc/terminfo /etc/wget /etc/env.d"
CXXFLAGS="-O2 -march=athlon-xp -pipe -fomit-frame-pointer"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoaddcvs autoconfig ccache distlocks sandbox sfperms strict"
GENTOO_MIRRORS="ftp://130.207.108.135/pub/gentoo"
LANG="ru_RU.KOI8-R"
LINGUAS="ru"
MAKEOPTS="-j2"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="x86 3dnow 3dnowext X aac aalib alsa apm arts athlon-xp avi berkdb
bitmap-fonts cdr crypt cups curl dshow dvd emboss encode esd fam ffmpeg flac
foomaticdb fortran freetype gdbm gif gpm gtk gtk2 guile imagemagick imlib ipv6
jack java jpeg junit kde libg++ libwww lirc mad matroska mikmod mmx mmx2 mmxext
motif mp3 mpeg mysql ncurses nls nvidia ogg oggvorbis opengl oss pam pdflib perl
png python qemu-fast qt quicktime readline real remote ruby samba sdl slang
softmmu spell sqlite sse ssl svga tcpd theora tiff truetype truetype-fonts
type1-fonts vorbis win32 win32codecs wmv x11 xine xml xml2 xmms xv zlib
linguas_ru userland_GNU kernel_linux elibc_glibc"
Unset:  ASFLAGS, CBUILD, CTARGET, LC_ALL, LDFLAGS, PORTDIR_OVERLAY
Comment 1 Jakub Moc (RETIRED) gentoo-dev 2005-06-29 14:55:00 UTC
Which qt4 program crashed? Please be more verbose... 
Comment 2 Yury Zhuravlev 2005-06-30 00:04:52 UTC
Example programm(simple text and lineedit):
#include <QApplication>
#include <QFont>
#include <QLCDNumber>
#include <QPushButton>
#include <QLineEdit>
#include <QSlider>
#include <QVBoxLayout>
#include <QWidget>

class MyWidget : public QWidget
{
    public:
        MyWidget(QWidget *parent = 0);
};

MyWidget::MyWidget(QWidget *parent)
        : QWidget(parent)
{
        QPushButton *quit = new QPushButton("Quit");
        quit->setFont(QFont("Times", 18, QFont::Bold));
	QLineEdit *edit = new QLineEdit();
        

        connect(quit, SIGNAL(clicked()), qApp, SLOT(quit()));
        

        QVBoxLayout *layout = new QVBoxLayout;
        layout->addWidget(quit);
        layout->addWidget(edit);
        setLayout(layout);
}

int main(int argc, char *argv[])
{
        QApplication app(argc, argv);
        MyWidget widget;
        widget.show();
        return app.exec();
}

//--------

>gdb qtchat 
(gdb) run
Starting program: /home/stalkerg/MyProjects/qtchat/qtchat 
[Thread debugging using libthread_db enabled]
[New Thread 16384 (LWP 20628)]

Program received signal SIGSEGV, Segmentation fault.
[Switching to Thread 16384 (LWP 20628)]
0xb78a07ea in XCreateIC () from /usr/lib/libX11.so.6


hm... i use X.org  6.8.2-r1
Comment 3 Jakub Moc (RETIRED) gentoo-dev 2005-06-30 01:18:19 UTC
You forgot to reopen...
Comment 4 Yury Zhuravlev 2005-06-30 02:07:11 UTC
(In reply to comment #3)
> You forgot to reopen...

Reopen what? I test on qtconfig(qt4) programm too.
Comment 5 Yury Zhuravlev 2005-06-30 04:02:18 UTC
on X.org 2.8.99.13 too...
Comment 6 Caleb Tennis (RETIRED) gentoo-dev 2005-06-30 06:11:18 UTC
I just compiled your program and it works just fine here.  Are you using the 
Qt4 in portage?  Are you using the latest version?  Are you sure you are 
linking against the proper Qt 4  libraries at run time? 
Comment 7 Yury Zhuravlev 2005-06-30 07:58:26 UTC
(In reply to comment #6)
> I just compiled your program and it works just fine here.  Are you using the 
> Qt4 in portage?  
Yes.
>Are you using the latest version? 
Yes!!!
> Are you sure you are 
> linking against the proper Qt 4  libraries at run time? 
yes... 
when i can view proper qt 4 lib or not?
Comment 8 Caleb Tennis (RETIRED) gentoo-dev 2005-06-30 08:11:14 UTC
'ldd your_program_name' will show you which libraries it links against 
Comment 9 Caleb Tennis (RETIRED) gentoo-dev 2005-06-30 08:14:49 UTC
Also, what command did you use to compile it? 
 
Do the demos/examples that come with qt work? (you have to use the examples USE 
flag when emerging to get them installed) 
Comment 10 Yury Zhuravlev 2005-06-30 21:16:40 UTC
[stalkerg@stalkerg]$ldd qtchat 
        linux-gate.so.1 =>  (0xffffe000)
        libQtGui.so.4 => /usr/lib/qt4/libQtGui.so.4 (0xb7a52000)
        libpng.so.3 => /usr/lib/libpng.so.3 (0xb7a20000)
        libSM.so.6 => /usr/lib/libSM.so.6 (0xb7a17000)
        libICE.so.6 => /usr/lib/libICE.so.6 (0xb79ff000)
        libXi.so.6 => /usr/lib/libXi.so.6 (0xb79f7000)
        libXrender.so.1 => /usr/lib/libXrender.so.1 (0xb79ef000)
        libXrandr.so.2 => /usr/lib/libXrandr.so.2 (0xb79eb000)
        libXcursor.so.1 => /usr/lib/libXcursor.so.1 (0xb79e1000)
        libfreetype.so.6 => /usr/lib/libfreetype.so.6 (0xb7970000)
        libfontconfig.so.1 => /usr/lib/libfontconfig.so.1 (0xb7949000)
        libXext.so.6 => /usr/lib/libXext.so.6 (0xb793a000)
        libX11.so.6 => /usr/lib/libX11.so.6 (0xb786b000)
        libQtCore.so.4 => /usr/lib/qt4/libQtCore.so.4 (0xb7726000)
        libz.so.1 => /lib/libz.so.1 (0xb7716000)
        libdl.so.2 => /lib/libdl.so.2 (0xb7712000)
        libpthread.so.0 => /lib/libpthread.so.0 (0xb76c0000)
        libstdc++.so.6 => /usr/lib/gcc/i686-pc-linux-gnu/3.4.4/libstdc++.so.6
(0xb75f2000)
        libm.so.6 => /lib/libm.so.6 (0xb75cf000)
        libgcc_s.so.1 => /usr/lib/gcc/i686-pc-linux-gnu/3.4.4/libgcc_s.so.1
(0xb75c6000)
        libc.so.6 => /lib/libc.so.6 (0xb74b0000)
        libexpat.so.0 => /usr/lib/libexpat.so.0 (0xb7490000)
        /lib/ld-linux.so.2 (0xb7fa3000)

it is good?

> Do the demos/examples that come with qt work?

No but, this bug in designer too!!!
makefile i creat qmake tools.
Comment 11 Caleb Tennis (RETIRED) gentoo-dev 2005-09-18 08:19:17 UTC
shrug - i cannot reproduce it