Review Request 108688: Fix crash in OutputModel::flushLineBuffer()

Aleix Pol Gonzalez aleixpol at gmail.com
Thu Jan 31 19:38:29 UTC 2013


-----------------------------------------------------------
This is an automatically generated e-mail. To reply, visit:
http://git.reviewboard.kde.org/r/108688/#review26467
-----------------------------------------------------------

Ship it!


Never ran into this, but good catch. :) (well, gdb caught it... no? xD)

- Aleix Pol Gonzalez


On Jan. 31, 2013, 7:35 p.m., Kevin Funk wrote:
> 
> -----------------------------------------------------------
> This is an automatically generated e-mail. To reply, visit:
> http://git.reviewboard.kde.org/r/108688/
> -----------------------------------------------------------
> 
> (Updated Jan. 31, 2013, 7:35 p.m.)
> 
> 
> Review request for KDevelop.
> 
> 
> Description
> -------
> 
> Fix crash in OutputModel::flushLineBuffer()
> 
> In case we try to call beginInsertRows() with invalid indices we will
> trigger an assert in qabstractitemmodel.cpp.
> 
> Backtrace (reduced):
> 5  0x00007ffff5a7caac in qt_assert (assertion=0x7ffff5ccce63 "last >=
> first", file=0x7ffff5cccbe0
> "/home/krf/devel/src/qt/src/corelib/kernel/qabstractitemmodel.cpp",
> line=2413) at /home/krf/devel/src/qt/src/corelib/global/qglobal.cpp:2018
> 6  0x00007ffff5bba5d6 in QAbstractItemModel::beginInsertRows
> (this=0x72226b0, parent=..., first=35, last=34) at
> /home/krf/devel/src/qt/src/corelib/kernel/qabstractitemmodel.cpp:2413
> 7  0x00007fffec45136f in KDevelop::OutputModel::flushLineBuffer
> (this=0x72226b0) at
> /home/krf/devel/src/kdevplatform/outputview/outputmodel.cpp:284
> 8  0x00007fffc079c6fa in CTestRunJob::processFinished (this=0x703a240,
> job=0x7212ce0) at
> /home/krf/devel/src/kdevelop/projectmanagers/cmake/testing/ctestrunjob.cpp:140
> 
> (gdb) p d->m_lineBuffer.size()
> $1 = 0
> 
> 
> Diffs
> -----
> 
>   outputview/outputmodel.cpp c4dd9c9d057aa2de92fb25ee6929acc16ef6e7af 
> 
> Diff: http://git.reviewboard.kde.org/r/108688/diff/
> 
> 
> Testing
> -------
> 
> 
> Thanks,
> 
> Kevin Funk
> 
>

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.kde.org/pipermail/kdevelop-devel/attachments/20130131/21d68a55/attachment-0001.html>


More information about the KDevelop-devel mailing list