<html dir="ltr"><head><meta name="qrichtext" content="1"><style type="text/css">
p, li { white-space: pre-wrap; }
</style></head><body style="text-align:left; direction:ltr;"><div>On Sun, 2019-07-14 at 10:03 +0200, Berthold Stoeger wrote:</div><blockquote type="cite" style="margin:0 0 0 .8ex; border-left:2px #729fcf solid;padding-left:1ex">
<p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; -qt-user-state:0;">Hi Steve,</p>
<p style="-qt-paragraph-type:empty; margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; "> </p>
<p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; -qt-user-state:0;">On Sunday, 14 July 2019 08:00:44 CEST Steve wrote:</p>
<p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; -qt-user-state:0;">> I had a quick chance today to setup a build environment, I also found</p>
<p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; -qt-user-state:0;">> something that consistently caused it to crash which was loading from</p>
<p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; -qt-user-state:0;">> cloud and then trying to save to a local file.eg: load from cloud, then</p>
<p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; -qt-user-state:0;">> file save as choose location click save button then Segmentation fault</p>
<p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; -qt-user-state:0;">> (core dumped) unfortunately the debug did not show any more</p>
<p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; -qt-user-state:0;">> information.Can anyone else reproduce this?</p>
<p style="-qt-paragraph-type:empty; margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; "> </p>
<p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; -qt-user-state:0;">Please try to run under gdb:</p>
<p style="-qt-paragraph-type:empty; margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; "> </p>
<p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; -qt-user-state:0;">$ gdb ./subsurface</p>
<p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; -qt-user-state:0;"><span style=" font-family:'monospace'; color:#000000; background-color:#ffffff;">(gdb) run</span></p>
<p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; -qt-user-state:0;"><span style=" font-family:'monospace'; color:#000000; background-color:#ffffff;">... make it crash ...</span></p>
<p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; -qt-user-state:0;"><span style=" font-family:'monospace'; color:#000000; background-color:#ffffff;">(gdb) where</span></p>
<p style="-qt-paragraph-type:empty; margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; "> </p>
<p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; -qt-user-state:0;"><span style=" font-family:'monospace'; color:#000000; background-color:#ffffff;">That should give a backtrace.</span></p>
<p style="-qt-paragraph-type:empty; margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; "> </p>
<p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; -qt-user-state:0;"><span style=" font-family:'monospace'; color:#000000; background-color:#ffffff;">Alternatively, run it under 'valgrind'</span></p>
<p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; -qt-user-state:0;"><span style=" font-family:'monospace'; color:#000000; background-color:#ffffff;">$ valgrind ./subsurface 2>dump</span></p>
<p style="-qt-paragraph-type:empty; margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; "> </p>
<p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; -qt-user-state:0;"><span style=" font-family:'monospace'; color:#000000; background-color:#ffffff;">But be warned that this is very slow.</span></p>
<p style="-qt-paragraph-type:empty; margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; "> </p>
<p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; -qt-user-state:0;"><span style=" font-family:'monospace'; color:#000000; background-color:#ffffff;">Thank you,</span></p>
<p style="-qt-paragraph-type:empty; margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; "> </p>
<p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; -qt-user-state:0;"><span style=" font-family:'monospace'; color:#000000; background-color:#ffffff;">Berthold</span></p></blockquote><div><br></div><div><br></div><div><br></div><div><br></div><div>Cheers, output below:</div><div><br></div><div>[<a href="mailto:steve@t490">steve@t490</a> ~]$ gdb ./src/subsurface/build/subsurface</div><div>GNU gdb (GDB) Fedora 8.3-6.fc30</div><div>Copyright (C) 2019 Free Software Foundation, Inc.</div><div>License GPLv3+: GNU GPL version 3 or later <<a href="http://gnu.org/licenses/gpl.html">http://gnu.org/licenses/gpl.html</a>></div><div>This is free software: you are free to change and redistribute it.</div><div>There is NO WARRANTY, to the extent permitted by law.</div><div>Type "show copying" and "show warranty" for details.</div><div>This GDB was configured as "x86_64-redhat-linux-gnu".</div><div>Type "show configuration" for configuration details.</div><div>For bug reporting instructions, please see:</div><div><<a href="http://www.gnu.org/software/gdb/bugs/>">http://www.gnu.org/software/gdb/bugs/></a>;.</div><div>Find the GDB manual and other documentation resources online at:</div><div>    <<a href="http://www.gnu.org/software/gdb/documentation/>">http://www.gnu.org/software/gdb/documentation/></a>;.</div><div><br></div><div>For help, type "help".</div><div>Type "apropos word" to search for commands related to "word"...</div><div>Reading symbols from ./src/subsurface/build/subsurface...</div><div>(gdb) run</div><div>Starting program: /home/steve/src/subsurface/build/subsurface </div><div>Missing separate debuginfos, use: dnf debuginfo-install glibc-2.29-15.fc30.x86_64</div><div>[Thread debugging using libthread_db enabled]</div><div>Using host libthread_db library "/lib64/libthread_db.so.1".</div><div>[New Thread 0x7ffff21e0700 (LWP 19223)]</div><div>[New Thread 0x7ffff19a4700 (LWP 19232)]</div><div>Warning: Ignoring XDG_SESSION_TYPE=wayland on Gnome. Use QT_QPA_PLATFORM=wayland to run on Wayland anyway.</div><div>[New Thread 0x7ffff0e00700 (LWP 19427)]</div><div>[New Thread 0x7fffd65a7700 (LWP 19909)]</div><div>[New Thread 0x7fffd5da6700 (LWP 19910)]</div><div>[New Thread 0x7fffd55a5700 (LWP 19913)]</div><div>[New Thread 0x7fffd4da4700 (LWP 19917)]</div><div>[New Thread 0x7fffc6cda700 (LWP 20205)]</div><div>[New Thread 0x7fffc61d1700 (LWP 20509)]</div><div>[New Thread 0x7fffbaf80700 (LWP 862)]</div><div>[New Thread 0x7fffba77f700 (LWP 925)]</div><div>[Thread 0x7fffba77f700 (LWP 925) exited]</div><div>[Thread 0x7fffbaf80700 (LWP 862) exited]</div><div>[New Thread 0x7fffbaf80700 (LWP 7419)]</div><div>[Thread 0x7fffbaf80700 (LWP 7419) exited]</div><div>[New Thread 0x7fffbaf80700 (LWP 7422)]</div><div>[New Thread 0x7fffba77f700 (LWP 7423)]</div><div>[New Thread 0x7fffb9f7e700 (LWP 7424)]</div><div>[Thread 0x7fffb9f7e700 (LWP 7424) exited]</div><div>[Thread 0x7fffbaf80700 (LWP 7422) exited]</div><div>[New Thread 0x7fffbaf80700 (LWP 7425)]</div><div>[Thread 0x7fffd55a5700 (LWP 19913) exited]</div><div>[New Thread 0x7fffd55a5700 (LWP 7434)]</div><div>[New Thread 0x7fffb9f7e700 (LWP 7435)]</div><div>[Thread 0x7fffb9f7e700 (LWP 7435) exited]</div><div>[Thread 0x7fffd55a5700 (LWP 7434) exited]</div><div>[Thread 0x7fffba77f700 (LWP 7423) exited]</div><div>[New Thread 0x7fffba77f700 (LWP 7444)]</div><div>[New Thread 0x7fffd55a5700 (LWP 7445)]</div><div>[New Thread 0x7fffb9f7e700 (LWP 7446)]</div><div>[New Thread 0x7fffb977d700 (LWP 7447)]</div><div>[Thread 0x7fffb9f7e700 (LWP 7446) exited]</div><div>[Thread 0x7fffb977d700 (LWP 7447) exited]</div><div>[Thread 0x7fffd55a5700 (LWP 7445) exited]</div><div>[New Thread 0x7fffd55a5700 (LWP 7457)]</div><div>[Thread 0x7fffd55a5700 (LWP 7457) exited]</div><div>[New Thread 0x7fffd55a5700 (LWP 7462)]</div><div>[Thread 0x7fffba77f700 (LWP 7444) exited]</div><div><br></div><div>Thread 1 "subsurface" received signal SIGSEGV, Segmentation fault.</div><div>0x0000000000708fcd in save_cylinder_info (dive=0xc34f240, b=0x7fffffffc2c0) at /home/steve/src/subsurface/core/save-xml.c:193</div><div>193                         show_utf8(b, cylinderuse_text[cylinder->cylinder_use], " use='", "'", 1);</div><div>Missing separate debuginfos, use: dnf debuginfo-install GConf2-3.2.6-26.fc30.x86_64 adwaita-qt5-1.0.90-2.fc30.x86_64 at-spi2-atk-2.32.0-1.fc30.x86_64 at-spi2-core-2.32.1-2.fc30.x86_64 atk-2.32.0-1.fc30.x86_64 brotli-1.0.7-3.fc30.x86_64 bzip2-libs-1.0.6-29.fc30.x86_64 cairo-1.16.0-5.fc30.x86_64 cairo-gobject-1.16.0-5.fc30.x86_64 cyrus-sasl-lib-2.1.27-0.6rc7.fc30.x86_64 dbus-glib-0.110-5.fc30.x86_64 dbus-libs-1.12.16-1.fc30.x86_64 dconf-0.32.0-1.fc30.x86_64 expat-2.2.7-1.fc30.x86_64 fontconfig-2.13.1-8.fc30.x86_64 freetype-2.9.1-7.fc30.x86_64 fribidi-1.0.5-2.fc30.x86_64 gdk-pixbuf2-2.38.1-1.fc30.x86_64 glib2-2.60.4-1.fc30.x86_64 graphite2-1.3.10-7.fc30.x86_64 gtk3-3.24.10-1.fc30.x86_64 harfbuzz-2.3.1-1.fc30.x86_64 keyutils-libs-1.6-2.fc30.x86_64 krb5-libs-1.17-14.fc30.x86_64 libICE-1.0.9-15.fc30.x86_64 libSM-1.2.3-2.fc30.x86_64 libX11-1.6.7-1.fc30.x86_64 libX11-xcb-1.6.7-1.fc30.x86_64 libXau-1.0.9-1.fc30.x86_64 libXcursor-1.1.15-5.fc30.x86_64 libXext-1.3.3-11.fc30.x86_64 libXfixes-5.0.3-9.fc30.x86_64 libXi-1.7.9-9.fc30.x86_64 libXinerama-1.1.4-3.fc30.x86_64 libXrandr-1.5.1-9.fc30.x86_64 libXrender-0.9.10-9.fc30.x86_64 libXxf86vm-1.1.4-11.fc30.x86_64 libblkid-2.33.2-1.fc30.x86_64 libcurl-7.64.0-8.fc30.x86_64 libdrm-2.4.99-1.fc30.x86_64 libepoxy-1.5.3-2.fc30.x86_64 libgcc-9.1.1-1.fc30.x86_64 libgcrypt-1.8.4-3.fc30.x86_64 libglvnd-glx-1.1.0-4.gitf92208b.fc30.x86_64 libgpg-error-1.33-2.fc30.x86_64 libicu-63.2-2.fc30.x86_64 libidn2-2.2.0-1.fc30.x86_64 libmount-2.33.2-1.fc30.x86_64 libnghttp2-1.38.0-1.fc30.x86_64 libpng-1.6.36-1.fc30.x86_64 libpsl-0.20.2-6.fc30.x86_64 librsvg2-2.45.6-1.fc30.x86_64 libselinux-2.9-1.fc30.x86_64 libssh-0.8.7-1.fc30.x86_64 libssh2-1.8.2-1.fc30.x86_64 libstdc++-9.1.1-1.fc30.x86_64 libthai-0.1.28-2.fc30.x86_64 libunistring-0.9.10-5.fc30.x86_64 libusbx-1.0.22-2.fc30.x86_64 libuuid-2.33.2-1.fc30.x86_64 libwayland-cursor-1.17.0-1.fc30.x86_64 libxcrypt-4.4.6-2.fc30.x86_64 libxkbcommon-x11-0.8.3-1.fc30.x86_64 libxml2-2.9.9-2.fc30.x86_64 libxshmfence-1.3-4.fc30.x86_64 libxslt-1.1.33-1.fc30.x86_64 libzip-1.5.2-1.fc30.x86_64 lz4-libs-1.8.3-2.fc30.x86_64 mesa-libglapi-19.0.8-1.fc30.x86_64 openssl-libs-1.1.1c-2.fc30.x86_64 pcre-8.43-2.fc30.x86_64 pcre2-10.33-4.fc30.x86_64 pcre2-utf16-10.33-4.fc30.x86_64 qgnomeplatform-0.5-10.fc30.x86_64 qt5-qtbase-5.12.4-1.fc30.x86_64 qt5-qtbase-gui-5.12.4-1.fc30.x86_64 qt5-qtconnectivity-5.12.4-1.fc30.x86_64 qt5-qtdeclarative-5.12.4-1.fc30.x86_64 qt5-qtlocation-5.12.4-1.fc30.x86_64 sqlite-libs-3.26.0-5.fc30.x86_64 sssd-client-2.2.0-3.fc30.x86_64 xcb-util-0.4.0-12.fc30.x86_64 xcb-util-image-0.4.0-12.fc30.x86_64 xcb-util-keysyms-0.4.0-10.fc30.x86_64 xcb-util-renderutil-0.3.9-13.fc30.x86_64 xz-libs-5.2.4-5.fc30.x86_64 zlib-1.2.11-15.fc30.x86_64</div><div>(gdb) </div><div>(gdb) where</div><div>#0  0x0000000000708fcd in save_cylinder_info (dive=0xc34f240, b=0x7fffffffc2c0) at /home/steve/src/subsurface/core/save-xml.c:193</div><div>#1  save_one_dive_to_mb (<a href="mailto:b=b@entry">b=b@entry</a>=0x7fffffffc2c0, dive=0xc34f240, <a href="mailto:anonymize=anonymize@entry">anonymize=anonymize@entry</a>=false) at /home/steve/src/subsurface/core/save-xml.c:501</div><div>#2  0x000000000070a13d in save_trip (anonymize=false, trip=0xccb4eb0, b=0x7fffffffc2c0) at /home/steve/src/subsurface/core/save-xml.c:541</div><div>#3  save_dives_buffer (<a href="mailto:b=b@entry">b=b@entry</a>=0x7fffffffc2c0, <a href="mailto:select_only=select_only@entry">select_only=select_only@entry</a>=false, <a href="mailto:anonymize=anonymize@entry">anonymize=anonymize@entry</a>=false) at /home/steve/src/subsurface/core/save-xml.c:654</div><div>#4  0x000000000070a203 in save_dives_logic (filename=0x9512678 "<a href="mailto:/home/steve/stevewilliams@internode.on.net.ssrf">/home/steve/stevewilliams@internode.on.net.ssrf</a>", <a href="mailto:select_only=select_only@entry">select_only=select_only@entry</a>=false, <a href="mailto:anonymize=anonymize@entry">anonymize=anonymize@entry</a>=false)</div><div>    at /home/steve/src/subsurface/core/save-xml.c:729</div><div>#5  0x000000000070a2c9 in save_dives (filename=<optimized out>) at /home/steve/src/subsurface/core/save-xml.c:581</div><div>#6  0x00000000005b997c in MainWindow::file_save_as (this=0xef5be0) at /usr/include/qt5/QtCore/qarraydata.h:208</div><div>#7  0x0000000000514a1c in MainWindow::qt_static_metacall (_o=<optimized out>, _c=<optimized out>, _id=<optimized out>, _a=<optimized out>)</div><div>    at /home/steve/src/subsurface/build/desktop-widgets/subsurface_interface_autogen/EWIEGA46WW/moc_mainwindow.cpp:327</div><div>#8  0x0000000000518ba3 in MainWindow::qt_metacall (this=0xef5be0, _c=QMetaObject::InvokeMetaMethod, _id=5, _a=0x7fffffffc500)</div><div>    at /home/steve/src/subsurface/build/desktop-widgets/subsurface_interface_autogen/EWIEGA46WW/moc_mainwindow.cpp:432</div><div>#9  0x00007ffff5cdce3c in QMetaObject::activate(QObject*, int, int, void**) () from /lib64/libQt5Core.so.5</div><div>#10 0x00007ffff7292476 in QAction::triggered(bool) () from /lib64/libQt5Widgets.so.5</div><div>#11 0x00007ffff7294b32 in QAction::activate(QAction::ActionEvent) () from /lib64/libQt5Widgets.so.5</div><div>#12 0x00007ffff741a412 in ?? () from /lib64/libQt5Widgets.so.5</div><div>#13 0x00007ffff7421b5e in ?? () from /lib64/libQt5Widgets.so.5</div><div>#14 0x00007ffff7422b82 in QMenu::mouseReleaseEvent(QMouseEvent*) () from /lib64/libQt5Widgets.so.5</div><div>#15 0x00007ffff72db16e in QWidget::event(QEvent*) () from /lib64/libQt5Widgets.so.5</div><div>#16 0x00007ffff742517b in QMenu::event(QEvent*) () from /lib64/libQt5Widgets.so.5</div><div>#17 0x00007ffff7298af6 in QApplicationPrivate::notify_helper(QObject*, QEvent*) () from /lib64/libQt5Widgets.so.5</div><div>#18 0x00007ffff72a20d3 in QApplication::notify(QObject*, QEvent*) () from /lib64/libQt5Widgets.so.5</div><div>#19 0x00007ffff5cb2ae8 in QCoreApplication::notifyInternal2(QObject*, QEvent*) () from /lib64/libQt5Core.so.5</div><div>#20 0x00007ffff72a11b7 in QApplicationPrivate::sendMouseEvent(QWidget*, QMouseEvent*, QWidget*, QWidget*, QWidget**, QPointer<QWidget>&, bool, bool) () from /lib64/libQt5Widgets.so.5</div><div>#21 0x00007ffff72f79a4 in ?? () from /lib64/libQt5Widgets.so.5</div><div>#22 0x00007ffff72f9eac in ?? () from /lib64/libQt5Widgets.so.5</div><div>#23 0x00007ffff7298af6 in QApplicationPrivate::notify_helper(QObject*, QEvent*) () from /lib64/libQt5Widgets.so.5</div><div>#24 0x00007ffff72a1e80 in QApplication::notify(QObject*, QEvent*) () from /lib64/libQt5Widgets.so.5</div><div>#25 0x00007ffff5cb2ae8 in QCoreApplication::notifyInternal2(QObject*, QEvent*) () from /lib64/libQt5Core.so.5</div><div>#26 0x00007ffff6832848 in QGuiApplicationPrivate::processMouseEvent(QWindowSystemInterfacePrivate::MouseEvent*) () from /lib64/libQt5Gui.so.5</div><div>#27 0x00007ffff683415b in QGuiApplicationPrivate::processWindowSystemEvent(QWindowSystemInterfacePrivate::WindowSystemEvent*) () from /lib64/libQt5Gui.so.5</div><div>#28 0x00007ffff680fd1b in QWindowSystemInterface::sendWindowSystemEvents(QFlags<QEventLoop::ProcessEventsFlag>) () from /lib64/libQt5Gui.so.5</div><div>#29 0x00007ffff102eb9e in ?? () from /lib64/libQt5XcbQpa.so.5</div><div>#30 0x00007ffff4777edd in g_main_context_dispatch () from /lib64/libglib-2.0.so.0</div><div>#31 0x00007ffff4778270 in ?? () from /lib64/libglib-2.0.so.0</div><div>#32 0x00007ffff4778313 in g_main_context_iteration () from /lib64/libglib-2.0.so.0</div><div>#33 0x00007ffff5d07bd5 in QEventDispatcherGlib::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () from /lib64/libQt5Core.so.5</div><div>#34 0x00007ffff5cb19eb in QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) () from /lib64/libQt5Core.so.5</div><div>#35 0x00007ffff5cb9726 in QCoreApplication::exec() () from /lib64/libQt5Core.so.5</div><div>#36 0x000000000050a684 in main (argc=<optimized out>, argv=<optimized out>) at /home/steve/src/subsurface/subsurface-desktop-main.cpp:116</div><div>(gdb) </div><div><br></div><div><br></div><div></div></body></html>