FS#70379 - Weird address sanitizer new-dele-type-mismatch in kde+r171 version
Attached to Project:
Arch Linux
Opened by Søren Holm (sgh) - Friday, 09 April 2021, 07:10 GMT
Last edited by Antonio Rojas (arojas) - Tuesday, 13 April 2021, 09:43 GMT
Opened by Søren Holm (sgh) - Friday, 09 April 2021, 07:10 GMT
Last edited by Antonio Rojas (arojas) - Tuesday, 13 April 2021, 09:43 GMT
|
Details
Description:
I get a crash using the newest kde+r171 version. This version works as intended. https://archive.archlinux.org/packages/q/qt5-base/qt5-base-5.15.2-5-x86_64.pkg.tar.zst ================================================================= ==8697==ERROR: AddressSanitizer: new-delete-type-mismatch on 0x603000ab03a0 in thread T0: object passed to delete has wrong type: size of the allocated type: 32 bytes; size of the deallocated type: 16 bytes. #0 0x7ffff76a2009 in operator delete(void*, unsigned long) /build/gcc/src/gcc/libsanitizer/asan/asan_new_delete.cpp:172 #1 0x7ffff3423c4d (/usr/lib/libQt5Gui.so.5+0x1a7c4d) #2 0x7ffff3424e13 (/usr/lib/libQt5Gui.so.5+0x1a8e13) #3 0x7ffff3425854 in QImageReader::autoTransform() const (/usr/lib/libQt5Gui.so.5+0x1a9854) #4 0x7ffff416bdc1 (/usr/lib/libQt5Quick.so.5+0x143dc1) #5 0x7ffff41700c4 in QQuickPixmap::load(QQmlEngine*, QUrl const&, QRect const&, QSize const&, QFlags<QQuickPixmap::Option>, QQuickImageProviderOptions const&, int, int) (/usr/lib/libQt5Quick.so.5+0x1480c4) #6 0x7ffff42cc052 in QQuickImageBase::loadPixmap(QUrl const&, QFlags<QQuickImageBase::LoadPixmapOption>) (/usr/lib/libQt5Quick.so.5+0x2a4052) #7 0x7fffed99b57e in QQmlObjectCreator::finalize(QQmlInstantiationInterrupt&) (/usr/lib/libQt5Qml.so.5+0x2de57e) #8 0x7fffed92e62c in QQmlComponentPrivate::complete(QQmlEnginePrivate, QQmlComponentPrivate::ConstructionState) (/usr/lib/libQt5Qml.so.5+0x27162c) #9 0x7fffed93094f in QQmlComponentPrivate::completeCreate() (/usr/lib/libQt5Qml.so.5+0x27394f) #10 0x7fffed930b00 in QQmlComponent::create(QQmlContext*) (/usr/lib/libQt5Qml.so.5+0x273b00) #11 0x7ffff42ebd30 in QQuickView::continueExecute() (/usr/lib/libQt5Quick.so.5+0x2c3d30) Steps to reproduce: I have no isolated testcase. |
This task depends upon
Closed by Antonio Rojas (arojas)
Tuesday, 13 April 2021, 09:43 GMT
Reason for closing: Fixed
Additional comments about closing: qt5-base 5.15.2+kde+r172
Tuesday, 13 April 2021, 09:43 GMT
Reason for closing: Fixed
Additional comments about closing: qt5-base 5.15.2+kde+r172
Comment by Antonio Rojas (arojas) -
Friday, 09 April 2021, 12:53 GMT
Comment by Søren Holm (sgh) -
Monday, 12 April 2021, 18:36 GMT
Not much we can do without a way to reproduce it. Please report it
upstream, bisecting it would be useful, and also testing with Qt6
if your application supports it.
Commit cb2da673f53815a5cfe15f50df49b98032429f9e breaks it for me.
I'm unsure a what that change is actually good for or how it
breaks thing. But I do find it suspisius that two delete operators
are removed because of GCC 11.