<div dir="ltr"><br><div class="gmail_extra"><br><div class="gmail_quote">On Sat, Jul 11, 2015 at 7:00 PM, Linus Torvalds <span dir="ltr"><<a href="mailto:torvalds@linux-foundation.org" target="_blank">torvalds@linux-foundation.org</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex">Hmm. I'm not sure how to reproduce this, because I was just moving<br>
around between the dives, checking out how the globe moved, and<br>
occasionally pressing the dive site quick-edit button.<br>
<br>
And suddenly I get<br>
<br>
*** Error in `/home/torvalds/src/install-root/bin/subsurface':<br>
malloc(): memory corruption (fast): 0x0000000005a9f01f ***<br>
<br>
with the call stack being<br>
<br>
#0  0x00007fffefa67a98 in raise () at /lib64/libc.so.6<br>
#1  0x00007fffefa6972a in abort () at /lib64/libc.so.6<br>
#2  0x00007fffefaaaea2 in  () at /lib64/libc.so.6<br>
#3  0x00007fffefab3ef8 in _int_malloc () at /lib64/libc.so.6<br>
#4  0x00007fffefab6b5e in malloc () at /lib64/libc.so.6<br>
#5  0x00007ffff042d453 in QArrayData::allocate(unsigned long, unsigned<br>
long, unsigned long, QFlags<QArrayData::AllocationOption>) () at<br>
/lib64/libQt5Core.so.5<br>
#6  0x00007ffff04b9b1f in QString::QString(int, QChar) () at<br>
/lib64/libQt5Core.so.5<br>
#7  0x00007ffff04978f7 in QLocalePrivate::dateTimeToString(QString<br>
const&, QDateTime const&, QDate const&, QTime const&, QLocale const*)<br>
const () at /lib64/libQt5Core.so.5<br>
#8  0x00007ffff049867e in QLocale::toString(QDateTime const&, QString<br>
const&) const () at /lib64/libQt5Core.so.5<br>
#9  0x00007ffff1692e64 in QDateTimeEdit::textFromDateTime(QDateTime<br>
const&) const () at /lib64/libQt5Widgets.so.5<br>
#10 0x00007ffff1692d63 in QDateTimeEditPrivate::textFromValue(QVariant<br>
const&) const () at /lib64/libQt5Widgets.so.5<br>
#11 0x00007ffff169341b in QDateTimeEditPrivate::updateEdit() () at<br>
/lib64/libQt5Widgets.so.5<br>
#12 0x00007ffff167815c in QAbstractSpinBoxPrivate::setValue(QVariant<br>
const&, EmitPolicy, bool) ()<br>
    at /lib64/libQt5Widgets.so.5<br>
#13 0x00007ffff1693668 in QDateTimeEdit::setTime(QTime const&) () at<br>
/lib64/libQt5Widgets.so.5<br>
#14 0x00000000005e3f19 in MainTab::updateDiveInfo(bool)<br>
(this=0xeed8a0, clear=false)<br>
    at /home/torvalds/src/subsurface/qt-ui/maintab.cpp:539<br>
#15 0x00000000004fafd0 in MainWindow::current_dive_changed(int)<br>
(this=0xdadfb0, divenr=469)<br>
    at /home/torvalds/src/subsurface/qt-ui/mainwindow.cpp:268<br>
...<br>
<br>
which doesn't look very interesting. The corruption probably happened<br>
at some earlier point.<br>
<br>
I tried to run it under valgrind in case that shows anything more<br>
interesting, but that actually crashed very quickly in WTFCrash with<br>
address 0xbbadbeef, which seems to be some WebKit issue with valgrind.<br>
Googling valgrind and WTFCrash and "0xbbadbeef" implies I'm not the<br>
only one, but it makes valgrind not give anything useful for this.<br>
<br>
Sorry for useless bug report. I don't know what else to try.<br></blockquote><div><br></div><div>Linus,</div><div><br></div><div>This crash is not related to subsurface but to Qt, I'm not sure what happened there but did you updated your Qt and didn`t compiled Subsurface after update?<br></div><div>The #13 0x00007ffff1693668 in QDateTimeEdit::setTime(QTime const&) () line tells me that this Qt fault, we are passing  a stack variable to a QDateTime and it`s getting corrupted inside an internal impelmentation of QArrayData</div><div><br></div><div>Thiago?</div><div><br></div><div>Tomaz</div><div><br></div><div><br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex">
<br>
              Linus<br>
_______________________________________________<br>
subsurface mailing list<br>
<a href="mailto:subsurface@subsurface-divelog.org">subsurface@subsurface-divelog.org</a><br>
<a href="http://lists.subsurface-divelog.org/cgi-bin/mailman/listinfo/subsurface" rel="noreferrer" target="_blank">http://lists.subsurface-divelog.org/cgi-bin/mailman/listinfo/subsurface</a><br>
</blockquote></div><br></div></div>