New user registration is currently disabled due to spam abuse / Регистрация новых пользователей в настоящее время приостановлена из-за злоупотреблений спаммерами

Segfaults/crashes with Qt 4.7.0

Report bugs here

Segfaults/crashes with Qt 4.7.0

Postby Artem S. Tashkinov » Thu Oct 28, 2010 5:31 pm

With Qt 4.7.0 GoldenDict constantly segfaults (randomly, once in 5-10 translated words):

Code: Select all
getResource: gdlookup://localhost?word=feisty&group=4294967294
scheme: gdlookup
host: localhost
>>>Sugg:  st:feisty
>>>Sugg:  st:feisty
*** glibc detected *** /usr/bin/goldendict: corrupted double-linked list: 0xb0411388 ***
====reading 52385 bytes
======= Backtrace: =========
/lib/libc.so.6(+0x6ffd1)[0xb5faafd1]
/lib/libc.so.6(+0x746cc)[0xb5faf6cc]
/lib/libc.so.6(realloc+0xdf)[0xb5fb0f4f]
/usr/lib/qt/lib/libQtCore.so.4(_Z8qReallocPvj+0x25)[0xb6277d55]
/usr/lib/qt/lib/libQtCore.so.4(_ZN9QListData7reallocEi+0x36)[0xb629a386]
/usr/lib/qt/lib/libQtCore.so.4(_ZN9QListData6appendEi+0x74)[0xb629a424]
/usr/lib/qt/lib/libQtCore.so.4(_ZN9QListData6appendEv+0x26)[0xb629a4a6]
/usr/lib/qt/lib/libQtCore.so.4(+0x76c8b)[0xb6295c8b]
/usr/lib/qt/lib/libQtCore.so.4(_ZNK7QRegExp13capturedTextsEv+0x117)[0xb62b5fc7]
/usr/lib/qt/lib/libQtCore.so.4(_ZNK7QRegExp3capEi+0x30)[0xb62b60f0]
/usr/lib/qt/lib/libQtCore.so.4(_ZN7QRegExp3capEi+0x31)[0xb62b6151]
/usr/bin/goldendict[0x814e594]
/usr/bin/goldendict[0x8150d6f]
/usr/lib/qt/lib/libQtCore.so.4(+0x547b7)[0xb62737b7]
/usr/lib/qt/lib/libQtCore.so.4(+0x5d3dc)[0xb627c3dc]
/lib/libpthread.so.0(+0x5f19)[0xb6208f19]
/lib/libc.so.6(clone+0x5e)[0xb6017a2e]
======= Memory map: ========
08048000-0821d000 r-xp 00000000 08:02 554715     /usr/bin/goldendict
0821d000-0821f000 rw-p 001d4000 08:02 554715     /usr/bin/goldendict
0821f000-084d7000 rw-p 00000000 00:00 0          [heap]
af500000-af600000 rw-p 00000000 00:00 0
af600000-af621000 rw-p 00000000 00:00 0
af621000-af700000 ---p 00000000 00:00 0
affcd000-b0200000 rw-s 00000000 00:04 14712836   /SYSV00000000 (deleted)
b0200000-b025c000 rw-p 00000000 00:00 0
b025c000-b0300000 ---p 00000000 00:00 0
b0300000-b0400000 rw-p 00000000 00:00 0
b0400000-b0448000 rw-p 00000000 00:00 0
b0448000-b0500000 ---p 00000000 00:00 0
b05ff000-b0600000 ---p 00000000 00:00 0
b0600000-b0e00000 rw-p 00000000 00:00 0
b0e00000-b0e49000 rw-p 00000000 00:00 0
b0e49000-b0f00000 ---p 00000000 00:00 0
b0faf000-b0fff000 r--p 00000000 08:03 563073     /usr/share/fonts/l_10646.ttf
b0fff000-b1000000 ---p 00000000 00:00 0
b1000000-b1800000 rw-p 00000000 00:00 0
b1800000-b1839000 rw-p 00000000 00:00 0
b1839000-b1900000 ---p 00000000 00:00 0
b1938000-b197e000 r--p 00000000 08:03 563155     /usr/share/fonts/arialbd.ttf
b197e000-b197f000 ---p 00000000 00:00 0
b197f000-b217f000 rw-p 00000000 00:00 0
b217f000-b2180000 ---p 00000000 00:00 0
b2180000-b2ac0000 rw-p 00000000 00:00 0
b2af0000-b2f00000 rw-p 00000000 00:00 0
b2f00000-b2fa4000 rw-p 00000000 00:00 0
b2fa4000-b3000000 ---p 00000000 00:00 0
b3018000-b301e000 r-xp 00000000 08:02 90234      /lib/libnss_dns-2.12.90.so
b301e000-b301f000 r--p 00006000 08:02 90234      /lib/libnss_dns-2.12.90.so
b301f000-b3020000 rw-p 00007000 08:02 90234      /lib/libnss_dns-2.12.90.so
b3020000-b3024000 rwxp 00000000 00:00 0
b3024000-b3044000 rw-p 00000000 00:00 0
b3044000-b3045000 r-xp 00000000 08:02 342005     /usr/lib/gconv/ISO8859-1.so
b3045000-b3046000 r--p 00001000 08:02 342005     /usr/lib/gconv/ISO8859-1.so
b3046000-b3047000 rw-p 00002000 08:02 342005     /usr/lib/gconv/ISO8859-1.so
b304b000-b3089000 r--p 00000000 08:03 563191     /usr/share/fonts/tahomabd.ttf
b3089000-b309d000 rw-p 00000000 00:00 0
b309d000-b309e000 rw-p 00000000 00:00 0
b309e000-b30c3000 r-xp 00000000 08:02 354492     /usr/lib/qt/plugins/codecs/libqtwcodecs.so
b30c3000-b30c4000 rw-p 00024000 08:02 354492     /usr/lib/qt/plugins/codecs/libqtwcodecs.so
b30c4000-b30d6000 r-xp 00000000 08:02 354494     /usr/lib/qt/plugins/codecs/libqkrcodecs.so
b30d6000-b30d7000 rw-p 00011000 08:02 354494     /usr/lib/qt/plugins/codecs/libqkrcodecs.so
b30d7000-b30ff000 r-xp 00000000 08:02 354490     /usr/lib/qt/plugins/codecs/libqjpcodecs.so
b30ff000-b3100000 rw-p 00028000 08:02 354490     /usr/lib/qt/plugins/codecs/libqjpcodecs.so
b3100000-b3300000 rw-p 00000000 00:00 0
b3300000-b3500000 rw-p 00000000 00:00 0
b3500000-b3700000 rw-p 00000000 00:00 0
b3700000-b3900000 rw-p 00000000 00:00 0
b3900000-b3b00000 rw-p 00000000 00:00 0
b3b00000-b3c00000 rw-p 00000000 00:00 0
b3c00000-b3c11000 rw-p 00000000 00:00 0
b3c11000-b3c32000 r-xp 00000000 08:02 354488     /usr/lib/qt/plugins/codecs/libqcncodecs.so
b3c32000-b3c33000 rw-p 00021000 08:02 354488     /usr/lib/qt/plugins/codecs/libqcncodecs.so
b3c33000-b3c51000 r-xp 00000000 08:02 346285     /usr/lib/qt/plugins/bearer/libqnmbearer.so
b3c51000-b3c52000 rw-p 0001e000 08:02 346285     /usr/lib/qt/plugins/bearer/libqnmbearer.so
b3c52000-b3d00000 rw-p 00000000 00:00 0
b3d00000-b3e00000 rw-p 00000000 00:00 0
b3e00000-b3e0a000 rw-p 00000000 00:00 0
b3e0a000-b3e0e000 rwxp 00000000 00:00 0
b3e0e000-b3e5c000 rw-p 00000000 00:00 0
b3e5c000-b3e5d000 ---p 00000000 00:00 0
b3e5d000-b465d000 rw-p 00000000 00:00 0
b465d000-b46bc000 r-xp 00000000 08:02 278396     /usr/lib/libtiff.so.3.9.4
b46bc000-b46be000 rw-p 0005f000 08:02 278396     /usr/lib/libtiff.so.3.9.4
b46be000-b46f3000 r-xp 00000000 08:02 278369     /usr/lib/liblcms.so.1.0.19
b46f3000-b46f5000 rw-p 00034000 08:02 278369     /usr/lib/liblcms.so.1.0.19
b46f5000-b46f7000 rw-p 00000000 00:00 0
b46f7000-b4766000 r-xp 00000000 08:02 277594     /usr/lib/libmng.so.1.0.0
b4766000-b4769000 rw-p 0006e000 08:02 277594     /usr/lib/libmng.so.1.0.0
b4769000-b476a000 rw-p 00000000 00:00 0
b476a000-b4773000 r-xp 00000000 08:02 346344     /usr/lib/qt/plugins/bearer/libqgenericbearer.so
b4773000-b4774000 rw-p 00008000 08:02 346344     /usr/lib/qt/plugins/bearer/libqgenericbearer.so
b4774000-b478d000 rw-p 00000000 00:00 0
b478d000-b47ce000 r-xp 00000000 08:02 277317     /usr/lib/libjpeg.so.62.0.0
b47ce000-b47cf000 rw-p 00040000 08:02 277317     /usr/lib/libjpeg.so.62.0.0
b47cf000-b47f3000 rw-p 00000000 00:00 0
b47f3000-b47f8000 r-xp 00000000 08:02 362545     /usr/lib/qt/plugins/imageformats/libqtiff.so
b47f8000-b47f9000 rw-p 00004000 08:02 362545     /usr/lib/qt/plugins/imageformats/libqtiff.so
b47f9000-b47fd000 r-xp 00000000 08:02 362543     /usr/lib/qt/plugins/imageformats/libqsvg.so
b47fd000-b47fe000 rw-p 00003000 08:02 362543     /usr/lib/qt/plugins/imageformats/libqsvg.so
b47fe000-b4802000 r-xp 00000000 08:02 362541     /usr/lib/qt/plugins/imageformats/libqmng.so
b4802000-b4803000 rw-p 00003000 08:02 362541     /usr/lib/qt/plugins/imageformats/libqmng.so
b4803000-b4842000 r--p 00000000 08:03 563206     /usr/share/fonts/tahoma.ttf
b4842000-b4962000 rw-p 00000000 00:00 0
b4962000-b4963000 ---p 00000000 00:00 0
b4963000-b5163000 rw-p 00000000 00:00 0
b5163000-b516e000 r-xp 00000000 08:02 90241      /lib/libnss_files-2.12.90.so
b516e000-b516f000 r--p 0000a000 08:02 90241      /lib/libnss_files-2.12.90.so
b516f000-b5170000 rw-p 0000b000 08:02 90241      /lib/libnss_files-2.12.90.so
b5170000-b51ad000 r-xp 00000000 08:02 314009     /usr/lib/qt/lib/libQtSvg.so.4.7.0
b51ad000-b51af000 rw-p 0003c000 08:02 314009     /usr/lib/qt/lib/libQtSvg.so.4.7.0
b51af000-b5257000 r-xp 00000000 08:02 642117     /usr/lib/qt/plugins/styles/qtcurve.so
b5257000-b5259000 rw-p 000a7000 08:02 642117     /usr/lib/qt/plugins/styles/qtcurve.so
b5259000-b5262000 r-xp 00000000 08:02 279289     /usr/lib/libXcursor.so.1.0.2
b5262000-b5263000 rw-p 00008000 08:02 279289     /usr/lib/libXcursor.so.1.0.2
b5263000-b5267000 r-xp 00000000 08:02 279270     /usr/lib/libXfixes.so.3.1.0
b5267000-b5268000 rw-p 00003000 08:02 279270     /usr/lib/libXfixes.so.3.1.0
b5268000-b526a000 rw-p 00000000 00:00 0
b526a000-b526f000 r-xp 00000000 08:02 362537     /usr/lib/qt/plugins/imageformats/libqjpeg.so
b526f000-b5270000 rw-p 00005000 08:02 362537     /usr/lib/qt/plugins/imageformats/libqjpeg.so
b5270000-b5275000 r-xp 00000000 08:02 362547     /usr/lib/qt/plugins/imageformats/libqico.so
b5275000-b5276000 rw-p 00004000 08:02 362547     /usr/lib/qt/plugins/imageformats/libqico.so
b5276000-b527b000 r-xp 00000000 08:02 362539     /usr/lib/qt/plugins/imageformats/libqgif.so
b527b000-b527c000 rw-p 00004000 08:02 362539     /usr/lib/qt/plugins/imageformats/libqgif.so
b527c000-b528c000 rw-p 00000000 00:00 0
b528c000-b5298000 r--s 00000000 08:02 187008     /var/cache/fontconfig/1d29cdfcaf17af21abddd7916292893f-le32d4.cache-3
b5298000-b52cf000 r--s 00000000 08:02 187003     /var/cache/fontconfig/368ba182127b6f2746c3b213d8813817-le32d4.cache-3
b52cf000-b54cf000 r--p 00000000 08:02 335649     /usr/lib/locale/locale-archive
b54cf000-b54d4000 rw-p 00000000 00:00 0
b54d4000-b54f1000 r-xp 00000000 08:02 90204      /lib/libselinux.so.1
b54f1000-b54f2000 r--p 0001c000 08:02 90204      /lib/libselinux.so.1
b54f2000-b54f3000 rw-p 0001d000 08:02 90204      /lib/libselinux.so.1
b54f3000-b54f5000 r-xp 00000000 08:02 90115      /lib/libkeyutils-1.2.so
b54f5000-b54f6000 rw-p 00001000 08:02 90115      /lib/libkeyutils-1.2.so
b54f6000-b54f7000 rw-p 00000000 00:00 0
b54f7000-b5500000 r-xp 00000000 08:02 90667      /lib/libkrb5support.so.0.1
b5500000-b5501000 rw-p 00008000 08:02 90667      /lib/libkrb5support.so.0.1
b5501000-b5666000 r-xp 00000000 08:02 277073     /usr/lib/libvorbisenc.so.2.0.7
b5666000-b5677000 rw-p 00165000 08:02 277073     /usr/lib/libvorbisenc.so.2.0.7
b5677000-b56b3000 r-xp 00000000 08:02 277334     /usr/lib/libFLAC.so.8.2.0
b56b3000-b56b4000 rw-p 0003c000 08:02 277334     /usr/lib/libFLAC.so.8.2.0
b56b4000-b56cb000 r-xp 00000000 08:02 90229      /lib/libnsl-2.12.90.so
b56cb000-b56cc000 r--p 00016000 08:02 90229      /lib/libnsl-2.12.90.so
b56cc000-b56cd000 rw-p 00017000 08:02 90229      /lib/libnsl-2.12.90.so
b56cd000-b56cf000 rw-p 00000000 00:00 0
b56cf000-b56e5000 r-xp 00000000 08:02 90263      /lib/libresolv-2.12.90.so
b56e5000-b56e6000 r--p 00015000 08:02 90263      /lib/libresolv-2.12.90.so
b56e6000-b56e7000 rw-p 00016000 08:02 90263      /lib/libresolv-2.12.90.so
b56e7000-b56ea000 rw-p 00000000 00:00 0
b56ea000-b5710000 r-xp 00000000 08:02 90140      /lib/libk5crypto.so.3.1
b5710000-b5711000 rw-p 00026000 08:02 90140      /lib/libk5crypto.so.3.1
b5711000-b5714000 r-xp 00000000 08:02 90182      /lib/libcom_err.so.2.1
b5714000-b5715000 rw-p 00002000 08:02 90182      /lib/libcom_err.so.2.1
b5715000-b57e0000 r-xp 00000000 08:02 90665      /lib/libkrb5.so.3.3
b57e0000-b57e6000 rw-p 000cb000 08:02 90665      /lib/libkrb5.so.3.3
b57e6000-b581d000 r-xp 00000000 08:02 90660      /lib/libgssapi_krb5.so.2.2
b581d000-b581e000 rw-p 00036000 08:02 90660      /lib/libgssapi_krb5.so.2.2
b581e000-b5822000 r-xp 00000000 08:02 90628      /lib/libuuid.so.1.3.0
b5822000-b5823000 rw-p 00003000 08:02 90628      /lib/libuuid.so.1.3.0
b5823000-b5824000 rw-p 00000000 00:00 0
b5824000-b584a000 r-xp 00000000 08:02 89993      /lib/libexpat.so.1.5.2
b584a000-b584c000 rw-p 00025000 08:02 89993      /lib/libexpat.so.1.5.2
b584c000-b5895000 r-xp 00000000 08:02 90174      /lib/libdbus-1.so.3.5.2
b5895000-b5896000 r--p 00048000 08:02 90174      /lib/libdbus-1.so.3.5.2
Program received signal SIGABRT, Aborted.
[Switching to Thread 0xb0dffb70 (LWP 21320)]
0xb7fdd424 in __kernel_vsyscall ()


