Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 62875 - socks5+ipv6 causes irssi to segfault
Summary: socks5+ipv6 causes irssi to segfault
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: AMD64 Linux
: High critical (vote)
Assignee: Packages in net-irc
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2004-09-04 17:32 UTC by Adrian Frühwirth
Modified: 2006-07-01 09:31 UTC (History)
1 user (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 Adrian Frühwirth 2004-09-04 17:32:56 UTC
irssi(-0.8.9-r1) compiled with USE flags "ipv6 socks5" causes it to segfault on connection attempts.

respective strace output:

-- snip--

[...]

mmap(NULL, 528384, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x2a9558d000
brk(0x6f2000)                           = 0x6f2000
open("/home/adrian/.irssi/scripts/autorun", O_RDONLY|O_NONBLOCK|O_DIRECTORY) = -1 ENOENT (No such file or directory)
poll([{fd=0, events=POLLIN|POLLPRI}, {fd=3, events=POLLIN|POLLPRI, revents=POLLIN}], 2, 427) = 1
fcntl(3, F_SETFL, O_RDONLY|O_NONBLOCK)  = 0
read(3, "\2\0\0\0\177\0\0\1\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0"..., 72) = 72
close(3)                                = 0
close(4)                                = 0
socket(PF_INET, SOCK_STREAM, IPPROTO_IP) = 3
fcntl(3, F_SETFL, O_RDONLY|O_NONBLOCK)  = 0
setsockopt(3, SOL_SOCKET, SO_REUSEADDR, [-7685963887383937023], 4) = 0
setsockopt(3, SOL_SOCKET, SO_KEEPALIVE, [-7685963887383937023], 4) = 0
--- SIGSEGV (Segmentation fault) @ 0 (0) ---
+++ killed by SIGSEGV (core dumped) +++

--snip--

Without ipv6 support irssi keeps telling to lookup any.host.net (without ever connecting) instead of segfaulting.

Reproducible: Always
Steps to Reproduce:
1. USE="ipv6 socks5" emerge irssi
2. irssi -c any.host.net

Actual Results:  
segmentation fault

Expected Results:  
connection attempt with any.host.net

Gentoo Base System version 1.5.3
Portage 2.0.50-r9 (default-amd64-2004.2, gcc-3.3.4, glibc-2.3.4.20040808-r0, 2.
6.8-gentoo-r1)
=================================================================
System uname: 2.6.8-gentoo-r1 x86_64 AMD Athlon(tm) 64 Processor 3000+
distcc 2.16 x86_64-pc-linux-gnu (protocols 1 and 2) (default port 3632) 
[disabled]
Autoconf: sys-devel/autoconf-2.59-r4
Automake: sys-devel/automake-1.8.5-r1
ACCEPT_KEYWORDS="amd64 ~amd64"
AUTOCLEAN="yes"
CFLAGS="-pipe"
CHOST="x86_64-pc-linux-gnu"
COMPILER="gcc3"
CONFIG_PROTECT="/etc /usr/X11R6/lib/X11/xkb /usr/kde/2/share/config /usr/kde/3.
3/share/config:/usr/kde/3.3/env:/usr/kde/3.3/shutdown /usr/kde/3/share/config /
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="-pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoaddcvs ccache"
MAKEOPTS="-j2"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/var/tmp/portage"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="X aalib acpi aim alsa amd64 apm avi cddb crypt cups curl directfb dvd dvdr 
encode ethereal fbcon flac fluidsynth foomaticdb gdbm gif gpm gtk gtk2 icq imap 
innodb ipv6 jabber jack java jikes jit jpeg junit kde kerberos ladcca ldap 
libg++ libgda libwww mbox motif mpeg mpeg4 mpi mysql ncurses nls nogcj nptl odbc 
oggvorbis ooo-kde opengl oss pam pcmcia perl png pnp postgres prebuilt qt 
quicktime readline samba sasl sdl slang snmp socks5 speex spell ssl threads tiff 
truetype usb v4l v4l2 wmf xinerama xml xml2 xmms xvid zlib"
Comment 1 jieryn 2005-06-19 17:09:34 UTC
ping ... is this being looked at? i'm still getting tons of weirdness with
irssi-0.8.9-r1 with both these flags enabled. disabling socks5 or ipv6 fixes the
problem.

this is a P2, Critical bug and it's been sitting around for 8-9 months now. what
is going on with it?
Comment 2 Sven Wegener gentoo-dev 2005-06-21 06:06:18 UTC
I don't have access to an ipv6 connection and compiling it locally with
USE="ipv6 socks" and connecting over ipv4 I don't receive a segfault. Maybe it's
an amd64 specific issue. Could someone from amd64 take a look?
Comment 3 Danny van Dyk (RETIRED) gentoo-dev 2005-06-21 13:21:35 UTC
Sven: Can't reproduce it on amd64.
Comment 4 Jan Boysen 2006-02-01 07:10:04 UTC
I've just tested net-irc/irssi-0.8.9-r1  +ipv6 +perl +socks5 +ssl on amd64...
no segfaults, no connection problems (IPV4 and IPV6 works)
so I cant reproduce this posible Bug...
Comment 5 Peter Weller (RETIRED) gentoo-dev 2006-06-28 10:49:25 UTC
Tested irssi-0.8.10-r3 on amd64 (this bug seems to have been with 0.8.10-r1). Everything works fine, now using it as my main IRC client.

My emerge --info:

Portage 2.1 (default-linux/amd64/2006.1, gcc-3.4.6, glibc-2.3.6-r3, 2.6.16-gentoo-r9 x86_64)
=================================================================
System uname: 2.6.16-gentoo-r9 x86_64 AMD Sempron(tm) Processor 3300+
Gentoo Base System version 1.6.14
dev-lang/python:     2.4.2
dev-python/pycrypto: 2.0.1-r5
dev-util/ccache:     [Not Present]
dev-util/confcache:  [Not Present]
sys-apps/sandbox:    1.2.17
sys-devel/autoconf:  2.13, 2.59-r7
sys-devel/automake:  1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6-r1
sys-devel/binutils:  2.16.1-r2
sys-devel/gcc-config: 1.3.13-r2
sys-devel/libtool:   1.5.22
virtual/os-headers:  2.6.11-r2
ACCEPT_KEYWORDS="amd64"
AUTOCLEAN="yes"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-O2 -march=k8 -pipe"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/kde/3.5/env /usr/kde/3.5/share/config /usr/kde/3.5/shutdown /usr/lib/X11/xkb /usr/lib64/mozilla/defaults/pref /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/"
CONFIG_PROTECT_MASK="/etc/env.d /etc/gconf /etc/revdep-rebuild /etc/terminfo"
CXXFLAGS="-O2 -march=k8 -pipe"
DISTDIR="/usr/distfiles"
FEATURES="autoconfig distlocks metadata-transfer sandbox sfperms strict"
GENTOO_MIRRORS="http://distfiles.gentoo.org http://distro.ibiblio.org/pub/linux/distributions/gentoo"
MAKEOPTS="-j2"
PKGDIR="/usr/portage/packages"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --delete-after --stats --timeout=180 --exclude='/distfiles' --exclude='/local' --exclude='/packages'"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/portage"
PORTDIR_OVERLAY="/usr/local/overlay"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="amd64 X alsa arts berkdb bitmap-fonts cdr cli crypt cups dri dvd dvdread ethereal ffmpeg flac flash foomaticdb fortran ftp gdbm gnome gpm gstreamer gtk gtk2 gtkhtml hal imagemagick ipv6 isdnlog jabber java javascript jpeg kde kdeenablefinal libg++ mp3 mpeg msn ncurses nls nptl nptlonly nsplugin ogg opengl pam pcre pda perl png pppd python qt qt3 qt4 quicktime readline reflection samba session spl ssl tcpd tiff truetype-fonts type1-fonts udev unicode usb userlocales vcd vorbis xine xinerama xml xmms xorg xv xvid zlib elibc_glibc input_devices_mouse input_devices_keyboard kernel_linux userland_GNU"
Unset:  CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LANG, LC_ALL, LDFLAGS, LINGUAS, PORTAGE_RSYNC_EXTRA_OPTS
Comment 6 Markus Ullmann (RETIRED) gentoo-dev 2006-07-01 09:31:17 UTC
As it seems resolved, closing this for now.
If the problem does still exist, feel free to reopen