<div dir="ltr"><div>it breaks inside of Qt, on realloc.</div><div>it would be extremely userful to see your memory  stats because that looks like a memory exhaustion.<br></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Wed, Oct 6, 2021 at 2:21 PM David Kredba <<a href="mailto:bugzilla_noreply@kde.org">bugzilla_noreply@kde.org</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><a href="https://bugs.kde.org/show_bug.cgi?id=443397" rel="noreferrer" target="_blank">https://bugs.kde.org/show_bug.cgi?id=443397</a><br>
<br>
            Bug ID: 443397<br>
           Summary: Konsole crashes during Firefox PGO+LTO compilation<br>
           Product: konsole<br>
           Version: 21.08.1<br>
          Platform: Gentoo Packages<br>
                OS: Linux<br>
            Status: REPORTED<br>
          Severity: normal<br>
          Priority: NOR<br>
         Component: general<br>
          Assignee: <a href="mailto:konsole-devel@kde.org" target="_blank">konsole-devel@kde.org</a><br>
          Reporter: <a href="mailto:nheghathivhistha@gmail.com" target="_blank">nheghathivhistha@gmail.com</a><br>
  Target Milestone: ---<br>
<br>
SUMMARY<br>
The Konsole version 21.08.1 crashes during Firefox PGO+LTO compilation.<br>
It disappears with signal Aborted.<br>
<br>
STEPS TO REPRODUCE<br>
1. Compile Gentoo's current Firefox package with lto and pgo use flags enabled<br>
2. <br>
3. <br>
<br>
OBSERVED RESULT<br>
Konsole crashes with Aborted signal.<br>
<br>
EXPECTED RESULT<br>
Konsole not crashes.<br>
<br>
SOFTWARE/OS VERSIONS<br>
Linux/KDE Plasma:<br>
<br>
KDE Plasma Version: 5.22.5<br>
KDE Frameworks Version: 5.86.0<br>
Qt Version: 5.15.2<br>
<br>
ADDITIONAL INFORMATION<br>
After crash the Firefox merge can be started again using ebuild merge command<br>
and finishes without its crash. Tested with older Firefox builds too.<br>
<br>
Application: Konsole (konsole), signal: Aborted<br>
<br>
[KCrash Handler]<br>
#4  0x00007f815ec8429e in raise () from /lib64/libc.so.6<br>
#5  0x00007f815ec6e2b6 in abort () from /lib64/libc.so.6<br>
#6  0x00007f815ee7192e in ?? () from<br>
/usr/lib/gcc/x86_64-pc-linux-gnu/11.2.0/libstdc++.so.6<br>
#7  0x00007f815ee7df2a in ?? () from<br>
/usr/lib/gcc/x86_64-pc-linux-gnu/11.2.0/libstdc++.so.6<br>
#8  0x00007f815ee7df95 in std::terminate() () from<br>
/usr/lib/gcc/x86_64-pc-linux-gnu/11.2.0/libstdc++.so.6<br>
#9  0x00007f815ee7e248 in __cxa_throw () from<br>
/usr/lib/gcc/x86_64-pc-linux-gnu/11.2.0/libstdc++.so.6<br>
#10 0x00007f815f07cf9e in qBadAlloc () at<br>
/var/tmp/portage/dev-qt/qtcore-5.15.2-r10/work/qtbase-a4f9e56975fa6ab4a1f63a9b34a4d77b1cfe4acd/src/corelib/global/qglobal.cpp:3338<br>
#11 0x00007f815f07f9aa in QListData::realloc_grow (this=<optimized out>,<br>
growth=<optimized out>) at<br>
/var/tmp/portage/dev-qt/qtcore-5.15.2-r10/work/qtbase-a4f9e56975fa6ab4a1f63a9b34a4d77b1cfe4acd/src/corelib/tools/qlist.cpp:171<br>
#12 0x00007f815f0f42da in QListData::append (this=this@entry=0x55a68aeaf008,<br>
n=n@entry=1) at<br>
/var/tmp/portage/dev-qt/qtcore-5.15.2-r10/work/qtbase-a4f9e56975fa6ab4a1f63a9b34a4d77b1cfe4acd/src/corelib/tools/qlist.cpp:196<br>
#13 0x00007f815f0f430a in QListData::append (this=this@entry=0x55a68aeaf008) at<br>
/var/tmp/portage/dev-qt/qtcore-5.15.2-r10/work/qtbase-a4f9e56975fa6ab4a1f63a9b34a4d77b1cfe4acd/src/corelib/tools/qlist.cpp:206<br>
#14 0x00007f816049798c in QList<Konsole::Character>::append (t=...,<br>
this=0x55a68aeaf008) at /usr/include/qt5/QtCore/qlist.h:632<br>
#15 QList<Konsole::Character>::append (t=..., this=0x55a68aeaf008) at<br>
/usr/include/qt5/QtCore/qlist.h:620<br>
#16 QList<Konsole::Character>::push_back (t=..., this=0x55a68aeaf008) at<br>
/usr/include/qt5/QtCore/qlist.h:377<br>
#17 std::back_insert_iterator<QList<Konsole::Character> >::operator=<br>
(__value=..., this=<synthetic pointer>) at<br>
/usr/lib/gcc/x86_64-pc-linux-gnu/11.2.0/include/g++-v11/bits/stl_iterator.h:674<br>
#18 std::__copy_move<false, false,<br>
std::random_access_iterator_tag>::__copy_m<Konsole::Character const*,<br>
std::back_insert_iterator<QList<Konsole::Character> > > (__result=...,<br>
__last=<optimized out>, __first=0x55a720cc2408) at<br>
/usr/lib/gcc/x86_64-pc-linux-gnu/11.2.0/include/g++-v11/bits/stl_algobase.h:385<br>
#19 std::__copy_move_a2<false, Konsole::Character const*,<br>
std::back_insert_iterator<QList<Konsole::Character> > > (__result=...,<br>
__last=<optimized out>, __first=<optimized out>) at<br>
/usr/lib/gcc/x86_64-pc-linux-gnu/11.2.0/include/g++-v11/bits/stl_algobase.h:495<br>
#20 std::__copy_move_a1<false, Konsole::Character const*,<br>
std::back_insert_iterator<QList<Konsole::Character> > > (__result=...,<br>
__last=<optimized out>, __first=<optimized out>) at<br>
/usr/lib/gcc/x86_64-pc-linux-gnu/11.2.0/include/g++-v11/bits/stl_algobase.h:522<br>
#21 std::__copy_move_a<false, Konsole::Character const*,<br>
std::back_insert_iterator<QList<Konsole::Character> > > (__result=...,<br>
__last=<optimized out>, __first=<optimized out>) at<br>
/usr/lib/gcc/x86_64-pc-linux-gnu/11.2.0/include/g++-v11/bits/stl_algobase.h:529<br>
#22 std::copy<Konsole::Character const*,<br>
std::back_insert_iterator<QList<Konsole::Character> > > (__result=...,<br>
__last=<optimized out>, __first=<optimized out>) at<br>
/usr/lib/gcc/x86_64-pc-linux-gnu/11.2.0/include/g++-v11/bits/stl_algobase.h:620<br>
#23 Konsole::CompactHistoryScroll::addCells (this=0x55a68aeaeff0, a=<optimized<br>
out>, count=<optimized out>) at<br>
/var/tmp/portage/kde-apps/konsole-21.08.1-r1/work/konsole-21.08.1/src/history/compact/CompactHistoryScroll.cpp:48<br>
#24 0x00007f816046d880 in Konsole::HistoryScroll::addCellsVector (cells=...,<br>
this=<optimized out>) at<br>
/var/tmp/portage/kde-apps/konsole-21.08.1-r1/work/konsole-21.08.1/src/history/HistoryScroll.h:50<br>
#25 Konsole::Screen::addHistLine (this=this@entry=0x55a68aeac680) at<br>
/var/tmp/portage/kde-apps/konsole-21.08.1-r1/work/konsole-21.08.1/src/Screen.cpp:1640<br>
#26 0x00007f816046f4ba in Konsole::Screen::scrollUp (this=0x55a68aeac680,<br>
n=n@entry=1) at<br>
/var/tmp/portage/kde-apps/konsole-21.08.1-r1/work/konsole-21.08.1/src/Screen.cpp:1002<br>
#27 0x00007f816046f4fa in Konsole::Screen::index<br>
(this=this@entry=0x55a68aeac680) at<br>
/var/tmp/portage/kde-apps/konsole-21.08.1-r1/work/konsole-21.08.1/src/Screen.cpp:196<br>
#28 0x00007f816046f512 in Konsole::Screen::nextLine<br>
(this=this@entry=0x55a68aeac680) at<br>
/var/tmp/portage/kde-apps/konsole-21.08.1-r1/work/konsole-21.08.1/src/Screen.cpp:216<br>
#29 0x00007f816047131f in Konsole::Screen::displayCharacter<br>
(this=0x55a68aeac680, c=109) at<br>
/var/tmp/portage/kde-apps/konsole-21.08.1-r1/work/konsole-21.08.1/src/Screen.cpp:926<br>
#30 0x00007f8160488ae0 in Konsole::Vt102Emulation::receiveChar<br>
(this=0x55a68b485f00, cc=<optimized out>) at<br>
/var/tmp/portage/kde-apps/konsole-21.08.1-r1/work/konsole-21.08.1/src/Vt102Emulation.cpp:478<br>
#31 0x00007f816045d1f3 in Konsole::Emulation::receiveData (this=0x55a68b485f00,<br>
text=0x55a74060e0e8<br>
"fox_build/dist/include/mozilla/MozPromise.h:485:18:\033[m\033[K<br>
\033[01;35m\033[Kwarning: \033[m\033[Ksource locations for function<br>
'\033[01m\033[Kmozilla::MozPromise<mozilla::ipc::Endpoint<mozilla::extensions::PStreamFilter"...,<br>
length=4095) at<br>
/var/tmp/portage/kde-apps/konsole-21.08.1-r1/work/konsole-21.08.1/src/Emulation.cpp:241<br>
#32 0x00007f815f2a11b6 in QtPrivate::QSlotObjectBase::call (a=0x7fffd1b773e0,<br>
r=0x55a68aeae360, this=0x55a68b197690) at<br>
../../include/QtCore/../../../qtbase-a4f9e56975fa6ab4a1f63a9b34a4d77b1cfe4acd/src/corelib/kernel/qobjectdefs_impl.h:398<br>
#33 doActivate<false> (sender=0x55a68ae95130, signal_index=17,<br>
argv=0x7fffd1b773e0) at<br>
/var/tmp/portage/dev-qt/qtcore-5.15.2-r10/work/qtbase-a4f9e56975fa6ab4a1f63a9b34a4d77b1cfe4acd/src/corelib/kernel/qobject.cpp:3886<br>
#34 0x00007f815f29af17 in QMetaObject::activate<br>
(sender=sender@entry=0x55a68ae95130, m=m@entry=0x7f81605474e0<br>
<Konsole::Pty::staticMetaObject>,<br>
local_signal_index=local_signal_index@entry=0, argv=argv@entry=0x7fffd1b773e0)<br>
at<br>
/var/tmp/portage/dev-qt/qtcore-5.15.2-r10/work/qtbase-a4f9e56975fa6ab4a1f63a9b34a4d77b1cfe4acd/src/corelib/kernel/qobject.cpp:3946<br>
#35 0x00007f816044e9bd in Konsole::Pty::receivedData<br>
(this=this@entry=0x55a68ae95130, _t1=<optimized out>, _t2=<optimized out>) at<br>
/var/tmp/portage/kde-apps/konsole-21.08.1-r1/work/konsole-21.08.1_build/src/konsoleprivate_autogen/EWIEGA46WW/moc_Pty.cpp:154<br>
#36 0x00007f8160467102 in Konsole::Pty::dataReceived (this=0x55a68ae95130) at<br>
/var/tmp/portage/kde-apps/konsole-21.08.1-r1/work/konsole-21.08.1/src/Pty.cpp:78<br>
#37 0x00007f815f2a11b6 in QtPrivate::QSlotObjectBase::call (a=0x7fffd1b774c0,<br>
r=0x55a68ae95130, this=0x55a68afcdf30) at<br>
../../include/QtCore/../../../qtbase-a4f9e56975fa6ab4a1f63a9b34a4d77b1cfe4acd/src/corelib/kernel/qobjectdefs_impl.h:398<br>
#38 doActivate<false> (sender=0x55a68aff1120, signal_index=3,<br>
argv=0x7fffd1b774c0) at<br>
/var/tmp/portage/dev-qt/qtcore-5.15.2-r10/work/qtbase-a4f9e56975fa6ab4a1f63a9b34a4d77b1cfe4acd/src/corelib/kernel/qobject.cpp:3886<br>
#39 0x00007f815f29af17 in QMetaObject::activate<br>
(sender=sender@entry=0x55a68aff1120, m=m@entry=0x7f815f53c980<br>
<QIODevice::staticMetaObject>, local_signal_index=local_signal_index@entry=0,<br>
argv=argv@entry=0x0) at<br>
/var/tmp/portage/dev-qt/qtcore-5.15.2-r10/work/qtbase-a4f9e56975fa6ab4a1f63a9b34a4d77b1cfe4acd/src/corelib/kernel/qobject.cpp:3946<br>
#40 0x00007f815f1bbc60 in QIODevice::readyRead (this=this@entry=0x55a68aff1120)<br>
at .moc/moc_qiodevice.cpp:190<br>
#41 0x00007f815e75dfb4 in KPtyDevicePrivate::_k_canRead (this=0x55a68ae435a0)<br>
at<br>
/var/tmp/portage/kde-frameworks/kpty-5.86.0/work/kpty-5.86.0/src/kptydevice.cpp:291<br>
#42 0x00007f815e75e409 in KPtyDevice::qt_static_metacall<br>
(_c=QMetaObject::InvokeMetaMethod, _a=0x7fffd1b77660, _id=<optimized out>,<br>
_o=<optimized out>) at<br>
/var/tmp/portage/kde-frameworks/kpty-5.86.0/work/kpty-5.86.0_build/src/KF5Pty_autogen/include/moc_kptydevice.cpp:84<br>
#43 KPtyDevice::qt_static_metacall (_o=<optimized out>, _c=<optimized out>,<br>
_id=<optimized out>, _a=0x7fffd1b77660) at<br>
/var/tmp/portage/kde-frameworks/kpty-5.86.0/work/kpty-5.86.0_build/src/KF5Pty_autogen/include/moc_kptydevice.cpp:77<br>
#44 0x00007f815f2a0f4e in doActivate<false> (sender=0x55a68ae7e740,<br>
signal_index=5, argv=0x7fffd1b77660) at<br>
/var/tmp/portage/dev-qt/qtcore-5.15.2-r10/work/qtbase-a4f9e56975fa6ab4a1f63a9b34a4d77b1cfe4acd/src/corelib/kernel/qobject.cpp:3898<br>
#45 0x00007f815f29af17 in QMetaObject::activate<br>
(sender=sender@entry=0x55a68ae7e740, m=m@entry=0x7f815f5401c0<br>
<QSocketNotifier::staticMetaObject>,<br>
local_signal_index=local_signal_index@entry=2, argv=argv@entry=0x7fffd1b77660)<br>
at<br>
/var/tmp/portage/dev-qt/qtcore-5.15.2-r10/work/qtbase-a4f9e56975fa6ab4a1f63a9b34a4d77b1cfe4acd/src/corelib/kernel/qobject.cpp:3946<br>
#46 0x00007f815f2a48bb in QSocketNotifier::activated<br>
(this=this@entry=0x55a68ae7e740, _t1=<optimized out>, _t2=...) at<br>
.moc/moc_qsocketnotifier.cpp:185<br>
#47 0x00007f815f2a5075 in QSocketNotifier::event (this=0x55a68ae7e740,<br>
e=0x7fffd1b77750) at<br>
/var/tmp/portage/dev-qt/qtcore-5.15.2-r10/work/qtbase-a4f9e56975fa6ab4a1f63a9b34a4d77b1cfe4acd/src/corelib/kernel/qsocketnotifier.h:115<br>
#48 0x00007f815fd0296f in QApplicationPrivate::notify_helper (this=<optimized<br>
out>, receiver=0x55a68ae7e740, e=0x7fffd1b77750) at<br>
/var/tmp/portage/dev-qt/qtwidgets-5.15.2-r11/work/qtbase-a4f9e56975fa6ab4a1f63a9b34a4d77b1cfe4acd/src/widgets/kernel/qapplication.cpp:3632<br>
#49 0x00007f815f26d828 in QCoreApplication::notifyInternal2<br>
(receiver=0x55a68ae7e740, event=0x7fffd1b77750) at<br>
/var/tmp/portage/dev-qt/qtcore-5.15.2-r10/work/qtbase-a4f9e56975fa6ab4a1f63a9b34a4d77b1cfe4acd/src/corelib/kernel/qcoreapplication.cpp:1064<br>
#50 0x00007f815f2c039e in socketNotifierSourceDispatch (source=0x55a68aada950)<br>
at<br>
/var/tmp/portage/dev-qt/qtcore-5.15.2-r10/work/qtbase-a4f9e56975fa6ab4a1f63a9b34a4d77b1cfe4acd/src/corelib/kernel/qeventdispatcher_glib.cpp:107<br>
#51 0x00007f815d5b213b in g_main_context_dispatch () from<br>
/usr/lib64/libglib-2.0.so.0<br>
#52 0x00007f815d5b23f8 in ?? () from /usr/lib64/libglib-2.0.so.0<br>
#53 0x00007f815d5b24af in g_main_context_iteration () from<br>
/usr/lib64/libglib-2.0.so.0<br>
#54 0x00007f815f2bf934 in QEventDispatcherGlib::processEvents<br>
(this=0x55a68aad1df0, flags=...) at<br>
/var/tmp/portage/dev-qt/qtcore-5.15.2-r10/work/qtbase-a4f9e56975fa6ab4a1f63a9b34a4d77b1cfe4acd/src/corelib/kernel/qeventdispatcher_glib.cpp:423<br>
#55 0x00007f815f26c21b in QEventLoop::exec (this=this@entry=0x7fffd1b77960,<br>
flags=..., flags@entry=...) at<br>
../../include/QtCore/../../../qtbase-a4f9e56975fa6ab4a1f63a9b34a4d77b1cfe4acd/src/corelib/global/qflags.h:69<br>
#56 0x00007f815f27484d in QCoreApplication::exec () at<br>
../../include/QtCore/../../../qtbase-a4f9e56975fa6ab4a1f63a9b34a4d77b1cfe4acd/src/corelib/global/qflags.h:121<br>
#57 0x000055a689c4bb54 in main (argc=<optimized out>, argv=<optimized out>) at<br>
/var/tmp/portage/kde-apps/konsole-21.08.1-r1/work/konsole-21.08.1/src/main.cpp:220<br>
[Inferior 1 (process 6725) detached]<br>
<br>
<br>
The last command written in the build.log file is:<br>
/usr/bin/x86_64-pc-linux-gnu-g++ -o Unified_cpp_netwerk_base4.o -c -flto<br>
-flifetime-dse=1<br>
-I/var/tmp/portage/www-client/firefox-93.0/work/firefox_build/dist/stl_wrappers<br>
-I/var/tmp/portage/www-client/firefox-93.0/work/firefox_build/dist/system_wrappers<br>
-include<br>
/var/tmp/portage/www-client/firefox-93.0/work/firefox-93.0/config/gcc_hidden.h<br>
-U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=2 -fstack-protector-strong -DNDEBUG=1<br>
-DTRIMMED=1 -DOS_POSIX=1 -DOS_LINUX=1 -DMOZ_HAS_MOZGLUE -DMOZILLA_INTERNAL_API<br>
-DIMPL_LIBXUL -DSTATIC_EXPORTABLE_JS_API<br>
-I/var/tmp/portage/www-client/firefox-93.0/work/firefox-93.0/netwerk/base<br>
-I/var/tmp/portage/www-client/firefox-93.0/work/firefox_build/netwerk/base<br>
-I/var/tmp/portage/www-client/firefox-93.0/work/firefox_build/ipc/ipdl/_ipdlheaders<br>
-I/var/tmp/portage/www-client/firefox-93.0/work/firefox-93.0/ipc/chromium/src<br>
-I/var/tmp/portage/www-client/firefox-93.0/work/firefox-93.0/docshell/base<br>
-I/var/tmp/portage/www-client/firefox-93.0/work/firefox-93.0/dom/base<br>
-I/var/tmp/portage/www-client/firefox-93.0/work/firefox-93.0/netwerk/protocol/http<br>
-I/var/tmp/portage/www-client/firefox-93.0/work/firefox-93.0/netwerk/socket<br>
-I/var/tmp/portage/www-client/firefox-93.0/work/firefox-93.0/netwerk/url-classifier<br>
-I/var/tmp/portage/www-client/firefox-93.0/work/firefox-93.0/security/manager/ssl<br>
-I/var/tmp/portage/www-client/firefox-93.0/work/firefox_build/dist/include<br>
-I/usr/include/nspr -I/usr/include/nss -I/usr/include/nspr<br>
-I/var/tmp/portage/www-client/firefox-93.0/work/firefox_build/dist/include/nss<br>
-I/usr/include/pixman-1 -DMOZILLA_CLIENT -include<br>
/var/tmp/portage/www-client/firefox-93.0/work/firefox_build/mozilla-config.h<br>
-Wall -Wempty-body -Wignored-qualifiers -Wpointer-arith -Wsign-compare<br>
-Wtype-limits -Wunreachable-code -Wno-invalid-offsetof -Wc++2a-compat<br>
-Wduplicated-cond -Wimplicit-fallthrough -Wno-error=maybe-uninitialized<br>
-Wno-error=deprecated-declarations -Wno-error=array-bounds<br>
-Wno-error=coverage-mismatch -Wno-error=free-nonheap-object<br>
-Wno-multistatement-macros -Wno-error=class-memaccess<br>
-Wno-error=deprecated-copy -Wno-error=unused-but-set-variable -Wformat<br>
-Wformat-security -Wformat-overflow=2 -Wno-psabi -fno-sized-deallocation<br>
-fno-aligned-new -pipe -march=znver2 -fno-tree-loop-vectorize -fno-exceptions<br>
-fno-strict-aliasing -fPIC -fno-rtti -ffunction-sections -fdata-sections<br>
-fno-exceptions -fno-math-errno -pthread -pipe -O3 -fomit-frame-pointer<br>
-funwind-tables -Wno-error=shadow -fprofile-use -fprofile-correction<br>
-Wcoverage-mismatch -MD -MP -MF .deps/Unified_cpp_netwerk_base4.o.pp <br>
-fdiagnostics-color  Unified_cpp_netwerk_base4.cpp<br>
<br>
-- <br>
You are receiving this mail because:<br>
You are the assignee for the bug.</blockquote></div>