Package: vtun
Version: 3.0.1-2.1
Severity: grave
When in client mode on x86_64, vtund segfaults after the session has
been established. The server I'm connecting to is x86, runnig Debian
testing as of 20080422, with the same veersion of vtun.
When using a x86 box with Debian testing on x86, to connect to the same
server, the same session works just fine.
[EMAIL PROTECTED]: /usr/sbin/vtund -n bzh_lan <serverhidden>
vtund[15659]: VTun client ver 3.X 03/30/2008 started
vtund[15659]: Connecting to <serverhidden>
vtund[15659]: Use SSL-aware challenge/response
vtund[15659]: Session bzh_lan[<serverhidden>] opened
vtund[15659]: LZO compression[level 1] initialized
[ 6724.190671] vtund[15659]: segfault at 40 ip 409cf0 sp 7fff5906fa00
error 4 in vtund[400000+11000]
Segmentation fault
Recompiled vtund from sources (apt-get source vtun), configured with
../configure --prefix=/opt/vtun, and run through gdb:
[EMAIL PROTECTED]: gdb --args /opt/vtun/sbin/vtund -n bzh_lan <serverhidden>
GNU gdb 6.7.1-debian
[--SNIP--]
This GDB was configured as "x86_64-linux-gnu"...
Using host libthread_db library "/lib/libthread_db.so.1".
(gdb) run
Starting program: /opt/vtun/sbin/vtund -n bzh_lan <serverhidden>
vtund[12415]: VTun client ver 3.X 04/24/2008 started
vtund[12415]: Connecting to <serverhidden>
vtund[12415]: Session bzh_lan[<serverhidden>] opened
vtund[12415]: LZO compression[level 1] initialized
Program received signal SIGSEGV, Segmentation fault.
lfd_linker () at linkfd.c:127
127 for(mod = lfd_mod_tail; mod && len > 0; mod = mod->prev )
(gdb) backtrace
#0 lfd_linker () at linkfd.c:127
#1 0x0000000000409dee in linkfd (host=0x16cb370) at linkfd.c:402
#2 0x0000000000407b10 in tunnel (host=0x16cb370) at tunnel.c:223
#3 0x0000000000406495 in client (host=0x16cb370) at client.c:141
#4 0x00000000004033b1 in main (argc=4, argv=0x7fff4c0ed608,
env=0x7fff4c0ed630) at main.c:201
(gdb) quit
Configuration files for client and server attached.
The up/down script does absolutely nothing, except returning 0.
-- System Information:
Debian Release: lenny/sid
APT prefers testing
APT policy: (500, 'testing'), (500, 'stable')
Architecture: amd64 (x86_64)
Kernel: Linux 2.6.25-kemper (SMP w/2 CPU cores; PREEMPT)
Locale: LANG=en_US, LC_CTYPE=en_US (charmap=ISO-8859-1)
Shell: /bin/sh linked to /bin/bash
Versions of packages vtun depends on:
ii debconf [debconf-2.0] 1.5.20 Debian configuration management sy
ii libc6 2.7-10 GNU C Library: Shared libraries
ii liblzo2-2 2.02-3 data compression library
ii libssl0.9.8 0.9.8g-8 SSL shared libraries
ii zlib1g 1:1.2.3.3.dfsg-12 compression library - runtime
vtun recommends no packages.
-- no debconf information
# Global options
options {
type stand;
port 2204;
syslog yes;
ifconfig /sbin/ifconfig;
}
# Default values for sessions
default {
keepalive yes;
compress no;
encrypt no;
stat no;
speed 0;
}
# Private extension
bzh_lan {
passwd HIDDEN;
type ether;
proto tcp;
keepalive yes;
compress lzo:1;
encrypt no;
multi yes;
up {
program /root/if-vtun.sh "add %d %A:%P %a:%p" wait;
};
down {
program /root/if-vtun.sh "del %d %A:%P %a:%p" wait;
};
}
options {
type stand;
port 2204;
syslog no;
ifconfig /sbin/ifconfig;
}
bzh_lan {
passwd HIDDEN;
persist keep;
stat no;
proto tcp;
up {
program /root/if-vtun.sh "add %d %A:%P %a:%p" wait;
};
down {
program /root/if-vtun.sh "del %d %A:%P %a:%p" wait;
};
}