Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 446736

Summary: net-misc/tigervnc-1.2.0 - vncviewer segfaults when dismissing context menu
Product: Gentoo Linux Reporter: Guido Winkelmann <guido-genbugs>
Component: Current packagesAssignee: Raúl Porcel (RETIRED) <armin76>
Status: RESOLVED TEST-REQUEST    
Severity: normal CC: balint
Priority: Normal    
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---

Description Guido Winkelmann 2012-12-10 13:36:01 UTC
tigervnc crashes with a segmentation fault when dismissing the context menu (which can be opened by pressing F8) by clicking anywhere outside of it.

The problem is reproducible every time on my machine.

# emerge --info
Portage 2.1.11.31 (default/linux/amd64/10.0/desktop, gcc-4.6.2, glibc-2.15-r3, 3.5.7-gentoo x86_64)
=================================================================
System uname: Linux-3.5.7-gentoo-x86_64-Intel-R-_Xeon-R-_CPU_W3530_@_2.80GHz-with-gentoo-2.1
Timestamp of tree: Mon, 03 Dec 2012 00:45:01 +0000
ld GNU ld (GNU Binutils) 2.22
ccache version 3.1.8 [enabled]
app-shells/bash:          4.2_p37
dev-java/java-config:     2.1.11-r3
dev-lang/python:          2.7.3-r2, 3.2.3
dev-util/ccache:          3.1.8
dev-util/cmake:           2.8.9
dev-util/pkgconfig:       0.27.1
sys-apps/baselayout:      2.1-r1
sys-apps/openrc:          0.11.5
sys-apps/sandbox:         2.5
sys-devel/autoconf:       2.13, 2.68
sys-devel/automake:       1.11.6
sys-devel/binutils:       2.22-r1
sys-devel/gcc:            4.6.2
sys-devel/gcc-config:     1.7.3
sys-devel/libtool:        2.4-r1
sys-devel/make:           3.82-r3
sys-kernel/linux-headers: 3.6 (virtual/os-headers)
sys-libs/glibc:           2.15-r3
Repositories: gentoo hwoarang x-portage-local                                                                                                          
ACCEPT_KEYWORDS="amd64"                                                                                                                                
ACCEPT_LICENSE="* -@EULA dlj-1.1 Oracle-BCLA-JavaSE AdobeFlash-10.3"                                                                                   
CBUILD="x86_64-pc-linux-gnu"                                                                                                                           
CFLAGS="-march=corei7 -O2 -pipe -ggdb"                                                                                                                 
CHOST="x86_64-pc-linux-gnu"                                                                                                                            
CONFIG_PROTECT="/etc /usr/share/config /usr/share/gnupg/qualified.txt /var/bind /var/lib/hsqldb"                                                       
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.4/ext-active/ /etc/php/cgi-php5.4/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="-march=corei7 -O2 -pipe -ggdb"                                                                                                               
DISTDIR="/usr/portage/distfiles"                                                                                                                       
FCFLAGS="-O2 -pipe"                                                                                                                                    
FEATURES="assume-digests binpkg-logs ccache config-protect-if-modified distlocks ebuild-locks fixlafiles merge-sync news parallel-fetch protect-owned sandbox sfperms splitdebug strict unknown-features-warn unmerge-logs unmerge-orphans userfetch"                                                         
FFLAGS="-O2 -pipe"                                                                                                                                     
GENTOO_MIRRORS="http://gentoo.tiscali.nl/ http://de-mirror.org/distro/gentoo/ http://gentoo.mneisen.org/"                                              
LANG="de_DE.UTF-8"                                                                                                                                     
LC_ALL="de_DE.UTF-8"                                                                                                                                   
LDFLAGS="-Wl,-O1 -Wl,--as-needed"                                                                                                                      
LINGUAS="en de nds jp"                                                                                                                                 
MAKEOPTS="-j10"                                                                                                                                        
PKGDIR="/usr/portage/packages"                                                                                                                         
PORTAGE_CONFIGROOT="/"                                                                                                                                 
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --stats --human-readable --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages"                                                                                               
PORTAGE_TMPDIR="/var/tmp"                                                                                                                              
PORTDIR="/usr/portage"                                                                                                                                 
PORTDIR_OVERLAY="/var/lib/layman/hwoarang /usr/local/portage-local"                                                                                    
SYNC="rsync://rsync.gentoo.org/gentoo-portage"                                                                                                         
USE="X a52 aac acl acpi aiglx alsa amd64 apache2 apng arts berkdb bluetooth branding bzip2 cairo cdda cdr chipcard cli consolekit cracklib crypt ctype cups curl cvs cxx cycles dbus ddate declarative dri dts dvd dvdr emboss encode exif fam ffmpeg firefox flac fontconfig fortran ftp gd gdbm gif gnutls gpm graphviz gtk hash hbci iconv icu id3tag idn imlib ipv6 jabber java jpeg jpeg2k kde kdehiddenvisibility kpathsea lastfm lcms ldap libkms libnotify mad matroska mmx mng modules mp3 mp4 mpeg mplayer mudflap multilib mysql ncurses nfs nls nptl nsplugin ogg opengl openldap openmp pam pango pcap pcre pdf perl php png policykit postscript ppds pppd pulseaudio python qemu qt qt3 qt3support qt4 rdesktop readline samba sasl sdl semantic-desktop session spell spice sql sse sse2 sse3 sse4_1 sse4_2 ssl ssse3 startup-notification subversion svg tcpd theora tiff truetype udev udisks unicode upower usb virt-network vorbis webkit wmf wxwidgets x264 xcb xcomposite xine xinerama xml xorg xscreensaver xterm xv xvid 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="authn_core authz_core socache_shmcb unixd 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="keyboard mouse evdev" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LIBREOFFICE_EXTENSIONS="presenter-console presenter-minimizer" LINGUAS="en de nds jp" PHP_TARGETS="php5-3" PYTHON_SINGLE_TARGET="python2_7" PYTHON_TARGETS="python2_7 python3_2" QEMU_SOFTMMU_TARGETS="x86_64 i386" QEMU_USER_TARGETS="x86_64 i386" RUBY_TARGETS="ruby18 ruby19" USERLAND="GNU" VIDEO_CARDS="ati radeon vesa vga mga nv r600" 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"
Unset:  CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, USE_PYTHON
Comment 1 Guido Winkelmann 2012-12-10 14:10:32 UTC
I've run the program in gdb, waited until it crashed, then typed bt to get the following backtrace:

