Linux appimage segmentation fault on startup

Having trouble installing or compiling FreeCAD? Get help here.
Forum rules
Be nice to others! Respect the FreeCAD code of conduct!
vikebo
Posts: 19
Joined: Sun Aug 21, 2016 7:50 pm

Linux appimage segmentation fault on startup

Post by vikebo »

Hello,

I'm unable to start the latest weekly appimage and couldn't find the cause. I have an appimage from January which does work.

Any suggestions?

Linux 5.10.0-16-amd64 #1 SMP Debian 5.10.127-1 (2022-06-30) x86_64 GNU/Linux

Code: Select all

./FreeCAD_weekly-builds-30256-2022-09-02-conda-Linux-x86_64-py310.AppImage

FreeCAD 0.21, Libs: 0.21R30256 (Git)
© Juergen Riegel, Werner Mayer, Yorik van Havre and others 2001-2022
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) [0x7effacb20d60]
#1  0x7effad523ebe in QBackingStore::beginPaint(QRegion const&) from /tmp/.mount_FreeCAFJz27C/usr/bin/../lib/libQt5Gui.so.5+0xb2
#2  /tmp/.mount_FreeCAFJz27C/usr/bin/../lib/libQt5Widgets.so.5(+0x1742ec) [0x7effad90a2ec]
#3  0x7effad92ac1d in QWidget::event(QEvent*) from /tmp/.mount_FreeCAFJz27C/usr/bin/../lib/libQt5Widgets.so.5+0x905
#4  0x7effad9000f7 in QApplicationPrivate::notify_helper(QObject*, QEvent*) from /tmp/.mount_FreeCAFJz27C/usr/bin/../lib/libQt5Widgets.so.5+0xd9
#5  0x7effaec6ce19 in Gui::GUIApplication::notify(QObject*, QEvent*) from /tmp/.mount_FreeCAFJz27C/usr/bin/../lib/libFreeCADGui.so+0x89
#6  0x7effad070608 in QCoreApplication::notifyInternal2(QObject*, QEvent*) from /tmp/.mount_FreeCAFJz27C/usr/bin/../lib/libQt5Core.so.5+0x8e
#7  /tmp/.mount_FreeCAFJz27C/usr/bin/../lib/libQt5Widgets.so.5(+0x174e59) [0x7effad90ae59]
#8  /tmp/.mount_FreeCAFJz27C/usr/bin/../lib/libQt5Widgets.so.5(+0x177039) [0x7effad90d039]
#9  0x7effad91a1f0 in QWidget::repaint(QRect const&) from /tmp/.mount_FreeCAFJz27C/usr/bin/../lib/libQt5Widgets.so.5+0x70
#10  0x7effad91a21f in QWidget::repaint() from /tmp/.mount_FreeCAFJz27C/usr/bin/../lib/libQt5Widgets.so.5+0x27
#11  0x7effada0d808 in QSplashScreen::repaint() from /tmp/.mount_FreeCAFJz27C/usr/bin/../lib/libQt5Widgets.so.5+0x6
#12  /tmp/.mount_FreeCAFJz27C/usr/bin/../lib/libFreeCADGui.so(+0x8f90b4) [0x7effaf0d80b4]
#13  0x7effaddb32d5 in Base::ConsoleSingleton::NotifyLog(char const*) from /tmp/.mount_FreeCAFJz27C/usr/bin/../lib/libFreeCADBase.so+0xc5
#14  0x7effaddb35d4 in Base::ConsoleSingleton::Log(char const*, ...) from /tmp/.mount_FreeCAFJz27C/usr/bin/../lib/libFreeCADBase.so+0x234
#15  0x7effaebcdaa2 in messageHandler(QtMsgType, QMessageLogContext const&, QString const&) from /tmp/.mount_FreeCAFJz27C/usr/bin/../lib/libFreeCADGui.so+0x52
#16  /tmp/.mount_FreeCAFJz27C/usr/bin/../lib/libQt5Core.so.5(+0xa59d7) [0x7effacf539d7]
#17  /tmp/.mount_FreeCAFJz27C/usr/bin/../lib/libQt5Core.so.5(+0xa5a7c) [0x7effacf53a7c]
#18  0x7effacf4652d in QMessageLogger::warning(char const*, ...) const from /tmp/.mount_FreeCAFJz27C/usr/bin/../lib/libQt5Core.so.5+0xa1
#19  /tmp/.mount_FreeCAFJz27C/usr/plugins/platforms/../../lib/libQt5XcbQpa.so.5(+0x4d2f3) [0x7effa7f252f3]
#20  /tmp/.mount_FreeCAFJz27C/usr/plugins/platforms/../../lib/libQt5XcbQpa.so.5(+0x4da5f) [0x7effa7f25a5f]
#21  /tmp/.mount_FreeCAFJz27C/usr/plugins/platforms/../../lib/libQt5XcbQpa.so.5(+0x4eea5) [0x7effa7f26ea5]
#22  0x7effad523a4f in QBackingStore::resize(QSize const&) from /tmp/.mount_FreeCAFJz27C/usr/bin/../lib/libQt5Gui.so.5+0x7f
#23  /tmp/.mount_FreeCAFJz27C/usr/bin/../lib/libQt5Widgets.so.5(+0x173bfd) [0x7effad909bfd]
#24  /tmp/.mount_FreeCAFJz27C/usr/bin/../lib/libQt5Widgets.so.5(+0x1746fa) [0x7effad90a6fa]
#25  /tmp/.mount_FreeCAFJz27C/usr/bin/../lib/libQt5Widgets.so.5(+0x1a499f) [0x7effad93a99f]
#26  0x7effad9000f7 in QApplicationPrivate::notify_helper(QObject*, QEvent*) from /tmp/.mount_FreeCAFJz27C/usr/bin/../lib/libQt5Widgets.so.5+0xd9
#27  0x7effaec6ce19 in Gui::GUIApplication::notify(QObject*, QEvent*) from /tmp/.mount_FreeCAFJz27C/usr/bin/../lib/libFreeCADGui.so+0x89
#28  0x7effad070608 in QCoreApplication::notifyInternal2(QObject*, QEvent*) from /tmp/.mount_FreeCAFJz27C/usr/bin/../lib/libQt5Core.so.5+0x8e
#29  0x7effad43be3d in QGuiApplicationPrivate::processExposeEvent(QWindowSystemInterfacePrivate::ExposeEvent*) from /tmp/.mount_FreeCAFJz27C/usr/bin/../lib/libQt5Gui.so.5+0xef
#30  0x7effad427f29 in QWindowSystemInterface::sendWindowSystemEvents(QFlags<QEventLoop::ProcessEventsFlag>) from /tmp/.mount_FreeCAFJz27C/usr/bin/../lib/libQt5Gui.so.5+0x57
#31  /tmp/.mount_FreeCAFJz27C/usr/plugins/platforms/../../lib/libQt5XcbQpa.so.5(+0x55294) [0x7effa7f2d294]
#32  /tmp/.mount_FreeCAFJz27C/usr/bin/../lib/./libglib-2.0.so.0(g_main_context_dispatch+0x25c) [0x7effa950175c]
#33  /tmp/.mount_FreeCAFJz27C/usr/bin/../lib/./libglib-2.0.so.0(+0x57a29) [0x7effa9501a29]
#34  /tmp/.mount_FreeCAFJz27C/usr/bin/../lib/./libglib-2.0.so.0(g_main_context_iteration+0x31) [0x7effa9501af1]
#35  0x7effad0a13f3 in QEventDispatcherGlib::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) from /tmp/.mount_FreeCAFJz27C/usr/bin/../lib/libQt5Core.so.5+0x5b
#36  /tmp/.mount_FreeCAFJz27C/usr/bin/../lib/libFreeCADGui.so(+0x8f90b4) [0x7effaf0d80b4]
#37  0x7effaddb32d5 in Base::ConsoleSingleton::NotifyLog(char const*) from /tmp/.mount_FreeCAFJz27C/usr/bin/../lib/libFreeCADBase.so+0xc5
#38  0x7effaddb35d4 in Base::ConsoleSingleton::Log(char const*, ...) from /tmp/.mount_FreeCAFJz27C/usr/bin/../lib/libFreeCADBase.so+0x234
#39  0x7effaddb1481 in Base::ConsoleSingleton::sPyLog(_object*, _object*) from /tmp/.mount_FreeCAFJz27C/usr/bin/../lib/libFreeCADBase.so+0x91
#40  /tmp/.mount_FreeCAFJz27C/usr/bin/../lib/libpython3.10.so.1.0(+0x148972) [0x7effae575972]
#41  /tmp/.mount_FreeCAFJz27C/usr/bin/../lib/libpython3.10.so.1.0(_PyObject_MakeTpCall+0x2bb) [0x7effae56e9eb]
#42  /tmp/.mount_FreeCAFJz27C/usr/bin/../lib/libpython3.10.so.1.0(_PyEval_EvalFrameDefault+0x4d8e) [0x7effae569e0e]
#43  /tmp/.mount_FreeCAFJz27C/usr/bin/../lib/libpython3.10.so.1.0(+0x1f0532) [0x7effae61d532]
#44  /tmp/.mount_FreeCAFJz27C/usr/bin/../lib/libpython3.10.so.1.0(PyEval_EvalCode+0x8c) [0x7effae61d47c]
#45  /tmp/.mount_FreeCAFJz27C/usr/bin/../lib/libpython3.10.so.1.0(+0x221d5d) [0x7effae64ed5d]
#46  /tmp/.mount_FreeCAFJz27C/usr/bin/../lib/libpython3.10.so.1.0(+0x21c72b) [0x7effae64972b]
#47  /tmp/.mount_FreeCAFJz27C/usr/bin/../lib/libpython3.10.so.1.0(PyRun_StringFlags+0x7d) [0x7effae64196d]
#48  0x7effaddd060c in Base::InterpreterSingleton::runString[abi:cxx11](char const*) from /tmp/.mount_FreeCAFJz27C/usr/bin/../lib/libFreeCADBase.so+0x6c
#49  0x7effaebd0953 in Gui::Application::runInitGuiScript() from /tmp/.mount_FreeCAFJz27C/usr/bin/../lib/libFreeCADGui.so+0x43
#50  0x7effaebf0756 in Gui::Application::runApplication() from /tmp/.mount_FreeCAFJz27C/usr/bin/../lib/libFreeCADGui.so+0x12d6
#51  /tmp/.mount_FreeCAFJz27C/usr/bin/freecad(+0x68e5) [0x556a3a8578e5]
#52  /lib/x86_64-linux-gnu/libc.so.6(__libc_start_main+0xea) [0x7effacb0bd0a]
#53  /tmp/.mount_FreeCAFJz27C/usr/bin/freecad(+0x6c29) [0x556a3a857c29]
User avatar
adrianinsaval
Veteran
Posts: 5541
Joined: Thu Apr 05, 2018 5:15 pm

