SIGSEGV, Segmentation fault on startup

Post here for help on using FreeCAD's graphical user interface (GUI).
Forum rules
and Helpful information
IMPORTANT: Please click here and read this first, before asking for help

Also, be nice to others! Read the FreeCAD code of conduct!
Post Reply
vikebo
Posts: 19
Joined: Sun Aug 21, 2016 7:50 pm

SIGSEGV, Segmentation fault on startup

Post by vikebo »

Hi,

Tried both of the appimages below on a Thinkpad W540 with a fresh install of Debain (Linux w540 5.10.0-8-amd64 #1 SMP Debian 5.10.46-4 (2021-08-03) x86_64 GNU/Linux. Also tried removing unsupported libstdc++ from the weekly build as descibed.

FreeCAD_0.19-24291-Linux-Conda_glibc2.12-x86_64.AppImage
FreeCAD_weekly-builds-25645-Linux-Conda_glibc2.12-x86_64.AppImage

Unfortunately, I get a segmentation fault before the gui appears and the message is very similar for all images:

Code: Select all

FreeCAD 0.20, Libs: 0.20R25645 (Git)
© Juergen Riegel, Werner Mayer, Yorik van Havre and others 2001-2021
FreeCAD is free and open-source software licensed under the terms of LGPL2+ license.
FreeCAD wouldn't be possible without FreeCAD community.
  #####                 ####  ###   ####  
  #                    #      # #   #   # 
  #     ##  #### ####  #     #   #  #   # 
  ####  # # #  # #  #  #     #####  #   # 
  #     #   #### ####  #    #     # #   # 
  #     #   #    #     #    #     # #   #  ##  ##  ##
  #     #   #### ####   ### #     # ####   ##  ##  ##

Program received signal SIGSEGV, Segmentation fault.
#0  /lib/x86_64-linux-gnu/libc.so.6(+0x3bd60) [0x7f266b477d60]
#1  0x7f266be011a6 in QBackingStore::beginPaint(QRegion const&) from /tmp/.mount_FreeCAiBYe9S/usr/bin/../lib/libQt5Gui.so.5+0xb2
#2  /tmp/.mount_FreeCAiBYe9S/usr/bin/../lib/libQt5Widgets.so.5(+0x17eb7b) [0x7f266c1b7b7b]
#3  /tmp/.mount_FreeCAiBYe9S/usr/bin/../lib/libQt5Widgets.so.5(+0x17efaf) [0x7f266c1b7faf]
#4  0x7f266c1c8dd4 in QWidgetPrivate::syncBackingStore() from /tmp/.mount_FreeCAiBYe9S/usr/bin/../lib/libQt5Widgets.so.5+0x66
#5  0x7f266c1d8cd9 in QWidget::event(QEvent*) from /tmp/.mount_FreeCAiBYe9S/usr/bin/../lib/libQt5Widgets.so.5+0x91f
#6  0x7f266c2b94c5 in QSplashScreen::event(QEvent*) from /tmp/.mount_FreeCAiBYe9S/usr/bin/../lib/libQt5Widgets.so.5+0x97
#7  0x7f266c1ad7f2 in QApplicationPrivate::notify_helper(QObject*, QEvent*) from /tmp/.mount_FreeCAiBYe9S/usr/bin/../lib/libQt5Widgets.so.5+0xdc
#8  0x7f266c1b331d in QApplication::notify(QObject*, QEvent*) from /tmp/.mount_FreeCAiBYe9S/usr/bin/../lib/libQt5Widgets.so.5+0x1ac9
#9  0x7f266d4870d9 in Gui::GUIApplication::notify(QObject*, QEvent*) from /tmp/.mount_FreeCAiBYe9S/usr/bin/../lib/libFreeCADGui.so+0x89
#10  0x7f266b985606 in QCoreApplication::notifyInternal2(QObject*, QEvent*) from /tmp/.mount_FreeCAiBYe9S/usr/bin/../lib/libQt5Core.so.5+0x86
#11  /tmp/.mount_FreeCAiBYe9S/usr/bin/../lib/libQt5Widgets.so.5(+0x17f695) [0x7f266c1b8695]
#12  /tmp/.mount_FreeCAiBYe9S/usr/bin/../lib/libQt5Widgets.so.5(+0x17fd53) [0x7f266c1b8d53]
#13  0x7f266c1da3a3 in void QWidgetPrivate::repaint<QRect>(QRect) from /tmp/.mount_FreeCAiBYe9S/usr/bin/../lib/libQt5Widgets.so.5+0x7d
#14  0x7f266c1cc270 in QWidget::repaint() from /tmp/.mount_FreeCAiBYe9S/usr/bin/../lib/libQt5Widgets.so.5+0x24
#15  0x7f266c2b8c20 in QSplashScreen::repaint() from /tmp/.mount_FreeCAiBYe9S/usr/bin/../lib/libQt5Widgets.so.5+0x6
#16  /tmp/.mount_FreeCAiBYe9S/usr/bin/../lib/libFreeCADGui.so(+0x89f6b4) [0x7f266d88c6b4]
#17  0x7f266c64a0e1 in Base::ConsoleSingleton::NotifyLog(char const*) from /tmp/.mount_FreeCAiBYe9S/usr/bin/../lib/libFreeCADBase.so+0xc1
#18  0x7f266c64a3f4 in Base::ConsoleSingleton::Log(char const*, ...) from /tmp/.mount_FreeCAiBYe9S/usr/bin/../lib/libFreeCADBase.so+0x254
#19  0x7f266d3e9c92 in messageHandler(QtMsgType, QMessageLogContext const&, QString const&) from /tmp/.mount_FreeCAiBYe9S/usr/bin/../lib/libFreeCADGui.so+0x52
#20  /tmp/.mount_FreeCAiBYe9S/usr/bin/../lib/libQt5Core.so.5(+0x9d410) [0x7f266b875410]
#21  /tmp/.mount_FreeCAiBYe9S/usr/bin/../lib/libQt5Core.so.5(+0x9d4ef) [0x7f266b8754ef]
#22  0x7f266b8683fd in QMessageLogger::warning(char const*, ...) const from /tmp/.mount_FreeCAiBYe9S/usr/bin/../lib/libQt5Core.so.5+0xa1
#23  /tmp/.mount_FreeCAiBYe9S/usr/plugins/platforms/../../lib/libQt5XcbQpa.so.5(+0x530d5) [0x7f2666fae0d5]
#24  /tmp/.mount_FreeCAiBYe9S/usr/plugins/platforms/../../lib/libQt5XcbQpa.so.5(+0x53833) [0x7f2666fae833]
#25  /tmp/.mount_FreeCAiBYe9S/usr/plugins/platforms/../../lib/libQt5XcbQpa.so.5(+0x54bf9) [0x7f2666fafbf9]
#26  0x7f266be00d7a in QBackingStore::resize(QSize const&) from /tmp/.mount_FreeCAiBYe9S/usr/bin/../lib/libQt5Gui.so.5+0x52
#27  /tmp/.mount_FreeCAiBYe9S/usr/bin/../lib/libQt5Widgets.so.5(+0x17e42b) [0x7f266c1b742b]
#28  /tmp/.mount_FreeCAiBYe9S/usr/bin/../lib/libQt5Widgets.so.5(+0x17ef01) [0x7f266c1b7f01]
#29  /tmp/.mount_FreeCAiBYe9S/usr/bin/../lib/libQt5Widgets.so.5(+0x1af9e2) [0x7f266c1e89e2]
#30  /tmp/.mount_FreeCAiBYe9S/usr/bin/../lib/libQt5Widgets.so.5(+0x1b001e) [0x7f266c1e901e]
#31  0x7f266c1ad7f2 in QApplicationPrivate::notify_helper(QObject*, QEvent*) from /tmp/.mount_FreeCAiBYe9S/usr/bin/../lib/libQt5Widgets.so.5+0xdc
#32  0x7f266c1b331d in QApplication::notify(QObject*, QEvent*) from /tmp/.mount_FreeCAiBYe9S/usr/bin/../lib/libQt5Widgets.so.5+0x1ac9
#33  0x7f266d4870d9 in Gui::GUIApplication::notify(QObject*, QEvent*) from /tmp/.mount_FreeCAiBYe9S/usr/bin/../lib/libFreeCADGui.so+0x89
#34  0x7f266b985606 in QCoreApplication::notifyInternal2(QObject*, QEvent*) from /tmp/.mount_FreeCAiBYe9S/usr/bin/../lib/libQt5Core.so.5+0x86
#35  0x7f266bd2c8ac in QGuiApplicationPrivate::processExposeEvent(QWindowSystemInterfacePrivate::ExposeEvent*) from /tmp/.mount_FreeCAiBYe9S/usr/bin/../lib/libQt5Gui.so.5+0xf2
#36  0x7f266bd2c9f9 in QGuiApplicationPrivate::processWindowSystemEvent(QWindowSystemInterfacePrivate::WindowSystemEvent*) from /tmp/.mount_FreeCAiBYe9S/usr/bin/../lib/libQt5Gui.so.5+0x139
#37  0x7f266bd19c65 in QWindowSystemInterface::sendWindowSystemEvents(QFlags<QEventLoop::ProcessEventsFlag>) from /tmp/.mount_FreeCAiBYe9S/usr/bin/../lib/libQt5Gui.so.5+0x63
#38  /tmp/.mount_FreeCAiBYe9S/usr/plugins/platforms/../../lib/libQt5XcbQpa.so.5(+0x5b010) [0x7f2666fb6010]
#39  /tmp/.mount_FreeCAiBYe9S/usr/bin/../lib/./libglib-2.0.so.0(g_main_context_dispatch+0x27d) [0x7f26680241ed]
#40  /tmp/.mount_FreeCAiBYe9S/usr/bin/../lib/./libglib-2.0.so.0(+0x55481) [0x7f2668024481]
#41  /tmp/.mount_FreeCAiBYe9S/usr/bin/../lib/./libglib-2.0.so.0(g_main_context_iteration+0x31) [0x7f2668024521]
#42  0x7f266b9b40e8 in QEventDispatcherGlib::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) from /tmp/.mount_FreeCAiBYe9S/usr/bin/../lib/libQt5Core.so.5+0x5e
#43  /tmp/.mount_FreeCAiBYe9S/usr/bin/../lib/libFreeCADGui.so(+0x89f6b4) [0x7f266d88c6b4]
#44  0x7f266c64a0e1 in Base::ConsoleSingleton::NotifyLog(char const*) from /tmp/.mount_FreeCAiBYe9S/usr/bin/../lib/libFreeCADBase.so+0xc1
#45  0x7f266c64a3f4 in Base::ConsoleSingleton::Log(char const*, ...) from /tmp/.mount_FreeCAiBYe9S/usr/bin/../lib/libFreeCADBase.so+0x254
#46  0x7f266c64ab2e in Base::ConsoleSingleton::sPyLog(_object*, _object*) from /tmp/.mount_FreeCAiBYe9S/usr/bin/../lib/libFreeCADBase.so+0x6e
#47  /tmp/.mount_FreeCAiBYe9S/usr/bin/../lib/libpython3.9.so.1.0(+0x164b58) [0x7f266cd9db58]
#48  /tmp/.mount_FreeCAiBYe9S/usr/bin/../lib/libpython3.9.so.1.0(_PyObject_MakeTpCall+0x2df) [0x7f266cd992bf]
#49  /tmp/.mount_FreeCAiBYe9S/usr/bin/../lib/libpython3.9.so.1.0(_PyEval_EvalFrameDefault+0x4c8d) [0x7f266cdfe6ed]
#50  /tmp/.mount_FreeCAiBYe9S/usr/bin/../lib/libpython3.9.so.1.0(+0x184459) [0x7f266cdbd459]
#51  /tmp/.mount_FreeCAiBYe9S/usr/bin/../lib/libpython3.9.so.1.0(_PyEval_EvalCodeWithName+0x51) [0x7f266ce63711]
#52  /tmp/.mount_FreeCAiBYe9S/usr/bin/../lib/libpython3.9.so.1.0(PyEval_EvalCodeEx+0x3a) [0x7f266ce6375a]
#53  /tmp/.mount_FreeCAiBYe9S/usr/bin/../lib/libpython3.9.so.1.0(PyEval_EvalCode+0x1c) [0x7f266ce6377c]
#54  /tmp/.mount_FreeCAiBYe9S/usr/bin/../lib/libpython3.9.so.1.0(+0x22a82f) [0x7f266ce6382f]
#55  /tmp/.mount_FreeCAiBYe9S/usr/bin/../lib/libpython3.9.so.1.0(+0x2584ac) [0x7f266ce914ac]
#56  /tmp/.mount_FreeCAiBYe9S/usr/bin/../lib/libpython3.9.so.1.0(PyRun_StringFlags+0xa7) [0x7f266ce91577]
#57  0x7f266c662a5c in Base::InterpreterSingleton::runString[abi:cxx11](char const*) from /tmp/.mount_FreeCAiBYe9S/usr/bin/../lib/libFreeCADBase.so+0x6c
#58  0x7f266d3ec693 in Gui::Application::runInitGuiScript() from /tmp/.mount_FreeCAiBYe9S/usr/bin/../lib/libFreeCADGui.so+0x43
#59  0x7f266d40eb8f in Gui::Application::runApplication() from /tmp/.mount_FreeCAiBYe9S/usr/bin/../lib/libFreeCADGui.so+0xf8f
#60  /tmp/.mount_FreeCAiBYe9S/usr/bin/freecad(+0x451f) [0x5556ee1a851f]
#61  /lib/x86_64-linux-gnu/libc.so.6(__libc_start_main+0xea) [0x7f266b462d0a]
#62  /tmp/.mount_FreeCAiBYe9S/usr/bin/freecad(+0x4841) [0x5556ee1a8841]
vikebo
Posts: 19
Joined: Sun Aug 21, 2016 7:50 pm

Re: SIGSEGV, Segmentation fault on startup

Post by vikebo »

Tried

Code: Select all

strace -f FreeCAD_weekly-builds-25645-Linux-Conda_glibc2.12-x86_64.AppImage
and suspect the problem is related to fuse:

Code: Select all

[pid  8930] mount("/dev/fuse", ".", "fuse", MS_RDONLY|MS_NOSUID|MS_NODEV, "fd=6,rootmode=40000,user_id=1000"...) = -1 EPERM (Operation not permitted)
[pid  8930] write(2, "fusermount: mount failed: Operat"..., 50fusermount: mount failed: Operation not permitted
) = 50
[pid  8930] close(6)                    = 0
[pid  8930] exit_group(1)               = ?
[pid  8930] +++ exited with 1 +++
Have tried to apt install fuse, add a group called fuse, add my user to the group and add user_allow_other + fuse root to /etc/fuse.conf, but the erorr is the same.

Also tried running the appimage with --appimage-extract-and-run, but it fails as well. Think the cause could be different, but the output from strace is much longer so harder to look through.
Post Reply