Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 97846 - wmpinboard segfaults on amd64
Summary: wmpinboard segfaults on amd64
Status: RESOLVED NEEDINFO
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: AMD64 Linux
: Low normal (vote)
Assignee: AMD64 Project
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-07-03 12:29 UTC by Andrew Stimpson
Modified: 2009-12-06 22:17 UTC (History)
3 users (show)

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Andrew Stimpson 2005-07-03 12:29:05 UTC
wmpinboard segfaults on amd64 under xorg-6.8.2-r1.

Reproducible: Always
Steps to Reproduce:
1. Compile wmpinboard.
2. Run `wmpinboard'.

Actual Results:  
Segmentation fault.

Expected Results:  
No produced one.

Portage 2.0.51.19 (default-linux/amd64/2005.0, gcc-3.4.3,
glibc-2.3.4.20041102-r1, 2.6.11-gentoo-r11 x86_64)
=================================================================
System uname: 2.6.11-gentoo-r11 x86_64 AMD Athlon(tm) 64 Processor 2800+
Gentoo Base System version 1.6.12
Python:              dev-lang/python-2.3.5 [2.3.5 (#1, Jun 21 2005, 15:58:48)]
distcc 2.18.3 x86_64-pc-linux-gnu (protocols 1 and 2) (default port 3632) [disabled]
ccache version 2.3 [enabled]
dev-lang/python:     2.3.5
sys-apps/sandbox:    [Not Present]
sys-devel/autoconf:  2.13, 2.59-r6
sys-devel/automake:  1.8.5-r3, 1.5, 1.7.9-r1, 1.6.3, 1.4_p6, 1.9.5
sys-devel/binutils:  2.15.92.0.2-r10
sys-devel/libtool:   1.5.16
virtual/os-headers:  2.6.8.1-r4
ACCEPT_KEYWORDS="amd64"
AUTOCLEAN="yes"
CFLAGS="-march=athlon64 -O2 -pipe"
CHOST="x86_64-pc-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.4/env
/usr/kde/3.4/share/config /usr/kde/3.4/shutdown /usr/kde/3/share/config
/usr/lib/X11/xkb /usr/share/config /usr/share/texmf/dvipdfm/config/
/usr/share/texmf/dvips/config/ /usr/share/texmf/tex/generic/config/
/usr/share/texmf/tex/platex/config/ /usr/share/texmf/xdvi/ /var/qmail/control"
CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/env.d"
CXXFLAGS="-march=athlon64 -O2 -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoaddcvs autoconfig ccache distlocks sandbox sfperms strict test"
GENTOO_MIRRORS="http://mirror.datapipe.net/gentoo
ftp://ftp.ussg.iu.edu/pub/linux/gentoo http://gentoo.seren.com/gentoo
http://gentoo.chem.wisc.edu/gentoo/ http://gentoo.mirrors.pair.com/"
MAKEOPTS="-j2"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
SYNC="rsync://rsync.us.gentoo.org/gentoo-portage"
USE="amd64 X a52 aac acpi aim alsa arts audiofile avi bash-completion berkdb
bitmap-fonts cdb cdparanoia cdr crypt curl dvd dvdread encode esd fam fbcon
ffmpeg flac font-server fortran gif gpm gtk icq imagemagick imlib ipv6 jack java
jp2 jpeg kde libwww lzw lzw-tiff mad mozilla mp3 mpeg nas ncurses nls ogg openal
opengl oss pam pdflib perl plotutils png portaudio python qt quicktime readline
samba sdl socks5 spell ssl tcltk tcpd tetex theora tiff truetype truetype-fonts
type1-fonts usb userlocales v4l vcd vorbis xine xml2 xmms xpm xrandr xv xvid
zlib userland_GNU kernel_linux elibc_glibc"
Unset:  ASFLAGS, CBUILD, CTARGET, LANG, LC_ALL, LDFLAGS, LINGUAS, PORTDIR_OVERLAY
Comment 1 Simon Stelling (RETIRED) gentoo-dev 2005-07-03 12:45:13 UTC
i can't reproduce it here.

can you please set FEATURES="nostrip", CFLAGS="-ggdb", remerge it and then type
the following:

gdb wminboard
run
(when it segfaults:)
bt

and post the output of 'bt'?
Comment 2 Andrew Stimpson 2005-07-03 13:33:48 UTC
Here's the output as requested:

(gdb) bt
#0  0x00002aaaaac1a2a3 in _XIMCountVaList () from /usr/lib/libX11.so.6
#1  0x00002aaaaac1a82d in XCreateIC () from /usr/lib/libX11.so.6
#2  0x000000000040c642 in ?? ()
#3  0x000000000040b8fa in ?? ()
#4  0x00002aaaaafe0e31 in __libc_start_main () from /lib/libc.so.6
#5  0x0000000000402c3a in ?? ()
#6  0x00007fffffffe1a8 in ?? ()
#7  0x000000000000001c in ?? ()

<snip>

#459 0x797469726f687475 in ?? ()
#460 0x4554524f4c4f4300 in ?? ()
#461 0x2d747678723d4d52 in ?? ()
#462 0x7273752f006d7078 in ?? ()
#463 0x706d772f6e69622f in ?? ()
#464 0x006472616f626e69 in ?? ()
#465 0x0000000000000000 in ?? ()
Cannot access memory at address 0x7ffffffff000
Comment 3 Simon Stelling (RETIRED) gentoo-dev 2005-10-05 14:55:32 UTC
uh, this bug is really old :(

i just tried again, and it still works fine here.. the backtrace you provided
doesn't help very much as it contains just tons of ??s but no useful information :/

are you sure that you set FEATURES="nostrip" when re-merging it?
Comment 4 Simon Stelling (RETIRED) gentoo-dev 2005-11-07 11:53:39 UTC
please reopen with the info requested in comment #3
Comment 5 Sam M W 2009-12-06 21:57:42 UTC
well I'm interested in seeing how this goes
so I'm adding myself to the CC
Comment 6 Renato Alves 2009-12-06 22:17:36 UTC
I have the same problem on amd64. After some testing I was able to workaround the segfault by compiling the application with -O0 instead of the default -O2.

Following the backtraces when compiled with -O2 and -O1:

-O2:
#0  0x00007f01b06ecd51 in ?? () from /usr/lib/libX11.so.6
#1  0x00007f01b06ed287 in XCreateIC () from /usr/lib/libX11.so.6
#2  0x000000000040cfc5 in init_xlocale () at xmisc.c:260
#3  0x000000000040bdd0 in main (argc=<value optimized out>, argv=0x7fff1405c1a8) at wmpinboard.c:2123

-O1:
#0  0x00007f8b58a22d51 in ?? () from /usr/lib/libX11.so.6
#1  0x00007f8b58a23287 in XCreateIC () from /usr/lib/libX11.so.6
#2  0x000000000040ccd7 in init_xlocale () at xmisc.c:260
#3  0x000000000040ba97 in main (argc=1, argv=0x7ffff20b0278) at wmpinboard.c:2123