Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 525184 - =dev-util/intel-ocl-sdk-4.4.0.117 with sys-devel/clang-3.5 - segmentation fault in /opt/intel/opencl-1.2-4.4.0.117/lib64/libintelocl.so
Summary: =dev-util/intel-ocl-sdk-4.4.0.117 with sys-devel/clang-3.5 - segmentation fau...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Development (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Mario Kicherer
URL:
Whiteboard:
Keywords:
: 525180 (view as bug list)
Depends on:
Blocks:
 
Reported: 2014-10-12 19:20 UTC by Jan Vesely
Modified: 2016-06-17 16:13 UTC (History)
1 user (show)

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


Attachments
intel-ocl-sdk-fixuseflags (intel-ocl-useflags.diff,2.23 KB, patch)
2015-02-09 05:07 UTC, Jan Vesely
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Jan Vesely 2014-10-12 19:20:19 UTC
It bundles clang 3.4 so I guess that one is OK (I did not verify, compiling clang takes too long on my machine).
it would be nice if the bundled_libs flags was split for each library (qtgui, qtcore, tbb, boost, clang), since all other libs work when using system version

Reproducible: Always
Comment 1 Jeroen Roovers (RETIRED) gentoo-dev 2014-10-13 06:25:04 UTC
1) Please post your `emerge --info' output in a comment.
2) Please post detailed information about what exactly is having segmentation faults.
Comment 2 Jan Vesely 2014-10-14 15:32:03 UTC
Portage 2.2.8-r2 (default/linux/amd64/13.0, gcc-4.7.3, glibc-2.19-r1, 3.17.0-gentoo x86_64)
=================================================================
                         System Settings
=================================================================
System uname: Linux-3.17.0-gentoo-x86_64-Intel-R-_Core-TM-_i5-2520M_CPU_@_2.50GHz-with-gentoo-2.2
KiB Mem:     3984464 total,    541212 free
KiB Swap:    4194300 total,   4194300 free
Timestamp of tree: Mon, 13 Oct 2014 23:00:01 +0000
ld GNU ld (GNU Binutils) 2.23.2
app-shells/bash:          4.2_p53
dev-lang/perl:            5.18.2-r1
dev-lang/python:          2.7.7, 3.3.5-r1, 3.4.1
dev-util/cmake:           2.8.12.2-r1
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.13.4
sys-devel/binutils:       2.23.2
sys-devel/gcc:            4.7.3-r1
sys-devel/gcc-config:     1.7.3
sys-devel/libtool:        2.4.2-r1
sys-devel/make:           4.0-r1
sys-kernel/linux-headers: 3.16 (virtual/os-headers)
sys-libs/glibc:           2.19-r1
Repositories: gentoo local
ACCEPT_KEYWORDS="amd64"
ACCEPT_LICENSE="*"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-O2 -march=native -mtune=native -fomit-frame-pointer -pipe"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/share/gnupg/qualified.txt"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/dconf /etc/env.d /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /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="-O2 -march=native -mtune=native -fomit-frame-pointer -pipe"
DISTDIR="/usr/portage/distfiles"
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 strict unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv usersandbox usersync xattr"
FFLAGS="-O2 -pipe"
GENTOO_MIRRORS="http://distfiles.gentoo.org"
LANG="en_US.utf8"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
MAKEOPTS="-j4"
PKGDIR="/usr/portage/packages"
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"
USE="X X509 a52 aac acl aio alsa amd64 apng aura avx berkdb blksha1 bluetooth branding bzip2 cairo caps cdda cddb cdr chroot clang cli clutter colord colordiff connection-sharing cracklib crypt cryptsetup css ctype cups curl custom-optimization cxx dbus dga dri dri3 drm dts dv dvd dvdnav dvdr dvi dvipdfm eap-sim egl enca exif expat faac faad fbcon fdt ffmpeg filter flac fontconfig fortran fpm fpx g3dvl gbm gd gdbm gdm gif gimp gles gles1 gles2 glib gmp gnome gnome-keyring gnome-online-accounts gnutls gpg gpm graphics graphite gstreamer gtk gtk3 gtkstyle gudev hardened hddtemp hdri hpn hwdb hybrid iconv icu id3tag idle imagemagick ipv6 irc ithreads jabber jit jpeg jpeg2k json justify keymap kpathsea lcms ldns libkms libnotify libsecret llvm llvm-shared-libs lm_sensors logrotate lto mad mbox mikmod minizip mktemp mmap mmx mmxext mng modules mozilla mp3 mp4 mpeg multicall multilib multitarget musepack mysqli mysqlnd nat nautilus ncurses networkmanager nls nptl objc ogg openal opencl opengl openmp openrc optimization opus osmesa pam pcap pch pcmcia pcre pdf pkcs11 playtools png policykit publishers pulseaudio quicktime raw readline reencrypt rtc samba science secure-delete security session sha512 shared-dricore smartcard smp socialweb sockets speex spell sqlite srv sse sse2 sse3 sse4 sse4_1 ssl ssse3 strong-optimization svg syslog system-cairo system-ffmpeg system-icu system-jpeg system-libCg system-sqlite systemd sysvipc t1lib tci templates theora threads threadsafe thunar tiff timezone tokenizer tor-hardening tordns truetype udev unicode unlock-notify upower usb v4l vaapi valgrind vdpau vhosts vim-syntax vorbis wavpack wayland wayland-compositor webgl webkit2 webp wmf x264 xanim xattr xcb xcomposite xfs xml xmp xpm xv xvid xvmc xwayland zip zlib" ABI_X86="64" ALSA_CARDS="hda-intel" APACHE2_MODULES="alias auth_digest authn_anon authn_default authn_file authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache dav dav_fs dav_lock dbd dir env expires ext_filter file_cache filter headers ident imagemap include info log_config mem_cache mime mime_magic negotiation proxy rewrite setenvif so status unique_id userdir vhost_alias" APACHE2_MPMS="worker" 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" CURL_SSL="openssl" DRACUT_MODULES="plymouth systemd" 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" GRUB_PLATFORMS="pc efi-64 multiboot" INPUT_DEVICES="evdev synaptics" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LIBREOFFICE_EXTENSIONS="presenter-console presenter-minimizer pdfimport" LINGUAS="en_GB en_US en" OFFICE_IMPLEMENTATION="libreoffice" PYTHON_SINGLE_TARGET="python3_3 python3_4" PYTHON_TARGETS="python3_3 python_3_4" QEMU_SOFTMMU_TARGETS="i386 x86_64 arm ppc aarch64" RUBY_TARGETS="ruby20" USERLAND="GNU" VIDEO_CARDS="nouveau intel i965" 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="3.3 3.4"
Unset:  CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LC_ALL, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, SYNC

=================================================================
                        Package Settings
=================================================================

dev-util/intel-ocl-sdk-4.4.0.117-r1 was built with the following:
USE="bundled_libs -android" ABI_X86="64"


you can ignore the +bundled_libs as I tried to remove those libraries manually to see which are needed
Comment 3 Jan Vesely 2014-10-14 15:51:12 UTC
(In reply to Jeroen Roovers from comment #1)
> 2) Please post detailed information about what exactly is having
> segmentation faults.

anything that uses opencl and builds kernels (and thus uses clang).

clinfo[0]:
Program received signal SIGSEGV, Segmentation fault.
0x00007ffff73af6b0 in ?? ()
   from /opt/intel/opencl-1.2-4.4.0.117/lib64/libintelocl.so

all of piglit[1] tests that build kernels:
Program received signal SIGSEGV, Segmentation fault.
0x00007ffff4da76b0 in ?? ()
   from /opt/intel/opencl-1.2-4.4.0.117/lib64/libintelocl.so

none of the above crashes with the bundled clang 3.4

[0] https://github.com/Oblomov/clinfo.git
[1] git://anongit.freedesktop.org/git/piglit
Comment 4 Jan Vesely 2015-02-09 05:07:45 UTC
Created attachment 395948 [details, diff]
intel-ocl-sdk-fixuseflags

The attached patch introduces new set of useflags (system-*) and adds correct (afaict) version dependencies. It also fixes #525180.

I have verified that each useflag only removes the specified bundled libs, and that the ocl implementation works (clinfo does not crash) with +system-qt, +system-tbb, and +system-boost.
Comment 5 Jason A. Donenfeld gentoo-dev 2015-04-20 09:52:05 UTC
Jan's patch works. +1
Comment 6 Rick Farina (Zero_Chaos) gentoo-dev 2015-04-20 16:43:14 UTC
accepted, thanks!
Comment 7 Rick Farina (Zero_Chaos) gentoo-dev 2016-06-17 16:13:10 UTC
*** Bug 525180 has been marked as a duplicate of this bug. ***