weekly build 31709: segmentation fault when starting on Linux

Having trouble installing or compiling FreeCAD? Get help here.
Forum rules
Be nice to others! Respect the FreeCAD code of conduct!
User avatar
thomas-neemann
Veteran
Posts: 11801
Joined: Wed Jan 22, 2020 6:03 pm
Location: Osnabrück DE 🇩🇪
Contact:

Re: weekly build 31709: segmentation fault when starting on Linux

Post by thomas-neemann »

this software combination also works

Code: Select all

OS: Ubuntu 20.04.1 LTS (XFCE/xubuntu)
Word size of FreeCAD: 64-bit
Version: 0.21.0.31772 (Git) AppImage
Build type: Release
Branch: master
Hash: 87c5b891352580568592cbba0e746269f726c43c
Python 3.10.9, Qt 5.15.6, Coin 4.0.0, Vtk 9.1.0, OCC 7.6.3
Locale: German/Germany (de_DE)
Installed mods: 
  * InventorLoader 1.3.0
  * Curves 0.6.5
  * sheetmetal 0.2.61
Gruß Dipl.-Ing. (FH) Thomas Neemann

https://www.youtube.com/@thomasneemann5 ... ry=freecad
Giulio Buccini
Posts: 541
Joined: Fri Aug 26, 2016 9:07 pm
Location: Munich - Gemany

Re: weekly build 31709: segmentation fault when starting on Linux

Post by Giulio Buccini »

wmayer wrote: Mon Feb 06, 2023 11:30 am Can FreeCAD_weekly-builds-31709-2023-02-02-conda-Linux-x86_64-py310.AppImage still be downloaded somewhere? I haven't found a link for it.
I tried to download and run the build 31772. Same result.
Giulio Buccini
Posts: 541
Joined: Fri Aug 26, 2016 9:07 pm
Location: Munich - Gemany

Re: weekly build 31709: segmentation fault when starting on Linux

Post by Giulio Buccini »

onekk wrote: Mon Feb 06, 2023 11:23 am 16.04 is somewhat old, and obsolete from my point of view, some question:

- it is supported by Ubuntu as a LTS release.
- it receive security fixes.
- How much time it will take if some malware or ransomware will destroy or lock your data, due to a security flaw.
I still receive all of the updates, roughly every 20-30 days, including security fixes.

You can have the most updated OS version, but if you use old libraries you will get problems with an application in any case.

Usually, the problems with Freecad are somehow related to the C++ libs.
What version you have?
Could you run the command ldd /bin/bash on you computer?
User avatar
onekk
Veteran
Posts: 6146
Joined: Sat Jan 17, 2015 7:48 am
Contact:

Re: weekly build 31709: segmentation fault when starting on Linux

Post by onekk »

Arch Linux so it is very different are usually arch library are quite up to date to upstream.

So we are confroning apples with oranges, they are round but they are very different.

As example I could not run 0.19 AppImage on my actual installation.

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/
Giulio Buccini
Posts: 541
Joined: Fri Aug 26, 2016 9:07 pm
Location: Munich - Gemany

Re: weekly build 31709: segmentation fault when starting on Linux

Post by Giulio Buccini »

Maybe I have to update just the Pyton libraries?
Mine is 3.10.x
wmayer
Founder
Posts: 20243
Joined: Thu Feb 19, 2009 10:32 am
Contact:

Re: weekly build 31709: segmentation fault when starting on Linux

Post by wmayer »

There is nothing you have to upgrade on your system because the AppImage contains all 3rd party libraries it requires. When starting the AppImage it creates a mount point in /tmp (e.g. .mount_FreeCA55ab13).

When going to the internal /usr/lib directory then there are tons of 3rd party libraries. In the past it already caused some problems if there is a newer libstdc++ library than on your system. So, it would be interesting to see what happens when you extract the AppImage, remove the libstc++ library and start the "freecad" executable.
Giulio Buccini
Posts: 541
Joined: Fri Aug 26, 2016 9:07 pm
Location: Munich - Gemany

Re: weekly build 31709: segmentation fault when starting on Linux

Post by Giulio Buccini »

wmayer wrote: Mon Feb 06, 2023 5:39 pmSo, it would be interesting to see what happens when you extract the AppImage, remove the libstc++ library and start the "freecad" executable.
I have extracted the Appimage.
Did you meant the lib named libstdc++ ? Yes? (located in /usr/share/licenses/libstdc++)
I have to put all back in an appimage file to run after deleting that lib?

