Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 528970 - [science overlay] sci-mathematics/scilab-5.5.1 - segmentation fault on startup in watchGetCommandLine (in=<optimized out>) at src/c/GetCommandLine.c:198
Summary: [science overlay] sci-mathematics/scilab-5.5.1 - segmentation fault on startu...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: AMD64 Linux
: Normal normal (vote)
Assignee: Gentoo Science Related Packages
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2014-11-11 20:32 UTC by Libor Bukata
Modified: 2015-01-14 19:42 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments
Error messages produced by scilab. (file_528970.txt,2.90 KB, text/plain)
2014-11-11 20:58 UTC, Libor Bukata
Details
Backtrace of the program (gdb, valgrind). (file_528970.txt,4.48 KB, text/plain)
2014-11-11 21:05 UTC, Libor Bukata
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Libor Bukata 2014-11-11 20:32:05 UTC
After installing an updated version of scilab 5.5.1 (previous version 5.5.0 is not affected by this bug) it is not possible to start the program using gui. The command line version (scilab-cli) works well. 

Reproducible: Always

Steps to Reproduce:
1. compile and install scilab-5.5.1 from science overlay
2. start scilab from the command line to see crash report
Actual Results:  
The program will crash with an SIGSEGV error. See included files to see the program backtrack and outputs.

Expected Results:  
The program will not crash.

Analysing the bug I have found out that the console input string (char*) is null in scilab/modules/console/src/c/GetCommandLine.c:120 file, whereas in scilab of version 5.5.0 it is a user input. Probably the function "ConsoleRead()" does not work correctly.