Code: Select all
bt
#0  0xb7fdd424 in __kernel_vsyscall ()
#1  0xb5f67501 in raise () from /lib/libc.so.6
#2  0xb5f68f6e in abort () from /lib/libc.so.6
#3  0xb5fa4b7d in __libc_message () from /lib/libc.so.6
#4  0xb5faafd1 in malloc_printerr () from /lib/libc.so.6
#5  0xb5faf6cc in _int_realloc () from /lib/libc.so.6
#6  0xb5fb0f4f in realloc () from /lib/libc.so.6
#7  0xb6277d55 in qRealloc (ptr=0xb0411368, size=40) at /usr/src/qt/src/corelib/global/qmalloc.cpp:65
#8  0xb629a386 in QListData::realloc (this=0xb0209910, alloc=5) at /usr/src/qt/src/corelib/tools/qlist.cpp:221
#9  0xb629a424 in QListData::append (this=0xb0209910, n=1) at /usr/src/qt/src/corelib/tools/qlist.cpp:243
#10 0xb629a4a6 in QListData::append (this=0xb0209910) at /usr/src/qt/src/corelib/tools/qlist.cpp:253
#11 0xb6295c8b in QList<QString>::append (this=0xb0209910, t=...) at /usr/src/qt/src/corelib/tools/qlist.h:516
#12 0xb62b5fc7 in QRegExp::capturedTexts (this=0x821f1a8) at /usr/src/qt/src/corelib/tools/qregexp.cpp:4247
#13 0xb62b60f0 in QRegExp::cap (this=0x821f1a8, nth=1) at /usr/src/qt/src/corelib/tools/qregexp.cpp:4279
#14 0xb62b6151 in QRegExp::cap (this=0x821f1a8, nth=1) at /usr/src/qt/src/corelib/tools/qregexp.cpp:4287
#15 0x0814e594 in HunspellMorpho::(anonymous namespace)::HunspellHeadwordsRequest::suggest (this=0x83a9430, word=<value optimized out>) at hunspell.cc:451
#16 0x08150d6f in run (this=0x83745d8) at hunspell.cc:405
#17 HunspellMorpho::(anonymous namespace)::HunspellHeadwordsRequestRunnable::run (this=0x83745d8) at hunspell.cc:334
#18 0xb62737b7 in QThreadPoolThread::run (this=0x831cab8) at /usr/src/qt/src/corelib/concurrent/qthreadpool.cpp:106
#19 0xb627c3dc in QThreadPrivate::start (arg=0x831cab8) at /usr/src/qt/src/corelib/thread/qthread_unix.cpp:266
#20 0xb6208f19 in start_thread () from /lib/libpthread.so.0
#21 0xb6017a2e in clone () from /lib/libc.so.6
Attachments
gdb.zip
gdb information
(3.19 KiB) Downloaded 256 times
Last edited by Artem S. Tashkinov on Thu Oct 28, 2010 5:47 pm, edited 1 time in total.
Artem S. Tashkinov
 