Opssss! I meant the files:

./usr/lib/libstdc++.so.6.0.30
./usr/lib/libstdc++.so.6
./usr/lib/libstdc++.so

I should delete them all?
wmayer
Founder
Posts: 20243
Joined: Thu Feb 19, 2009 10:32 am
Contact:

Re: weekly build 31709: segmentation fault when starting on Linux

Post by wmayer »

I have extracted the Appimage.
Assuming you have extracted it to /tmp/freecad then you should remove from /tmp/freecad/usr/lib the file libstdc++.so, libstdc++.so.6 and libstdc++.so.6.0.30. This will cause the application to load your system libstdc++ file instead.
I have to put all back in an appimage file to run after deleting that lib?
You can but you don't have to. Just open a terminal and change to /tmp/freecad. From there run the script AppRun with

Code: Select all

./AppRun
Giulio Buccini
Posts: 541
Joined: Fri Aug 26, 2016 9:07 pm
Location: Munich - Gemany

Re: weekly build 31709: segmentation fault when starting on Linux

Post by Giulio Buccini »

[EDIT] I deleted my previous answer.
I cancelled those 3 files. now he cannot find GLIBCXX_3.4.26:

Code: Select all

giulio@ubu:~/appimages/appimage-extract/squashfs-root$ ./AppRun 
/home/giulio/appimages/appimage-extract/squashfs-root/usr/bin/freecad: /usr/lib/x86_64-linux-gnu/libstdc++.so.6: version `GLIBCXX_3.4.26' not found (required by /home/giulio/appimages/appimage-extract/squashfs-root/usr/bin/../lib/libFreeCADGui.so)
/home/giulio/appimages/appimage-extract/squashfs-root/usr/bin/freecad: /usr/lib/x86_64-linux-gnu/libstdc++.so.6: version `GLIBCXX_3.4.26' not found (required by /home/giulio/appimages/appimage-extract/squashfs-root/usr/bin/../lib/libFreeCADApp.so)
/home/giulio/appimages/appimage-extract/squashfs-root/usr/bin/freecad: /usr/lib/x86_64-linux-gnu/libstdc++.so.6: version `GLIBCXX_3.4.26' not found (required by /home/giulio/appimages/appimage-extract/squashfs-root/usr/bin/../lib/libFreeCADBase.so)
/home/giulio/appimages/appimage-extract/squashfs-root/usr/bin/freecad: /usr/lib/x86_64-linux-gnu/libstdc++.so.6: version `GLIBCXX_3.4.26' not found (required by /home/giulio/appimages/appimage-extract/squashfs-root/usr/bin/../lib/libQt5Widgets.so.5)
/home/giulio/appimages/appimage-extract/squashfs-root/usr/bin/freecad: /usr/lib/x86_64-linux-gnu/libstdc++.so.6: version `GLIBCXX_3.4.29' not found (required by /home/giulio/appimages/appimage-extract/squashfs-root/usr/bin/../lib/libQt5Widgets.so.5)
/home/giulio/appimages/appimage-extract/squashfs-root/usr/bin/freecad: /usr/lib/x86_64-linux-gnu/libstdc++.so.6: version `GLIBCXX_3.4.28' not found (required by /home/giulio/appimages/appimage-extract/squashfs-root/usr/bin/../lib/libQt5Widgets.so.5)
/home/giulio/appimages/appimage-extract/squashfs-root/usr/bin/freecad: /usr/lib/x86_64-linux-gnu/libstdc++.so.6: version `GLIBCXX_3.4.29' not found (required by /home/giulio/appimages/appimage-extract/squashfs-root/usr/bin/../lib/libQt5Gui.so.5)
/home/giulio/appimages/appimage-extract/squashfs-root/usr/bin/freecad: /usr/lib/x86_64-linux-gnu/libstdc++.so.6: version `GLIBCXX_3.4.26' not found (required by /home/giulio/appimages/appimage-extract/squashfs-root/usr/bin/../lib/libQt5Core.so.5)
/home/giulio/appimages/appimage-extract/squashfs-root/usr/bin/freecad: /usr/lib/x86_64-linux-gnu/libstdc++.so.6: version `GLIBCXX_3.4.29' not found (required by /home/giulio/appimages/appimage-extract/squashfs-root/usr/bin/../lib/libQt5Core.so.5)
/home/giulio/appimages/appimage-extract/squashfs-root/usr/bin/freecad: /usr/lib/x86_64-linux-gnu/libstdc++.so.6: version `GLIBCXX_3.4.28' not found (required by /home/giulio/appimages/appimage-extract/squashfs-root/usr/bin/../lib/libQt5Core.so.5)
/home/giulio/appimages/appimage-extract/squashfs-root/usr/bin/freecad: /usr/lib/x86_64-linux-gnu/libstdc++.so.6: version `CXXABI_1.3.13' not found (required by /home/giulio/appimages/appimage-extract/squashfs-root/usr/bin/../lib/libQt5Core.so.5)
/home/giulio/appimages/appimage-extract/squashfs-root/usr/bin/freecad: /usr/lib/x86_64-linux-gnu/libstdc++.so.6: version `GLIBCXX_3.4.26' not found (required by /home/giulio/appimages/appimage-extract/squashfs-root/usr/bin/../lib/./libboost_regex.so.1.74.0)
/home/giulio/appimages/appimage-extract/squashfs-root/usr/bin/freecad: /usr/lib/x86_64-linux-gnu/libstdc++.so.6: version `GLIBCXX_3.4.28' not found (required by /home/giulio/appimages/appimage-extract/squashfs-root/usr/bin/../lib/./libQt5Xml.so.5)
/home/giulio/appimages/appimage-extract/squashfs-root/usr/bin/freecad: /usr/lib/x86_64-linux-gnu/libstdc++.so.6: version `GLIBCXX_3.4.26' not found (required by /home/giulio/appimages/appimage-extract/squashfs-root/usr/bin/../lib/./libQt5Xml.so.5)
/home/giulio/appimages/appimage-extract/squashfs-root/usr/bin/freecad: /usr/lib/x86_64-linux-gnu/libstdc++.so.6: version `GLIBCXX_3.4.29' not found (required by /home/giulio/appimages/appimage-extract/squashfs-root/usr/bin/../lib/./libQt5Xml.so.5)
/home/giulio/appimages/appimage-extract/squashfs-root/usr/bin/freecad: /usr/lib/x86_64-linux-gnu/libstdc++.so.6: version `GLIBCXX_3.4.29' not found (required by /home/giulio/appimages/appimage-extract/squashfs-root/usr/bin/../lib/./libshiboken2.cpython-310-x86_64-linux-gnu.so.5.15)
/home/giulio/appimages/appimage-extract/squashfs-root/usr/bin/freecad: /usr/lib/x86_64-linux-gnu/libstdc++.so.6: version `GLIBCXX_3.4.29' not found (required by /home/giulio/appimages/appimage-extract/squashfs-root/usr/bin/../lib/./libQt5Network.so.5)
/home/giulio/appimages/appimage-extract/squashfs-root/usr/bin/freecad: /usr/lib/x86_64-linux-gnu/libstdc++.so.6: version `GLIBCXX_3.4.29' not found (required by /home/giulio/appimages/appimage-extract/squashfs-root/usr/bin/../lib/././libQt5Qml.so.5)

