Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 433157 - media-libs/freetype-2.4.10-r1 USE=infinality causes segmentation faults running x11-wm/openbox in _ft_bitmap_bc (in /usr/lib64/
Summary: media-libs/freetype-2.4.10-r1 USE=infinality causes segmentation faults runni...
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Library (show other bugs)
Hardware: AMD64 Linux
: Normal normal (vote)
Assignee: Gentoo Fonts Team
Depends on:
Reported: 2012-08-29 10:50 UTC by Andrej Gelenberg
Modified: 2013-08-16 08:26 UTC (History)
2 users (show)

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


Note You need to log in before you can comment on or make changes to this bug.
Description Andrej Gelenberg 2012-08-29 10:50:58 UTC
freetype-2.4.10-r1 has Segfault, when infinality patch applied. I don't have it, if i use -infinality useflag.

Reproducible: Always

Steps to Reproduce:
1. try to start openbox
Actual Results:  
openbox fail to start

Expected Results:  
openbox start and working

valgrind log:
==32729== Memcheck, a memory error detector
==32729== Copyright (C) 2002-2012, and GNU GPL'd, by Julian Seward et al.
==32729== Using Valgrind-3.8.0 and LibVEX; rerun with -h for copyright info
==32729== Command: openbox
==32729== Memcheck, a memory error detector
==32729== Copyright (C) 2002-2012, and GNU GPL'd, by Julian Seward et al.
==32729== Using Valgrind-3.8.0 and LibVEX; rerun with -h for copyright info
==32729== Command: openbox
==682==     in use at exit: 800,891 bytes in 1,379 blocks
==682==   total heap usage: 14,609 allocs, 13,230 frees, 2,976,806 bytes allocated
==682==    definitely lost: 104 bytes in 2 blocks
==682==    indirectly lost: 480 bytes in 20 blocks
==682==      possibly lost: 14,696 bytes in 113 blocks
==682==    still reachable: 785,611 bytes in 1,244 blocks
==682==         suppressed: 0 bytes in 0 blocks
==682== Rerun with --leak-check=full to see details of leaked memory
==682== For counts of detected and suppressed errors, rerun with: -v
==682== ERROR SUMMARY: 0 errors from 0 contexts (suppressed: 2 from 2)
==32729== Invalid read of size 1
==32729==    at 0xABFEE40: _ft_bitmap_bc (in /usr/lib64/
==32729==    by 0xAC049C3: ft_smooth_render_generic (in /usr/lib64/
==32729==    by 0xAC061BE: ft_smooth_render_lcd_v (in /usr/lib64/
==32729==    by 0xABB49F9: FT_Render_Glyph_Internal (in /usr/lib64/
==32729==    by 0x72412B7: XftFontLoadGlyphs (in /usr/lib64/
==32729==    by 0x723E941: XftGlyphExtents (in /usr/lib64/
==32729==    by 0x702EBDC: pango_xft_font_get_glyph_extents (in /usr/lib64/
==32729==    by 0xA77BFBF: pango_ot_buffer_output (in /usr/lib64/
==32729==    by 0xD8CE48B: basic_engine_shape (in /usr/lib64/pango/1.6.0/modules/
==32729==    by 0x7478269: pango_shape (in /usr/lib64/
==32729==    by 0x746B41B: shape_run (in /usr/lib64/
==32729==    by 0x746BD9E: process_item (in /usr/lib64/
==32729==  Address 0x0 is not stack'd, malloc'd or (recently) free'd
How are you gentlemen? All your base are belong to us. (Openbox received signal 11)
==32729== HEAP SUMMARY:
==32729==     in use at exit: 1,346,057 bytes in 5,898 blocks
==32729==   total heap usage: 22,067 allocs, 16,169 frees, 6,212,531 bytes allocated
==32729== LEAK SUMMARY:
==32729==    definitely lost: 5,736 bytes in 12 blocks
==32729==    indirectly lost: 14,672 bytes in 461 blocks
==32729==      possibly lost: 47,351 bytes in 285 blocks
==32729==    still reachable: 1,278,298 bytes in 5,140 blocks
==32729==         suppressed: 0 bytes in 0 blocks
==32729== Rerun with --leak-check=full to see details of leaked memory
==32729== For counts of detected and suppressed errors, rerun with: -v
==32729== ERROR SUMMARY: 1 errors from 1 contexts (suppressed: 3 from 3)

$ emerge --info
Portage Tree: /usr/portage
Portage HEAD: 6e46ea2ff642ab5959b8bf5627337e8a189e355e /usr/portage/.git/refs/heads/regen2
Portage 2.2.0_alpha120 (default/linux/amd64/10.0, gcc-4.6.3, glibc-2.15-r2, 3.5.2 x86_64)
System uname: Linux-3.5.2-x86_64-Intel-R-_Core-TM-_i7_CPU_M_620_@_2.67GHz-with-gentoo-2
app-shells/bash:          4.2_p37
dev-java/java-config:     2.1.12
dev-lang/python:          2.7.3-r2, 3.2.3-r1
dev-util/cmake:           2.8.9
dev-util/pkgconfig:       0.27.1
sys-apps/baselayout:      2.2
sys-apps/openrc:          0.10.5
sys-apps/sandbox:         2.6
sys-devel/autoconf:       2.13, 2.69
sys-devel/automake:       1.9.6-r3, 1.11.6, 1.12.3
sys-devel/binutils:       2.22.90
sys-devel/gcc:            4.5.3-r2, 4.6.3
sys-devel/gcc-config:     1.7.3
sys-devel/libtool:        2.4.2
sys-devel/make:           3.82-r3
sys-kernel/linux-headers: 3.5 (virtual/os-headers)
sys-libs/glibc:           2.15-r2
Repositories: gentoo sunrise nikel-overlay
ACCEPT_KEYWORDS="amd64 ~amd64"
CFLAGS="-O2 -ggdb -pipe -march=native -mtune=native"
CONFIG_PROTECT="/etc /usr/share/config /usr/share/gnupg/qualified.txt /usr/share/openvpn/easy-rsa"
CONFIG_PROTECT_MASK="${EPREFIX}/etc/gconf /etc/ca-certificates.conf /etc/env.d /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/php/apache2-php5.3/ext-active/ /etc/php/apache2-php5.4/ext-active/ /etc/php/cgi-php5.3/ext-active/ /etc/php/cgi-php5.4/ext-active/ /etc/php/cli-php5.3/ext-active/ /etc/php/cli-php5.4/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="-O2 -ggdb -pipe -march=native -mtune=native"
FCFLAGS="-O2 -pipe"
FEATURES="assume-digests binpkg-logs candy compress-build-logs compressdebug config-protect-if-modified distlocks ebuild-locks fixlafiles installsources news parallel-fetch parse-eapi-ebuild-head preserve-libs protect-owned sandbox sfperms splitdebug strict test-fail-continue unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv usersandbox xattr"
FFLAGS="-O2 -pipe"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
LINGUAS="ru de en"
PORTDIR_OVERLAY="/var/lib/layman/sunrise /home/andrej/projects/nikel-overlay"
USE="X acl alsa amd64 berkdb bzip2 caps cli cracklib crypt cups cxx doc dri fortran gdbm gif gmp gnutls gpm iconv icu idn ipv6 jack jpeg jpeg2k kerberos lcdfilter lcms lzma mmx modules mudflap multilib multislot multitarget ncurses nls nptl openmp pam pch pcre pic png pppd qt3support readline session sse sse2 ssl svg tcpd tiff unicode vdpau vim-syntax xattr xinerama zlib" 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" 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="actions alias auth_basic authn_alias authn_anon authn_dbm authn_default authn_file authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache cgi cgid dav dav_fs dav_lock deflate dir disk_cache env expires ext_filter file_cache filter headers include info log_config logio mem_cache mime mime_magic negotiation rewrite setenvif speling status unique_id userdir usertrack vhost_alias" CALLIGRA_FEATURES="kexi words flow plan sheets stage tables krita karbon braindump" 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 ubx" INPUT_DEVICES="evdev keyboard mouse synaptics" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LIBREOFFICE_EXTENSIONS="presenter-console presenter-minimizer" LINGUAS="ru de en" PHP_TARGETS="php5-3" PYTHON_TARGETS="python3_2 python2_7" RUBY_TARGETS="ruby19" USERLAND="GNU" VIDEO_CARDS="nouveau" 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"
Comment 1 Ben de Groot (RETIRED) gentoo-dev 2012-09-19 09:30:20 UTC
I can't reproduce this. It works fine for me.

My guess is this may be due to use of bitmap fonts, as I use truetype/opentype fonts only.