malloc errors on OpenVPN-cvs 'make check'
-----BEGIN PGP SIGNED MESSAGE-----
Hash: RIPEMD160
(i guess this belongs over here on -devel ...)
hi,
i'm attempting a 1st build/install of OpenVPN from src on OSX 10.4.7
as prereqs, i've successfully:
built & kextload-ed the TUN/TAP drivers
built & installed lzo libs & headers
working with a cvs co (8/3/06 10:17:15) of openvpn head:
cd /usr/ports/openvpn-cvs autoreconf -i -v ./configure \ --prefix=/usr/local/openvpn \ --enable-pthread \ --disable-password-save \ --with-ssl-headers=/usr/local/ssl/include/openssl/ \ --with-ssl-lib=/usr/local/ssl/lib/ \ --with-lzo-headers=/usr/local/include/lzo \ --with-lzo-lib=/usr/local/lib \ --with-ifconfig-path=/sbin/ifconfig \ --with-route-path=/sbin/route make
all succeed without apparent error.
but an immediately subsequent:
make check
fails at:
make check-TESTS
PASS: t_lpback.sh
the following test will run about two minutes...
Thu Aug 3 11:59:29 2006 OpenVPN 2.0.2 powerpc-apple-darwin8.7.0 [SSL] [LZO] built on Aug 3 2006
Thu Aug 3 11:59:29 2006 WARNING: --ping should normally be used with
- --ping-restart or --ping-exit
Thu Aug 3 11:59:29 2006 WARNING: No server certificate verification method has been enabled. See http://openvpn.net/howto.html#mitm for more info.
Thu Aug 3 11:59:29 2006 OpenVPN 2.0.2 powerpc-apple-darwin8.7.0 [SSL] [LZO] built on Aug 3 2006
Thu Aug 3 11:59:29 2006 WARNING: --ping should normally be used with
- --ping-restart or --ping-exit
Thu Aug 3 11:59:29 2006 WARNING: file 'sample-keys/client.key' is group or others accessible
Thu Aug 3 11:59:29 2006 Control Channel MTU parms [ L:1541 D:138 EF:38 EB:0 ET:0 EL:0 ]
Thu Aug 3 11:59:29 2006 Data Channel MTU parms [ L:1541 D:1450 EF:41 EB:4 ET:0 EL:0 ]
Thu Aug 3 11:59:29 2006 Local Options hash (VER=V4): '914df5fc' Thu Aug 3 11:59:29 2006 Expected Remote Options hash (VER=V4): '0b2b92a2' Thu Aug 3 11:59:29 2006 UDPv4 link local (bound): 127.0.0.1:16001 Thu Aug 3 11:59:29 2006 UDPv4 link remote: 127.0.0.1:16000 Thu Aug 3 11:59:29 2006 Diffie-Hellman initialized with 1024 bit key Thu Aug 3 11:59:29 2006 WARNING: file 'sample-keys/server.key' is group
or others accessible
Thu Aug 3 11:59:29 2006 Control Channel MTU parms [ L:1541 D:138 EF:38 EB:0 ET:0 EL:0 ]
Thu Aug 3 11:59:29 2006 Data Channel MTU parms [ L:1541 D:1450 EF:41 EB:4 ET:0 EL:0 ]
Thu Aug 3 11:59:29 2006 Local Options hash (VER=V4): '0b2b92a2' Thu Aug 3 11:59:29 2006 Expected Remote Options hash (VER=V4): '914df5fc' Thu Aug 3 11:59:29 2006 UDPv4 link local (bound): 127.0.0.1:16000 Thu Aug 3 11:59:29 2006 UDPv4 link remote: 127.0.0.1:16001 Thu Aug 3 11:59:29 2006 TLS: Initial packet from 127.0.0.1:16000,
sid=588a7109 2e42c448
Thu Aug 3 11:59:29 2006 TLS: Initial packet from 127.0.0.1:16001, sid=f9ef0a6f 6d80d30a
Thu Aug 3 12:00:29 2006 TLS Error: TLS key negotiation failed to occur within 60 seconds (check your network connectivity)
Thu Aug 3 12:00:29 2006 TLS Error: TLS handshake failed openvpn(5148) malloc: *** Deallocation of a pointer not malloced:0x3c001000; This could be a double free(), or free() called with the middle of an allocated block; Try setting environment variable MallocHelp to see tools to help debug
openvpn(5148) malloc: *** Deallocation of a pointer not malloced:0x9002c5d0; This could be a double free(), or free() called with the middle of an allocated block; Try setting environment variable MallocHelp to see tools to help debug
openvpn(5148) malloc: *** Deallocation of a pointer not malloced:0x900c84b0; This could be a double free(), or free() called with the middle of an allocated block; Try setting environment variable MallocHelp to see tools to help debug
openvpn(5148) malloc: *** Deallocation of a pointer not malloced:0xa0006210; This could be a double free(), or free() called with the middle of an allocated block; Try setting environment variable MallocHelp to see tools to help debug
openvpn(5148) malloc: *** Deallocation of a pointer not malloced:0x90019cc0; This could be a double free(), or free() called with the middle of an allocated block; Try setting environment variable MallocHelp to see tools to help debug
openvpn(5148) malloc: *** Deallocation of a pointer not malloced:0xa0006210; This could be a double free(), or free() called with the middle of an allocated block; Try setting environment variable MallocHelp to see tools to help debug
openvpn(5148) malloc: *** Deallocation of a pointer not malloced:0x90410004; This could be a double free(), or free() called with the middle of an allocated block; Try setting environment variable MallocHelp to see tools to help debug
openvpn(5148) malloc: *** Deallocation of a pointer not malloced:0x9012fc8c; This could be a double free(), or free() called with the middle of an allocated block; Try setting environment variable MallocHelp to see tools to help debug
./t_cltsrv.sh: line 28: 5147 Bus error ./openvpn --cd
"${srcdir}" --config sample-config-files/loopback-server
./t_cltsrv.sh: line 28: 5148 Bus error ./openvpn --cd
"${srcdir}" --config sample-config-files/loopback-client
FAIL: t_cltsrv.sh
====================================================
1 of 2 tests failed
Please report to [email protected]
====================================================
make[1]: *** [check-TESTS] Error 1
make: *** [check-am] Error 2
my network is up-n-running, and i'm able to ssh at will to any/all locations.
thoughts/suggestions?
thanks,
richard
- --
/"\
\ / ASCII Ribbon Campaign X against HTML email, vCards / \ & micro$oft attachments
[GPG] OpenMacNews at gmail dot com
fingerprint: 50C9 1C46 2F8F DE42 2EDB D460 95F7 DDBD 3671 08C6 -----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.5 (Darwin)
iEYEAREDAAYFAkTSo7gACgkQlffdvTZxCMZxRACfTVhQJtNCyZl+AspYoX8t9rhf xD8AnjWEPTMzMLC662IXNNf1ooOZGh3k
=QKA9
-----END PGP SIGNATURE-----
[Openvpn-devel] OpenVPN dev-type option does not work on Solaris
On Solaris 8 and 10, I have to use a different driver other than the Universal Tun driver. My driver name is "atun". However, if I change my driver name to "tun", it works just fine.
Basically, on Solaris, OpenVPN can not take a device type and name if not "tun", and OpenVPN complains:
Thu Aug 3 23:36:04 2006 us=146055 'atun0' is not a TUN/TAP device. The --ifconfig option works only for TUN/TAP devices.
Thu Aug 3 23:36:04 2006 us=146097 Exiting
The configuration file I used:
dev atun0
dev-type atun
dev-node /dev/atun
remote 172.16.16.6
ifconfig 1.1.1.1 1.1.1.2
secret /static.key
daemon
I do not know if anyone run into the same problem on other X-nux system. I already have a fix for Solaris and will post the fix shortly.
Andrew
Re: [Openvpn-devel] OpenVPN dev-type option does not work on Solaris
The fix is in tun.c
diff openvpn-2.0.7/tun.c openvpn-2.0.7-good-andrew/tun.c 61c61
< return !strcmp (dev_type, match_type);
---
Quoted 1 line
return !strncmp (dev, dev_type, strlen (dev_type));
68a69
Quoted 1 line
1266c1267
< openvpn_snprintf (tt->actual_name, 32, "%s%d", dev_tuntap_type,
ppa);
---
Quoted 1 line
openvpn_snprintf (tt->actual_name, 32, "%s%d", dev_type, ppa);
1270a1272
After recompile and use the same configuration:
dev atun0
dev-type atun
dev-node /dev/atun
remote 172.16.16.7
ifconfig 1.1.1.2 1.1.1.1
secret /static.key
verb 6
OpenVPN successfully starts and traffic go through as shown in the log:
Fri Aug 4 17:34:17 2006 us=828853 -----name atun0 and id 23 Fri Aug 4 17:34:17 2006 us=829016 TUN/TAP device atun0 opened Fri Aug 4 17:34:17 2006 us=829100 /usr/sbin/ifconfig atun0 1.1.1.1
1.1.1.2 mtu 1500 up
Fri Aug 4 17:34:17 2006 us=853171 /usr/sbin/ifconfig atun0 netmask 255.255.255.255
Fri Aug 4 17:34:17 2006 us=873227 Data Channel MTU parms [ L:1544 D:1450 EF:44 EB:4 ET:0 EL:0 ]
Fri Aug 4 17:34:17 2006 us=873440 Local Options String: 'V4,dev-type tun,link-mtu 1544,tun-mtu 1500,proto UDPv4,ifconfig 1.1.1.2 1.1.1.1,cipher BF-CBC,auth SHA1,keysize 128,secret'
Fri Aug 4 17:34:17 2006 us=873510 Expected Remote Options String:
'V4,dev-type tun,link-mtu 1544,tun-mtu 1500,proto UDPv4,ifconfig 1.1.1.1 1.1.1.2,cipher BF-CBC,auth SHA1,keysize 128,secret'
Fri Aug 4 17:34:17 2006 us=873687 Local Options hash (VER=V4):
'b290b507'
Fri Aug 4 17:34:17 2006 us=873788 Expected Remote Options hash (VER=V4): '4d3ccdee'
Fri Aug 4 17:34:17 2006 us=876963 Socket Buffers: R=[8192->65536] S=[8192->65536]
Fri Aug 4 17:34:17 2006 us=877464 UDPv4 link local (bound):
[undef]:1194
Fri Aug 4 17:34:17 2006 us=877724 UDPv4 link remote: 172.16.16.6:1194 Fri Aug 4 17:34:27 2006 us=882215 UDPv4 WRITE [60] to 172.16.16.6:1194:
DATA len=60
Fri Aug 4 17:34:37 2006 us=802075 UDPv4 WRITE [60] to 172.16.16.6:1194:
DATA len=60
Fri Aug 4 17:34:47 2006 us=322584 UDPv4 WRITE [60] to 172.16.16.6:1194:
DATA len=60
Fri Aug 4 17:34:57 2006 us=622311 UDPv4 WRITE [60] to 172.16.16.6:1194:
DATA len=60
Fri Aug 4 17:35:07 2006 us=612453 UDPv4 WRITE [60] to 172.16.16.6:1194:
DATA len=60
Fri Aug 4 17:35:07 2006 us=613836 UDPv4 READ [180] from 172.16.16.6:1194: DATA len=180
Fri Aug 4 17:35:07 2006 us=614193 Peer Connection Initiated with 172.16.16.6:1194
Fri Aug 4 17:35:08 2006 us=656520 UDPv4 READ [60] from 172.16.16.6:1194: DATA len=60
Fri Aug 4 17:35:08 2006 us=656761 Initialization Sequence Completed Fri Aug 4 17:35:08 2006 us=656989 UDPv4 WRITE [180] to 172.16.16.6:1194: DATA len=180
Andrew Zhu
Quoted 27 lines · Andrew Wenlang Zhu
On Solaris 8 and 10, I have to use a different driver other than the Universal Tun driver. My driver name is "atun". However, if I change my driver name to "tun", it works just fine.
Basically, on Solaris, OpenVPN can not take a device type and name if not "tun", and OpenVPN complains:
Thu Aug 3 23:36:04 2006 us=146055 'atun0' is not a TUN/TAP device. The --ifconfig option works only for TUN/TAP devices.
Thu Aug 3 23:36:04 2006 us=146097 ExitingThe configuration file I used:
dev atun0
dev-type atun
dev-node/dev/atun
remote 172.16.16.6
ifconfig 1.1.1.1 1.1.1.2
secret /static.key
daemonI do not know if anyone run into the same problem on other X-nux system. I already have a fix for Solaris and will post the fix shortly.
Andrew
Re: [Openvpn-devel] OpenVPN dev-type option does not work on Solaris
I forget to mention the the fix is based on Openvpn-2.0.7.
Andrew
Quoted 112 lines · Andrew Wenlang Zhu
The fix is in
tun.cdiff
openvpn-2.0.7/tun.copenvpn-2.0.7-good-andrew/tun.c61c61
< return !strcmp (dev_type,match_type);
---Quoted 1 line
return !strncmp (dev, dev_type, strlen (dev_type));68a69
Quoted 1 line
1266c1267
<openvpn_snprintf(tt->actual_name, 32, "%s%d",dev_tuntap_type,
ppa);
---Quoted 1 line
openvpn_snprintf (tt->actual_name, 32, "%s%d", dev_type, ppa);
1270a1272After recompile and use the same configuration:
dev atun0
dev-type atun
dev-node/dev/atun
remote 172.16.16.7
ifconfig 1.1.1.2 1.1.1.1
secret /static.key
verb 6OpenVPN successfully starts and traffic go through as shown in the log:
Fri Aug 4 17:34:17 2006 us=828853 -----name atun0 and id 23 Fri Aug 4 17:34:17 2006 us=829016 TUN/TAP device atun0 opened Fri Aug 4 17:34:17 2006 us=829100 /usr/sbin/ifconfig atun0 1.1.1.11.1.1.2 mtu 1500 up
Fri Aug 4 17:34:17 2006 us=853171/usr/sbin/ifconfigatun0 netmask 255.255.255.255
Fri Aug 4 17:34:17 2006 us=873227 Data Channel MTU parms [ L:1544 D:1450 EF:44 EB:4 ET:0 EL:0 ]
Fri Aug 4 17:34:17 2006 us=873440 Local Options String: 'V4,dev-type tun,link-mtu 1544,tun-mtu 1500,proto UDPv4,ifconfig 1.1.1.2 1.1.1.1,cipher BF-CBC,auth SHA1,keysize 128,secret'
Fri Aug 4 17:34:17 2006 us=873510 Expected Remote Options String:
'V4,dev-type tun,link-mtu 1544,tun-mtu 1500,proto UDPv4,ifconfig 1.1.1.1 1.1.1.2,cipher BF-CBC,auth SHA1,keysize 128,secret'
Fri Aug 4 17:34:17 2006 us=873687 Local Options hash (VER=V4):
'b290b507'
Fri Aug 4 17:34:17 2006 us=873788 Expected Remote Options hash (VER=V4): '4d3ccdee'
Fri Aug 4 17:34:17 2006 us=876963 Socket Buffers: R=[8192->65536] S=[8192->65536]
Fri Aug 4 17:34:17 2006 us=877464 UDPv4 link local (bound):
[undef]:1194
Fri Aug 4 17:34:17 2006 us=877724 UDPv4 link remote: 172.16.16.6:1194 Fri Aug 4 17:34:27 2006 us=882215 UDPv4 WRITE [60] to 172.16.16.6:1194:
DATA len=60
Fri Aug 4 17:34:37 2006 us=802075 UDPv4 WRITE [60] to 172.16.16.6:1194:
DATA len=60
Fri Aug 4 17:34:47 2006 us=322584 UDPv4 WRITE [60] to 172.16.16.6:1194:
DATA len=60
Fri Aug 4 17:34:57 2006 us=622311 UDPv4 WRITE [60] to 172.16.16.6:1194:
DATA len=60
Fri Aug 4 17:35:07 2006 us=612453 UDPv4 WRITE [60] to 172.16.16.6:1194:
DATA len=60
Fri Aug 4 17:35:07 2006 us=613836 UDPv4 READ [180] from 172.16.16.6:1194: DATA len=180
Fri Aug 4 17:35:07 2006 us=614193 Peer Connection Initiated with 172.16.16.6:1194
Fri Aug 4 17:35:08 2006 us=656520 UDPv4 READ [60] from 172.16.16.6:1194: DATA len=60
Fri Aug 4 17:35:08 2006 us=656761 Initialization Sequence Completed Fri Aug 4 17:35:08 2006 us=656989 UDPv4 WRITE [180] to 172.16.16.6:1194: DATA len=180Andrew Zhu
Quoted 21 lines · Andrew Wenlang Zhu
On Solaris 8 and 10, I have to use a different driver other than the Universal Tun driver. My driver name is "atun". However, if I change my driver name to "tun", it works just fine.
Basically, on Solaris, OpenVPN can not take a device type and name if not "tun", and OpenVPN complains:
Thu Aug 3 23:36:04 2006 us=146055 'atun0' is not a TUN/TAP device. The --ifconfig option works only for TUN/TAP devices.
Thu Aug 3 23:36:04 2006 us=146097 ExitingThe configuration file I used:
dev atun0
dev-type atun
dev-node/dev/atun
remote 172.16.16.6
ifconfig 1.1.1.1 1.1.1.2
secret /static.key
daemonQuoted 6 lines
I do not know if anyone run into the same problem on other X-nux system. I already have a fix for Solaris and will post the fix shortly.
Andrew
-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys -- and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
Openvpn-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/openvpn-devel