Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 270318 - net-ftp/gftp-2.0.19 segfaults (after gtk upgrade?)
Summary: net-ftp/gftp-2.0.19 segfaults (after gtk upgrade?)
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Gentoo Linux Gnome Desktop Team
Depends on:
Reported: 2009-05-18 16:35 UTC by Helmut Jarausch
Modified: 2009-05-25 14:58 UTC (History)
1 user (show)

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


Note You need to log in before you can comment on or make changes to this bug.
Description Helmut Jarausch 2009-05-18 16:35:24 UTC
net-ftp/gftp-2.0.19 has been running just fine for a long time.
Now, suddenly it segfaults (logwdw_vadj is zero)

Reproducible: Always

emerge --info
Portage 2.2_rc33 (default/linux/amd64/2008.0/desktop, gcc-4.3.3, glibc-2.10.1-r0, 2.6.29-gentoo-r3 x86_64)
System uname: Linux-2.6.29-gentoo-r3-x86_64-AMD_Phenom-tm-_II_X4_940_Processor-with-gentoo-2.0.0
Timestamp of tree: Mon, 18 May 2009 11:45:03 +0000
ccache version 2.4 [disabled]
app-shells/bash:     4.0_p24
dev-java/java-config: 1.3.7-r1, 2.1.7
dev-lang/python:     2.5.4-r2, 2.6.2
dev-python/pycrypto: 2.0.1-r8
dev-util/ccache:     2.4-r8
dev-util/cmake:      2.6.4
sys-apps/baselayout: 2.0.0
sys-apps/openrc:     0.4.3-r2
sys-apps/sandbox:    1.9
sys-devel/autoconf:  2.13, 2.63-r1
sys-devel/automake:  1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6-r2, 1.10.2
sys-devel/binutils:  2.19.1-r1
sys-devel/gcc-config: 1.4.1
sys-devel/libtool:   2.2.6a
virtual/os-headers:  2.6.29
ACCEPT_KEYWORDS="amd64 ~amd64"
CFLAGS="-mtune=native -O2 -pipe"
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/sandbox.d /etc/terminfo /etc/texmf/language.dat.d /etc/texmf/language.def.d /etc/texmf/updmap.d /etc/texmf/web2c /etc/udev/rules.d"
CXXFLAGS="-mtune=native -O2 -pipe"
FEATURES="buildpkg distlocks fixpackages parallel-fetch preserve-libs protect-owned sandbox sfperms strict unmerge-orphans userfetch"
LINGUAS="en de"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --stats --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages"
PORTDIR_OVERLAY="/usr/local/portage /usr/local/portage/layman/java-overlay"
USE="3dnow 3dnowext 3dnowprefetch X acl acpi alsa amd64 atm avahi berkdb branding bzip2 cairo cdr cli cracklib crypt cups dbus dri dvd dvdr dvdread eds emboss encode esd evo fam ffmpeg fftw firefox fortran fuse gdbm gfortran gif gimp gnome gpm gstreamer gtk gtk2 hal iconv ipv6 isdnlog jpeg kde lapack lcms libnotify mad midi mikmod mmx mmxext mp3 mpeg mudflap multilib ncurses nls nptl nptlonly ogg opengl openmp pam pcre pdf perl png ppds pppd python qt qt3 qt3support qt4 quicktime readline reflection sdl session smp spell spl sqlite sqlite3 sse sse2 sse3 sse4a ssl startup-notification svg sysfs tcl tcpd threads tiff tk truetype unicode usb vorbis xml xorg xulrunner xv 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 authn_alias authn_anon 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 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" ELIBC="glibc" INPUT_DEVICES="keyboard mouse evdev wacom" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="en de" USERLAND="GNU" VIDEO_CARDS="radeonhd"
Comment 1 Sebastian Luther (few) 2009-05-18 18:17:49 UTC
Did you rebuild gftp? If it still happens: Please provide "emerge -pvq gftp gtk+". Feel free to provide a meaningful backtrace  (See [1]).

Comment 2 Helmut Jarausch 2009-05-19 19:27:18 UTC
(In reply to comment #1)
> Did you rebuild gftp? If it still happens: Please provide "emerge -pvq gftp
> gtk+". Feel free to provide a meaningful backtrace  (See [1]).
> [1]

emerge -pvq gftp gtk+                                 
[ebuild   R   ] x11-libs/gtk+-2.16.1  USE="X cups jpeg tiff -debug -doc -jpeg2k -vim-syntax -xinerama" 
[ebuild   R   ] net-ftp/gftp-2.0.19  USE="gtk ssl" 

backtrace:Starting program: /Obj/Obj/gftp/src/gtk/gftp-gtk 
[Thread debugging using libthread_db enabled]
[New Thread 0x7ff6c99f66f0 (LWP 32547)]

Program received signal SIGSEGV, Segmentation fault.
[Switching to Thread 0x7ff6c99f66f0 (LWP 32547)]
0x00000000004179a1 in ftp_log (level=gftp_logging_error, request=0x0, 
    string=0x44aa33 "Error opening file %s: %s\n") at misc-gtk.c:118
118       upd = logwdw_vadj->upper - logwdw_vadj->page_size == logwdw_vadj->value;
(gdb) where
#0  0x00000000004179a1 in ftp_log (level=gftp_logging_error, request=0x0, 
    string=0x44aa33 "Error opening file %s: %s\n") at misc-gtk.c:118
#1  0x0000000000418cb6 in open_xpm (widget=0xfd30e0, 
    filename=0x44a29c "gftp.xpm") at misc-gtk.c:431
#2  0x000000000041398c in main (argc=1, argv=0x7fffd1b4de58) at gftp-gtk.c:1397
(gdb) p logwdw_vadj
$1 = (GtkAdjustment *) 0x0

Comment 3 Gilles Dartiguelongue gentoo-dev 2009-05-20 06:13:45 UTC
> backtrace:Starting program: /Obj/Obj/gftp/src/gtk/gftp-gtk 

-> is it really the gftp from your system or a version you compiled yourself ?
Comment 4 Helmut Jarausch 2009-05-20 09:16:32 UTC
(In reply to comment #3)
> > backtrace:Starting program: /Obj/Obj/gftp/src/gtk/gftp-gtk 
> -> is it really the gftp from your system or a version you compiled yourself ?

The binary which caused the problem was built with Gentoo. For generating
the backtrace, I built it outside of portage with debugging options.

I've just recognized that on a different machine with nearly identical
hard- and software, gftp doesn't crash.
So, probably, I should trace the differences myself.
Comment 5 Gilles Dartiguelongue gentoo-dev 2009-05-20 09:31:00 UTC
please don't do that, follow documentation in [1].

Comment 6 Helmut Jarausch 2009-05-25 14:58:18 UTC
(In reply to comment #5)
> please don't do that, follow documentation in [1].
> [1]

Having reinstalled some packages including gtk+ gftp now works again
without being recompiled.