Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 192954 - Qt-4.3.1-r1 program crashes when opening files.
Summary: Qt-4.3.1-r1 program crashes when opening files.
Status: RESOLVED CANTFIX
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Development (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Qt Bug Alias
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2007-09-18 18:39 UTC by gunix
Modified: 2009-03-27 20:43 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 gunix 2007-09-18 18:39:01 UTC
I have these two files

test_project.pro
------------------------
TEMPLATE =      app
LANGUAGE =      C++

OBJECTS_DIR =   ./build
MOC_DIR =       ./build
DESTDIR =       ./

CONFIG  +=      qt warn_on release thread

SOURCES +=      main.cpp\
-------------------
and
main.cpp
------------------------

#include <QApplication>
#include <QFileDialog>
#include <QMessageBox>

int main(int argc, char *argv[])
{
    QApplication app(argc, argv);

    QString fname = QFileDialog::getOpenFileName(0, QString("Open file"), "");
    QMessageBox::information(0,"test","You selected file: "+fname);
    return 0;
} 
-------------------------

Can it be any simpler? 
it compiles with 
qmake && make && ./test_project

and running it crashes! I see nothing, just  segmentation fault.

Any ideas?

emerge info

 emerge --info
Portage 2.1.3.9 (default-linux/x86/2007.0, gcc-4.1.2, glibc-2.5-r4, 2.6.22.1 i686)
=================================================================
System uname: 2.6.22.1 i686 AMD Athlon(tm) XP 2600+
Timestamp of tree: Tue, 18 Sep 2007 16:00:01 +0000
ccache version 2.4 [enabled]
app-shells/bash:     3.2_p17
dev-java/java-config: 1.3.7, 2.0.33-r1
dev-lang/python:     2.3.5-r3, 2.4.4-r4
dev-python/pycrypto: 2.0.1-r6
dev-util/ccache:     2.4-r7
sys-apps/baselayout: 1.12.10-r4
sys-apps/sandbox:    1.2.17
sys-devel/autoconf:  2.13, 2.61-r1
sys-devel/automake:  1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6-r2, 1.10
sys-devel/binutils:  2.17-r1
sys-devel/gcc-config: 1.3.16
sys-devel/libtool:   1.5.24
virtual/os-headers:  2.6.21
ACCEPT_KEYWORDS="x86"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-O3 -march=athlon-xp -pipe -finline-functions -mmmx -m3dnow -msse"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/kde/3.5/env /usr/kde/3.5/share/config /usr/kde/3.5/shutdown /usr/share/X11/app-defaults /usr/share/X11/xkb /usr/share/config"
CONFIG_PROTECT_MASK="/etc/env.d /etc/env.d/java/ /etc/fonts/fonts.conf /etc/gconf /etc/php/apache2-php5/ext-active/ /etc/php/cgi-php5/ext-active/ /etc/php/cli-php5/ext-active/ /etc/revdep-rebuild /etc/terminfo /etc/texmf/web2c"
CXXFLAGS="-O3 -march=athlon-xp -pipe -finline-functions -mmmx -m3dnow -msse"
DISTDIR="/usr/portage/distfiles"
FEATURES="ccache distlocks metadata-transfer sandbox sfperms strict unmerge-orphans userfetch"
GENTOO_MIRRORS="http://trumpetti.atm.tut.fi/gentoo/ http://ds.thn.htu.se/linux/gentoo http://ftp.easynet.nl/mirror/gentoo/"
LINGUAS="en sv"
MAKEOPTS="-j2"
PKGDIR="/usr/portage/packages"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --delete-after --stats --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages --filter=H_**/files/digest-*"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="3dnow X Xaw3d accessibility acl acpi adns alsa apache2 apm arts atlas avi berkdb bindist bitmap-fonts cdparanoia cdr cli cracklib crypt cscope cups curl dga djvu doc dri dvd encode ethereal evo f77 fam fastcgi fb flac foomaticdb fortran gcj gd gdbm ggi gif ginac gphoto2 gpm guile iconv icq imagemagick imap imlib innodb ipv6 isdnlog java jpeg junit kde lcms lesstif libg++ libgda libwww mad maildir mbox mcal midi mikmod mmx motif mozilla mpeg mpi msn mudflap ncurses nls nptl nptlonly odbc oggvorbis opengl openmp oscar pam pcre pdflib perl plotutils png ppds pppd python qt quicktime readline real reflection ruby sasl scanner sdl session slang spell spl sse ssl svg svga tcltk tcpd tetex theora tiff truetype truetype-fonts type1-fonts unicode v4l v4l2 videos vmf x86 xml xml2 xorg xv zlib" ALSA_CARDS="ali5451 als4000 atiixp atiixp-modem bt87x ca0106 cmipci emu10k1 emu10k1x ens1370 ens1371 es1938 es1968 fm801 hda-intel intel8x0 intel8x0m maestro3 trident usb-audio via82xx via82xx-modem ymfpci" ALSA_PCM_PLUGINS="adpcm alaw asym copy dmix dshare dsnoop empty extplug file hooks iec958 ioplug ladspa lfloat linear meter mulaw multi null plug rate route share shm softvol" CAMERAS="canon ptp2" ELIBC="glibc" INPUT_DEVICES="keyboard mouse" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="en sv" USERLAND="GNU" VIDEO_CARDS="nvidia vesa"
Unset:  CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LANG, LC_ALL, LDFLAGS, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS


I use Qt 4.3.1-r1. Not even Qt from trolltech them selves worked (vanilla install, no gentoo stuff), so something is seriously wrong. Please, what can be wrong?

Reproducible: Always
Comment 1 Caleb Tennis (RETIRED) gentoo-dev 2007-09-19 16:16:34 UTC
Try installing gdb, run your program in the debugger, and get a backtrace.  That will show why the seg fault is happening.
Comment 2 Caleb Tennis (RETIRED) gentoo-dev 2007-09-19 16:18:40 UTC
BTW, your program compiles and runs just fine with me, and I'm using Qt-4.3.1-r1 on my system.  I'd say it's a local issue.  Using gdb is your only hope here, I'm afraid.
Comment 3 gunix 2007-09-19 21:57:31 UTC
I did 
gdb test_project  
to run it and got this result:

Starting program: /tmp/test_project
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
[Thread debugging using libthread_db enabled]
[New Thread -1224898896 (LWP 7750)]
[New Thread -1228182640 (LWP 7753)]
[New Thread -1236575344 (LWP 7754)]
*** glibc detected *** /tmp/test_project: double free or corruption (!prev): 0x08117700 ***
======= Backtrace: =========
/lib/libc.so.6[0xb71c3d72]
/lib/libc.so.6(__libc_free+0x87)[0xb71c53e7]
/usr/lib/gcc/i686-pc-linux-gnu/4.1.2/libstdc++.so.6(_ZdlPv+0x21)[0xb7365d61]
/usr/lib/gcc/i686-pc-linux-gnu/4.1.2/libstdc++.so.6(_ZdaPv+0x1d)[0xb7365dbd]
/usr/lib/qt4/libQtCore.so.4[0xb74a2b76]
/usr/lib/qt4/libQtCore.so.4[0xb749c768]
/usr/lib/qt4/libQtCore.so.4[0xb745ae82]
/usr/lib/qt4/libQtCore.so.4(_ZN12QDirIterator4nextEv+0x5b)[0xb745b3ab]
/usr/lib/qt4/libQtGui.so.4[0xb7cb64cb]
/usr/lib/qt4/libQtGui.so.4[0xb7cb6d7f]
/usr/lib/qt4/libQtCore.so.4[0xb740c442]
/lib/libpthread.so.0[0xb73a34ab]
/lib/libc.so.6(__clone+0x5e)[0xb721cf0e]
======= Memory map: ========
08048000-08049000 r-xp 00000000 03:41 886117     /tmp/test_project
08049000-0804a000 rw-p 00000000 03:41 886117     /tmp/test_project
0804a000-081b6000 rw-p 0804a000 00:00 0          [heap]
b5b00000-b5b21000 rw-p b5b00000 00:00 0
b5b21000-b5c00000 ---p b5b21000 00:00 0
b5cb5000-b5cb6000 ---p b5cb5000 00:00 0
b5cb6000-b64b6000 rw-p b5cb6000 00:00 0
b64b6000-b64b7000 ---p b64b6000 00:00 0
b64b7000-b6cb7000 rw-p b64b7000 00:00 0
b6cb7000-b6d0b000 r-xp 00000000 03:41 4375668    /usr/lib/libtiff.so.3.8.2
b6d0b000-b6d0d000 rw-p 00054000 03:41 4375668    /usr/lib/libtiff.so.3.8.2
b6d37000-b6d9d000 r-xp 00000000 03:41 2378096    /usr/lib/qt4/libQtXml.so.4.3.1
b6d9d000-b6d9f000 rw-p 00066000 03:41 2378096    /usr/lib/qt4/libQtXml.so.4.3.1
b6d9f000-b6def000 r-xp 00000000 03:41 2379411    /usr/lib/qt4/libQtSvg.so.4.3.1
b6def000-b6df1000 rw-p 0004f000 03:41 2379411    /usr/lib/qt4/libQtSvg.so.4.3.1
b6df1000-b6e3e000 r-xp 00000000 03:41 2379673    /usr/lib/qt4/plugins/imageformats/libqmng.so
b6e3e000-b6e40000 rw-p 0004d000 03:41 2379673    /usr/lib/qt4/plugins/imageformats/libqmng.so
b6e40000-b6e64000 r-xp 00000000 03:41 2116823    /usr/lib/libjpeg.so.62.0.0
b6e64000-b6e65000 rw-p 00023000 03:41 2116823    /usr/lib/libjpeg.so.62.0.0
b6e79000-b6e8a000 r--p 00000000 03:41 442998     /usr/share/fonts/ttf-bitstream-vera/Vera.ttf
b6e8a000-b6e8e000 r-xp 00000000 03:41 2379675    /usr/lib/qt4/plugins/imageformats/libqtiff.so
b6e8e000-b6e8f000 rw-p 00003000 03:41 2379675    /usr/lib/qt4/plugins/imageformats/libqtiff.so
b6e8f000-b6e98000 r-xp 00000000 03:41 2379671    /usr/lib/qt4/plugins/imageformats/libqjpeg.so
b6e98000-b6e99000 rw-p 00008000 03:41 2379671    /usr/lib/qt4/plugins/imageformats/libqjpeg.so
b6e99000-b6e9e000 r-xp 00000000 03:41 2379672    /usr/lib/qt4/plugins/imageformats/libqgif.so
b6e9e000-b6e9f000 rw-p 00005000 03:41 2379672    /usr/lib/qt4/plugins/imageformats/libqgif.so
b6e9f000-b6ea6000 r--s 00000000 03:41 2720195    /var/cache/fontconfig/87f5e051180a7a75f16eb6fe7dbd3749-x86.cache-2
b6ea6000-b6ea9000 r--s 00000000 03:41 2720222    /var/cache/fontconfig/7998293451e4b7352c3495b870377734-x86.cache-2
b6ea9000-b6eaf000 r--s 00000000 03:41 2720219    /var/cache/fontconfig/acc285bc1956c3c4bc7afb41d537a85a-x86.cache-2
b6eaf000-b6eb1000 r--s 00000000 03:41 2720218    /var/cache/fontconfig/f55bbeb01d684dc5b5f7b2c347cc42d9-x86.cache-2
b6eb1000-b6eb3000 r--s 00000000 03:41 2720216    /var/cache/fontconfig/76fa4b957c916922374347f144bde9da-x86.cache-2
b6eb3000-b6eb8000 r--s 00000000 03:41 2720212    /var/cache/fontconfig/4460665c0f3e88acdd4c85aa2f409b99-x86.cache-2
b6eb8000-b6ebc000 r--s 00000000 03:41 2720211    /var/cache/fontconfig/6355034d6588d5dc08dee953d4caf3fd-x86.cache-2
b6ebc000-b6eca000 r--s 00000000 03:41 2720209    /var/cache/fontconfig/8d4af663993b81a124ee82e610bb31f9-x86.cache-2
b6eca000-b6ed6000 r--s 00000000 03:41 2720206    /var/cache/fontconfig/58318e6f46dd29577ed1e1d8fbe753bf-x86.cache-2
b6ed6000-b6ef4000 r--s 00000000 03:41 2720205    /var/cache/fontconfig/25e0aa14c68cecf4ab53db3a88a7a060-x86.cache-2
b6ef4000-b6ef6000 r--s 00000000 03:41 2720202    /var/cache/fontconfig/9080285a363f2ec8b505181342116a40-x86.cache-2
b6ef6000-b6efc000 r--s 00000000 03:41 2720201    /var/cache/fontconfig/8aebfea517ddc5bac4fe1b3be6ae9ddc-x86.cache-2
b6efc000-b6f08000 r--s 00000000 03:41 2720200    /var/cache/fontconfig/221fd1126b80b777db535aea535e87ba-x86.cache-2
b6f08000-b6f19000 r--s 00000000 03:41 2720196    /var/cache/fontconfig/ca6eb598bc8b0a6c66f53b9753bda408-x86.cache-2
b6f19000-b6f5f000 r--s 00000000 03:41 1393112    /var/cache/fontconfig/17090aa38d5c6f09fb8c5c354938f1
Program received signal SIGABRT, Aborted.
[Switching to Thread -1228182640 (LWP 7753)]
0xb7f78410 in __kernel_vsyscall ()
(gdb)



Any ideas? I'm not good at using gdb or understanding it.
Comment 4 Caleb Tennis (RETIRED) gentoo-dev 2007-09-19 22:39:57 UTC
add debug to your CONFIG line in your .pro file and rebuild your program.

Then when you run it in gdb, and get to the prompt, do "bt" to get a backtrace of the error.
Comment 5 Caleb Tennis (RETIRED) gentoo-dev 2007-09-19 22:42:46 UTC
You may need to rebuild Qt with the debug use flag also to get any useful information.

Your cflags might be causing some issues as well.  There may be something wrong with the Qt compilation with your particular cflags.  You might try rebuilding Qt with barebones cflags to see if that fixes your issue.
Comment 6 gunix 2007-09-20 05:20:27 UTC
Thanks for your gdb suggestion: here is the output I go (see below)
I will as soon as possible rebuild Qt with debug flag and post result.

(gdb) run
Starting program: /tmp/test_project
[Thread debugging using libthread_db enabled]
[New Thread -1224550736 (LWP 5992)]
[New Thread -1227834480 (LWP 5995)]
[New Thread -1236227184 (LWP 5996)]
*** glibc detected *** /tmp/test_project: double free or corruption (!prev): 0x08117700 ***
======= Backtrace: =========
/lib/libc.so.6[0xb7218d72]
/lib/libc.so.6(__libc_free+0x87)[0xb721a3e7]
/usr/lib/gcc/i686-pc-linux-gnu/4.1.2/libstdc++.so.6(_ZdlPv+0x21)[0xb73bad61]
/usr/lib/gcc/i686-pc-linux-gnu/4.1.2/libstdc++.so.6(_ZdaPv+0x1d)[0xb73badbd]
/usr/lib/qt4/libQtCore.so.4[0xb74f7b76]
/usr/lib/qt4/libQtCore.so.4[0xb74f1768]
/usr/lib/qt4/libQtCore.so.4[0xb74afe82]
/usr/lib/qt4/libQtCore.so.4(_ZN12QDirIterator4nextEv+0x5b)[0xb74b03ab]
/usr/lib/qt4/libQtGui.so.4[0xb7d0b4cb]
/usr/lib/qt4/libQtGui.so.4[0xb7d0bd7f]
/usr/lib/qt4/libQtCore.so.4[0xb7461442]
/lib/libpthread.so.0[0xb73f84ab]
/lib/libc.so.6(__clone+0x5e)[0xb7271f0e]
======= Memory map: ========
08048000-08049000 r-xp 00000000 03:41 886243     /tmp/test_project
08049000-0804a000 rw-p 00001000 03:41 886243     /tmp/test_project
0804a000-081d4000 rw-p 0804a000 00:00 0          [heap]
b5c00000-b5c54000 rw-p b5c00000 00:00 0
b5c54000-b5d00000 ---p b5c54000 00:00 0
b5d0a000-b5d0b000 ---p b5d0a000 00:00 0
b5d0b000-b650b000 rw-p b5d0b000 00:00 0
b650b000-b650c000 ---p b650b000 00:00 0
b650c000-b6d0c000 rw-p b650c000 00:00 0
b6d0c000-b6d60000 r-xp 00000000 03:41 4375668    /usr/lib/libtiff.so.3.8.2
b6d60000-b6d62000 rw-p 00054000 03:41 4375668    /usr/lib/libtiff.so.3.8.2
b6d8c000-b6df2000 r-xp 00000000 03:41 2378096    /usr/lib/qt4/libQtXml.so.4.3.1
b6df2000-b6df4000 rw-p 00066000 03:41 2378096    /usr/lib/qt4/libQtXml.so.4.3.1
b6df4000-b6e44000 r-xp 00000000 03:41 2379411    /usr/lib/qt4/libQtSvg.so.4.3.1
b6e44000-b6e46000 rw-p 0004f000 03:41 2379411    /usr/lib/qt4/libQtSvg.so.4.3.1
b6e46000-b6e93000 r-xp 00000000 03:41 2379673    /usr/lib/qt4/plugins/imageformats/libqmng.so
b6e93000-b6e95000 rw-p 0004d000 03:41 2379673    /usr/lib/qt4/plugins/imageformats/libqmng.so
b6e95000-b6eb9000 r-xp 00000000 03:41 2116823    /usr/lib/libjpeg.so.62.0.0
b6eb9000-b6eba000 rw-p 00023000 03:41 2116823    /usr/lib/libjpeg.so.62.0.0
b6ebf000-b6ece000 r--p 00000000 03:41 443069     /usr/share/fonts/ttf-bitstream-vera/VeraBd.ttf
b6ece000-b6edf000 r--p 00000000 03:41 442998     /usr/share/fonts/ttf-bitstream-vera/Vera.ttf
b6edf000-b6ee3000 r-xp 00000000 03:41 2379675    /usr/lib/qt4/plugins/imageformats/libqtiff.so
b6ee3000-b6ee4000 rw-p 00003000 03:41 2379675    /usr/lib/qt4/plugins/imageformats/libqtiff.so
b6ee4000-b6eed000 r-xp 00000000 03:41 2379671    /usr/lib/qt4/plugins/imageformats/libqjpeg.so
b6eed000-b6eee000 rw-p 00008000 03:41 2379671    /usr/lib/qt4/plugins/imageformats/libqjpeg.so
b6eee000-b6ef3000 r-xp 00000000 03:41 2379672    /usr/lib/qt4/plugins/imageformats/libqgif.so
b6ef3000-b6ef4000 rw-p 00005000 03:41 2379672    /usr/lib/qt4/plugins/imageformats/libqgif.so
b6ef4000-b6efb000 r--s 00000000 03:41 2720195    /var/cache/fontconfig/87f5e051180a7a75f16eb6fe7dbd3749-x86.cache-2
b6efb000-b6efe000 r--s 00000000 03:41 2720222    /var/cache/fontconfig/7998293451e4b7352c3495b870377734-x86.cache-2
b6efe000-b6f04000 r--s 00000000 03:41 2720219    /var/cache/fontconfig/acc285bc1956c3c4bc7afb41d537a85a-x86.cache-2
b6f04000-b6f06000 r--s 00000000 03:41 2720218    /var/cache/fontconfig/f55bbeb01d684dc5b5f7b2c347cc42d9-x86.cache-2
b6f06000-b6f08000 r--s 00000000 03:41 2720216    /var/cache/fontconfig/76fa4b957c916922374347f144bde9da-x86.cache-2
b6f08000-b6f0d000 r--s 00000000 03:41 2720212    /var/cache/fontconfig/4460665c0f3e88acdd4c85aa2f409b99-x86.cache-2
b6f0d000-b6f11000 r--s 00000000 03:41 2720211    /var/cache/fontconfig/6355034d6588d5dc08dee953d4caf3fd-x86.cache-2
b6f11000-b6f1f000 r--s 00000000 03:41 2720209    /var/cache/fontconfig/8d4af663993b81a124ee82e610bb31f9-x86.cache-2
b6f1f000-b6f2b000 r--s 00000000 03:41 2720206    /var/cache/fontconfig/58318e6f46dd29577ed1e1d8fbe753bf-x86.cache-2
b6f2b000-b6f49000 r--s 00000000 03:41 2720205    /var/cache/fontconfig/25e0aa14c68cecf4ab53db3a88a7a060-x86.cache-2
b6f49000-b6f4b000 r--s 00000000 03:41 2720202    /var/cache/fontconfig/9080285a363f2ec8b505181342116a40-x86.cache-2
b6f4b000-b6f51000 r--s 00000000 03:41 2720201    /var/cache/fontconfig/8aebfea517ddc5bac4fe1b3b
Program received signal SIGABRT, Aborted.
[Switching to Thread -1227834480 (LWP 5995)]
0xb7fcd410 in __kernel_vsyscall ()
(gdb) bt
#0  0xb7fcd410 in __kernel_vsyscall ()
#1  0xb71de4b0 in raise () from /lib/libc.so.6
#2  0xb71dfbde in abort () from /lib/libc.so.6
#3  0xb72132d5 in ?? () from /lib/libc.so.6
#4  0x0000000e in ?? ()
#5  0xb6d0abe0 in ?? ()
#6  0x00000400 in ?? ()
#7  0xb6d0aac0 in ?? ()
#8  0xb72c3b68 in ?? () from /lib/libc.so.6
#9  0x00000017 in ?? ()
#10 0xbffdff8c in ?? ()
#11 0x00000011 in ?? ()
#12 0xb72c3b81 in ?? () from /lib/libc.so.6
#13 0x00000002 in ?? ()
#14 0xb72c3c60 in ?? () from /lib/libc.so.6
#15 0x00000021 in ?? ()
#16 0xb72c3b85 in ?? () from /lib/libc.so.6
#17 0x00000004 in ?? ()
#18 0xb6d0b117 in ?? ()
#19 0x00000008 in ?? ()
#20 0xb72c3b8b in ?? () from /lib/libc.so.6
#21 0x00000005 in ?? ()
#22 0xb6d0ab50 in ?? ()
#23 0x00000010 in ?? ()
#24 0xb5c00040 in ?? ()
#25 0x00000005 in ?? ()
#26 0x0811fc78 in ?? ()
#27 0x00000020 in ?? ()
#28 0xb72c3b8b in ?? () from /lib/libc.so.6
#29 0x00000005 in ?? ()
#30 0xb6d0ab20 in ?? ()
#31 0xb5c00710 in ?? ()
#32 0xb6d0b117 in ?? ()
#33 0x00000008 in ?? ()
#34 0xb6d0ab40 in ?? ()
#35 0xb72132b8 in ?? () from /lib/libc.so.6
#36 0xb6d0b117 in ?? ()
#37 0x00000000 in ?? ()
(gdb)
Comment 7 gunix 2007-09-20 16:08:40 UTC
Now I've added the debug flag and emerged Qt
and I've got this result

gdb test_project
GNU gdb 6.6
Copyright (C) 2006 Free Software Foundation, Inc.
GDB is free software, covered by the GNU General Public License, and you are
welcome to change it and/or distribute copies of it under certain conditions.
Type "show copying" to see the conditions.
There is absolutely no warranty for GDB.  Type "show warranty" for details.
This GDB was configured as "i686-pc-linux-gnu"...
Using host libthread_db library "/lib/libthread_db.so.1".
(gdb) run
Starting program: /tmp/test_project
[Thread debugging using libthread_db enabled]
[New Thread -1225324880 (LWP 5143)]
Qt: gdb: -nograb added to command-line options.
         Use the -dograb option to enforce grabbing.
[New Thread -1228678256 (LWP 5146)]
[New Thread -1237070960 (LWP 5147)]
*** glibc detected *** /tmp/test_project: double free or corruption (!prev): 0x0806fe20 ***
======= Backtrace: =========
/lib/libc.so.6[0xb715bd72]
/lib/libc.so.6(__libc_free+0x87)[0xb715d3e7]
/usr/lib/gcc/i686-pc-linux-gnu/4.1.2/libstdc++.so.6(_ZdlPv+0x21)[0xb72fdd61]
/usr/lib/gcc/i686-pc-linux-gnu/4.1.2/libstdc++.so.6(_ZdaPv+0x1d)[0xb72fddbd]
/usr/lib/qt4/libQtCore.so.4[0xb744a8f6]
/usr/lib/qt4/libQtCore.so.4[0xb74440e8]
/usr/lib/qt4/libQtCore.so.4[0xb73fc4ee]
/usr/lib/qt4/libQtCore.so.4(_ZN12QDirIterator4nextEv+0x5b)[0xb73fde1b]
/usr/lib/qt4/libQtGui.so.4[0xb7cb11fb]
/usr/lib/qt4/libQtGui.so.4[0xb7cb1b5a]
/usr/lib/qt4/libQtCore.so.4[0xb73a4f22]
/lib/libpthread.so.0[0xb733b4ab]
/lib/libc.so.6(__clone+0x5e)[0xb71b4f0e]
======= Memory map: ========
08048000-08049000 r-xp 00000000 03:41 886251     /tmp/test_project
08049000-0804a000 rw-p 00001000 03:41 886251     /tmp/test_project
0804a000-081e7000 rw-p 0804a000 00:00 0          [heap]
b5b00000-b5b21000 rw-p b5b00000 00:00 0
b5b21000-b5c00000 ---p b5b21000 00:00 0
b5c3c000-b5c3d000 ---p b5c3c000 00:00 0
b5c3d000-b643d000 rw-p b5c3d000 00:00 0
b643d000-b643e000 ---p b643d000 00:00 0
b643e000-b6c3e000 rw-p b643e000 00:00 0
b6c3e000-b6c92000 r-xp 00000000 03:41 4375668    /usr/lib/libtiff.so.3.8.2
b6c92000-b6c94000 rw-p 00054000 03:41 4375668    /usr/lib/libtiff.so.3.8.2
b6cbe000-b6d2b000 r-xp 00000000 03:41 263994     /usr/lib/qt4/libQtXml.so.4.3.1
b6d2b000-b6d2d000 rw-p 0006d000 03:41 263994     /usr/lib/qt4/libQtXml.so.4.3.1
b6d2d000-b6d80000 r-xp 00000000 03:41 264162     /usr/lib/qt4/libQtSvg.so.4.3.1
b6d80000-b6d82000 rw-p 00053000 03:41 264162     /usr/lib/qt4/libQtSvg.so.4.3.1
b6d82000-b6dcf000 r-xp 00000000 03:41 459950     /usr/lib/qt4/plugins/imageformats/libqmng.so
b6dcf000-b6dd1000 rw-p 0004d000 03:41 459950     /usr/lib/qt4/plugins/imageformats/libqmng.so
b6dd1000-b6df5000 r-xp 00000000 03:41 2116823    /usr/lib/libjpeg.so.62.0.0
b6df5000-b6df6000 rw-p 00023000 03:41 2116823    /usr/lib/libjpeg.so.62.0.0
b6dfb000-b6e0a000 r--p 00000000 03:41 443069     /usr/share/fonts/ttf-bitstream-vera/VeraBd.ttf
b6e0a000-b6e1b000 r--p 00000000 03:41 442998     /usr/share/fonts/ttf-bitstream-vera/Vera.ttf
b6e1b000-b6e1f000 r-xp 00000000 03:41 459952     /usr/lib/qt4/plugins/imageformats/libqtiff.so
b6e1f000-b6e20000 rw-p 00003000 03:41 459952     /usr/lib/qt4/plugins/imageformats/libqtiff.so
b6e20000-b6e29000 r-xp 00000000 03:41 459935     /usr/lib/qt4/plugins/imageformats/libqjpeg.so
b6e29000-b6e2a000 rw-p 00008000 03:41 459935     /usr/lib/qt4/plugins/imageformats/libqjpeg.so
b6e2a000-b6e2f000 r-xp 00000000 03:41 459936     /usr/lib/qt4/plugins/imageformats/libqgif.so
b6e2f000-b6e30000 rw-p 00005000 03:41 459936     /usr/lib/qt4/plugins/imageformats/libqgif.so
b6e30000-b6e36000 r-xp 00000000 03:41 492066     /usr/lib/qt4/plugins/inputmethods/libqimsw-multi.so
b6e36000-b6e37000 rw-p 00005000 03:41 492066     /usr/lib/qt4/plugins/inputmethods/libqimsw-multi.so
b6e37000-b6e3e000 r--s 00000000 03:41 2720195    /var/cache/fontconfig/87f5e051180a7a75f16eb6fe7dbd3749-x86.cache-2
b6e3e000-b6e41000 r--s 00000000 03:41 2720222    /var/cache/fontconfig/7998293451e4b7352c3495b870377734-x86.cache-2
b6e41000-b6e47000 r--s 00000000 03:41 2720219    /var/cache/fontconfig/acc285bc1956c3c4bc7afb41d537a85a-x86.cache-2
b6e47000-b6e49000 r--s 00000000 03:41 2720218    /var/cache/fontconfig/f55bbeb01d684dc5b5f7b2c347cc42d9-x86.cache-2
b6e49000-b6e4b000 r--s 00000000 03:41 2720216    /var/cache/fontconfig/76fa4b957c916922374347f144bde9da-x86.cache-2
b6e4b000-b6e50000 r--s 00000000 03:41 2720212    /var/cache/fontconfig/4460665c0f3e88acdd4c85aa2f409b99-x86.cache-2
b6e50000-b6e54000 r--s 00000000 03:41 2720211    /var/cache/fontconfig/6355034d6588d5dc08dee953d4caf3fd-x86.cache-2
b6e54000-b6e62000 r--s 00000000 03:41 2720209    /var/cache/fontconfig/8d4af663993b81a124ee82e610bb31f9-x86.cache-2
b6e62000-b6e6e000 r--s 00000000 03:41 2720206    /var/cache/fontconfig/58318e6f46dd29577ed1e1d8fbe753bf-x86.cache-2
b6e6e000-b6e8c000 r--s 00000000 03:41 2720205    /var/cache/fontconfig/25e0aa14c68cecf4ab53db3a88a7a060-x86.cache-2
b6e8c000-b6e8e000 r--s 00000000 03:41 2720202    /var/cache/fontconfig/9080285a363f2ec8b505181342116a40-x86.cache-2
b6e8e000-b6e94000 r--s 00000000 03:41 2720201    /var/cache/fontconfig/8aebfea517ddc5bac4fe1b3be6ae9ddc-x86.cache-2
b6e94000-b6ea0000 r--s 00000000 03:41 2720200    /var/cache/fontconfig/221fd1126b80b777db535aea535e87ba-x86.cache-2
b6ea0000-b6eb1000 r--s 00000000 03:41 2720196    /var/cache/fontconfig/ca6eb598bc8b0a6c66f53b9753bda408-x86.cache-2
b6eb1000-b6ef7000 r--s 00000000 03:41 1393112    /var/cache/fontconfig/17090aa38d5c6f09fb8c5c354938f1d7-x86.cache-2
b6ef7000-b6f3d000 r--s 00000000 03:41 1393111    /var/cache/fontconfig/df311e82a1a24c41a75c2c930223552e-x86.cache-2
b6f3d000-b6f70000 r--p 00000000 03:41 3998965    /usr/lib/locale/sv_SE/LC_CTYPE
b6f70000-b6f72000 rw-p b6f70000 00:00 0
b6f72000-b6f76000 r-xp 00000000 03:41 2151513    /usr/lib/libXdmcp.so.6.0.0
b6f76000-b6f77000 rw-p 00003000 03:41 2151513    /usr/lib/libXdmcp.so.6.0.0
b6f77000-b6f78000 rw-p b6f77000 00:00 0
b6f78000-b6f7a000 r-xp 00000000 03:41 2151441    /usr/lib/libXau.so.6.0.0
b6f7a000-b6f7b000 rw-p 00001000 03:41 2151441    /usr/lib/libXau.so.6.0.0
b6f7b000-b70f3000 r-xp 00000000 03:41 4834044    /usr/lib/libxml2.so.2.6.28
b70f3000-b70f8000 rw-p 00178000 03:41 4834044    /usr/lib/libxml2.so.2.6.28
b70f8000-b70f9000 rw-p b70f8000 00:00 0
b70f9000-b7219000 r-xp 00000000 03:41 950975     /lib/libc-2.5.so
b7219000-b721a000 r--p 00120000 03:41 950975     /lib/libc-2.5.so
b721a000-b721c000 rw-p 00121000 03:41 950975     /lib/libc-2.5.so
b721c000-b721f000 rw-p b721c000 00:00 0
b721f000-b7229000 r-xp 00000000 03:41 3277530    /usr/lib/gcc/i686-pc-linux-gnu/4.1.2/libgcc_s.so.1
b7229000-b722a000 rw-p 00009000 03:41 3277530    /usr/lib/gcc/i686-pc-linux-gnu/4.1.2/libgcc_s.so.1
b722a000-b724d000 r-xp 00000000 03:41 952171     /lib/libm-2.5.so
b724d000-b724f000 rw-p 00022000 03:41 952171     /lib/libm-2.5.so
b724f000-b7250000 rw-p b724f000 00:00 0
b7250000-b7327000 r-xp 00000000 03:41 3277502    /usr/lib/gcc/i686-pc-linux-gnu/4.1.2/libstdc++.so.6.0.8
b7327000-b732a000 r--p 000d7000 03:41 3277502    /usr/lib/gcc/i686-pc-linux-gnu/4.1.2/libstdc++.so.6.0.8
b732a000-b732c000 rw-p 000da000 03:41 3277502    /usr/lib/gcc/i686-pc-linux-gnu/4.1.2/libstdc++.so.6.0.8
b732c000-b7332000 rw-p b732c000 00:00 0
b7332000-b7334000 r-xp 00000000 03:41 951073     /lib/libdl-2.5.so
b7334000-b7336000 rw-p 00001000 03:41 951073     /lib/libdl-2.5.so
b7336000-b7349000 r-xp 00000000 03:41 952266     /lib/libpthread-2.5.so
b7349000-b734a000 r--p 00012000 03:41 952266     /lib/libpthread-2.5.so
b734a000-b734b000 rw-p 00013000 03:41 952266     /lib/libpthread-2.5.so
b734b000-b734d000 rw-p b734b000 00:00 0
b734d000-b7354000 r-xp 00000000 03:41 952271     /lib/librt-2.5.so
b7354000-b7356000 rw-p 00006000 03:41 952271     /lib/librt-2.5.so
b7356000-b7369000 r-xp 00000000 03:41 2134794    /lib/libz.so.1.2.3
b7369000-b736a000 rw-p 00012000 03:41 2134794    /lib/libz.so.1.2.3
b736a000-b7514000 r-xp 00000000 03:41 264304     /usr/lib/qt4/libQtCore.so.4.3.1
b7514000-b751a000 rw-p 001aa000 03:41 264304     /usr/lib/qt4/libQtCore.so.4.3.1
b751a000-b751c000 rw-p b751a000 00:00 0
b751c000-b7614000 r-xp 00000000 03:41 3179229    /usr/lib/libX11.so.6.2.0
b7614000-b7618000 rw-p 000f7000 03:41 3179229    /usr/lib/libX11.so.6.2.0
b7618000-b7627000 r-xp 00000000 03:41 2152007    /usr/lib/libXext.so.6.4.0
b7627000-b7628000 rw-p 0000f000 03:41 2152007    /usr/lib/libXext.so.6.4.0
b7628000-b7653000 r-xp 00000000 03:41 4243693    /usr/lib/libfontconfig.so.1.2.0
b7653000-b765b000 rw-p 0002b000 03:41 4243693    /usr/lib/libfontconfig.so.1.2.0
b765b000-b76e6000 r-xp 00000000 03:41 346559     /usr/lib/libfreetype.so.6.3.16
b76e6000-b76ea000 rw-p 0008a000 03:41 346559     /usr/lib/libfreetype.so.6.3.16
b76ea000-b76f3000 r-xp 00000000 03:41 2133209    /usr/lib/libXcursor.so.1.0.2
b76f3000-b76f4000 rw-p 00009000 03:41 2133209    /usr/lib/libXcursor.so.1.0.2
b76f4000-b76f8000 r-xp 00000000 03:41 33082      /usr/lib/libXfixes.so.3.1.0
b76f8000-b76f9000 rw-p 00003000 03:41 33082      /usr/lib/libXfixes.so.3.1.0
b76f9000-b76fa000 rw-p b76f9000 00:00 0
b76fa000-b76ff000 r-xp 00000000 03:41 2147715    /usr/lib/libXrandr.so.2.1.0
b76ff000-b7700000 rw-p 00005000 03:41 2147715    /usr/lib/libXrandr.so.2.1.0
b7700000-b7707000 r-xp 00000000 03:41 2151464    /usr/lib/libXrender.so.1.3.0
b7707000-b7708000 rw-p 00006000 03:41 2151464    /usr/lib/libXrender.so.1.3.0
b7708000-b771d000 r-xp 00000000 03:41 2151423    /usr/lib/libICE.so.6.3.0
b771d000-b771e000 rw-p 00014000 03:41 2151423    /usr/lib/libICE.so.6.3.0
b771e000-b7720000 rw-p b771e000 00:00 0
b7720000-b7728000 r-xp 00000000 03:41 459217     /usr/lib/libSM.so.6.0.0
b7728000-b7729000 rw-p 00007000 03:41 459217     /usr/lib/libSM.so.6.0.0
b7729000-b774b000 r-xp 00000000 03:41 234145     /usr/lib/libpng12.so.0.18.0
b774b000-b774c000 rw-p 00021000 03:41 234145     /usr/lib/libpng12.so.0.18.0
b774c000-b7f46000 r-xp 00000000 03:41 264017     /usr/lib/qt4/libQtGui.so.4.3.1
b7f46000-b7f67000 rw-p 007fa000 03:41 264017     /usr/lib/qt4/libQtGui.so.4.3.1
b7f67000-b7f69000 rw-p b7f67000 00:00 0
b7f6a000-b7f6d000 r-xp 00000000 03:41 459951     /usr/lib/qt4/plugins/imageformats/libqsvg.so
b7f6d000-b7f6e000 rw-p 00003000 03:41 459951     /usr/lib/qt4/plugins/imageformats/libqsvg.so
b7f6e000-b7f7a000 r--s 00000000 03:41 2720161    /var/cache/fontconfig/4b5cf4386f1cde02a336ba961b4ac82d-x86.cache-2
b7f7a000-b7f81000 r--s 00000000 03:41 2719884    /var/cache/fontconfig/f73c51d6200a78c2054c26a5b2398976-x86.cache-2
b7f81000-b7f85000 r--s 00000000 03:41 2719843    /var/cache/fontconfig/d62e99ef547d1d24cdb1bd22ec1a2976-x86.cache-2
b7f85000-b7f86000 r-xp 00000000 03:41 1723245    /usr/lib/gconv/ISO8859-1.so
b7f86000-b7f88000 rw-p 00001000 03:41 1723245    /usr/lib/gconv/ISO8859-1.so
b7f88000-b7f8a000 r-xp 00000000 03:41 1723510    /usr/lib/gconv/UTF-16.so
b7f8a000-b7f8c000 rw-p 00001000 03:41 1723510    /usr/lib/gconv/UTF-16.so
b7f8c000-b7f93000 r--s 00000000 03:41 3261280    /usr/lib/gconv/gconv-modules.cache
b7f93000-b7f94000 r-xp b7f93000 00:00 0          [vdso]
b7f94000-b7fae000 r-xp 00000000 03:41 952291     /lib/ld-2.5.so
b7fae000-b7faf000 r--p 00019000 03:41 952291     /lib/ld-2.5.so
b7faf000-b7fb0000 rw-p 0001a000 03:41 952291     /lib/ld-2.5.so
bf8c6000-bf8dc000 rw-p bf8c6000 00:00 0          [stack]

Program received signal SIGABRT, Aborted.
[Switching to Thread -1228678256 (LWP 5146)]
0xb7f93410 in __kernel_vsyscall ()
(gdb) bt
#0  0xb7f93410 in __kernel_vsyscall ()
#1  0xb71214b0 in raise () from /lib/libc.so.6
#2  0xb7122bde in abort () from /lib/libc.so.6
#3  0xb71562d5 in ?? () from /lib/libc.so.6
#4  0x00000011 in ?? ()
#5  0xb6c3cbe0 in ?? ()
#6  0x00000400 in ?? ()
#7  0xb6c3cac0 in ?? ()
#8  0xb7206b68 in ?? () from /lib/libc.so.6
#9  0x00000017 in ?? ()
#10 0xbf8daf8c in ?? ()
#11 0x00000011 in ?? ()
#12 0xb7206b81 in ?? () from /lib/libc.so.6
#13 0x00000002 in ?? ()
#14 0xb7206c60 in ?? () from /lib/libc.so.6
#15 0x00000021 in ?? ()
#16 0xb7206b85 in ?? () from /lib/libc.so.6
#17 0x00000004 in ?? ()
#18 0xb6c3d117 in ?? ()
#19 0x00000008 in ?? ()
#20 0xb7206b8b in ?? () from /lib/libc.so.6
#21 0x00000005 in ?? ()
#22 0xb6c3cb50 in ?? ()
#23 0x00000020 in ?? ()
#24 0xb721c150 in ?? () from /lib/libc.so.6
#25 0x00000005 in ?? ()
#26 0x0814e770 in ?? ()
#27 0x00000020 in ?? ()
#28 0xb7206b8b in ?? () from /lib/libc.so.6
#29 0x00000005 in ?? ()
#30 0xb6c3cb20 in ?? ()
#31 0x081471e8 in ?? ()
#32 0xb6c3d117 in ?? ()
#33 0x00000008 in ?? ()
#34 0xb6c3cb40 in ?? ()
#35 0xb71562b8 in ?? () from /lib/libc.so.6
#36 0xb6c3d117 in ?? ()
#37 0x00000000 in ?? ()
(gdb)

Any ideas?
Comment 8 Caleb Tennis (RETIRED) gentoo-dev 2007-09-20 16:10:57 UTC
sorry, I don't see anything more useful here.  I woudl recommend you try commenting out some lines of your program to see if there's a specific line that's causing the problem.  I also recommend you take this to forums.gentoo.org, where more people can be of much more help.
Comment 9 Ben de Groot (RETIRED) gentoo-dev 2009-03-27 20:43:11 UTC
version no longer in portage