Re: Linux appimage segmentation fault on startup

Post by adrianinsaval »

Looks like glibc incompatibility, check the instructions for this issue at https://forum.freecadweb.org/viewtopic.php?f=3&t=30573
vikebo
Posts: 19
Joined: Sun Aug 21, 2016 7:50 pm

Re: Linux appimage segmentation fault on startup

Post by vikebo »

adrianinsaval, thank you for your reply.

Linux 4. in your link looks most similar to my problem, but

Code: Select all

unset QT_PLUGIN_PATH
didn't change anything.

Also tried

Code: Select all

LD_PRELOAD=/usr/lib/x86_64-linux-gnu/libstdc++.so.6 ./FreeCAD_weekly-builds-30256-2022-09-02-conda-Linux-x86_64-py310.AppImage
from Linux 1. with the same result.

Same with

Code: Select all

IBGL_DRI3_DISABLE=true ./FreeCAD_weekly-builds-30256-2022-09-02-conda-Linux-x86_64-py310.AppImage
from Linux 6.

Code: Select all

./FreeCAD_weekly-builds-30256-2022-09-02-conda-Linux-x86_64-py310.AppImage --console
FreeCAD.ParamGet("User parameter:BaseApp/Preferences/OpenGL").SetBool("UseSoftwareOpenGL", 1)
FreeCAD.saveParameter()
From https://forum.freecadweb.org/viewtopic. ... 77#p614677
Didn't crash, but when trying without --console it does, not sure if the parameter is saved between sessions, or if I could try starting the GUI when in console?

