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!
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 »

There is no way to convince FC to use my libs instead?
Just to check if this is what causes the problem.
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 »

Just a note.

I have also extracted the image of the build 31058 (the one working with zero problems) and the 3 files in the usr/lib folder are exactly the same

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

they have all the same size (12.212.840 bytes) like in the new build 31772 (the one that is not working).
So no changes here... why the new build gives me the segmentation fault error?
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 »

And all other files under /usr/lib of the AppImage are they equal to the older AppImage?
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 »

Another thing could be that the libstc++ of the AppImage still links to your system libc.so. and maybe you need a newer version. You can get the libc.so for Ubuntu 22.04 from here: http://archive.ubuntu.com/ubuntu/pool/u ... _amd64.deb

Unpack the archive and copy the libc files to the usrr/lib directory of the AppImage.
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 »

This evening I'm completely out of order because of my job. Too tired.
I will be back tomorrow.

Anyway I would really know what has been changed from build 31508 to build 31707 (or build 31772) to cause this error.
openBrain
Veteran
Posts: 9034
Joined: Fri Nov 09, 2018 5:38 pm
Contact:

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

Post by openBrain »

Giulio Buccini wrote: Tue Feb 07, 2023 8:04 pm Anyway I would really know what has been changed from build 31508 to build 31707 (or build 31772) to cause this error.
Could you post full info of both versions?
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 »

Sure.
I attach the two complete lists of packages included in the two appimage files.

I have already checked it yesterday evening: there are some differences, but was hard for me to understand what is important and what is not.
I got lost after one minute... :oops:

Anyway, the C libraries seems the same in both cases, so the problem should be elsewhere...
Attachments
build_31508-packages.txt
(20.4 KiB) Downloaded 32 times
build_31772-packages.txt
(19.97 KiB) Downloaded 32 times
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: Tue Feb 07, 2023 11:08 am Another thing could be that the libstc++ of the AppImage still links to your system libc.so. and maybe you need a newer version. You can get the libc.so for Ubuntu 22.04 from here: http://archive.ubuntu.com/ubuntu/pool/u ... _amd64.deb

Unpack the archive and copy the libc files to the usrr/lib directory of the AppImage.
I copied the libc.so into the Appimage folder... and I got the same result:

Code: Select all

giulio@ubu:~/appimages/build-31772/squashfs-root$ ./AppRun 
Program received signal SIGSEGV, Segmentation fault.
#0  /lib/x86_64-linux-gnu/libc.so.6(+0x354c0) [0x7f878c6f44c0]
#1  /lib/x86_64-linux-gnu/libc.so.6(wcslen+0) [0x7f878c76adc0]
#2  /home/giulio/appimages/build-31772/squashfs-root/usr/bin/../lib/libpython3.10.so.1.0(+0x1513ae) [0x7f878e1e83ae]
#3  /home/giulio/appimages/build-31772/squashfs-root/usr/bin/../lib/libpython3.10.so.1.0(+0x1e616e) [0x7f878e27d16e]
#4  /home/giulio/appimages/build-31772/squashfs-root/usr/bin/freecad(+0x5471) [0x55b92200a471]
#5  /lib/x86_64-linux-gnu/libc.so.6(__libc_start_main+0xf0) [0x7f878c6df840]
#6  /home/giulio/appimages/build-31772/squashfs-root/usr/bin/freecad(+0x6c29) [0x55b92200bc29]
Note: I have always to enter the command unset SESSION_MANAGER berfore trying to run FC. Quite annoying...

Any other idea? :cry:
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 »

According to the call stack it still uses the system libc
#0 /lib/x86_64-linux-gnu/libc.so.6(+0x354c0) [0x7f878c6f44c0]
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 »

I trust you on this.
No way to convince FC to use the lib inside the /usr/lib/ folder of the Appimage instead?
Post Reply