==24834== Memcheck, a memory error detector ==24834== Copyright (C) 2002-2017, and GNU GPL'd, by Julian Seward et al. ==24834== Using Valgrind-3.13.0 and LibVEX; rerun with -h for copyright info ==24834== Command: demo/Demo ==24834== Parent PID: 4625 ==24834== --24834-- WARNING: unhandled amd64-linux syscall: 332 --24834-- You may be able to write your own handler. --24834-- Read the file README_MISSING_SYSCALL_OR_IOCTL. --24834-- Nevertheless we consider this a bug. Please report --24834-- it at http://valgrind.org/support/bug_reports.html. ==24834== Invalid read of size 4 ==24834== at 0x168A40: (anonymous namespace)::qbytearray_t::operator QByteArray() const (in /tmp/rust-qt-binding-generator-git/build/demo/Demo) ==24834== by 0x168A90: (anonymous namespace)::set_qbytearray(QByteArray*, (anonymous namespace)::qbytearray_t*) (in /tmp/rust-qt-binding-generator-git/build/demo/Demo) ==24834== by 0x179567: file_system_tree_data_file_icon (in /tmp/rust-qt-binding-generator-git/build/demo/Demo) ==24834== by 0x1697EF: FileSystemTree::fileIcon(QModelIndex const&) const (in /tmp/rust-qt-binding-generator-git/build/demo/Demo) ==24834== by 0x169D37: FileSystemTree::data(QModelIndex const&, int) const (in /tmp/rust-qt-binding-generator-git/build/demo/Demo) ==24834== by 0x7D46738: QSortFilterProxyModel::data(QModelIndex const&, int) const (in /usr/lib/libQt5Core.so.5.10.1) ==24834== by 0x176146: SortedModel::data(QModelIndex const&, int) const (in /tmp/rust-qt-binding-generator-git/build/demo/Demo) ==24834== by 0x6EA0839: QStyledItemDelegate::initStyleOption(QStyleOptionViewItem*, QModelIndex const&) const (in /usr/lib/libQt5Widgets.so.5.10.1) ==24834== by 0x6E9FDA6: QStyledItemDelegate::sizeHint(QStyleOptionViewItem const&, QModelIndex const&) const (in /usr/lib/libQt5Widgets.so.5.10.1) ==24834== by 0x6EE4DC5: QTreeView::indexRowSizeHint(QModelIndex const&) const (in /usr/lib/libQt5Widgets.so.5.10.1) ==24834== by 0x6EE577E: QTreeViewPrivate::layout(int, bool, bool) (in /usr/lib/libQt5Widgets.so.5.10.1) ==24834== by 0x6EED97F: QTreeView::doItemsLayout() (in /usr/lib/libQt5Widgets.so.5.10.1) ==24834== Address 0x9 is not stack'd, malloc'd or (recently) free'd ==24834== ==24834== ==24834== Process terminating with default action of signal 11 (SIGSEGV): dumping core ==24834== Access not within mapped region at address 0x9 ==24834== at 0x168A40: (anonymous namespace)::qbytearray_t::operator QByteArray() const (in /tmp/rust-qt-binding-generator-git/build/demo/Demo) ==24834== by 0x168A90: (anonymous namespace)::set_qbytearray(QByteArray*, (anonymous namespace)::qbytearray_t*) (in /tmp/rust-qt-binding-generator-git/build/demo/Demo) ==24834== by 0x179567: file_system_tree_data_file_icon (in /tmp/rust-qt-binding-generator-git/build/demo/Demo) ==24834== by 0x1697EF: FileSystemTree::fileIcon(QModelIndex const&) const (in /tmp/rust-qt-binding-generator-git/build/demo/Demo) ==24834== by 0x169D37: FileSystemTree::data(QModelIndex const&, int) const (in /tmp/rust-qt-binding-generator-git/build/demo/Demo) ==24834== by 0x7D46738: QSortFilterProxyModel::data(QModelIndex const&, int) const (in /usr/lib/libQt5Core.so.5.10.1) ==24834== by 0x176146: SortedModel::data(QModelIndex const&, int) const (in /tmp/rust-qt-binding-generator-git/build/demo/Demo) ==24834== by 0x6EA0839: QStyledItemDelegate::initStyleOption(QStyleOptionViewItem*, QModelIndex const&) const (in /usr/lib/libQt5Widgets.so.5.10.1) ==24834== by 0x6E9FDA6: QStyledItemDelegate::sizeHint(QStyleOptionViewItem const&, QModelIndex const&) const (in /usr/lib/libQt5Widgets.so.5.10.1) ==24834== by 0x6EE4DC5: QTreeView::indexRowSizeHint(QModelIndex const&) const (in /usr/lib/libQt5Widgets.so.5.10.1) ==24834== by 0x6EE577E: QTreeViewPrivate::layout(int, bool, bool) (in /usr/lib/libQt5Widgets.so.5.10.1) ==24834== by 0x6EED97F: QTreeView::doItemsLayout() (in /usr/lib/libQt5Widgets.so.5.10.1) ==24834== If you believe this happened as a result of a stack ==24834== overflow in your program's main thread (unlikely but ==24834== possible), you can try to increase the size of the ==24834== main thread stack using the --main-stacksize= flag. ==24834== The main thread stack size used in this run was 8388608. ==24834== ==24834== HEAP SUMMARY: ==24834== in use at exit: 2,043,985 bytes in 13,947 blocks ==24834== total heap usage: 67,040 allocs, 53,093 frees, 1,540,823,335 bytes allocated ==24834== ==24834== LEAK SUMMARY: ==24834== definitely lost: 0 bytes in 0 blocks ==24834== indirectly lost: 0 bytes in 0 blocks ==24834== possibly lost: 288,799 bytes in 6 blocks ==24834== still reachable: 1,755,186 bytes in 13,941 blocks ==24834== suppressed: 0 bytes in 0 blocks ==24834== Rerun with --leak-check=full to see details of leaked memory ==24834== ==24834== For counts of detected and suppressed errors, rerun with: -v ==24834== ERROR SUMMARY: 1 errors from 1 contexts (suppressed: 0 from 0)