Tried Snap instead of appimage, but get a similar result.
User avatar
onekk
Veteran
Posts: 6146
Joined: Sat Jan 17, 2015 7:48 am
Contact:

Re: Linux appimage segmentation fault on startup

Post by onekk »

What Linux distribution are you using?

is:

Code: Select all

LD_PRELOAD=/usr/lib/x86_64-linux-gnu/libstdc++.so.6 
a correct path for your libstdc++.so.6 binary?

some suspect could come from:


/lib/x86_64-linux-gnu/libc.so.6(__libc_start_main+0xea) [0x7effacb0bd0a] in your first post.

Note the difference between /usr/lib/ and /lib/ that could be not related, but maybe it is.

Regards

Carlo D.
GitHub page: https://github.com/onekk/freecad-doc.
- In deep articles on FreeCAD.
- Learning how to model with scripting.
- Various other stuffs.

Blog: https://okkmkblog.wordpress.com/
vikebo
Posts: 19
Joined: Sun Aug 21, 2016 7:50 pm

Re: Linux appimage segmentation fault on startup

Post by vikebo »

onekk, I'm using Debian 11.

Yes, the path should be correct, it's from autocompletion with the Tab-key. Also just checked that it is actually there.

See your point on the path mismatch, but not sure how to do anything about it?

