Maximuzzzzz / myagent-im

Automatically exported from code.google.com/p/myagent-im
GNU General Public License v2.0
0 stars 0 forks source link

Segfault при запуске после обновления qt до 4.7.4 #112

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
 После недавнего обновления библиотеки qt в репозитарии debian wheezy c 4.7.3 до 4.7.4, программа стала давать Segfaultы после прохождения авторизации.

1. Запускаем программу
2. Выбираем аккаунт и авторизуемся
3. Программа сегфолтится

Перекомпиляция не помогла.

Ранее до обновления были слеующие 
компоненты

QMake version 2.01a
Using Qt version 4.7.3 in /usr/lib
KDE 4.6.5

После обновления

QMake version 2.01a
Using Qt version 4.7.4 in /usr/lib
KDE 4.6.5

Вывод valgrind

==4978== Invalid read of size 1
==4978==    at 0x4C29CF7: memmove (in 
/usr/lib/valgrind/vgpreload_memcheck-amd64-linux.so)
==4978==    by 0x6F3E6F8: QListData::remove(int) (in 
/usr/lib/libQtCore.so.4.7.4)
==4978==    by 0x6F3E9DA: QListData::erase(void**) (in 
/usr/lib/libQtCore.so.4.7.4)
==4978==    by 0x45BE1D: QList<Contact*>::erase(QList<Contact*>::iterator) 
(qlist.h:453)
==4978==    by 0x456F5D: ContactList::endUpdating() (contactlist.cpp:330)
==4978==    by 0x464E21: MRIMClientPrivate::processContactList2(QByteArray) 
(mrimclientprivate.cpp:718)
==4978==    by 0x462339: MRIMClientPrivate::processPacket(QByteArray, 
QByteArray) (mrimclientprivate.cpp:298)
==4978==    by 0x461DFF: MRIMClientPrivate::readData() 
(mrimclientprivate.cpp:265)
==4978==    by 0x503AF1: MRIMClientPrivate::qt_metacall(QMetaObject::Call, int, 
void**) (moc_mrimclientprivate.cpp:83)
==4978==    by 0x7019EB9: QMetaObject::activate(QObject*, QMetaObject const*, 
int, void**) (in /usr/lib/libQtCore.so.4.7.4)
==4978==    by 0x6C4599C: QSslSocket::qt_metacall(QMetaObject::Call, int, 
void**) (in /usr/lib/libQtNetwork.so.4.7.4)
==4978==    by 0x7019EB9: QMetaObject::activate(QObject*, QMetaObject const*, 
int, void**) (in /usr/lib/libQtCore.so.4.7.4)
==4978==  Address 0xe67bd70 is 0 bytes after a block of size 256 alloc'd
==4978==    at 0x4C27882: realloc (in 
/usr/lib/valgrind/vgpreload_memcheck-amd64-linux.so)
==4978==    by 0x6F3E295: QListData::realloc(int) (in 
/usr/lib/libQtCore.so.4.7.4)
==4978==    by 0x6F3E344: QListData::append(int) (in 
/usr/lib/libQtCore.so.4.7.4)
==4978==    by 0x45BAC3: QList<Contact*>::append(Contact* const&) (qlist.h:517)
==4978==    by 0x457E7A: ContactList::load() (contactlist.cpp:550)
==4978==    by 0x432DB7: Account::setOnlineStatus(OnlineStatus, int) 
(account.cpp:171)
==4978==    by 0x430E31: main (main.cpp:78)
==4978== 
==4978== Invalid read of size 1
==4978==    at 0x4C29CE8: memmove (in 
/usr/lib/valgrind/vgpreload_memcheck-amd64-linux.so)
==4978==    by 0x6F3E6F8: QListData::remove(int) (in 
/usr/lib/libQtCore.so.4.7.4)
==4978==    by 0x6F3E9DA: QListData::erase(void**) (in 
/usr/lib/libQtCore.so.4.7.4)
==4978==    by 0x45BE1D: QList<Contact*>::erase(QList<Contact*>::iterator) 
(qlist.h:453)
==4978==    by 0x456F5D: ContactList::endUpdating() (contactlist.cpp:330)
==4978==    by 0x464E21: MRIMClientPrivate::processContactList2(QByteArray) 
(mrimclientprivate.cpp:718)
==4978==    by 0x462339: MRIMClientPrivate::processPacket(QByteArray, 
QByteArray) (mrimclientprivate.cpp:298)
==4978==    by 0x461DFF: MRIMClientPrivate::readData() 
(mrimclientprivate.cpp:265)
==4978==    by 0x503AF1: MRIMClientPrivate::qt_metacall(QMetaObject::Call, int, 
void**) (moc_mrimclientprivate.cpp:83)
==4978==    by 0x7019EB9: QMetaObject::activate(QObject*, QMetaObject const*, 
int, void**) (in /usr/lib/libQtCore.so.4.7.4)
==4978==    by 0x6C4599C: QSslSocket::qt_metacall(QMetaObject::Call, int, 
void**) (in /usr/lib/libQtNetwork.so.4.7.4)
==4978==    by 0x7019EB9: QMetaObject::activate(QObject*, QMetaObject const*, 
int, void**) (in /usr/lib/libQtCore.so.4.7.4)
==4978==  Address 0xe67bd71 is 1 bytes after a block of size 256 alloc'd
==4978==    at 0x4C27882: realloc (in 
/usr/lib/valgrind/vgpreload_memcheck-amd64-linux.so)
==4978==    by 0x6F3E295: QListData::realloc(int) (in 
/usr/lib/libQtCore.so.4.7.4)
==4978==    by 0x6F3E344: QListData::append(int) (in 
/usr/lib/libQtCore.so.4.7.4)
==4978==    by 0x45BAC3: QList<Contact*>::append(Contact* const&) (qlist.h:517)
==4978==    by 0x457E7A: ContactList::load() (contactlist.cpp:550)
==4978==    by 0x432DB7: Account::setOnlineStatus(OnlineStatus, int) 
(account.cpp:171)
==4978==    by 0x430E31: main (main.cpp:78)
==4978== 
==4978== Invalid write of size 1
==4978==    at 0x4C29CEC: memmove (in 
/usr/lib/valgrind/vgpreload_memcheck-amd64-linux.so)
==4978==    by 0x6F3E6F8: QListData::remove(int) (in 
/usr/lib/libQtCore.so.4.7.4)
==4978==    by 0x6F3E9DA: QListData::erase(void**) (in 
/usr/lib/libQtCore.so.4.7.4)
==4978==    by 0x45BE1D: QList<Contact*>::erase(QList<Contact*>::iterator) 
(qlist.h:453)
==4978==    by 0x456F5D: ContactList::endUpdating() (contactlist.cpp:330)
==4978==    by 0x464E21: MRIMClientPrivate::processContactList2(QByteArray) 
(mrimclientprivate.cpp:718)
==4978==    by 0x462339: MRIMClientPrivate::processPacket(QByteArray, 
QByteArray) (mrimclientprivate.cpp:298)
==4978==    by 0x461DFF: MRIMClientPrivate::readData() 
(mrimclientprivate.cpp:265)
==4978==    by 0x503AF1: MRIMClientPrivate::qt_metacall(QMetaObject::Call, int, 
void**) (moc_mrimclientprivate.cpp:83)
==4978==    by 0x7019EB9: QMetaObject::activate(QObject*, QMetaObject const*, 
int, void**) (in /usr/lib/libQtCore.so.4.7.4)
==4978==    by 0x6C4599C: QSslSocket::qt_metacall(QMetaObject::Call, int, 
void**) (in /usr/lib/libQtNetwork.so.4.7.4)
==4978==    by 0x7019EB9: QMetaObject::activate(QObject*, QMetaObject const*, 
int, void**) (in /usr/lib/libQtCore.so.4.7.4)
==4978==  Address 0xe67bd70 is 0 bytes after a block of size 256 alloc'd
==4978==    at 0x4C27882: realloc (in 
/usr/lib/valgrind/vgpreload_memcheck-amd64-linux.so)
==4978==    by 0x6F3E295: QListData::realloc(int) (in 
/usr/lib/libQtCore.so.4.7.4)
==4978==    by 0x6F3E344: QListData::append(int) (in 
/usr/lib/libQtCore.so.4.7.4)
==4978==    by 0x45BAC3: QList<Contact*>::append(Contact* const&) (qlist.h:517)
==4978==    by 0x457E7A: ContactList::load() (contactlist.cpp:550)
==4978==    by 0x432DB7: Account::setOnlineStatus(OnlineStatus, int) 
(account.cpp:171)
==4978==    by 0x430E31: main (main.cpp:78)
==4978== 
==4978== 
==4978== Process terminating with default action of signal 11 (SIGSEGV)
==4978==  Bad permissions for mapped region at address 0xE99B000
==4978==    at 0x4C29CEC: memmove (in 
/usr/lib/valgrind/vgpreload_memcheck-amd64-linux.so)
==4978==    by 0x6F3E6F8: QListData::remove(int) (in 
/usr/lib/libQtCore.so.4.7.4)
==4978==    by 0x6F3E9DA: QListData::erase(void**) (in 
/usr/lib/libQtCore.so.4.7.4)
==4978==    by 0x45BE1D: QList<Contact*>::erase(QList<Contact*>::iterator) 
(qlist.h:453)
==4978==    by 0x456F5D: ContactList::endUpdating() (contactlist.cpp:330)
==4978==    by 0x464E21: MRIMClientPrivate::processContactList2(QByteArray) 
(mrimclientprivate.cpp:718)
==4978==    by 0x462339: MRIMClientPrivate::processPacket(QByteArray, 
QByteArray) (mrimclientprivate.cpp:298)
==4978==    by 0x461DFF: MRIMClientPrivate::readData() 
(mrimclientprivate.cpp:265)
==4978==    by 0x503AF1: MRIMClientPrivate::qt_metacall(QMetaObject::Call, int, 
void**) (moc_mrimclientprivate.cpp:83)
==4978==    by 0x7019EB9: QMetaObject::activate(QObject*, QMetaObject const*, 
int, void**) (in /usr/lib/libQtCore.so.4.7.4)
==4978==    by 0x6C4599C: QSslSocket::qt_metacall(QMetaObject::Call, int, 
void**) (in /usr/lib/libQtNetwork.so.4.7.4)
==4978==    by 0x7019EB9: QMetaObject::activate(QObject*, QMetaObject const*, 
int, void**) (in /usr/lib/libQtCore.so.4.7.4)
==4978== Thread 2:
==4978== Conditional jump or move depends on uninitialised value(s)
==4978==    at 0x7D5F4EE: _IO_flush_all_lockp (genops.c:842)
==4978==    by 0x7D60324: _IO_cleanup (genops.c:1010)
==4978==    by 0x7E1FC72: __libc_freeres (in /lib/x86_64-linux-gnu/libc-2.13.so)
==4978==    by 0x4A225BC: _vgnU_freeres (in 
/usr/lib/valgrind/vgpreload_core-amd64-linux.so)
==4978== 
==4978== Invalid read of size 4
==4978==    at 0x7D5F4E6: _IO_flush_all_lockp (genops.c:842)
==4978==    by 0x7D60324: _IO_cleanup (genops.c:1010)
==4978==    by 0x7E1FC72: __libc_freeres (in /lib/x86_64-linux-gnu/libc-2.13.so)
==4978==    by 0x4A225BC: _vgnU_freeres (in 
/usr/lib/valgrind/vgpreload_core-amd64-linux.so)
==4978==  Address 0xc4 is not stack'd, malloc'd or (recently) free'd
==4978== 
==4978== 
==4978== Process terminating with default action of signal 11 (SIGSEGV)
==4978==  Access not within mapped region at address 0xC4
==4978==    at 0x7D5F4E6: _IO_flush_all_lockp (genops.c:842)
==4978==    by 0x7D60324: _IO_cleanup (genops.c:1010)
==4978==    by 0x7E1FC72: __libc_freeres (in /lib/x86_64-linux-gnu/libc-2.13.so)
==4978==    by 0x4A225BC: _vgnU_freeres (in 
/usr/lib/valgrind/vgpreload_core-amd64-linux.so)
==4978==  If you believe this happened as a result of a stack
==4978==  overflow in your program's main thread (unlikely but
==4978==  possible), you can try to increase the size of the
==4978==  main thread stack using the --main-stacksize= flag.
==4978== 
==4978== HEAP SUMMARY:
==4978==     in use at exit: 18,117,628 bytes in 81,077 blocks
==4978==   total heap usage: 412,246 allocs, 331,169 frees, 83,180,052 bytes 
allocated
==4978== 
==4978== LEAK SUMMARY:
==4978==    definitely lost: 84,093 bytes in 899 blocks
==4978==    indirectly lost: 1,519,335 bytes in 2,825 blocks
==4978==      possibly lost: 318,028 bytes in 3,208 blocks
==4978==    still reachable: 16,196,172 bytes in 74,145 blocks
==4978==         suppressed: 0 bytes in 0 blocks
==4978== Rerun with --leak-check=full to see details of leaked memory
==4978== 
==4978== For counts of detected and suppressed errors, rerun with: -v
==4978== Use --track-origins=yes to see where uninitialised values come from
==4978== ERROR SUMMARY: 4052070 errors from 14 contexts (suppressed: 10 from 10)

Original issue reported on code.google.com by purvinsh...@gmail.com on 29 Jan 2012 at 12:46

GoogleCodeExporter commented 9 years ago
Данный баг для меня больше не актуален, так 
как я откатился на Debian Squeeze с Debian Wheezy. 
Возможно разрешение данного бага поможет 
другим пользователям грядущей 7

Original comment by purvinsh...@gmail.com on 1 Feb 2012 at 7:05