Github messages for voidlinux
 help / color / mirror / Atom feed
* [ISSUE] FreeCAD does not launch: "Fatal Error compiling builtin function"
@ 2019-06-21  7:05 voidlinux-github
  2019-06-21 10:33 ` voidlinux-github
                   ` (10 more replies)
  0 siblings, 11 replies; 12+ messages in thread
From: voidlinux-github @ 2019-06-21  7:05 UTC (permalink / raw)
  To: ml

[-- Attachment #1: Type: text/plain, Size: 1734 bytes --]

New issue by jorgenatz on void-packages repository

https://github.com/void-linux/void-packages/issues/12595
Description: ### System

* xuname:  
  Void 4.19.48_1 x86_64-musl GenuineIntel notuptodate rF
* package:  
  freecad

### Expected behavior
When 
`$  FreeCAD`
is typed, I had expected the program to start as normal, showing a splash screen until subsequently opening a window.

### Actual behavior
When running, this error is produced:
```
Error compiling builtin: 
Fatal error compiling builtin function 'apply': Program received signal SIGSEGV, Segmentation fault.
sorry, no backtrace on musl libc
```
The startup splash screen is shown with a variety of intialization messages before the crash.

This is the entire output:
```
FreeCAD 0.18.2, Libs: 0.18.2R1_voidlinux
© Juergen Riegel, Werner Mayer, Yorik van Havre 2001-2019
  #####                 ####  ###   ####  
  #                    #      # #   #   # 
  #     ##  #### ####  #     #   #  #   # 
  ####  # # #  # #  #  #     #####  #   # 
  #     #   #### ####  #    #     # #   # 
  #     #   #    #     #    #     # #   #  ##  ##  ##
  #     #   #### ####   ### #     # ####   ##  ##  ##

Error compiling builtin: 
Fatal error compiling builtin function 'apply': Program received signal SIGSEGV, Segmentation fault.
sorry, no backtrace on musl libc
```
### Steps to reproduce the behavior
Simply launch FreeCAD from a terminal or graphical menu.


It seems that this may be linked to QtWebKt, as indicated by this similar issue: [https://github.com/annulen/webkit/issues/708](https://github.com/annulen/webkit/issues/708)


If I have forgotten to include anything, please let me know, and thank you for reading.


^ permalink raw reply	[flat|nested] 12+ messages in thread

* Re: FreeCAD does not launch: "Fatal Error compiling builtin function"
  2019-06-21  7:05 [ISSUE] FreeCAD does not launch: "Fatal Error compiling builtin function" voidlinux-github
@ 2019-06-21 10:33 ` voidlinux-github
  2019-06-21 10:41 ` voidlinux-github
                   ` (9 subsequent siblings)
  10 siblings, 0 replies; 12+ messages in thread
From: voidlinux-github @ 2019-06-21 10:33 UTC (permalink / raw)
  To: ml

[-- Attachment #1: Type: text/plain, Size: 901 bytes --]

New comment by pullmoll on void-packages repository

https://github.com/void-linux/void-packages/issues/12595#issuecomment-504378577
Comment:
The bottom comment in the linked similar issue is probably what causes the crash.

We always have trouble with libraries and applications wanting to use huge portions of the stack for local data, yet failing to set their stack space requirements with `pthread_attr_setstacksize(3)` in their thread(s). This applies for Musl libc with its 80KiB default stack size, not glibc, which has a huge default stack size. As a consequence developers tend to don't care because of this.

qt5-webkit is old and most probably needs (a lot of?) patches to correctly define its requirements. If we are going to patch it that can only be guesswork and trial+error, with the main issue being to identify the places in the code where it should happen in the first place.


^ permalink raw reply	[flat|nested] 12+ messages in thread

* Re: FreeCAD does not launch: "Fatal Error compiling builtin function"
  2019-06-21  7:05 [ISSUE] FreeCAD does not launch: "Fatal Error compiling builtin function" voidlinux-github
  2019-06-21 10:33 ` voidlinux-github
@ 2019-06-21 10:41 ` voidlinux-github
  2019-06-21 10:44 ` voidlinux-github
                   ` (8 subsequent siblings)
  10 siblings, 0 replies; 12+ messages in thread
From: voidlinux-github @ 2019-06-21 10:41 UTC (permalink / raw)
  To: ml

[-- Attachment #1: Type: text/plain, Size: 401 bytes --]

New comment by pullmoll on void-packages repository

https://github.com/void-linux/void-packages/issues/12595#issuecomment-504380851
Comment:
Perhaps you can try to build qt5-webkit on your own after adding
```
LDFLAGS="-Wl,-z,stack-size=2097152"
```
in the `srcpkgs/qt5-webkit/template` e.g. after the line `CXXFLAGS=...`.
If that works for you, we can update qt5-webkit for everyone's benefit.

^ permalink raw reply	[flat|nested] 12+ messages in thread

* Re: FreeCAD does not launch: "Fatal Error compiling builtin function"
  2019-06-21  7:05 [ISSUE] FreeCAD does not launch: "Fatal Error compiling builtin function" voidlinux-github
  2019-06-21 10:33 ` voidlinux-github
  2019-06-21 10:41 ` voidlinux-github
@ 2019-06-21 10:44 ` voidlinux-github
  2019-06-21 19:55 ` voidlinux-github
                   ` (7 subsequent siblings)
  10 siblings, 0 replies; 12+ messages in thread
From: voidlinux-github @ 2019-06-21 10:44 UTC (permalink / raw)
  To: ml

[-- Attachment #1: Type: text/plain, Size: 607 bytes --]

New comment by pullmoll on void-packages repository

https://github.com/void-linux/void-packages/issues/12595#issuecomment-504380851
Comment:
Perhaps you can try to build qt5-webkit on your own after adding
```
LDFLAGS="-Wl,-z,stack-size=2097152"
```
in the `srcpkgs/qt5-webkit/template` e.g. after the line `CXXFLAGS=...`.

Once the package is built with
```
./xbps-src zap
./xbps-src binary-bootstrap
./xbps-src pkg qt5-webkit
```
you can force install it with `sudo xbps-install -S -R hostdir/binpkgs -f qt5-webkit`.

If that works for you, we can update qt5-webkit for everyone's benefit.

^ permalink raw reply	[flat|nested] 12+ messages in thread

* Re: FreeCAD does not launch: "Fatal Error compiling builtin function"
  2019-06-21  7:05 [ISSUE] FreeCAD does not launch: "Fatal Error compiling builtin function" voidlinux-github
                   ` (2 preceding siblings ...)
  2019-06-21 10:44 ` voidlinux-github
@ 2019-06-21 19:55 ` voidlinux-github
  2019-06-21 20:23 ` voidlinux-github
                   ` (6 subsequent siblings)
  10 siblings, 0 replies; 12+ messages in thread
From: voidlinux-github @ 2019-06-21 19:55 UTC (permalink / raw)
  To: ml

[-- Attachment #1: Type: text/plain, Size: 1254 bytes --]

New comment by yopito on void-packages repository

https://github.com/void-linux/void-packages/issues/12595#issuecomment-504553657
Comment:
I saw this bug too while packaging FreeCAD 0.18 (related to qt).

@pullmoll:  change stack size already been tried (issue #8909) without success, but without rebuilding qt. I've tried `sudo chelf -s 82099200 /usr/bin/FreeCAD` for instance.

One possible alternate workaround: disable the startWorkBench on startup in the user's setting file:

```
$ diff -bu ~/.FreeCAD/ORIG/user.cfg ~/.FreeCAD/user.cfg 
--- .FreeCAD/ORIG/user.cfg      2019-03-03 13:28:58.546387911 +0100
+++ .FreeCAD/user.cfg   2019-03-03 14:10:19.245254436 +0100
@@ -9,7 +9,7 @@
	   <FCParamGroup Name="Preferences">
		 <FCParamGroup Name="General">
		   <FCText Name="FileOpenSavePath">/home/yopito</FCText>
-          <FCText Name="AutoloadModule">StartWorkbench</FCText></FCParamGroup>
+          <FCText Name="AutoloadModule">NoneWorkbench</FCText></FCParamGroup>
		 <FCParamGroup Name="Units"/>
		 <FCParamGroup Name="Macro"/>
		 <FCParamGroup Name="Mod">
```
This way, FreeCAD is launched on musl. However, I don't know if it's sufficient for real-word usage, if FreeCAD uses qt5-webkit functionalities somewhere else.

^ permalink raw reply	[flat|nested] 12+ messages in thread

* Re: FreeCAD does not launch: "Fatal Error compiling builtin function"
  2019-06-21  7:05 [ISSUE] FreeCAD does not launch: "Fatal Error compiling builtin function" voidlinux-github
                   ` (3 preceding siblings ...)
  2019-06-21 19:55 ` voidlinux-github
@ 2019-06-21 20:23 ` voidlinux-github
  2019-06-24 14:53 ` voidlinux-github
                   ` (5 subsequent siblings)
  10 siblings, 0 replies; 12+ messages in thread
From: voidlinux-github @ 2019-06-21 20:23 UTC (permalink / raw)
  To: ml

[-- Attachment #1: Type: text/plain, Size: 288 bytes --]

New comment by Johnnynator on void-packages repository

https://github.com/void-linux/void-packages/issues/12595#issuecomment-504561236
Comment:
We could remove qt5-webkit dependency on musl for FreeCAD, so the potential unstable parts won't even be build for musl. (If this is possible)

^ permalink raw reply	[flat|nested] 12+ messages in thread

* Re: FreeCAD does not launch: "Fatal Error compiling builtin function"
  2019-06-21  7:05 [ISSUE] FreeCAD does not launch: "Fatal Error compiling builtin function" voidlinux-github
                   ` (4 preceding siblings ...)
  2019-06-21 20:23 ` voidlinux-github
@ 2019-06-24 14:53 ` voidlinux-github
  2019-06-24 14:54 ` voidlinux-github
                   ` (4 subsequent siblings)
  10 siblings, 0 replies; 12+ messages in thread
From: voidlinux-github @ 2019-06-24 14:53 UTC (permalink / raw)
  To: ml

[-- Attachment #1: Type: text/plain, Size: 224 bytes --]

New comment by Gottox on void-packages repository

https://github.com/void-linux/void-packages/issues/12595#issuecomment-505045818
Comment:
Does it help if you run the following?
```
chelf -s 2097152 /usr/bin/FreeCAD
```

^ permalink raw reply	[flat|nested] 12+ messages in thread

* Re: FreeCAD does not launch: "Fatal Error compiling builtin function"
  2019-06-21  7:05 [ISSUE] FreeCAD does not launch: "Fatal Error compiling builtin function" voidlinux-github
                   ` (5 preceding siblings ...)
  2019-06-24 14:53 ` voidlinux-github
@ 2019-06-24 14:54 ` voidlinux-github
  2019-07-11  5:19 ` voidlinux-github
                   ` (3 subsequent siblings)
  10 siblings, 0 replies; 12+ messages in thread
From: voidlinux-github @ 2019-06-24 14:54 UTC (permalink / raw)
  To: ml

[-- Attachment #1: Type: text/plain, Size: 224 bytes --]

New comment by Gottox on void-packages repository

https://github.com/void-linux/void-packages/issues/12595#issuecomment-505045818
Comment:
Does it help if you run the following?
```
chelf -s 2097152 /usr/bin/FreeCAD
```

^ permalink raw reply	[flat|nested] 12+ messages in thread

* Re: FreeCAD does not launch: "Fatal Error compiling builtin function"
  2019-06-21  7:05 [ISSUE] FreeCAD does not launch: "Fatal Error compiling builtin function" voidlinux-github
                   ` (6 preceding siblings ...)
  2019-06-24 14:54 ` voidlinux-github
@ 2019-07-11  5:19 ` voidlinux-github
  2019-07-18 19:37 ` voidlinux-github
                   ` (2 subsequent siblings)
  10 siblings, 0 replies; 12+ messages in thread
From: voidlinux-github @ 2019-07-11  5:19 UTC (permalink / raw)
  To: ml

[-- Attachment #1: Type: text/plain, Size: 271 bytes --]

New comment by yopito on void-packages repository

https://github.com/void-linux/void-packages/issues/12595#issuecomment-510333250
Comment:
thanks for suggestion. I give a try on FreeCAD without qt5-webkit, and also see if outgoing qt 5.13 packaging could help here too.

^ permalink raw reply	[flat|nested] 12+ messages in thread

* Re: FreeCAD does not launch: "Fatal Error compiling builtin function"
  2019-06-21  7:05 [ISSUE] FreeCAD does not launch: "Fatal Error compiling builtin function" voidlinux-github
                   ` (7 preceding siblings ...)
  2019-07-11  5:19 ` voidlinux-github
@ 2019-07-18 19:37 ` voidlinux-github
  2019-07-19 17:36 ` voidlinux-github
  2019-07-20 19:36 ` [ISSUE] [CLOSED] " voidlinux-github
  10 siblings, 0 replies; 12+ messages in thread
From: voidlinux-github @ 2019-07-18 19:37 UTC (permalink / raw)
  To: ml

[-- Attachment #1: Type: text/plain, Size: 1076 bytes --]

New comment by yopito on void-packages repository

https://github.com/void-linux/void-packages/issues/12595#issuecomment-512957502
Comment:
Here some test results on x86_64/musl (Everything is fine with glibc)

1. FreeCAD 0.18.2_1  (from VoidRepo, not rebuilt) with qt5-webkit 5.12 updated (PR #13212):
	* still crash with qt5-webkit.  gdb's backtrace is really similar to old one  
	(https://gist.github.com/yopito/3408054baf3626f6a167d6521dfa2d50)
	* changing stack size up to 80 MB does not fix it (`sudo chelf -s 82099200 /usr/bin/FreeCAD`)

2. FreeCAD 0.18.2 rebuilt without qt5-webkit-devel:
	* build is fine
	* basic runtime is fine
	* "Start" Workbench can't be loaded as expected ("`WebGUI not found`")
	* Test mode (`FreeCAD -t 0`) segfaults 

3. FreeCAD 0.18.2_1  (from VoidRepo, not rebuilt) with qt-webkit 5.12 (updated, see PR #13212) rebuilt with specific stacksize (see pullmoll's post above): still fails as point 1, no difference

At this point, I have no other option to update FreeCAD, in order to built without qt5-webkit support on musl


^ permalink raw reply	[flat|nested] 12+ messages in thread

* Re: FreeCAD does not launch: "Fatal Error compiling builtin function"
  2019-06-21  7:05 [ISSUE] FreeCAD does not launch: "Fatal Error compiling builtin function" voidlinux-github
                   ` (8 preceding siblings ...)
  2019-07-18 19:37 ` voidlinux-github
@ 2019-07-19 17:36 ` voidlinux-github
  2019-07-20 19:36 ` [ISSUE] [CLOSED] " voidlinux-github
  10 siblings, 0 replies; 12+ messages in thread
From: voidlinux-github @ 2019-07-19 17:36 UTC (permalink / raw)
  To: ml

[-- Attachment #1: Type: text/plain, Size: 353 bytes --]

New comment by yopito on void-packages repository

https://github.com/void-linux/void-packages/issues/12595#issuecomment-513313929
Comment:
@jorgenatz: package freecad 0.18.2_2 is available without qt5-webkit build dep for musl.  
Could you give it a try and feeback on its usablity with "real" usage ?  
Then close this PR if it's fine for you. thx.

^ permalink raw reply	[flat|nested] 12+ messages in thread

* Re: [ISSUE] [CLOSED] FreeCAD does not launch: "Fatal Error compiling builtin function"
  2019-06-21  7:05 [ISSUE] FreeCAD does not launch: "Fatal Error compiling builtin function" voidlinux-github
                   ` (9 preceding siblings ...)
  2019-07-19 17:36 ` voidlinux-github
@ 2019-07-20 19:36 ` voidlinux-github
  10 siblings, 0 replies; 12+ messages in thread
From: voidlinux-github @ 2019-07-20 19:36 UTC (permalink / raw)
  To: ml

[-- Attachment #1: Type: text/plain, Size: 1775 bytes --]

Closed issue by jorgenatz on void-packages repository

https://github.com/void-linux/void-packages/issues/12595
Description: ### System

* xuname:  
  Void 4.19.48_1 x86_64-musl GenuineIntel notuptodate rF
* package:  
  freecad

### Expected behavior
When 
`$  FreeCAD`
is typed, I had expected the program to start as normal, showing a splash screen until subsequently opening a window.

### Actual behavior
When running, this error is produced:
```
Error compiling builtin: 
Fatal error compiling builtin function 'apply': Program received signal SIGSEGV, Segmentation fault.
sorry, no backtrace on musl libc
```
The startup splash screen is shown with a variety of intialization messages before the crash.

This is the entire output:
```
$ FreeCAD
FreeCAD 0.18.2, Libs: 0.18.2R1_voidlinux
© Juergen Riegel, Werner Mayer, Yorik van Havre 2001-2019
  #####                 ####  ###   ####  
  #                    #      # #   #   # 
  #     ##  #### ####  #     #   #  #   # 
  ####  # # #  # #  #  #     #####  #   # 
  #     #   #### ####  #    #     # #   # 
  #     #   #    #     #    #     # #   #  ##  ##  ##
  #     #   #### ####   ### #     # ####   ##  ##  ##

Error compiling builtin: 
Fatal error compiling builtin function 'apply': Program received signal SIGSEGV, Segmentation fault.
sorry, no backtrace on musl libc
```
### Steps to reproduce the behavior
Simply launch FreeCAD from a terminal or graphical menu.




It seems that this may be linked to QtWebKit when linked with musl, as indicated by this similar issue: [https://github.com/annulen/webkit/issues/708](https://github.com/annulen/webkit/issues/708)


If I have forgotten to include anything, please let me know, and thank you for reading.


^ permalink raw reply	[flat|nested] 12+ messages in thread

end of thread, other threads:[~2019-07-20 19:36 UTC | newest]

Thread overview: 12+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-06-21  7:05 [ISSUE] FreeCAD does not launch: "Fatal Error compiling builtin function" voidlinux-github
2019-06-21 10:33 ` voidlinux-github
2019-06-21 10:41 ` voidlinux-github
2019-06-21 10:44 ` voidlinux-github
2019-06-21 19:55 ` voidlinux-github
2019-06-21 20:23 ` voidlinux-github
2019-06-24 14:53 ` voidlinux-github
2019-06-24 14:54 ` voidlinux-github
2019-07-11  5:19 ` voidlinux-github
2019-07-18 19:37 ` voidlinux-github
2019-07-19 17:36 ` voidlinux-github
2019-07-20 19:36 ` [ISSUE] [CLOSED] " voidlinux-github

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).