Execute este código em um console de terminal antes de executar seu programa:
export JAVA_TOOL_OPTIONS=-Xss1280k
Eu tenho Scilab 6.0.0 no Ubuntu 16.04 LTS e estava funcionando muito bem até ontem. Tentei executar o programa via terminal ( ./bin/scilab
) e recebi o erro "Falha de segmentação (núcleo despejado)".
Eu já atualizei e atualizei o Ubuntu e esta versão do Scilab é a mais recente. Procurando uma resposta para o meu problema Eu tentei rodar o Scilab em uma sessão de depuração no gdb e recebi isso:
> Running debug of Scilab [gdb] : gdb --args scilab-bin -debug gdb:
> /home/alexandregsoares/Scilab/lib/thirdparty/redist/libncurses.so.5:
> no version information available (required by gdb) gdb:
> /home/alexandregsoares/Scilab/lib/thirdparty/redist/libncurses.so.5:
> no version information available (required by gdb) GNU gdb (Ubuntu
> 7.11.1-0ubuntu1~16.04) 7.11.1 Copyright (C) 2016 Free Software Foundation, Inc. License GPLv3+: GNU GPL version 3 or later
> //gnu.org/licenses/gpl.html This is free software: you are free
> to change and redistribute it. There is NO WARRANTY, to the extent
> permitted by law. Type "show copying" and "show warranty" for
> details. This GDB was configured as "x86_64-linux-gnu". Type "show
> configuration" for configuration details. For bug reporting
> instructions, please see: <http://www.gnu.org/software/gdb/bugs/>.
> Find the GDB manual and other documentation resources online at:
> <http://www.gnu.org/software/gdb/documentation/>. For help, type
> "help". Type "apropos word" to search for commands related to
> "word"... Lendo símbolos de scilab-bin...(no debugging symbols
> found)...concluído. (gdb) run Starting program:
> /home/alexandregsoares/Scilab/bin/scilab-bin -debug warning: the debug
> information found in
> "/home/alexandregsoares/Scilab/lib/thirdparty/libtk8.5.so.debug" does
> not match "/home/alexandregsoares/Scilab/lib/thirdparty/libtk8.5.so"
> (CRC mismatch).
>
> warning: the debug information found in
> "/home/alexandregsoares/Scilab/lib/thirdparty/libtcl8.5.so.debug" does
> not match "/home/alexandregsoares/Scilab/lib/thirdparty/libtcl8.5.so"
> (CRC mismatch).
>
> warning: the debug information found in
> "/home/alexandregsoares/Scilab/lib/thirdparty/libhdf5.so.7.0.2.debug"
> does not match
> "/home/alexandregsoares/Scilab/lib/thirdparty/libhdf5.so.7" (CRC
> mismatch).
>
> warning: the debug information found in
> "/home/alexandregsoares/Scilab/lib/thirdparty/libfftw3.so.3.3.2.debug"
> does not match
> "/home/alexandregsoares/Scilab/lib/thirdparty/libfftw3.so.3" (CRC
> mismatch).
>
> warning: the debug information found in
> "/home/alexandregsoares/Scilab/lib/thirdparty/redist/libgfortran.so.3.0.0.debug"
> does not match
> "/home/alexandregsoares/Scilab/lib/thirdparty/redist/libgfortran.so.3"
> (CRC mismatch).
>
> [Thread debugging using libthread_db enabled] Using host libthread_db
> library "/lib/x86_64-linux-gnu/libthread_db.so.1". warning: the debug
> information found in
> "/home/alexandregsoares/Scilab/lib/thirdparty/redist/libncurses.so.5.5.debug"
> does not match
> "/home/alexandregsoares/Scilab/lib/thirdparty/redist/libncurses.so.5"
> (CRC mismatch).
>
> [New Thread 0x7fffea9fc700 (LWP 2267)] [New Thread 0x7fffdbfff700 (LWP
> 2268)] [New Thread 0x7fffe146f700 (LWP 2269)] [New Thread
> 0x7fffe136e700 (LWP 2270)] [New Thread 0x7fffe126d700 (LWP 2271)] [New
> Thread 0x7fffe116c700 (LWP 2272)] [New Thread 0x7fffbfdfd700 (LWP
> 2273)]
>
> Thread 1 "scilab-bin" received signal SIGSEGV, Segmentation fault.
> 0x00007fffc500fe43 in ?? () (gdb) backtrace
> #0 0x00007fffc500fe43 in ?? ()
> #1 0x00007fffffffccd0 in ?? ()
> #2 0x00007fffc47ffca8 in ?? ()
> #3 0x00007fffffffcd18 in ?? ()
> #4 0x00007fffc48a8f38 in ?? ()
> #5 0x0000000000000000 in ?? ()
Sou apenas um usuário comum e não sei como proceder. Não sei se isso é importante, mas também tenho o Windows 10 neste computador, mas acho que não alterei nada no Windows ou no Ubuntu para causar esse problema.
edit: também usei o comando SCIVERBOSE=y ./bin/scilab
e foi o que consegui:
SCILABBIN : scilab-bin
DISABLE_JAVA_DETECTION : 0
SCILAB_MODE : gui
OS : Linux
MODEL : x86_64
IS_SCILAB_BINARY : 1
SCI : /home/alexandregsoares/Scilab/share/scilab
SCIBIN :
PATH : Scilab/./bin:/opt/ros/kinetic/bin:/home/alexandregsoares/bin:/home/alexandregsoares/.local/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin:/home/alexandregsoares/Scilab/share/scilab/modules/scicos/
CLASSPATH : /home/alexandregsoares/Scilab/share/scilab/modules/core/jar/org.scilab.modules.core.jar
EGL_DRIVER :
LD_LIBRARY_PATH : /home/alexandregsoares/Scilab/share/scilab/bin:/home/alexandregsoares/Scilab/share/scilab/lib/scilab/:/home/alexandregsoares/Scilab/share/scilab/lib64/scilab/:.:/home/alexandregsoares/Scilab/lib/scilab:/home/alexandregsoares/Scilab/lib/thirdparty:/home/alexandregsoares/Scilab/thirdparty/java//lib/amd64/:/home/alexandregsoares/Scilab/thirdparty/java//lib/amd64/server/:/home/alexandregsoares/Scilab/thirdparty/java//lib/amd64/native_threads/:/opt/ros/kinetic/lib:/home/alexandregsoares/Scilab/lib/thirdparty/redist
Segmentation fault (core dumped)
Execute este código em um console de terminal antes de executar seu programa:
export JAVA_TOOL_OPTIONS=-Xss1280k