[Qt-interest] Segfault when appending to QList
Gabriel M. Beddingfield
gabrbedd at gmail.com
Mon Mar 22 02:56:28 CET 2010
Hi Vedran,
On Mon, 22 Mar 2010, Vedran Furač wrote:
> This results with:
>
> Program received signal SIGSEGV, Segmentation fault.
> 0x0000000000403c8b in QBasicAtomicInt::operator!= (this=0x1f, value=1)
> at /usr/include/qt4/QtCore/qbasicatomic.h:75
> 75 return _q_value != value;
>
> #0 0x0000000000403c8b in QBasicAtomicInt::operator!= (this=0x1f,
> value=1) at /usr/include/qt4/QtCore/qbasicatomic.h:75
> #1 0x0000000000405d08 in QList<QPair<int, int> >::detach
> (this=0x60b700) at /usr/include/qt4/QtCore/qlist.h:122
> #2 0x0000000000405c81 in QList<QPair<int, int> >::append
> (this=0x60b700, t=...) at /usr/include/qt4/QtCore/qlist.h:468
> foo->append(bla); line
All of the 'this' arguments are very small numbers...
indicating that they're not valid pointers. Did you
actually create the QList<> anywhere?
foo = new QList<QPair<int,int> >;
-gabriel
More information about the Qt-interest-old
mailing list