#0  Fl_X::set_cursor (this=0x79bad0, image=0x0, hotx=0, hoty=0)
    at /var/tmp/portage/net-misc/tigervnc-1.2.0/work/tigervnc-1.2.0/common/fltk/src/Fl_x.cxx:2478
#1  0x0000000000461dc2 in Fl_Window::cursor (this=<optimized out>, image=0x0, hotx=0, hoty=0)
    at /var/tmp/portage/net-misc/tigervnc-1.2.0/work/tigervnc-1.2.0/common/fltk/src/fl_cursor.cxx:179
#2  0x000000000043dfbe in Viewport::popupContextMenu (this=0x79b810)
    at /var/tmp/portage/net-misc/tigervnc-1.2.0/work/tigervnc-1.2.0/vncviewer/Viewport.cxx:902
#3  0x000000000043e2f5 in Viewport::handle (this=0x79b810, event=8)
    at /var/tmp/portage/net-misc/tigervnc-1.2.0/work/tigervnc-1.2.0/vncviewer/Viewport.cxx:440
#4  0x000000000043ef82 in send (event=<optimized out>, to=<optimized out>, window=<optimized out>)
    at /var/tmp/portage/net-misc/tigervnc-1.2.0/work/tigervnc-1.2.0/common/fltk/src/Fl.cxx:1109
#5  0x000000000043fe8d in Fl::handle_ (e=<optimized out>, window=0x782fa0)
    at /var/tmp/portage/net-misc/tigervnc-1.2.0/work/tigervnc-1.2.0/common/fltk/src/Fl.cxx:1342
#6  0x00000000004382ad in DesktopWindow::fltkHandle (event=8, win=0x782fa0)
    at /var/tmp/portage/net-misc/tigervnc-1.2.0/work/tigervnc-1.2.0/vncviewer/DesktopWindow.cxx:265
#7  0x000000000045b5e5 in fl_handle (thisevent=<optimized out>)
    at /var/tmp/portage/net-misc/tigervnc-1.2.0/work/tigervnc-1.2.0/common/fltk/src/Fl_x.cxx:1794
#8  0x000000000045ccb7 in do_queued_events () at /var/tmp/portage/net-misc/tigervnc-1.2.0/work/tigervnc-1.2.0/common/fltk/src/Fl_x.cxx:201
#9  0x000000000045d13b in fl_wait (time_to_wait=2147483.6469999999)
    at /var/tmp/portage/net-misc/tigervnc-1.2.0/work/tigervnc-1.2.0/common/fltk/src/Fl_x.cxx:267
#10 0x0000000000440c9b in Fl::wait (time_to_wait=<optimized out>)
    at /var/tmp/portage/net-misc/tigervnc-1.2.0/work/tigervnc-1.2.0/common/fltk/src/Fl.cxx:589
