Changes between Initial Version and Version 1 of TesterDocumentation


Ignore:
Timestamp:
04/23/10 10:48:37 (14 years ago)
Author:
Samuli Seppänen
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • TesterDocumentation

    v1 v1  
     1 = Reporting bugs =
     2
     3You should document a few things:
     4
     5 * Operating system (e.g. OpenBSD 4.3)
     6 * Your ''./configure'' command-line
     7 * Your OpenVPN version
     8
     9 = Building OpenVPN testing from git =
     10
     11 == Fetching the sources ==
     12
     13 * If you have not cloned the git repository:
     14
     15 git clone git://openvpn.git.sourceforge.net/gitroot/openvpn/openvpn-testing.git
     16 cd openvpn-testing
     17 git checkout -b allmerged origin/allmerged
     18
     19 * If you already have git repository clone:
     20
     21 cd openvpn-testing
     22 git checkout allmerged
     23 git pull --rebase origin
     24
     25 * Prepare for building:
     26 
     27 autoreconf -vi
     28
     29 = Building OpenVPN testing from snapshots =
     30
     31 * Download the latest snapshot tarball from: ftp://ftp.secure-computing.net/pub/FreeBSD/ports/openvpn-devel/
     32
     33 * Unpack it
     34
     35 gzip -dc openvpn-YYYYWW.tar.gz | tar xvf -
     36 cd openvpn-devel/
     37
     38 == Configure and compile ==
     39
     40When testing this version of OpenVPN, we would appreciate if all deprecated features would be disabled by default.  We want to know how OpenVPN behaves for you without these features.
     41
     42When doing the compile-time configuration of OpenVPN, please make sure the following arguments are included:
     43
     44 * --disable-depr-random-resolv
     45
     46Example:
     47
     48 ./configure --disable-depr-random-resolv
     49 make [-j <num CPU cores + 1>]
     50
     51When testing this version, please give us a report to '''**TBD**'''.  This report should also include the output of:
     52
     53 openvpn --version
     54
     55in addition to the ./configure line use used for the compilation and all the configuration files you used.  We would like to have both success and fail reports.
     56
     57 = Debugging =
     58
     59If OpenVPN crashes, you can help developers figure out the problem by giving them a backtrace of the crash. If you're running released (stable) version of OpenVPN, you should install the ''openvpn debug'' and ''gdb'' packages and then run openvpn via gdb. On "testing" turn on debugging before compilation. In either case you can get a backtrace of the crash like this:
     60
     61 $ gdb /usr/sbin/openvpn
     62 [gdb info message...blablabla...]
     63 (gdb) run --config <your config file> [--other-arguments-you-might-pass]
     64 [wait for the crash]
     65 (gdb) bt
     66 [full backtrace should appear]
     67
     68 = Enable core dump =
     69
     70In some cases, it's not possible to trigger the bug when running via gdb directly.  In this case, you can enable core dumps.  On most distributions and *nix OSes today, you need to enable this from your shell before starting OpenVPN.
     71
     72  $ ulimit -c unlimited
     73 
     74Then run OpenVPN with the normal arguments.  When OpenVPN crashes, it will now most likely create a core file which can be used for debugging the state of OpenVPN when it crashed.
     75
     76  $ gdb openvpn {core file}
     77  [gdb info message...blablabla...]
     78  (gdb) bt
     79  [full backtrace should appear]
     80
     81Please save the core files for a little while before deleting them.  It might be that the developers would ask for a copy of the core file in some situations, to investigate more carefully the state OpenVPN was in when it crashed.  But be also aware of that these core files can (will most likely) contain sensitive data, like encryption keys and certificates.  So share with care.
     82
     83Beware that if you start OpenVPN via init scripts, it will most likely not dump core files, unless you change the ulimit inside the init script.