Posts: 20
Joined: Sat Oct 23, 2010 9:54 am

Re: Segfaults/crashes with Qt 4.7.0

Postby Artem S. Tashkinov » Thu Oct 28, 2010 5:46 pm

PS I'm running the latest GIT snapshot.

Core dump can be downloaded from here.
Artem S. Tashkinov
 
Posts: 20
Joined: Sat Oct 23, 2010 9:54 am

Re: Segfaults/crashes with Qt 4.7.0

Postby ikm » Thu Oct 28, 2010 6:57 pm

What kind of dictionaries are in use? Could you try disabling them one by one until you locate the one which causes crashes?
ikm
Автор GoldenDict
 
Posts: 1595
Joined: Wed Feb 04, 2009 10:40 am

Re: Segfaults/crashes with Qt 4.7.0

Postby Artem S. Tashkinov » Thu Oct 28, 2010 7:07 pm

I'm using the same dictionaries which I used while I was running Qt 4.6.3, so I doubt it's a problem with dictionaries.

And I have 47 of them, with Forvo, so disabling them one by one will take a long of time.

And BTW Goldendict crashes even if a particular word can be found only in the LingvoUniversalER dictionary.

It doesn't crash on the same word, it crashes randomly after I translated two or more words. So, let's say it crashes on a third or a forth, etc word.
Attachments
dics.zip
Dicitonaries in use
(1.13 KiB) Downloaded 270 times
Artem S. Tashkinov
 