#11 0x0000000000434cc0 in main (argc=2, argv=<optimized out>)
    at /var/tmp/portage/net-misc/tigervnc-1.2.0/work/tigervnc-1.2.0/vncviewer/vncviewer.cxx:305
Comment 2 Jeroen Roovers (RETIRED) gentoo-dev 2012-12-10 19:03:43 UTC
Is it vncviewer that segfaults?
Comment 3 Guido Winkelmann 2012-12-11 01:05:22 UTC
(In reply to comment #2)
> Is it vncviewer that segfaults?

Yes.
Comment 4 Balint SZENTE 2013-08-15 21:08:41 UTC
I can confirm this bug. It happens to me exactly in the same way.

# emerge --info
Portage 2.1.12.2 (hardened/linux/amd64/no-multilib, gcc-4.6.3, glibc-2.15-r3, 3.9.5-hardened x86_64)
=================================================================
System uname: Linux-3.9.5-hardened-x86_64-Intel-R-_Core-TM-_i7-2630QM_CPU_@_2.00GHz-with-gentoo-2.2
KiB Mem:     6007296 total,   4085008 free
KiB Swap:    6291452 total,   6291452 free
Timestamp of tree: Thu, 15 Aug 2013 18:45:01 +0000
ld GNU ld (GNU Binutils) 2.23.1
app-shells/bash:          4.2_p45
dev-lang/python:          2.7.5
dev-util/cmake:           2.8.10.2-r2
dev-util/pkgconfig:       0.28
sys-apps/baselayout:      2.2
sys-apps/openrc:          0.11.8
sys-apps/sandbox:         2.6-r1
sys-devel/autoconf:       2.13, 2.69
sys-devel/automake:       1.10.3, 1.11.6, 1.12.6
sys-devel/binutils:       2.23.1
sys-devel/gcc:            4.6.3
sys-devel/gcc-config:     1.7.3
sys-devel/libtool:        2.4-r1
sys-devel/make:           3.82-r4
sys-kernel/linux-headers: 3.7 (virtual/os-headers)
sys-libs/glibc:           2.15-r3
Repositories: gentoo local
ACCEPT_KEYWORDS="amd64"
ACCEPT_LICENSE="* -@EULA"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-march=native -O2 -pipe"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/share/gnupg/qualified.txt"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo"
CXXFLAGS="-march=native -O2 -pipe"
DISTDIR="/usr/distfiles"
FCFLAGS="-O2 -pipe"
FEATURES="assume-digests binpkg-logs compressdebug config-protect-if-modified distlocks ebuild-locks fixlafiles merge-sync news parallel-fetch preserve-libs protect-owned sandbox sfperms splitdebug strict unknown-features-warn unmerge-logs unmerge-orphans userfetch xattr"
FFLAGS="-O2 -pipe"
GENTOO_MIRRORS="http://ftp.romnet.org/gentoo/ http://mirrors.xservers.ro/gentoo/"
LANG="en_US.UTF-8"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
MAKEOPTS="-j8"
PKGDIR="/usr/portage/packages"
PORTAGE_CONFIGROOT="/"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --stats --human-readable --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage"
SYNC="rsync://rsync.europe.gentoo.org/gentoo-portage"
USE="X acl alsa amd64 avx bash-completion berkdb bzip2 cairo caps cli cracklib crypt cxx dbus dri flac gdbm gif gpm hardened iconv icu jpeg justify lcms libnotify lzma mmx mmxext modules mp3 mudflap ncurses nls nptl offensive ogg opengl openmp orc pam pax_kernel pcre png readline session slang smp sse sse2 sse3 sse4_1 ssl ssse3 startup-notification svg tcpd theora threads tiff truetype udev unicode urandom usb vaapi vorbis x264 xattr xcb xft xvid zlib" ABI_X86="64" 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" APACHE2_MODULES="authn_core authz_core socache_shmcb unixd 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 author" 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" GRUB_PLATFORMS="pc" INPUT_DEVICES="evdev synaptics" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LIBREOFFICE_EXTENSIONS="presenter-console presenter-minimizer" LINGUAS="en" OFFICE_IMPLEMENTATION="libreoffice" PHP_TARGETS="php5-4" PYTHON_SINGLE_TARGET="python2_7" PYTHON_TARGETS="python2_7" RUBY_TARGETS="ruby19 ruby18" USERLAND="GNU" VIDEO_CARDS="intel" 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"
Unset:  CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LC_ALL, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, USE_PYTHON
Comment 5 Raúl Porcel (RETIRED) gentoo-dev 2014-09-20 11:22:42 UTC
Reopen if it happens in a recent version