======================== emerge --info ================================
Portage 2.2.12 (python 3.3.5-final-0, default/linux/amd64/13.0/desktop, gcc-4.8.3, glibc-2.19-r1, 3.10.58-gentoo x86_64)
=======================================================================
System uname: Linux-3.10.58-gentoo-x86_64-Intel-R-_Core-TM-_i7-2630QM_CPU_@_2.00GHz-with-gentoo-2.2
KiB Mem:     8119744 total,   1443916 free
KiB Swap:    8388604 total,   8388500 free
Timestamp of tree: Tue, 04 Nov 2014 18:30:01 +0000
ld GNU ld (GNU Binutils) 2.23.2
ccache version 3.1.9 [disabled]
app-shells/bash:          4.2_p53
dev-java/java-config:     2.2.0
dev-lang/perl:            5.18.2-r1
dev-lang/python:          2.7.7, 3.2.5-r6, 3.3.5-r1, 3.4.1
dev-util/ccache:          3.1.9-r3
dev-util/cmake:           3.0.2
dev-util/pkgconfig:       0.28-r1
sys-apps/baselayout:      2.2
sys-apps/openrc:          0.12.4
sys-apps/sandbox:         2.6-r1
sys-devel/autoconf:       2.13, 2.69
sys-devel/automake:       1.11.6, 1.12.6, 1.13.4
sys-devel/binutils:       2.23.2
sys-devel/gcc:            4.6.4, 4.7.4, 4.8.3
sys-devel/gcc-config:     1.7.3
sys-devel/libtool:        2.4.2-r1
sys-devel/make:           3.82-r4
sys-kernel/linux-headers: 3.13 (virtual/os-headers)
sys-libs/glibc:           2.19-r1
Repositories: science zugaina poly-c portage_testing gentoo
Installed sets: @system
ACCEPT_KEYWORDS="amd64"
ACCEPT_LICENSE="* -@EULA"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-march=corei7-avx --param l1-cache-size=32 --param l1-cache-line-size=64 --param l2-cache-size=6144 -O2 -pipe"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/share/config /usr/share/gnupg/qualified.txt /usr/share/maven-bin-3.0/conf /var/lib/hsqldb"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/dconf /etc/env.d /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/php/apache2-php5.3/ext-active/ /etc/php/apache2-php5.5/ext-active/ /etc/php/cgi-php5.3/ext-active/ /etc/php/cgi-php5.5/ext-active/ /etc/php/cli-php5.3/ext-active/ /etc/php/cli-php5.5/ext-active/ /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo /etc/texmf/language.dat.d /etc/texmf/language.def.d /etc/texmf/updmap.d /etc/texmf/web2c"
CXXFLAGS="-march=corei7-avx --param l1-cache-size=32 --param l1-cache-line-size=64 --param l2-cache-size=6144 -O2 -pipe"
DISTDIR="/mnt/DataDisk/PortageDistfiles"
EMERGE_DEFAULT_OPTS="--jobs=4 --load-average=20"
FCFLAGS="-O2 -pipe"
FEATURES="assume-digests binpkg-logs config-protect-if-modified distlocks ebuild-locks fixlafiles merge-sync news parallel-fetch preserve-libs protect-owned sandbox sfperms splitdebug strict unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv usersandbox usersync"
FFLAGS="-O2 -pipe"
GENTOO_MIRRORS="http://gentoo.mirror.web4u.cz/ http://gentoo.mirror.dkm.cz/pub/gentoo/ http://gentoo.supp.name/ ftp://gentoo.mirror.dkm.cz/pub/gentoo/"
LANG="cs_CZ.UTF-8"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
MAKEOPTS="-j8"
PKGDIR="/usr/portage/packages"
PORTAGE_COMPRESS="pbzip2"
PORTAGE_CONFIGROOT="/"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --omit-dir-times --compress --force --whole-file --delete --stats --human-readable --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage/layman/science /usr/local/portage/layman/zugaina /usr/local/portage/layman/poly-c /usr/local/portage /usr/portage"
USE="64bit 7zip X a52 aac aalib acl acpi alsa amd64 apache2 arts audacious bash-completion berkdb blender-game bluetooth branding bzip2 c++ c++0x cairo cdda cdr clamav cli clisp consolekit cracklib crypt ctype cups cvs cxx dbm dbus divx double-precision dri dts dvd dvdr editor emboss emovix encode examples exif extensions extrafilters extras fam fat ffmpeg fftw firefox flac fmod foomaticdb fortran ftp gcj gcl gdbm gif gimp gkrellm glade glamor glut gmail gmp gnuplot gnustep gocr gphoto2 gpm graphviz grub gs gsl gstreamer gtk gtkhtml hal hddtemp hdri highlight history icons iconv icq ieee1394 ifp imagemagick imap imlib inherit-graph inkjar int64 ipv6 irrlicht jabber java jfs jpeg jpeg2k kde kdepim kdm kig-scripting kipi kmid ladspa lame lapack latex lcms ldap libcaca libnotify libsamplerate libtommath libvisual lm_sensors lua lyx lzma mad maps matroska mikmod mjpeg mmx mmxext mng modules motif mozdevelop mozilla mp2 mp3 mp4 mpeg mplayer multilib musepack music musicbrainz mysql ncurses network networkmanager nls nptl nsplugin objc objc++ objc-gc octave ode ogg ogg123 ogm openal opengl openmp pam pango pascal pcmcia pcre pdf perl phonon php plasma plotutils png pnm policykit poll posix povray ppds python qhull qt3 qt3support qt4 quicktime raw readline realmedia recode ruby scanner sdl seamonkey semantic-desktop sensord session slang smp sndfile solver sox spell sqlite sqlite3 srt sse sse2 sse3 ssl ssse3 startup-notification subversion svg symlink syslog tcpd tga themes theora threads tidy tiff timidity tk truetype udev udisks unicode upower usb v4l v4l2 valgrind vcd vdr video vim-syntax visualization vorbis wavpack wifi wma wmf wmp wxwidgets x264 xanim xcb xcf xcomposite xerces-c xine xinerama xml xorg xosd xprint xscreensaver xv xvid xvmc yv12 zip zlib" ABI_X86="64" ALSA_CARDS="ali5451 als4000 atiixp atiixp-modem bt87x ca0106 cmipci emu10k1x ens1370 ens1371 es1938 es1968 fm801 hda-intel intel8x0 intel8x0m maestro3 trident usb-audio via82xx via82xx-modem ymfpci" APACHE2_MODULES="actions alias auth_basic auth_digest authn_anon authn_dbd authn_dbm authn_default authn_file authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache dav dav_fs dav_lock dbd deflate dir disk_cache env expires ext_filter file_cache filter headers ident imagemap include info log_config logio mem_cache mime mime_magic negotiation proxy proxy_ajp proxy_balancer proxy_connect proxy_http rewrite setenvif so speling status unique_id userdir usertrack vhost_alias" CALLIGRA_FEATURES="kexi words flow plan sheets stage tables krita karbon braindump author" CAMERAS="ptp2" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" ELIBC="glibc" GPSD_PROTOCOLS="ashtech aivdm earthmate evermore fv18 garmin garmintxt gpsclock itrax mtk3301 nmea ntrip navcom oceanserver oldstyle oncore rtcm104v2 rtcm104v3 sirf superstar2 timing tsip tripmate tnt ublox ubx" INPUT_DEVICES="evdev keyboard mouse synaptics joystick wacom" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LIBREOFFICE_EXTENSIONS="presenter-minimizer nlpsolver" LINGUAS="cs" NETBEANS_MODULES="apisupport cnd enterprise ergonomics java javafx mobility php profiler websvccommon" OFFICE_IMPLEMENTATION="libreoffice" PHP_TARGETS="php5-5" PYTHON_SINGLE_TARGET="python2_7" PYTHON_TARGETS="python2_7 python3_3" RUBY_TARGETS="ruby19 ruby20" USERLAND="GNU" VIDEO_CARDS="nv nvidia v4l nouveau intel vmware" XTABLES_ADDONS="quota2 psd pknock lscan length2 ipv4options ipset ipp2p iface geoip fuzzy condition tee tarpit sysrq steal rawnat logmark ipmark dhcpmac delude chaos account"
USE_PYTHON="2.7 3.3"
Unset:  CPPFLAGS, CTARGET, INSTALL_MASK, LC_ALL, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, SYNC
Comment 1 Libor Bukata 2014-11-11 20:58:25 UTC
Created attachment 389124 [details]
Error messages produced by scilab.

I have also tried alternative JVMs with the same result.

Tested JVMs:
1) dev-java/oracle-jdk-bin-1.7.0.71
2) dev-java/icedtea-7.2.5.3
3) dev-java/icedtea-bin-6.1.13.3-r3
Comment 2 Libor Bukata 2014-11-11 21:05:35 UTC
Created attachment 389126 [details]
Backtrace of the program (gdb, valgrind).
Comment 3 Libor Bukata 2015-01-14 19:42:56 UTC
I have found out that the issue is not reproducible any more after updating the system (some libraries, compiler, etc.) and Scilab recompilation.