Giulio Buccini
Posts: 541
Joined: Fri Aug 26, 2016 9:07 pm
Location: Munich - Gemany

Re: weekly build 31709: segmentation fault when starting on Linux

Post by Giulio Buccini »

If I put those 3 files back then I get "Segmentation Fault" as before:

Code: Select all

giulio@ubu:~/appimages/appimage-extract/squashfs-root$ ./AppRun 
Program received signal SIGSEGV, Segmentation fault.
#0  /lib/x86_64-linux-gnu/libc.so.6(+0x354c0) [0x7fb7e54f14c0]
#1  /lib/x86_64-linux-gnu/libc.so.6(wcslen+0) [0x7fb7e5567dc0]
#2  /home/giulio/appimages/appimage-extract/squashfs-root/usr/bin/../lib/libpython3.10.so.1.0(+0x1513ae) [0x7fb7e6fe53ae]
#3  /home/giulio/appimages/appimage-extract/squashfs-root/usr/bin/../lib/libpython3.10.so.1.0(+0x1e616e) [0x7fb7e707a16e]
#4  /home/giulio/appimages/appimage-extract/squashfs-root/usr/bin/freecad(+0x5471) [0x559e0658c471]
#5  /lib/x86_64-linux-gnu/libc.so.6(__libc_start_main+0xf0) [0x7fb7e54dc840]
#6  /home/giulio/appimages/appimage-extract/squashfs-root/usr/bin/freecad(+0x6c29) [0x559e0658dc29]
Post Reply