Thanks!
User avatar
onekk
Veteran
Posts: 6146
Joined: Sat Jan 17, 2015 7:48 am
Contact:

Re: Linux appimage segmentation fault on startup

Post by onekk »

vikebo wrote: Sun Sep 04, 2022 5:25 pm onekk, I'm using Debian 11.
...
Strange enough as usually Debian is conservative, but not too much as the kernel seems fairly recent despite the actual is 5.19, but I don't see many problems.

maybe posting what exact version is the libstdc++.so.6 that is usually a symlink to a more versioned one like in my Arch Linux installation that show:

Code: Select all

/usr/lib64/libstdc++.so.6.0.30 
could result in some more help to sort out the problem, until someone more skilled maybe will suggest other solutions.

A side note to avoid further problem:

you are applying "one workaround" at a time, or "all the workaround together"?

Regards

Carlo D.
GitHub page: https://github.com/onekk/freecad-doc.
- In deep articles on FreeCAD.
- Learning how to model with scripting.
- Various other stuffs.

Blog: https://okkmkblog.wordpress.com/
vikebo
Posts: 19
Joined: Sun Aug 21, 2016 7:50 pm

Re: Linux appimage segmentation fault on startup

Post by vikebo »

onekk,

libstdc++.so.6 -> libstdc++.so.6.0.28

Yes, tried the workarounds in the order mentioned. However, I guess some of them could kind of accumulate since I'm don't know how to undo them.

Appreciate your help!
User avatar
symbolicM
Posts: 18
Joined: Thu Oct 04, 2018 6:44 pm

Re: Linux appimage segmentation fault on startup

Post by symbolicM »

I'm having similar problems running both the stable or current appimages in Slackware 15.

Code: Select all

bash-5.1$ ~/FreeCAD_weekly-builds-30345-2022-09-11-conda-Linux-x86_64-py310.AppImage 
FreeCAD 0.21, Libs: 0.21R30345 (Git)
© Juergen Riegel, Werner Mayer, Yorik van Havre and others 2001-2022
FreeCAD is free and open-source software licensed under the terms of LGPL2+ license.
FreeCAD wouldn't be possible without FreeCAD community.
  #####                 ####  ###   ####  
  #                    #      # #   #   # 
  #     ##  #### ####  #     #   #  #   # 
  ####  # # #  # #  #  #     #####  #   # 
  #     #   #### ####  #    #     # #   # 
  #     #   #    #     #    #     # #   #  ##  ##  ##
  #     #   #### ####   ### #     # ####   ##  ##  ##

/tmp/.mount_FreeCA0w6ncA/AppRun: line 43: 17002 Aborted                 ${MAIN} "$@"
I've also run into a wall installing from source because SlackBuilds dot org is hung up on FreeCAD 19.
Also it appears FreeCADs Github sourcecode requires a version of OpenCASCADE not available through slackbuilds packaging; a version that requires the downloader to register for download.
___
ordinary by design
User avatar
adrianinsaval
Veteran
Posts: 5541
Joined: Thu Apr 05, 2018 5:15 pm

Re: Linux appimage segmentation fault on startup

Post by adrianinsaval »

error doesn't seem to be the same so it might not be the same problem, please create a new thread for this, or just try with flatpak or snap
User avatar
symbolicM
Posts: 18
Joined: Thu Oct 04, 2018 6:44 pm

Re: Linux appimage segmentation fault on startup

Post by symbolicM »

Fair enough, but you may want to note that I resolved this problem by running the appimage via sudo. Far from ideal but functional.
___
ordinary by design
Post Reply