Posts: 20
Joined: Sat Oct 23, 2010 9:54 am

Re: Segfaults/crashes with Qt 4.7.0

Postby ikm » Thu Oct 28, 2010 8:07 pm

I'll wait for more reports on this problem to narrow it down.
ikm
Автор GoldenDict
 
Posts: 1595
Joined: Wed Feb 04, 2009 10:40 am

Re: Segfaults/crashes with Qt 4.7.0

Postby Artem S. Tashkinov » Tue Nov 02, 2010 10:46 am

The bug is really weird.

Sometimes GD crashes on one word, I restart GD, it crashes on it again, I restart GD, it crashes one more time, and on the third run it translates it.
Artem S. Tashkinov
 
Posts: 20
Joined: Sat Oct 23, 2010 9:54 am

Re: Segfaults/crashes with Qt 4.7.0

Postby Artem S. Tashkinov » Fri Nov 12, 2010 12:29 am

GD crashes with Qt 4.7.1 too :(
Artem S. Tashkinov
 
Posts: 20
Joined: Sat Oct 23, 2010 9:54 am

Re: Segfaults/crashes with Qt 4.7.0

Postby Artem S. Tashkinov » Tue Mar 01, 2011 4:43 pm

GD keeps crashing with Qt 4.7.2 too.

Funnily my system logs got filled with

Code: Select all
Mar  1 16:40:47 localhost kernel: [24988.495646] goldendict[6602]: segfault at 3 ip b56ef540 sp b107cd84 error 4 in libc-2.13.so[b5681000+183000]


every time GD crashes. There are many similar reports in the Internet, so probably I've hit some common yet unresolved bug.
Artem S. Tashkinov
 
Posts: 20
Joined: Sat Oct 23, 2010 9:54 am

Re: Segfaults/crashes with Qt 4.7.0

Postby ikm » Wed Mar 02, 2011 5:36 am

Please provide a backtrace.
ikm
Автор GoldenDict
 
Posts: 1595
Joined: Wed Feb 04, 2009 10:40 am

Re: Segfaults/crashes with Qt 4.7.0

Postby kite » Thu Mar 03, 2011 12:41 am

There is backtrace in the first post... And there you can see that problem not in Qt version, problem in hunspell.cc
I've wrote about this in Russian branch (item #1).
Artem, try to turn off morphology dictionaries or at least use only ones provided by this site.
kite
 
Posts: 18
Joined: Mon Feb 28, 2011 9:49 pm
Location: Lugans'k, Ukraine

Next

Return to Bugs

Who is online

Users browsing this forum: Bing [Bot] and 7 guests

cron