Acce0ss / shellex

ShellEx shell executor for Sailfish OS
BSD 3-Clause "New" or "Revised" License
5 stars 3 forks source link

Random crashing #5

Open Acce0ss opened 10 years ago

Acce0ss commented 10 years ago

The app occasionally crashes from SIGSEGV. I haven't yet isolated how to reproduce every time. It seems to be triggered when returning to the app from the home screen.

Currently the backtrace from gdb has given following output: from /lib/libc.so.6 in ?? () ... __libc_start_main () from /lib/libc.so.6 Cannot access memory address 0x0 This would suggest that null pointer is being used somewhere (in libc??).

before I also got some SIGSEGV from something called QV8QObjectWrapper and QProcess::waitForFinished.

If anyone can help me to get to the root of this, I would be really thankful.

Acce0ss commented 10 years ago

New backtrace, when running "gdb harbour-shellex" ie. starting without the invoker:

0 in QV8QObjectWrapper::newQObject(QObject_) () from /usr/lib/libQt5Qml.so.5

1 in QV8Engine::fromVariant(QVariant const&) () from /usr/lib/libQt5Qml.so.5

2 in QV8QObjectWrapper::GetProperty(QV8Engine, QObject, v8::Handlev8::value_, QHashedV8String const&, QQmlContextData*, QV8QObjectWrapper::RevisionMode) () from /usr/lib/libQt5Qml.so.5

3 in QV8QObjectWrapper::Getter(v8::Localv8::String, v8::AccessorInfo const&) () from /usr/lib/libQt5Qml.so.5

4 in ?? () from /usr/lib/libQt5V8.so.5

5 in ?? () from /usr/lib/libQt5V8.so.5

Backtrace stopped: previous frame identical to this frame (corrupt stack?)

Now let's see if this tells anything about the problem..

Acce0ss commented 10 years ago

found something about this and using beginResetModel() and endResetModel() properly seems to fix it, needs more testing though.

Acce0ss commented 10 years ago

Still not fixed.. Suspecting erroneous usage of QAbstractListModel