Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 75029 - TightVNC segfaults on PAM error
Summary: TightVNC segfaults on PAM error
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: AMD64 Linux
: High normal (vote)
Assignee: Disenchanted (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2004-12-20 02:50 UTC by Mark Waterreus
Modified: 2006-02-14 22:24 UTC (History)
0 users

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


Attachments
Result of strace vncserver (amd64.log,40.74 KB, text/plain)
2005-01-19 23:37 UTC, Ken Cuvelier
Details
Output of strace Xvnc (amd64b.log,8.01 KB, text/plain)
2005-01-19 23:38 UTC, Ken Cuvelier
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Mark Waterreus 2004-12-20 02:50:44 UTC
TightVNC 1.3_alpha5 dont work on my amd64. It refuses to start

Reproducible: Always
Steps to Reproduce:
1. emerge tightvnc
2. execute /usr/bin/vncserver
3.

Actual Results:  
VNCSERVER gives this output: 
Couldn't start Xvnc; trying default font path.
Please set correct fontPath in the vncserver script.
Couldn't start Xvnc process.

And my /var/log/everything/current tell me this:
Dec 20 12:40:17 [su(pam_unix)] session opened for user ryceck by root(uid=0)
Dec 20 12:40:17 [su] PAM pam_putenv: delete non-existent entry; REMOTEHOST
Dec 20 12:40:17 [PAM-env] Unknown PAM_ITEM: <DISPLAY>
Dec 20 12:40:17 [su] PAM pam_putenv: delete non-existent entry; DISPLAY
Dec 20 12:40:17 [PAM-env] Unknown PAM_ITEM: <XAUTHORITY>
Dec 20 12:40:17 [su] PAM pam_putenv: delete non-existent entry; XAUTHORITY
Dec 20 12:40:20 [kernel] Xvnc[11337]: segfault at ffffffff960ae1c8 rip
0000002a95effe9b rsp 0000007fbfffeed0 error 4


Expected Results:  
Work like a charm and make my computer remote accessible

Portage 2.0.51-r8 (default-linux/amd64/2004.3, gcc-3.4.3,
glibc-2.3.4.20041102-r0, 2.6.9-nitro4 x86_64)
=================================================================
System uname: 2.6.9-nitro4 x86_64 AMD Athlon(tm) 64 Processor 3200+
Gentoo Base System version 1.6.8
Python:              dev-lang/python-2.3.4 [2.3.4 (#1, Dec 11 2004, 09:34:47)]
dev-lang/python:     2.3.4
sys-devel/autoconf:  2.59-r6, 2.13
sys-devel/automake:  1.8.5-r2, 1.5, 1.4_p6, 1.6.3, 1.7.9, 1.9.3
sys-devel/binutils:  2.15.92.0.2-r2
sys-devel/libtool:   1.5.10-r2
virtual/os-headers:  2.6.8.1-r1
ACCEPT_KEYWORDS="amd64 ~amd64"
AUTOCLEAN="yes"
CFLAGS="-march=athlon64 -mtune=athlon64 -O3 -pipe -fomit-frame-pointer"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/X11R6/lib/X11/xkb /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/share/config /var/qmail/control"
CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/env.d"
CXXFLAGS="-march=athlon64 -mtune=athlon64 -O3 -pipe -fomit-frame-pointer"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoaddcvs autoconfig ccache distlocks sandbox"
GENTOO_MIRRORS="http://ftp.snt.utwente.nl/pub/linux/gentoo
http://gentoo.osuosl.org http://www.ibiblio.org/pub/Linux/distributions/gentoo"
MAKEOPTS="-j2"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="amd64 X acpi alsa berkdb bitmap-fonts cdparanoia cdr crypt divx4linux dvd
dvdr dvdread f77 fam fortran gif gpm gtk gtk2 imagemagick imlib ipv6 java jp2
jpeg kde ldap lzw lzw-tiff mad mpeg multilib ncurses network nls oggvorbis
opengl pam perl png python qt readline samba sdl ssl tcltk tcpd tiff truetype
usb userlocales xml2 xmms xpm xrandr xv xvid zlib"

Compiled vncserver with USE="java tcpd" just because that was the default for my
system. Haven't tried without them, dont see why that would cause any problems
Comment 1 Mark Waterreus 2004-12-23 00:38:48 UTC
Also tried a few things like commenting out the problem parts in /etc/security/pam_env.conf (decomment the XAUTHORITY and DISPLAY), but this does indeed make the PAM-errors go away.... but tightvnc still crashes
Comment 2 Disenchanted (RETIRED) gentoo-dev 2005-01-19 23:19:19 UTC
with which version of xorg-x11 was this? can you reproduce this with 6.8.0-r4?

Comment 3 Ken Cuvelier 2005-01-19 23:37:45 UTC
Created attachment 49019 [details]
Result of strace vncserver

Same problem on my system.

emerge --info follows:
=================================================================
Portage 2.0.51-r3 (default-linux/amd64/2004.3, gcc-3.4.3,
glibc-2.3.4.20040808-r1, 2.6.9-gentoo-r14 x86_64)
=================================================================
System uname: 2.6.9-gentoo-r14 x86_64 AMD Athlon(tm) 64 Processor 3200+
Gentoo Base System version 1.4.16
distcc[27796] (dcc_trace_version) distcc 2.18.3 x86_64-pc-linux-gnu; built Jan
14 2005 14:11:57 [disabled]
Autoconf: sys-devel/autoconf-2.59-r5
Automake: sys-devel/automake-1.8.5-r1
Binutils: sys-devel/binutils-2.15.90.0.1.1-r3
Headers:  sys-kernel/linux26-headers-2.6.8.1-r2
Libtools: sys-devel/libtool-1.5.2-r7
ACCEPT_KEYWORDS="amd64"
AUTOCLEAN="yes"
CFLAGS="-march=athlon64 -O2 -pipe"
CHOST="x86_64-pc-linux-gnu"
COMPILER=""
CONFIG_PROTECT="/etc /usr/X11R6/lib/X11/xkb /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/mozilla/defaults/pref /usr/share/config
/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"
GENTOO_MIRRORS="http://gentoo.osuosl.org/ http://gentoo.ccccom.com
ftp://gentoo.ccccom.com"
MAKEOPTS="-j2"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage"
SYNC="rsync://orion.galaxy.local/gentoo-portage"
USE="amd64 X acpi alsa berkdb bitmap-fonts cdr crypt cups emul-linux-x86 esd
f77 fam flac font-server foomaticdb fortran gdbm gif gnome gpm gstreamer gtk
gtk2 guile imagemagick imlib ipv6 java jp2 jpeg junit kde libwww lzw lzw-tiff
mad motif mozilla multilib mysql ncurses nls oggvorbis opengl oss pam perl png
postgrespython qt readline samba sdl ssl tcpd tiff truetype truetype-fonts
type1-fonts usb userlocales xml xml2 xmms xpm xrandr xv zlib"
Comment 4 Ken Cuvelier 2005-01-19 23:38:49 UTC
Created attachment 49020 [details]
Output of strace Xvnc
Comment 5 Ken Cuvelier 2005-01-19 23:40:07 UTC
Comment on attachment 49020 [details]
Output of strace Xvnc

Forgot to mention this is with xorg-x11-6.8.0-r3
Comment 6 Disenchanted (RETIRED) gentoo-dev 2006-02-14 22:24:23 UTC
amd64 patch is on 1.3_alpha7, closing this as fixed