Bug 225628 - math/scilab only builds with GUI=off and OCAML=off, segfaults with one of them on (on 10.4-RELEASE)
Summary: math/scilab only builds with GUI=off and OCAML=off, segfaults with one of the...
Status: Open
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: Any Any
: --- Affects Only Me
Assignee: Max Brazhnikov
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2018-02-02 14:51 UTC by Walter Schwarzenfeld
Modified: 2021-04-09 00:34 UTC (History)
2 users (show)

See Also:
bugzilla: maintainer-feedback? (makc)


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Walter Schwarzenfeld freebsd_triage 2018-02-02 14:51:19 UTC
Scilab segfaults with GUI=ON or OCAML=on
LANG=C LC_ALL=en_US.UTF-8 SCI_DISABLE_TK=1 SCI_JAVA_ENABLE_HEADLESS=1 ./bin/scilab-adv-cli -noatomsautoload -nb -l en_US -nouserstartup -e "try xmltojar([],[],'en_US');catch disp(lasterror()); exit(-1);end;exit(0);"
A fatal error has been detected by Scilab.
Your instance will probably quit unexpectedly soon.
If a graphic feature has been used, this might be caused by the system graphic drivers.
Please try to update them and run this feature again.
You can report a bug on http://bugzilla.scilab.org/ with:
* a sample code which reproduces the issue
* the result of [a, b] = getdebuginfo()
* the following information:
[user:29426] Signal: Segmentation fault (11)
[user:29426] Signal code: Invalid permissions (2)
[user:29426] Failing at address: 0x400644
 
 
Illegal instruction (core dumped)
gmake[2]: *** [Makefile:2153: doc] Error 1
gmake[2]: Leaving directory '/ram/usr/ports/math/scilab/work/scilab-5.5.2'
*** Error code 1

Stop.
make[1]: stopped in /usr/ports/math/scilab
*** Error code 1

Stop.

GUI and OCAML per default set to on.

on 10.4 amd64.
Comment 1 Walter Schwarzenfeld freebsd_triage 2018-02-02 15:03:45 UTC
see also Bug #221601.
Comment 2 Walter Schwarzenfeld freebsd_triage 2018-02-02 16:28:36 UTC
But compiles fine on 11.1-RELEASE (amd64).
Maybe, it should marked broken on 10.4 (?).
Comment 3 Max Brazhnikov freebsd_committer 2018-03-22 10:55:12 UTC
I can't reproduce it on recent 10.4-stable amd64, scilab port was built with both GUI=on and OCAML=on.
Comment 4 Piotr Kubaj freebsd_committer 2021-04-08 21:08:43 UTC
I'm having the same issue on 13.0-RC5 on powerpc64 and powerpc64le.
Comment 5 commit-hook freebsd_committer 2021-04-09 00:34:17 UTC
A commit in branch main references this bug:

URL: https://cgit.FreeBSD.org/ports/commit/?id=1567207686ac3e0add130a47948039ad4c1c0ec6

commit 1567207686ac3e0add130a47948039ad4c1c0ec6
Author:     Piotr Kubaj <pkubaj@FreeBSD.org>
AuthorDate: 2021-04-09 00:33:28 +0000
Commit:     Piotr Kubaj <pkubaj@FreeBSD.org>
CommitDate: 2021-04-09 00:33:28 +0000

    math/scilab: fix build on powerpc64*

    Please check your user-defined functions (or external module ones) should they appear in the stack trace.
    Otherwise you can report a bug on http://bugzilla.scilab.org/ with:
     * a sample code which reproduces the issue
     * the result of [a, b] = getdebuginfo()
     * the following information:
    [powerpc64le-default-job-11:33162] Signal: Abort trap (6)
    [powerpc64le-default-job-11:33162] Signal code:  (65543)

    PR:     225628

 math/scilab/Makefile | 2 ++
 1 file changed, 2 insertions(+)
Comment 6 Piotr Kubaj freebsd_committer 2021-04-09 00:34:33 UTC
It actually builds with GUI, but fails with OCAML.