Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 87218 - [PATCH] media-gfx/xloadimage - Unaligned access in /usr/lib/libX11.so.6
Summary: [PATCH] media-gfx/xloadimage - Unaligned access in /usr/lib/libX11.so.6
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: Alpha Linux
: Lowest trivial (vote)
Assignee: Desktop Misc. Team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: unaligned-access
  Show dependency tree
 
Reported: 2005-03-29 22:07 UTC by Mike Hlavac
Modified: 2023-05-08 17:20 UTC (History)
1 user (show)

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


Attachments
Patch that seems to resolve the unaligned access (xloadimage-unaligned.patch,1.74 KB, patch)
2005-07-23 13:25 UTC, Mike Hlavac
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Mike Hlavac 2005-03-29 22:07:45 UTC
(gdb) run

Starting program: /usr/bin/xsetbg /home/griffin/.blackbox/backgrounds/saturn.jpg
(no debugging symbols found)...(no debugging symbols found)...
(no debugging symbols found)...(no debugging symbols found)...
(no debugging symbols found)...(no debugging symbols found)...
(no debugging symbols found)...(no debugging symbols found)...
(no debugging symbols found)...(no debugging symbols found)...
(no debugging symbols found)...(no debugging symbols found)...
(no debugging symbols found)...(no debugging symbols found)...
(no debugging symbols found)...
Program received signal SIGBUS, Bus error.
0x0000020000055970 in XGetWindowProperty () from /usr/lib/libX11.so.6
(gdb) bt
#0  0x0000020000055970 in XGetWindowProperty () from /usr/lib/libX11.so.6
#1  0x0000000120019f4c in ?? ()
#2  0x000000012001a080 in ?? ()
#3  0x0000000120024a68 in ?? ()
#4  0x000002000030aec8 in __libc_start_main () from /lib/libc.so.6.1
#5  0x00000001200040a4 in ?? ()


Portage 2.0.51.19 (default-linux/alpha/2004.3, gcc-3.3.2, glibc-2.3.2-r12, 2.6.1  0 alpha)
=================================================================
System uname: 2.6.10 alpha EV56
Gentoo Base System version 1.4.16
Python:              dev-lang/python-2.3.4-r1 [2.3.4 (#1, Mar  1 2005, 21:22:27)  ]
dev-lang/python:     2.3.4-r1
sys-devel/autoconf:  2.13, 2.59-r6
sys-devel/automake:  1.5, 1.8.5-r3, 1.6.3, 1.7.9-r1, 1.4_p6, 1.9.4
sys-devel/binutils:  2.14.90.0.8-r1
sys-devel/libtool:   1.5.2-r7
virtual/os-headers:  2.6.8.1-r2
ACCEPT_KEYWORDS="alpha"
AUTOCLEAN="yes"
CFLAGS="-mieee -O2 -mcpu=ev56 -pipe"
CHOST="alpha-unknown-linux-gnu"
CONFIG_PROTECT="/etc /usr/kde/2/share/config /usr/kde/3.3/env /usr/kde/3.3/share  /config /usr/kde/3.3/shutdown /usr/kde/3/share/config /usr/lib/X11/xkb /usr/lib/  mozilla/defaults/pref /usr/share/config /var/qmail/control"
CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/env.d"
CXXFLAGS="-mieee -O2 -mcpu=ev56 -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoaddcvs autoconfig ccache distlocks"
GENTOO_MIRRORS="http://distfiles.gentoo.org http://distro.ibiblio.org/pub/Linux/  distributions/gentoo"
MAKEOPTS="-j2"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="X alpha arts avi berkdb bitmap-fonts cdr crypt cups dlloader encode esd fon  t-server foomaticdb fortran gcj gdbm gif gpm gtk gtk2 imlib jpeg libg++ libwww m  ad mikmod motif mozilla mp3 mpeg ncurses oggvorbis opengl oss pam pdflib perl pn  g python quicktime readline sdl spell ssl tcltk tcpd tiff truetype truetype-font  s type1-fonts usb xml2 xmms xv zlib"
Unset:  ASFLAGS, CBUILD, CTARGET, LANG, LC_ALL, LDFLAGS, PORTDIR_OVERLAY
Comment 1 Mike Hlavac 2005-07-23 12:44:31 UTC
Here's some additional info after some further digging:

[griffin@worm~--> ./unaligned /usr/bin/xsetbg
/home/griffin/.blackbox/backgrounds/saturn.jpg
Extra arguments passed to gdb in file /tmp/fileHZnylf.  Be sure to delete it
when you're done.
GNU gdb 6.3
Copyright 2004 Free Software Foundation, Inc.
GDB is free software, covered by the GNU General Public License, and you are
welcome to change it and/or distribute copies of it under certain conditions.
Type "show copying" to see the conditions.
There is absolutely no warranty for GDB.  Type "show warranty" for details.
This GDB was configured as "alpha-unknown-linux-gnu".
Using host libthread_db library "/lib/libthread_db.so.1".
(gdb) run
Starting program: /usr/bin/xsetbg /home/griffin/.blackbox/backgrounds/saturn.jpg

Program received signal SIGBUS, Bus error.
0x0000020000068b74 in XGetWindowProperty () from /usr/lib/libX11.so.6
(gdb) bt
#0  0x0000020000068b74 in XGetWindowProperty () from /usr/lib/libX11.so.6
#1  0x0000000120019f4c in freePrevious (dpy=0x1200d4810, w=72) at root.c:78
#2  0x000000012001a080 in imageOnRoot (disp=0x1200d4810, scrn=0, 
    image=0x1200d5610, options=0x0, verbose=0) at root.c:201
#3  0x0000000120024a68 in main (argc=2, argv=0x11fcb9728) at xloadimage.c:565
Comment 2 Mike Hlavac 2005-07-23 13:25:53 UTC
Created attachment 64152 [details, diff]
Patch that seems to resolve the unaligned access

This patch is based on Michal Jaegermann's patch at:
https://bugzilla.redhat.com/bugzilla/show_bug.cgi?id=10323
Comment 3 Fernando J. Pereda (RETIRED) gentoo-dev 2006-02-13 10:01:02 UTC
Does this still happens ? If it does, it might be wise to send that patch upstream.

Please reopen if it still happens.

Cheers,
Ferdy
Comment 4 Fernando J. Pereda (RETIRED) gentoo-dev 2006-02-18 12:43:45 UTC
Reopen as Mike requested.
Comment 5 Mike Hlavac 2006-03-05 19:48:50 UTC
As discussed on IRC, this package is no longer being maintained upstream, so if it is going to still be marked as stable, we should consider applying this patch to eliminate a unaligned access.
Comment 6 Fernando J. Pereda (RETIRED) gentoo-dev 2006-03-19 13:34:27 UTC
@desktop-misc: Please apply the patch.
Comment 7 Thomas Cort (RETIRED) gentoo-dev 2006-05-10 11:24:12 UTC
desktop-misc, please apply the patch attached to this bug.
Comment 8 Jakub Moc (RETIRED) gentoo-dev 2006-12-22 13:41:01 UTC
Uhm... Is this still even remotely relevant?
Comment 9 Jakub Moc (RETIRED) gentoo-dev 2007-04-06 11:13:54 UTC
desktop-misc - anyone alive out there? Plus see Bug 173522.
Comment 10 Samuli Suominen (RETIRED) gentoo-dev 2007-05-14 17:33:08 UTC
Patch applied in -r5.