FS#79587 - [freecad] segmentation fault

Attached to Project: Arch Linux
Opened by J. Scott Heppler (shep971) - Wednesday, 06 September 2023, 02:29 GMT
Last edited by Christian Heusel (gromit) - Thursday, 07 September 2023, 18:13 GMT
Task Type Bug Report
Category Packages: Extra
Status Closed
Assigned To No-one
Architecture All
Severity Low
Priority Normal
Reported Version
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 0
Private No

Details

Description:New install w/ LXQT/kwin_xll
Segmentation fault at startup


Additional info:
* package version(s)
* config and/or log files etc.
* link to upstream bug report, if any
[jsh@______ ~]$ /usr/bin/FreeCAD
Program received signal SIGSEGV, Segmentation fault.
#0 /usr/lib/libc.so.6(+0x3e710) [0x7fac1fc3e710]
#1 /usr/lib/libc.so.6(+0x1637dd) [0x7fac1fd637dd]
#2 /usr/lib/libpython3.11.so.1.0(+0x22547e) [0x7fac21c2547e]
#3 /usr/lib/libpython3.11.so.1.0(+0x2af1af) [0x7fac21caf1af]
#4 /usr/bin/FreeCAD(+0x566e) [0x560ba525e66e]
#5 /usr/lib/libc.so.6(+0x27cd0) [0x7fac1fc27cd0]
#6 /usr/lib/libc.so.6(__libc_start_main+0x8a) [0x7fac1fc27d8a]
#7 /usr/bin/FreeCAD(+0x5fd5) [0x560ba525efd5]


Steps to reproduce:
This task depends upon

Closed by  Christian Heusel (gromit)
Thursday, 07 September 2023, 18:13 GMT
Reason for closing:  Not a bug
Additional comments about closing:  See comments
Comment by Toolybird (Toolybird) - Wednesday, 06 September 2023, 04:17 GMT
Please post a backtrace containing debugging information [1]. It's usually as simple as this (after the crash, with gdb installed):

$ coredumpctl gdb (then answer y when it asks "Enable debuginfod for this session?")
(gdb) set logging enabled
(gdb) bt (or bt full)

Then post gdb.txt

Edit: Please also specify the exact version of the pkg as requested in the template.

[1] https://wiki.archlinux.org/title/Debugging/Getting_traces
Comment by J. Scott Heppler (shep971) - Wednesday, 06 September 2023, 16:29 GMT
Version: freecad 0.21.1-2

[jsh@______ ~]$ /usr/bin/FreeCAD
Program received signal SIGSEGV, Segmentation fault.
#0 /usr/lib/libc.so.6(+0x3e710) [0x7f1380c3e710]
#1 /usr/lib/libc.so.6(+0x1637dd) [0x7f1380d637dd]
#2 /usr/lib/libpython3.11.so.1.0(+0x22547e) [0x7f1382c2547e]
#3 /usr/lib/libpython3.11.so.1.0(+0x2af1af) [0x7f1382caf1af]
#4 /usr/bin/FreeCAD(+0x566e) [0x564ae3cab66e]
#5 /usr/lib/libc.so.6(+0x27cd0) [0x7f1380c27cd0]
#6 /usr/lib/libc.so.6(__libc_start_main+0x8a) [0x7f1380c27d8a]
#7 /usr/bin/FreeCAD(+0x5fd5) [0x564ae3cabfd5]
[jsh@______ ~]$ coredumpctl gdb
No match found.
[jsh@______ ~]$ coredumpctl list /usr/bin/FreeCAD
No coredumps found.
[jsh@Tigger ~]$ coredumpctl gdb
No match found.


The output looks very similar to a python_3.11 discussion in the FreeCAD forums:
https://forum.freecad.org/viewtopic.php?t=74026


My install just has Python 3.11
Comment by Toolybird (Toolybird) - Thursday, 07 September 2023, 00:20 GMT
> No match found

Hmm, not sure why you're not getting a coredump. The app runs fine here so I cannot repro. We cannot do much unless you can provide a proper backtrace.

If you can reproduce the crash, the next step is to run freecad directly in gdb as per [1] (you must answer y when it asks "Enable debuginfod for this session?" to get the debuginfo we need)

[1] https://wiki.archlinux.org/title/Debugging/Getting_traces#Getting_the_trace
Comment by J. Scott Heppler (shep971) - Thursday, 07 September 2023, 01:39 GMT
See attached
   gdb.txt (32.2 KiB)
Comment by Antonio Rojas (arojas) - Thursday, 07 September 2023, 05:44 GMT
Post the output of 'locale' and 'locale -a'
Comment by J. Scott Heppler (shep971) - Thursday, 07 September 2023, 09:47 GMT
[jsh@______ ~]$ locale
LANG=en_US.UTF-8
LC_CTYPE="en_US.UTF-8"
LC_NUMERIC="en_US.UTF-8"
LC_TIME="en_US.UTF-8"
LC_COLLATE="en_US.UTF-8"
LC_MONETARY="en_US.UTF-8"
LC_MESSAGES="en_US.UTF-8"
LC_PAPER="en_US.UTF-8"
LC_NAME="en_US.UTF-8"
LC_ADDRESS="en_US.UTF-8"
LC_TELEPHONE="en_US.UTF-8"
LC_MEASUREMENT="en_US.UTF-8"
LC_IDENTIFICATION="en_US.UTF-8"
LC_ALL=
[jsh@______ ~]$ locale -a
C
C.UTF-8
en_US
en_US.iso88591
en_US.utf8
POSIX
Comment by J. Scott Heppler (shep971) - Thursday, 07 September 2023, 16:45 GMT
I tested some other Qt graphical applications and Krita indicated that it did not have r/w permissions to ~/.config/krita. I added write permissions to ~/.config and reinstalled freecad. It works now.
Will close

Loading...