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
Which qt4 program crashed? Please be more verbose...
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
You forgot to reopen...
(In reply to comment #3) > You forgot to reopen... Reopen what? I test on qtconfig(qt4) programm too.
on X.org 2.8.99.13 too...
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?
(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?
'ldd your_program_name' will show you which libraries it links against
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)
[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.
shrug - i cannot reproduce it