[arch-general] FYI : zxing-cpp may crash kmail

SET nmset at netcourrier.com
Mon Sep 23 11:47:02 UTC 2019


kmail crashes when selecting an mail item containing an attachment. It seems 
to happen specially when it's a PDF attachment, I have not tested all types 
of attached files.

gdb backtraces up to libZXingCore.so. Downgrading zxing-cpp from 1.0.7 to 
1.0.6 resolves the issue.

For information.

Regards.

terminate called after throwing an instance of 'std::out_of_range'
  what():  vector::_M_range_check: __n (which is 1218) >= this->size() (which 
is 1044)

Thread 1 "kmail" received signal SIGABRT, Aborted.
0x00007ffff65b8755 in raise () from /usr/lib/libc.so.6
(gdb) bt
#0  0x00007ffff65b8755 in raise () from /usr/lib/libc.so.6
#1  0x00007ffff65a3851 in abort () from /usr/lib/libc.so.6
#2  0x00007ffff67d681f in __gnu_cxx::__verbose_terminate_handler () at /build/
gcc/src/gcc/libstdc++-v3/libsupc++/vterminate.cc:95
#3  0x00007ffff67e330a in __cxxabiv1::__terminate (handler=<optimized out>) at /
build/gcc/src/gcc/libstdc++-v3/libsupc++/eh_terminate.cc:47
#4  0x00007ffff67e3367 in std::terminate () at /build/gcc/src/gcc/libstdc++-v3/
libsupc++/eh_terminate.cc:57
#5  0x00007ffff67e35bd in __cxxabiv1::__cxa_throw (obj=obj at entry=0x55555b581b40, 
tinfo=0x7ffff691b488 <typeinfo for std::out_of_range>, 
    dest=0x7ffff67f97a0 <std::out_of_range::~out_of_range()>) at /build/gcc/src/
gcc/libstdc++-v3/libsupc++/eh_throw.cc:95
#6  0x00007ffff67d9431 in std::__throw_out_of_range_fmt (__fmt=<optimized out>) 
at /build/gcc/src/gcc/libstdc++-v3/src/c++11/functexcept.cc:82
#7  0x00007fff0e45a8c3 in 
ZXing::QRCode::FinderPatternFinder::Find(ZXing::BitMatrix const&, bool) () 
from /usr/lib/libZXingCore.so.1
#8  0x00007fff0e45767e in ZXing::QRCode::Detector::Detect(ZXing::BitMatrix 
const&, bool) () from /usr/lib/libZXingCore.so.1
#9  0x00007fff0e45bc94 in ZXing::QRCode::Reader::decode(ZXing::BinaryBitmap 
const&) const () from /usr/lib/libZXingCore.so.1
#10 0x00007fff0e3f80ff in ZXing::MultiFormatReader::read(ZXing::BinaryBitmap 
const&) const () from /usr/lib/libZXingCore.so.1
#11 0x00007fff3c127a31 in KItinerary::BarcodeDecoder::decodeZxing(QImage 
const&, QFlags<KItinerary::BarcodeDecoder::BarcodeType>, 
KItinerary::BarcodeDecoder::Result&) const () from /usr/lib/
libKPimItinerary.so.5
#12 0x00007fff3c12802e in KItinerary::BarcodeDecoder::decodeIfNeeded(QImage 
const&, QFlags<KItinerary::BarcodeDecoder::BarcodeType>, 
KItinerary::BarcodeDecoder::Result&) const () from /usr/lib/
libKPimItinerary.so.5
#13 0x00007fff3c12832d in KItinerary::BarcodeDecoder::decodeBinary(QImage 
const&, QFlags<KItinerary::BarcodeDecoder::BarcodeType>) const ()
   from /usr/lib/libKPimItinerary.so.5
#14 0x00007fff3c148d40 in ?? () from /usr/lib/libKPimItinerary.so.5
#15 0x00007fff3c14911f in ?? () from /usr/lib/libKPimItinerary.so.5
#16 0x00007fff3c135a94 in ?? () from /usr/lib/libKPimItinerary.so.5
#17 0x00007fff3c135ee6 in ?? () from /usr/lib/libKPimItinerary.so.5
#18 0x00007fff3c136225 in KItinerary::ExtractorEngine::extract() () from /usr/
lib/libKPimItinerary.so.5
#19 0x00007fff3c2ad59a in ?? () from /usr/lib/qt/plugins/messageviewer/
bodypartformatter/messageviewer_bodypartformatter_semantic.so
#20 0x00007ffff535bcaa in 
MimeTreeParser::ObjectTreeParser::processType(KMime::Content*, 
MimeTreeParser::ProcessResult&, QByteArray const&) ()
   from /usr/lib/libKF5MimeTreeParser.so.5
