Summary: | Creating KUrl( QString::fromUtf8( "places://Kořen" ) ) asserts with debugging Qt, QUrl does not | ||
---|---|---|---|
Product: | [Frameworks and Libraries] kdelibs | Reporter: | Matěj Laitl <matej> |
Component: | kdecore | Assignee: | kdelibs bugs <kdelibs-bugs> |
Status: | RESOLVED WORKSFORME | ||
Severity: | crash | CC: | b.brachaczek, justin.zobel |
Priority: | NOR | ||
Version: | 4.9.4 | ||
Target Milestone: | --- | ||
Platform: | Gentoo Packages | ||
OS: | Linux | ||
Latest Commit: | Version Fixed In: | ||
Attachments: | New crash information added by DrKonqi |
Description
Matěj Laitl
2013-01-04 21:55:19 UTC
Created attachment 77271 [details]
New crash information added by DrKonqi
rekonq (2.1) on KDE Platform 4.10.00 using Qt 4.8.4
- What I was doing when the application crashed:
I was entering text in the address bar in Rekonq. Two first letter were plain ASCII, and the third was a Unicode character: "ł". It crashed just after entering the third letter.
-- Backtrace (Reduced):
#6 0x00007f64bd56ad79 in __GI_raise (sig=<optimized out>) at ../nptl/sysdeps/unix/sysv/linux/raise.c:63
#7 0x00007f64bd56c290 in __GI_abort () at abort.c:90
[...]
#11 0x00007f64bed1f8b9 in composeHelper (from=1, version=QChar::Unicode_3_2, str=0x7fff1dbd20b0) at tools/qchar.cpp:1574
#12 qt_string_normalize (data=<optimized out>, mode=QString::NormalizationForm_KC, version=QChar::Unicode_3_2, from=1) at tools/qstring.cpp:6376
#13 0x00007f64bed85bb4 in qt_nameprep (source=0x7fff1dbd20b0, from=<optimized out>) at io/qurl.cpp:3029
Thank you for the crash reports. As it has been a while since this was reported, can you please test and confirm if this issue is still occurring or if this bug report can be marked as resolved. I have set the bug status to "needsinfo" pending your response, please change back to "reported" or "resolved/worksforme" when you respond, thank you. I can confirm that this is fixed, or at least no longer reproducible with KDE Frameworks 5.74 Qt 5.15.1 I've compiled a slightly modified test executable: [main.cpp] #include <iostream> #include <QLibraryInfo> #include <KUrl> int main(void) { std::cout << "QLibraryInfo::isDebugBuild(): " << QLibraryInfo::isDebugBuild() << std::endl; volatile QUrl qurl( QString::fromUtf8( "places://Kořen" ) ); // okay volatile KUrl kurl( QString::fromUtf8( "places://Kořen" ) ); // crashes here return 0; } ...with the following command: g++ main.cpp -I /usr/include/KF5/KDELibs4Support/KDE -I /usr/include/KF5/KDELibs4Support -I /usr/include/qt5/QtCore -I /usr/include/qt5 -fPIC -l Qt5Core ...and it gives: $ ./a.out QLibraryInfo::isDebugBuild(): 1 $ echo $? 0 |