Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 237561 - sys-apps/hal-0.5.11-r3 - /var/tmp/portage/sys-apps/hal-0.5.11-r3/temp/environment: line 3787: 19686 Segmentation fault
Summary: sys-apps/hal-0.5.11-r3 - /var/tmp/portage/sys-apps/hal-0.5.11-r3/temp/environ...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Core system (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Freedesktop bugs
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2008-09-13 11:17 UTC by Frank Hellmuth
Modified: 2009-02-04 14:11 UTC (History)
3 users (show)

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


Attachments
My xorg.conf (xorg.conf,3.78 KB, text/plain)
2008-09-14 09:48 UTC, Frank Hellmuth
Details
Xorg.0.log (Xorg.0.log,16.71 KB, text/plain)
2008-09-15 09:23 UTC, Frank Hellmuth
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Frank Hellmuth 2008-09-13 11:17:21 UTC
I masked previously hal-0.5.11-rX rules because converting xorg input sections failed. Emerging hal-0.5.11-r3 still gives me the message

 * Migrating xorg.conf Core Keyboard configuration to HAL FDI file...
/var/tmp/portage/sys-apps/hal-0.5.11-r3/temp/environment: line 3787: 19686 Segmentation fault      "${WORKDIR}/${PN}-config-examples/migrate-xorg-to-fdi.py" 2> /dev/null > "${D}/etc/hal/fdi/policy/10-x11-input.fdi"
 * Failed to migrate your keyboard configuration.

but continues to install.

After that I find in the installed /etc/hal/fdi/policy/10-x11-input.fdi

# cat /etc/hal/fdi/policy/10-x11-input.fdi
Data incomplete in file /etc/X11/xorg.conf
        Undefined Monitor "SamsungSyncMaster245B" referenced by Screen "Screen 1".

which is certainly no usable fdi file.

Please tell me if you need to see my xorg.conf, which causes no problems to xorg itself.

# emerge --info
Portage 2.2_rc8 (default/linux/amd64/2008.0/desktop, gcc-4.2.4, glibc-2.8_p20080602-r0, 2.6.26-gentoo-r1-default x86_64)
=================================================================
System uname: Linux-2.6.26-gentoo-r1-default-x86_64-AMD_Athlon-tm-_64_X2_Dual_Core_Processor_4200+-with-glibc2.2.5
Timestamp of tree: Fri, 12 Sep 2008 13:04:01 +0000
app-shells/bash:     3.2_p39
dev-java/java-config: 1.3.7, 2.1.6-r1
dev-lang/python:     2.5.2-r7
sys-apps/baselayout: 2.0.0
sys-apps/openrc:     0.2.5
sys-apps/sandbox:    1.2.18.1-r3
sys-devel/autoconf:  2.13, 2.62-r1
sys-devel/automake:  1.5, 1.7.9-r1, 1.8.5-r3, 1.9.6-r2, 1.10.1-r1
sys-devel/binutils:  2.18-r3
sys-devel/gcc-config: 1.4.0-r4
sys-devel/libtool:   2.2.4
virtual/os-headers:  2.6.26
ACCEPT_KEYWORDS="amd64 ~amd64"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-march=native -O2"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/kde/3.5/env /usr/kde/3.5/share/config /usr/kde/3.5/shutdown /usr/share/config"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/env.d/java/ /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/php/apache2-php5/ext-active/ /etc/php/cgi-php5/ext-active/ /etc/php/cli-php5/ext-active/ /etc/revdep-rebuild /etc/splash /etc/terminfo /etc/texmf/web2c /etc/udev/rules.d"
CXXFLAGS="-march=native -O2"
DISTDIR="/usr/portage/distfiles"
FEATURES="distlocks fixpackages parallel-fetch preserve-libs sandbox sfperms strict unmerge-orphans userfetch"
GENTOO_MIRRORS="http://mirror.gentoo.no/ http://trumpetti.atm.tut.fi/gentoo/ http://gentoo.blueyonder.co.uk http://www.mirrorservice.org/sites/www.ibiblio.org/gentoo/"
LDFLAGS="-Wl,-O1"
LINGUAS="en de"
MAKEOPTS="-j3"
PKGDIR="/usr/portage/packages"
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/portage/local/layman/nx /usr/portage/local/layman/sunrise /usr/portage/local/layman/science /usr/local/portage"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="3dnow X a52 aac aalib accessibility acl acpi alsa amd64 apache2 audiofile avahi bash-completion berkdb bluetooth branding bzip2 cairo calendar cddb cdparanoia cdr cli cracklib crypt css cups cvs dbus djvu dri dv dvb dvd dvdr dvdread emacs emboss encode examples exif fam fbcon ffmpeg fftw firefox flac fortran ftp gd gdbm gecko gif gimp ginac glut gmp gnuplot gnutls gphoto2 gpm gsl gstreamer gtk hal iconv icq idn ieee1394 imagemagick imap ipod ipv6 isdnlog jack java javascript jpeg kde kerberos ladspa lame lapack lash latex lcms libcaca libnotify libsamplerate lirc lm_sensors lzo mad midi mikmod mime mmx mng mp3 mpeg mplayer mudflap multilib musicbrainz mysql ncurses nls nntp nptl nptlonly nsplugin offensive ogg openexr opengl openmp pam pcre pda pdf perl plotutils png ppds pppd python qt3 qt3support qt4 quicktime raw rdesktop readline recode reflection rss samba scanner sdl session slang sndfile snmp sockets sox spell spl sse sse2 ssl startup-notification subversion svg sysfs syslog tcpd theora threads tiff timidity truetype unicode usb v4l v4l2 vcd vnc vorbis wifi wmf wxwindows xcomposite xemacs xine xinerama xml xorg xosd xpm xscreensaver xv yahoo 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 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" ELIBC="glibc" INPUT_DEVICES="keyboard mouse wacom evdev" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="en de" LIRC_DEVICES="devinput" USERLAND="GNU" VIDEO_CARDS="nvidia vesa fbdev"
Unset:  CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, FFLAGS, INSTALL_MASK, LANG, LC_ALL, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS

Reproducible: Always
Comment 1 Wormo (RETIRED) gentoo-dev 2008-09-14 01:33:26 UTC
Yes, please do attach your xorg.conf
Comment 2 Frank Hellmuth 2008-09-14 09:48:15 UTC
Created attachment 165381 [details]
My xorg.conf
Comment 3 Rémi Cardona (RETIRED) gentoo-dev 2008-09-14 17:08:49 UTC
You seem to be missing a Monitor section for your samsung monitor.
Comment 4 Frank Hellmuth 2008-09-14 21:40:09 UTC
xorg doesnt't care. So why should hal?
Comment 5 Frank Hellmuth 2008-09-14 21:47:09 UTC
At least it's *xorg*.conf and the the misinterpretation is not at all relatated the the keyboard (or any *input* related section). Getting an error message caused by a config file xorg accepts and a segfault is a problem of the script.
Comment 6 Rémi Cardona (RETIRED) gentoo-dev 2008-09-15 05:44:07 UTC
Maybe the ebuild should be able to carry on if the script fails, I'm not sure.

Could you please attach your Xorg.0.log file just in case?

Thanks
Comment 7 Frank Hellmuth 2008-09-15 09:23:48 UTC
Created attachment 165464 [details]
Xorg.0.log

Xorg simply says

(==) No monitor specified for screen "Screen 1".
        Using a default monitor configuration.

The trend is AFAIK to get rid of xorg.conf at all. So I don't see why hal should be less tolerant then xorg itself. And even if hal misses some informations: Writing a syntactically incorrect 10-x11-input.fdi is a wrong solution in any case.
Comment 8 Rémi Cardona (RETIRED) gentoo-dev 2008-09-15 11:57:29 UTC
(In reply to comment #7)
> (==) No monitor specified for screen "Screen 1".
>         Using a default monitor configuration.

Xorg has built-in fallback paths. The HAL script doesn't.

@HAL guys, maybe the script should not make the ebuild die() if it fails to convert xorg.conf to fdi files?

Thanks
Comment 9 Frank Hellmuth 2008-09-15 22:12:50 UTC
Ok, I added a monitor section for my samsung lcd. The segfault still happens, but now no /etc/hal/fdi/policy/10-x11-input.fdi at all is generated.
Comment 10 Tony Vroon (RETIRED) gentoo-dev 2009-02-04 14:11:14 UTC
The automatic conversion of X.Org configuration to HAL FDI files is as you find out... problematic at best. We will aim to provide documentation on the conversion process rather then trying to automate it.
It is unlikely we would do a better job then the user anyway. 0.5.11-r7 will not install said python script any longer.