#21 0x00007ffff535c3d1 in 
MimeTreeParser::ObjectTreeParser::parseObjectTreeInternal(KMime::Content*, 
bool) ()
   from /usr/lib/libKF5MimeTreeParser.so.5
#22 0x00007ffff536153f in 
MimeTreeParser::MessagePart::parseInternal(KMime::Content*, bool) () from /
usr/lib/libKF5MimeTreeParser.so.5
#23 0x00007ffff53616c0 in 
MimeTreeParser::MimeMessagePart::MimeMessagePart(MimeTreeParser::ObjectTreeParser*, 
KMime::Content*, bool) ()
   from /usr/lib/libKF5MimeTreeParser.so.5
#24 0x00007fff3c28b015 in ?? ()
   from /usr/lib/qt/plugins/messageviewer/bodypartformatter/
messageviewer_bodypartformatter_application_gnupgwks.so
#25 0x00007ffff535bcaa in 
MimeTreeParser::ObjectTreeParser::processType(KMime::Content*, 
MimeTreeParser::ProcessResult&, QByteArray const&) ()
   from /usr/lib/libKF5MimeTreeParser.so.5
#26 0x00007ffff535c3d1 in 
MimeTreeParser::ObjectTreeParser::parseObjectTreeInternal(KMime::Content*, 
bool) ()
   from /usr/lib/libKF5MimeTreeParser.so.5
#27 0x00007ffff535c7f0 in 
MimeTreeParser::ObjectTreeParser::parseObjectTree(KMime::Content*, bool) () 
from /usr/lib/libKF5MimeTreeParser.so.5
#28 0x00007ffff593fe05 in ?? () from /usr/lib/libKF5MessageViewer.so.5
#29 0x00007ffff5940514 in ?? () from /usr/lib/libKF5MessageViewer.so.5
#30 0x00007ffff594105f in ?? () from /usr/lib/libKF5MessageViewer.so.5
#31 0x00007ffff6be5b70 in QMetaObject::activate(QObject*, int, int, void**) () 
from /usr/lib/libQt5Core.so.5
#32 0x00007ffff6bf2b78 in QTimer::timeout(QTimer::QPrivateSignal) () from /usr/
lib/libQt5Core.so.5
#33 0x00007ffff6be63e5 in QObject::event(QEvent*) () from /usr/lib/
libQt5Core.so.5
--Type <RET> for more, q to quit, c to continue without paging--
#34 0x00007ffff75734f5 in QApplicationPrivate::notify_helper(QObject*, QEvent*) 
() from /usr/lib/libQt5Widgets.so.5
#35 0x00007ffff757ce11 in QApplication::notify(QObject*, QEvent*) () from /usr/
lib/libQt5Widgets.so.5
#36 0x00007ffff6bb99c2 in QCoreApplication::notifyInternal2(QObject*, QEvent*) 
() from /usr/lib/libQt5Core.so.5
#37 0x00007ffff6c10d9d in QTimerInfoList::activateTimers() () from /usr/lib/
libQt5Core.so.5
#38 0x00007ffff6c1166a in ?? () from /usr/lib/libQt5Core.so.5
#39 0x00007ffff33923ae in g_main_context_dispatch () from /usr/lib/
libglib-2.0.so.0
#40 0x00007ffff33941c1 in ?? () from /usr/lib/libglib-2.0.so.0
#41 0x00007ffff3394201 in g_main_context_iteration () from /usr/lib/
libglib-2.0.so.0
#42 0x00007ffff6c11a03 in 
QEventDispatcherGlib::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () 
from /usr/lib/libQt5Core.so.5
#43 0x00007ffff6bb84ec in 
QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib/
libQt5Core.so.5
#44 0x00007ffff6bc0326 in QCoreApplication::exec() () from /usr/lib/
libQt5Core.so.5
#45 0x000055555555806a in ?? ()
#46 0x00007ffff65a4ee3 in __libc_start_main () from /usr/lib/libc.so.6
#47 0x000055555555821e in ?? ()
(gdb) 


More information about the arch-general mailing list