Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 314643 - media-libs/lensfun-0.2.5: crash when compiled with vectorisation
Summary: media-libs/lensfun-0.2.5: crash when compiled with vectorisation
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: All Linux
: High critical (vote)
Assignee: Gentoo Graphics Project
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-04-11 11:00 UTC by Serge Gavrilov
Modified: 2010-04-17 18:42 UTC (History)
0 users

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


Attachments
output of 'strace ufraw dsc_0001.nef' (strace.txt,114.09 KB, text/plain)
2010-04-11 11:03 UTC, Serge Gavrilov
Details
lensfun-0.2.5-r1.ebuild (lensfun-0.2.5.ebuild,1.10 KB, text/plain)
2010-04-15 08:14 UTC, Serge Gavrilov
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Serge Gavrilov 2010-04-11 11:00:00 UTC
ufraw-0.17 linked against lensfun-0.2.5 crashes when open NEF file produced by Nikon D90. Strace output shows that segfault is probably related with lensfun code. 

ufraw does not crash when open old .ufraw files (where there is no lensfun related information). But trying to compensate lens distortion and selecting lens in ufraw menu yields crash.

Reproducible: Always

Steps to Reproduce:
1. Open some NEF file
2. If ufraw do not crash, try to select lens in ufraw menu


Actual Results:  
Ufraw will crash
Comment 1 Serge Gavrilov 2010-04-11 11:00:30 UTC
# emerge --info
Portage 2.1.8.3 (default/linux/x86/10.0/desktop, gcc-4.3.4, glibc-2.11-r1, 2.6.32-gentoo-r8 i686)
=================================================================
System uname: Linux-2.6.32-gentoo-r8-i686-Intel-R-_Core-TM-2_CPU_6300_@_1.86GHz-with-gentoo-2.0.1
Timestamp of tree: Sun, 11 Apr 2010 00:00:01 +0000
distcc 3.1 i686-pc-linux-gnu [disabled]
app-shells/bash:     4.0_p28
dev-java/java-config: 1.3.7-r1, 2.1.10
dev-lang/python:     2.6.2-r1
dev-python/pycrypto: 2.0.1-r8
dev-util/cmake:      2.6.4-r2
sys-apps/baselayout: 2.0.1
sys-apps/openrc:     0.4.3-r3
sys-apps/sandbox:    1.7
sys-devel/autoconf:  2.13, 2.63-r1
sys-devel/automake:  1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6-r2, 1.10.2, 1.11
sys-devel/binutils:  2.19.1-r1
sys-devel/gcc:       3.4.6-r2, 4.3.4
sys-devel/gcc-config: 1.4.1
sys-devel/libtool:   2.2.6b
virtual/os-headers:  2.6.30-r1
ACCEPT_KEYWORDS="x86 ~x86"
ACCEPT_LICENSE="*"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-O2 -march=core2 -pipe"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/lib/fax /usr/share/X11/xkb /usr/share/config /var/lib/hsqldb /var/spool/fax/etc"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/env.d/java/ /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/revdep-rebuild /etc/sandbox.d /etc/splash /etc/terminfo /etc/texmf/language.dat.d /etc/texmf/language.def.d /etc/texmf/updmap.d /etc/texmf/web2c"
CXXFLAGS="-O2 -march=core2 -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="assume-digests distlocks fixpackages news parallel-fetch protect-owned sandbox sfperms strict unmerge-logs unmerge-orphans userfetch"
GENTOO_MIRRORS="http://distfiles.gentoo.org"
LANG="ru_RU.UTF-8"
LDFLAGS="-Wl,-O1"
LINGUAS="en ru en_US en_GB"
MAKEOPTS=""
PKGDIR="/usr/portage/packages"
PORTAGE_CONFIGROOT="/"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --stats --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage/layman/sunrise /usr/local/portage"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="X a52 aac aalib accessibility acl acpi alsa amr apache2 arts asf atm audiofile automaount automount avi bash-completion beagle berkdb bitmap-fonts bluetooth branding bzip2 cairo cdda cddb cdr cli consolekit cpudetection cracklib crypt ctype cups cxx cyrillic dba dbus device-mapper dirac disk-partition divx djvu doc dri dts dvb dvd dvdr dvdread eds emboss encode esd ethereal exif expat faac faad fam fastbuild ffmpeg fftw flac fontconfig foomaticdb force-cgi-redirect fortran ftp fts3 fuse gcj gd gdbm gdl gif gimp glut gmp gmplayer gnome gnome-keyring gphoto2 gpm gps gpu gsl gsm gstreamer gtk gtk2 gtkhtml guile h323 hal iconv idn imagemagick imlib ipv6 jadetex jbig jpeg jpeg2k kde kdrive kpathsea latex lcms libburn libg++ libnotify libwww lirc lzma mad mbox memlimit mikmod mmx mng modules moonlight motif mozilla moznopango mozsvg mp3 mp4 mpeg mudflap nautilus ncurses nls nptl nptlonly nsplugin ogg opencore-amr openexr opengl openmp oss pam pango pcre pdf pdflib perl png policykit posix ppds pppd python qt qt3support qt4 quicktime raw readline reflection samba schroedinger sdl session simplexml sip slang smp soap sockets sox speex spell spl sqlite sse sse2 ssl startup-notification svg sysfs tcltk tcpd theora threads tiff tokenizer tools truetype truetype-fonts type1-fonts udev unicode usb v4l v4l2 vcd vdpau vidix vim-syntax vorbis wav webkit wmf x264 x86 xattr xcb xinerama xml xml2 xmp xorg xsl xulrunner xv xvid xvmc zlib" ALSA_CARDS="ice1724" ALSA_PCM_PLUGINS="adpcm alaw asym copy dmix dshare dsnoop empty extplug file hooks iec958 ioplug ladspa lfloat linear meter mmap_emul mulaw multi null plug rate route share shm softvol" APACHE2_MODULES="authz_host access auth auth_dbm auth_anon auth_digest alias file-cache echo charset-lite cache disk-cache mem-cache ext-filter case_filter case-filter-in deflate mime-magic cern-meta expires headers usertrack unique-id proxy proxy-connect proxy-ftp proxy-http info include cgi cgid dav dav-fs vhost-alias speling rewrite log_config logio env setenvif mime status autoindex asis negotiation dir imap actions userdir so filter" CAMERAS="ptp2" ELIBC="glibc" INPUT_DEVICES="evdev" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="en ru en_US en_GB" LIRC_DEVICES="devinput" RUBY_TARGETS="ruby18" USERLAND="GNU" VIDEO_CARDS="vesa nvidia" 
Unset:  CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, FFLAGS, INSTALL_MASK, LC_ALL, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS
Comment 2 Serge Gavrilov 2010-04-11 11:03:45 UTC
Created attachment 227359 [details]
 output of 'strace ufraw dsc_0001.nef'
Comment 3 Serge Gavrilov 2010-04-15 08:13:29 UTC
This is the upstream lensfun bug:

http://developer.berlios.de/bugs/?func=detailbug&bug_id=17053&group_id=9034

The workaround is to disable vectorization when compiling lenfun. The corrected ebuild is attached below.  
Comment 4 Serge Gavrilov 2010-04-15 08:14:51 UTC
Created attachment 227859 [details]
lensfun-0.2.5-r1.ebuild
Comment 5 Markus Meier gentoo-dev 2010-04-17 18:42:59 UTC
vectorisation disabled in cvs, thanks for the investigation and patch.

*lensfun-0.2.5-r1 (17 Apr 2010)

  17 Apr 2010; Markus Meier <maekke@gentoo.org> +lensfun-0.2.5-r1.ebuild:
  disable vectorization support for now, by Serge Gavrilov in bug #314643